diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/CHANGELOG.md b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/CHANGELOG.md index 692c674e99609..611e2c58546e0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/CHANGELOG.md +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/CHANGELOG.md @@ -1,14 +1,615 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.2 (2026-09-15) -### Features Added +- Azure Resource Manager Workload Orchestration client library for Java. This package contains Microsoft Azure SDK for Workload Orchestration Management SDK. Microsoft.Edge Resource Provider management API. Package api-version 2026-05-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.SolutionVersionProperties` was modified + +* `java.lang.String configuration()` -> `com.azure.core.util.BinaryData configuration()` +* `java.lang.String targetLevelConfiguration()` -> `com.azure.core.util.BinaryData targetLevelConfiguration()` +* `validate()` was removed + +#### `models.UninstallSolutionParameter` was modified + +* `validate()` was removed + +#### `models.InstallSolutionParameter` was modified + +* `validate()` was removed + +#### `models.StageSpec` was modified + +* `validate()` was removed + +#### `models.ExtendedLocation` was modified + +* `validate()` was removed + +#### `models.SolutionDependencyParameter` was modified + +* `validate()` was removed + +#### `models.StageStatus` was modified + +* `validate()` was removed + +#### `models.AvailableSolutionTemplateVersion` was modified + +* `validate()` was removed + +#### `models.Schema$Update` was modified + +* `withProperties(models.SchemaProperties)` was removed + +#### `models.JobParameterBase` was modified + +* `validate()` was removed + +#### `models.Diagnostic$Update` was modified + +* `withProperties(models.DiagnosticProperties)` was removed + +#### `models.TargetProperties` was modified + +* `validate()` was removed + +#### `models.UpdateExternalValidationStatusParameter` was modified + +* `validate()` was removed + +#### `models.Solution$Update` was modified + +* `withProperties(models.SolutionProperties)` was removed + +#### `models.SolutionVersionParameter` was modified + +* `validate()` was removed + +#### `models.SchemaReferenceProperties` was modified + +* `validate()` was removed + +#### `models.SolutionProperties` was modified + +* `validate()` was removed + +#### `models.ComponentStatus` was modified + +* `validate()` was removed + +#### `models.Capability` was modified + +* `validate()` was removed + +#### `models.SolutionDependency` was modified + +* `validate()` was removed + +#### `models.SiteReferenceProperties` was modified + +* `validate()` was removed + +#### `models.InstanceProperties` was modified + +* `validate()` was removed + +#### `models.BulkDeploySolutionParameter` was modified + +* `validate()` was removed + +#### `models.SolutionTemplate$Update` was modified + +* `withProperties(models.SolutionTemplateProperties)` was removed + +#### `models.ConfigTemplate$Update` was modified + +* `withProperties(models.ConfigTemplateProperties)` was removed + +#### `models.DiagnosticProperties` was modified + +* `validate()` was removed + +#### `models.ErrorAction` was modified + +* `validate()` was removed + +#### `models.ReconciliationPolicyProperties` was modified + +* `validate()` was removed + +#### `models.DeployJobStepStatistics` was modified + +* `validate()` was removed + +#### `models.Hierarchy` was modified + +* `validate()` was removed + +#### `models.ExecutionStatus` was modified + +* `validate()` was removed + +#### `models.JobProperties` was modified + +* `validate()` was removed + +#### `models.Target$Update` was modified + +* `withProperties(models.TargetProperties)` was removed + +#### `models.BulkPublishSolutionParameter` was modified + +* `validate()` was removed + +#### `models.ConfigTemplateVersionProperties` was modified + +* `java.lang.String configurations()` -> `com.azure.core.util.BinaryData configurations()` +* `withConfigurations(java.lang.String)` was removed +* `validate()` was removed + +#### `models.SchemaVersionProperties` was modified + +* `withValue(java.lang.String)` was removed +* `validate()` was removed +* `java.lang.String value()` -> `com.azure.core.util.BinaryData value()` + +#### `models.WorkflowVersionProperties` was modified + +* `validate()` was removed + +#### `models.ConfigTemplateProperties` was modified + +* `validate()` was removed + +#### `models.RemoveRevisionParameter` was modified + +* `validate()` was removed + +#### `models.BulkPublishTargetDetails` was modified + +* `validate()` was removed + +#### `models.DynamicSchemaProperties` was modified + +* `validate()` was removed + +#### `models.DeploymentStatus` was modified + +* `validate()` was removed + +#### `models.SolutionVersionSnapshot` was modified + +* `validate()` was removed + +#### `models.WorkflowProperties` was modified + +* `validate()` was removed + +#### `models.ContextModel$Update` was modified + +* `withProperties(models.ContextProperties)` was removed + +#### `models.BulkDeployTargetDetails` was modified + +* `validate()` was removed + +#### `models.ExecutionProperties` was modified + +* `validate()` was removed + +#### `models.TaskSpec` was modified + +* `validate()` was removed + +#### `models.SolutionTemplateProperties` was modified + +* `validate()` was removed + +#### `models.TaskOption` was modified + +* `validate()` was removed + +#### `models.VersionParameter` was modified + +* `validate()` was removed + +#### `models.TargetStatus` was modified + +* `validate()` was removed + +#### `models.TargetSnapshot` was modified + +* `validate()` was removed + +#### `models.JobStep` was modified + +* `validate()` was removed + +#### `models.ContextProperties` was modified + +* `validate()` was removed + +#### `models.JobStepStatisticsBase` was modified + +* `validate()` was removed + +#### `models.SolutionTemplateVersionProperties` was modified + +* `withConfigurations(java.lang.String)` was removed +* `validate()` was removed +* `java.lang.String configurations()` -> `com.azure.core.util.BinaryData configurations()` + +#### `models.DeployJobParameter` was modified + +* `validate()` was removed + +#### `models.SchemaProperties` was modified + +* `validate()` was removed + +#### `models.InstanceHistoryProperties` was modified + +* `validate()` was removed + +#### `models.SolutionTemplateParameter` was modified + +* `validate()` was removed + +### Features Added + +* `models.DiagnosticUpdateProperties` was added + +* `models.SolutionMetadataVersion` was added + +* `models.ConfigTemplateVersion$UpdateStages` was added + +* `models.ConfigTemplateVersion$Definition` was added + +* `models.SolutionDeploymentUpdateProperties` was added + +* `models.UninstallJobStepStatistics` was added + +* `models.ConfigTemplateSchemaProperties` was added + +* `models.SolutionDeployment$UpdateStages` was added + +* `models.SchemaReference$DefinitionStages` was added + +* `models.InternalState` was added + +* `models.ConfigTemplateMetadataUpdateProperties` was added + +* `models.ConfigTemplateSchemas` was added + +* `models.SchemaReference$Update` was added + +* `models.BulkReviewTargetDetails` was added + +* `models.HierarchyConfigurationMetadataVersions` was added + +* `models.SolutionUpdateProperties` was added + +* `models.HierarchyConfigurationMetadataVersion` was added + +* `models.ConfigTemplateVersion$Update` was added + +* `models.SolutionMetadataVersionProperties` was added + +* `models.SchemaUpdate` was added + +* `models.SolutionDeploymentProperties` was added + +* `models.SolutionSchemaProperties` was added + +* `models.TargetUpdateProperties` was added + +* `models.AdditionalData` was added + +* `models.SolutionMetadataProperties` was added + +* `models.ConfigTemplateUpdate` was added + +* `models.SolutionSchemas` was added + +* `models.ConfigTemplateMetadata$Update` was added + +* `models.SolutionTemplateVersion$UpdateStages` was added + +* `models.SolutionDeployments` was added + +* `models.SolutionTemplateVersion$DefinitionStages` was added + +* `models.BulkReviewSolutionParameter` was added + +* `models.HierarchyMetadata` was added + +* `models.SolutionTemplateVersion$Definition` was added + +* `models.ConfigurationState` was added + +* `models.SolutionUpdate` was added + +* `models.ConfigTemplateConfigurationState` was added + +* `models.SolutionTemplateUpdateProperties` was added + +* `models.HierarchyConfigurationMetadatas` was added + +* `models.SolutionTemplateUpdate` was added + +* `models.ConfigTemplateUpdateProperties` was added + +* `models.ConfigTemplateVersion$DefinitionStages` was added + +* `models.HierarchyConfigurationMetadata` was added + +* `models.ContextUpdateProperties` was added + +* `models.SchemaReference$UpdateStages` was added + +* `models.ConfigTemplateSchema` was added + +* `models.SolutionTemplateVersion$Update` was added + +* `models.HierarchySelector` was added + +* `models.ConfigTemplateMetadata$UpdateStages` was added + +* `models.StateCategory` was added + +* `models.HierarchyConfigurationMetadataVersionProperties` was added + +* `models.StageMap` was added + +* `models.DiagnosticUpdate` was added + +* `models.SchemaUpdateProperties` was added + +* `models.TargetMetadata` was added + +* `models.SolutionMetadataVersions` was added + +* `models.SolutionDeployment$Definition` was added + +* `models.ConfigTemplateMetadataUpdate` was added + +* `models.ConfigTemplateMetadata$Definition` was added + +* `models.SolutionSchema` was added + +* `models.SolutionDeployment` was added + +* `models.CMStages` was added + +* `models.SolutionTemplateMetadata` was added + +* `models.ConfigTemplateMetadata$DefinitionStages` was added + +* `models.UninstallJobParameter` was added + +* `models.SchemaReference$Definition` was added + +* `models.PublishJobParameter` was added + +* `models.ConfigTemplateMetadatas` was added + +* `models.ConfigTemplateMetadataProperties` was added + +* `models.SolutionMetadata` was added + +* `models.PublishJobStepStatistics` was added + +* `models.HierarchyConfigurationMetadataProperties` was added + +* `models.SolutionDeploymentUpdate` was added + +* `models.ContextUpdate` was added + +* `models.SolutionDeployment$DefinitionStages` was added + +* `models.SolutionMetadatas` was added + +* `models.TargetUpdate` was added + +* `models.SolutionTemplateMetadataUpdate` was added + +* `models.SolutionDeployment$Update` was added + +* `models.ConfigTemplateMetadata` was added + +#### `models.SolutionVersionProperties` was modified + +* `currentStage()` was added +* `stages()` was added +* `latestActionTriggeredBy()` was added + +#### `models.SchemaReferences` was modified + +* `deleteById(java.lang.String)` was added +* `deleteByResourceGroup(java.lang.String,java.lang.String)` was added +* `getById(java.lang.String)` was added +* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added +* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added +* `delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `define(java.lang.String)` was added + +#### `models.SchemaReference` was modified + +* `refresh()` was added +* `update()` was added +* `refresh(com.azure.core.util.Context)` was added + +#### `models.ConfigTemplates` was modified + +* `linkToHierarchies(java.lang.String,java.lang.String,models.HierarchySelector,com.azure.core.util.Context)` was added +* `unLinkFromHierarchies(java.lang.String,java.lang.String,models.HierarchySelector,com.azure.core.util.Context)` was added +* `linkToHierarchies(java.lang.String,java.lang.String,models.HierarchySelector)` was added +* `unLinkFromHierarchies(java.lang.String,java.lang.String,models.HierarchySelector)` was added + +#### `models.Schema$Update` was modified + +* `withProperties(models.SchemaUpdateProperties)` was added + +#### `WorkloadOrchestrationManager` was modified + +* `configTemplateSchemas()` was added +* `solutionSchemas()` was added +* `hierarchyConfigurationMetadataVersions()` was added +* `solutionDeployments()` was added +* `configTemplateMetadatas()` was added +* `hierarchyConfigurationMetadatas()` was added +* `solutionMetadatas()` was added +* `solutionMetadataVersions()` was added + +#### `models.Diagnostic$Update` was modified + +* `withProperties(models.DiagnosticUpdateProperties)` was added + +#### `models.Solution$Update` was modified + +* `withProperties(models.SolutionUpdateProperties)` was added + +#### `models.Target` was modified + +* `unstageSolutionVersion(models.SolutionVersionParameter)` was added +* `unstageSolutionVersion(models.SolutionVersionParameter,com.azure.core.util.Context)` was added + +#### `models.SchemaReferenceProperties` was modified + +* `withSchemaId(java.lang.String)` was added + +#### `models.Targets` was modified + +* `unstageSolutionVersion(java.lang.String,java.lang.String,models.SolutionVersionParameter,com.azure.core.util.Context)` was added +* `unstageSolutionVersion(java.lang.String,java.lang.String,models.SolutionVersionParameter)` was added + +#### `models.SolutionTemplateVersion` was modified + +* `bulkReviewSolution(models.BulkReviewSolutionParameter)` was added +* `bulkReviewSolution(models.BulkReviewSolutionParameter,com.azure.core.util.Context)` was added +* `refresh(com.azure.core.util.Context)` was added +* `refresh()` was added +* `bulkDeploySolution(models.BulkDeploySolutionParameter)` was added +* `bulkPublishSolution(models.BulkPublishSolutionParameter)` was added +* `resourceGroupName()` was added +* `update()` was added +* `bulkDeploySolution(models.BulkDeploySolutionParameter,com.azure.core.util.Context)` was added +* `bulkPublishSolution(models.BulkPublishSolutionParameter,com.azure.core.util.Context)` was added + +#### `models.SolutionProperties` was modified + +* `displayName()` was added + +#### `models.SolutionTemplate$Update` was modified + +* `withProperties(models.SolutionTemplateUpdateProperties)` was added + +#### `models.ConfigTemplate$Update` was modified + +* `withProperties(models.ConfigTemplateUpdateProperties)` was added + +#### `models.JobProperties` was modified + +* `additionalData()` was added + +#### `models.Target$Update` was modified + +* `withProperties(models.TargetUpdateProperties)` was added + +#### `models.BulkPublishSolutionParameter` was modified + +* `solutionConfiguration()` was added +* `withSolutionConfiguration(java.lang.String)` was added + +#### `models.ConfigTemplateVersionProperties` was modified + +* `withConfigurations(com.azure.core.util.BinaryData)` was added + +#### `models.SchemaVersionProperties` was modified + +* `withValue(com.azure.core.util.BinaryData)` was added + +#### `models.State` was modified + +* `NOT_APPLICABLE` was added + +#### `models.ConfigTemplateProperties` was modified + +* `uniqueIdentifier()` was added + +#### `models.BulkPublishTargetDetails` was modified + +* `withSolutionConfiguration(java.lang.String)` was added +* `solutionConfiguration()` was added +* `withSolutionVersionId(java.lang.String)` was added +* `solutionVersionId()` was added +* `withSolutionDependencies(java.util.List)` was added +* `solutionDependencies()` was added + +#### `models.ConfigTemplateVersion` was modified + +* `resourceGroupName()` was added +* `refresh()` was added +* `update()` was added +* `refresh(com.azure.core.util.Context)` was added + +#### `models.DynamicSchemaProperties` was modified + +* `displayName()` was added + +#### `models.ConfigTemplate` was modified + +* `linkToHierarchies(models.HierarchySelector,com.azure.core.util.Context)` was added +* `unLinkFromHierarchies(models.HierarchySelector,com.azure.core.util.Context)` was added +* `linkToHierarchies(models.HierarchySelector)` was added +* `unLinkFromHierarchies(models.HierarchySelector)` was added + +#### `models.SolutionTemplateVersions` was modified + +* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added +* `getById(java.lang.String)` was added +* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added +* `bulkReviewSolution(java.lang.String,java.lang.String,java.lang.String,models.BulkReviewSolutionParameter,com.azure.core.util.Context)` was added +* `deleteById(java.lang.String)` was added +* `delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `bulkReviewSolution(java.lang.String,java.lang.String,java.lang.String,models.BulkReviewSolutionParameter)` was added +* `delete(java.lang.String,java.lang.String,java.lang.String)` was added +* `define(java.lang.String)` was added + +#### `models.ContextModel$Update` was modified + +* `withProperties(models.ContextUpdateProperties)` was added + +#### `models.SolutionTemplateProperties` was modified + +* `uniqueIdentifier()` was added + +#### `models.JobType` was modified + +* `PUBLISH` was added +* `UNINSTALL` was added + +#### `models.ContextProperties` was modified + +* `uniqueIdentifier()` was added + +#### `models.ConfigTemplateVersions` was modified + +* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added +* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added +* `deleteById(java.lang.String)` was added +* `getById(java.lang.String)` was added +* `define(java.lang.String)` was added +* `delete(java.lang.String,java.lang.String,java.lang.String)` was added +* `delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added + +#### `models.SolutionTemplateVersionProperties` was modified -### Other Changes +* `withConfigurations(com.azure.core.util.BinaryData)` was added +* `internalState()` was added ## 1.0.0-beta.1 (2025-08-22) diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/README.md b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/README.md index 0eadeafda893b..ae2d73f3d26f6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/README.md +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Workload Orchestration client library for Java. -This package contains Microsoft Azure SDK for Workload Orchestration Management SDK. Microsoft.Edge Resource Provider management API. Package api-version 2025-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for Workload Orchestration Management SDK. Microsoft.Edge Resource Provider management API. Package api-version 2026-05-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-workloadorchestration - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/SAMPLE.md b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/SAMPLE.md index fa43b4afd61b5..a962e22f1e98f 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/SAMPLE.md +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/SAMPLE.md @@ -1,10 +1,26 @@ # Code snippets and samples +## ConfigTemplateMetadatas + +- [CreateOrUpdate](#configtemplatemetadatas_createorupdate) +- [Delete](#configtemplatemetadatas_delete) +- [Get](#configtemplatemetadatas_get) +- [ListByConfigTemplate](#configtemplatemetadatas_listbyconfigtemplate) +- [Update](#configtemplatemetadatas_update) + +## ConfigTemplateSchemas + +- [Get](#configtemplateschemas_get) +- [ListByConfigTemplateVersion](#configtemplateschemas_listbyconfigtemplateversion) + ## ConfigTemplateVersions +- [CreateOrUpdate](#configtemplateversions_createorupdate) +- [Delete](#configtemplateversions_delete) - [Get](#configtemplateversions_get) - [ListByConfigTemplate](#configtemplateversions_listbyconfigtemplate) +- [Update](#configtemplateversions_update) ## ConfigTemplates @@ -12,9 +28,11 @@ - [CreateVersion](#configtemplates_createversion) - [Delete](#configtemplates_delete) - [GetByResourceGroup](#configtemplates_getbyresourcegroup) +- [LinkToHierarchies](#configtemplates_linktohierarchies) - [List](#configtemplates_list) - [ListByResourceGroup](#configtemplates_listbyresourcegroup) - [RemoveVersion](#configtemplates_removeversion) +- [UnLinkFromHierarchies](#configtemplates_unlinkfromhierarchies) - [Update](#configtemplates_update) ## Contexts @@ -59,6 +77,16 @@ - [ListByWorkflowVersion](#executions_listbyworkflowversion) - [Update](#executions_update) +## HierarchyConfigurationMetadataVersions + +- [Get](#hierarchyconfigurationmetadataversions_get) +- [ListByParent](#hierarchyconfigurationmetadataversions_listbyparent) + +## HierarchyConfigurationMetadatas + +- [Get](#hierarchyconfigurationmetadatas_get) +- [ListByParent](#hierarchyconfigurationmetadatas_listbyparent) + ## InstanceHistories - [Get](#instancehistories_get) @@ -79,8 +107,11 @@ ## SchemaReferences +- [CreateOrUpdate](#schemareferences_createorupdate) +- [Delete](#schemareferences_delete) - [Get](#schemareferences_get) - [ListByResourceGroup](#schemareferences_listbyresourcegroup) +- [Update](#schemareferences_update) ## SchemaVersions @@ -109,12 +140,40 @@ - [ListByContext](#sitereferences_listbycontext) - [Update](#sitereferences_update) +## SolutionDeployments + +- [CreateOrUpdate](#solutiondeployments_createorupdate) +- [Delete](#solutiondeployments_delete) +- [GetByResourceGroup](#solutiondeployments_getbyresourcegroup) +- [List](#solutiondeployments_list) +- [ListByResourceGroup](#solutiondeployments_listbyresourcegroup) +- [Update](#solutiondeployments_update) + +## SolutionMetadataVersions + +- [Get](#solutionmetadataversions_get) +- [ListByParent](#solutionmetadataversions_listbyparent) + +## SolutionMetadatas + +- [Get](#solutionmetadatas_get) +- [ListByParent](#solutionmetadatas_listbyparent) + +## SolutionSchemas + +- [Get](#solutionschemas_get) +- [ListBySolutionTemplateVersion](#solutionschemas_listbysolutiontemplateversion) + ## SolutionTemplateVersions - [BulkDeploySolution](#solutiontemplateversions_bulkdeploysolution) - [BulkPublishSolution](#solutiontemplateversions_bulkpublishsolution) +- [BulkReviewSolution](#solutiontemplateversions_bulkreviewsolution) +- [CreateOrUpdate](#solutiontemplateversions_createorupdate) +- [Delete](#solutiontemplateversions_delete) - [Get](#solutiontemplateversions_get) - [ListBySolutionTemplate](#solutiontemplateversions_listbysolutiontemplate) +- [Update](#solutiontemplateversions_update) ## SolutionTemplates @@ -156,6 +215,7 @@ - [ResolveConfiguration](#targets_resolveconfiguration) - [ReviewSolutionVersion](#targets_reviewsolutionversion) - [UninstallSolution](#targets_uninstallsolution) +- [UnstageSolutionVersion](#targets_unstagesolutionversion) - [Update](#targets_update) - [UpdateExternalValidationStatus](#targets_updateexternalvalidationstatus) @@ -174,6 +234,253 @@ - [Get](#workflows_get) - [ListByContext](#workflows_listbycontext) - [Update](#workflows_update) +### ConfigTemplateMetadatas_CreateOrUpdate + +```java +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataProperties; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata; +import java.util.Arrays; + +/** + * Samples for ConfigTemplateMetadatas CreateOrUpdate. + */ +public final class ConfigTemplateMetadatasCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateMetadatas_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateMetadatas_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateMetadatasCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateMetadatas() + .define("abcde") + .withExistingConfigTemplate("rgconfigurationmanager", "abcde") + .withProperties(new ConfigTemplateMetadataProperties().withContextId( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/contexts/testContext") + .withLinkedHierarchies(Arrays.asList(new HierarchyMetadata().withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("shrxop"))) + .withUnLinkedHierarchies(Arrays.asList(new HierarchyMetadata().withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("shrxop")))) + .create(); + } +} +``` + +### ConfigTemplateMetadatas_Delete + +```java +/** + * Samples for ConfigTemplateMetadatas Delete. + */ +public final class ConfigTemplateMetadatasDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateMetadatas_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateMetadatas_Delete_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateMetadatasDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateMetadatas() + .delete("rgconfigurationmanager", "abcde", "abcde", com.azure.core.util.Context.NONE); + } +} +``` + +### ConfigTemplateMetadatas_Get + +```java +/** + * Samples for ConfigTemplateMetadatas Get. + */ +public final class ConfigTemplateMetadatasGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateMetadatas_Get_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateMetadatas_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateMetadatasGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateMetadatas() + .getWithResponse("rgconfigurationmanager", "abcde", "abcde", com.azure.core.util.Context.NONE); + } +} +``` + +### ConfigTemplateMetadatas_ListByConfigTemplate + +```java +/** + * Samples for ConfigTemplateMetadatas ListByConfigTemplate. + */ +public final class ConfigTemplateMetadatasListByConfigTemplateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateMetadatas_ListByConfigTemplate_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateMetadatas_ListByConfigTemplate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateMetadatasListByConfigTemplateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateMetadatas() + .listByConfigTemplate("rgconfigurationmanager", "abcde", com.azure.core.util.Context.NONE); + } +} +``` + +### ConfigTemplateMetadatas_Update + +```java +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadata; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdateProperties; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata; +import java.util.Arrays; + +/** + * Samples for ConfigTemplateMetadatas Update. + */ +public final class ConfigTemplateMetadatasUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateMetadatas_Update_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateMetadatas_Update_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateMetadatasUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + ConfigTemplateMetadata resource = manager.configTemplateMetadatas() + .getWithResponse("rgconfigurationmanager", "abcde", "abcde", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new ConfigTemplateMetadataUpdateProperties().withContextId( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/contexts/testContext") + .withLinkedHierarchies(Arrays.asList(new HierarchyMetadata().withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("uwljjosdlhmyalhrvq"))) + .withUnLinkedHierarchies(Arrays.asList(new HierarchyMetadata().withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("zuwwzwpeur")))) + .apply(); + } +} +``` + +### ConfigTemplateSchemas_Get + +```java +/** + * Samples for ConfigTemplateSchemas Get. + */ +public final class ConfigTemplateSchemasGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateSchemas_Get_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateSchemas_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateSchemasGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateSchemas() + .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", "testname", + com.azure.core.util.Context.NONE); + } +} +``` + +### ConfigTemplateSchemas_ListByConfigTemplateVersion + +```java +/** + * Samples for ConfigTemplateSchemas ListByConfigTemplateVersion. + */ +public final class ConfigTemplateSchemasListByConfigTemplateVersionSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateSchemas_ListByConfigTemplateVersion_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateSchemas_ListByConfigTemplateVersion_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateSchemasListByConfigTemplateVersionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateSchemas() + .listByConfigTemplateVersion("rgconfigurationmanager", "testname", "1.0.0", + com.azure.core.util.Context.NONE); + } +} +``` + +### ConfigTemplateVersions_CreateOrUpdate + +```java +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; +import java.nio.charset.StandardCharsets; + +/** + * Samples for ConfigTemplateVersions CreateOrUpdate. + */ +public final class ConfigTemplateVersionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateVersions_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateVersions() + .define("1.0.0") + .withExistingConfigTemplate("rgconfigurationmanager", "testname") + .withProperties(new ConfigTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("zsapegdehodzmwjmwl".getBytes(StandardCharsets.UTF_8)))) + .create(); + } +} +``` + +### ConfigTemplateVersions_Delete + +```java +/** + * Samples for ConfigTemplateVersions Delete. + */ +public final class ConfigTemplateVersionsDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateVersions_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateVersions_Delete_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateVersionsDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateVersions() + .delete("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); + } +} +``` + ### ConfigTemplateVersions_Get ```java @@ -182,14 +489,14 @@ */ public final class ConfigTemplateVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplateVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplateVersions_Get_MaximumSet. + * Sample code: ConfigTemplateVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplateVersionsGetMaximumSet( + public static void configTemplateVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplateVersions() .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); @@ -205,14 +512,14 @@ public final class ConfigTemplateVersionsGetSamples { */ public final class ConfigTemplateVersionsListByConfigTemplateSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplateVersions_ListByConfigTemplate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateVersions_ListByConfigTemplate_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplateVersions_ListByConfigTemplate_MaximumSet. + * Sample code: ConfigTemplateVersions_ListByConfigTemplate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplateVersionsListByConfigTemplateMaximumSet( + public static void configTemplateVersionsListByConfigTemplateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplateVersions() .listByConfigTemplate("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); @@ -220,6 +527,39 @@ public final class ConfigTemplateVersionsListByConfigTemplateSamples { } ``` +### ConfigTemplateVersions_Update + +```java +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersion; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; +import java.nio.charset.StandardCharsets; + +/** + * Samples for ConfigTemplateVersions Update. + */ +public final class ConfigTemplateVersionsUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateVersions_Update_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateVersions_Update_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateVersionsUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + ConfigTemplateVersion resource = manager.configTemplateVersions() + .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new ConfigTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("blmbay".getBytes(StandardCharsets.UTF_8)))) + .apply(); + } +} +``` + ### ConfigTemplates_CreateOrUpdate ```java @@ -232,21 +572,21 @@ import java.util.Map; */ public final class ConfigTemplatesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_CreateOrUpdate_MaximumSet. + * Sample code: ConfigTemplates_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesCreateOrUpdateMaximumSet( + public static void configTemplatesCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates() .define("testname") - .withRegion("egqjo") + .withRegion("lltpsbfqidpuumxvdnidshkdsx") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key6936", "fakeTokenPlaceholder")) - .withProperties(new ConfigTemplateProperties().withDescription("ccdyggozwmhyvemlcwlsnhijwg")) + .withTags(mapOf()) + .withProperties(new ConfigTemplateProperties().withDescription("fvklsykvqiyosqetvdnjg")) .create(); } @@ -267,31 +607,34 @@ public final class ConfigTemplatesCreateOrUpdateSamples { ### ConfigTemplates_CreateVersion ```java +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionWithUpdateTypeInner; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; import com.azure.resourcemanager.workloadorchestration.models.UpdateType; +import java.nio.charset.StandardCharsets; /** * Samples for ConfigTemplates CreateVersion. */ public final class ConfigTemplatesCreateVersionSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_CreateVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_CreateVersion_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_CreateVersion_MaximumSet. + * Sample code: ConfigTemplates_CreateVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesCreateVersionMaximumSet( + public static void configTemplatesCreateVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates() .createVersion("rgconfigurationmanager", "testname", new ConfigTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) .withVersion("1.0.0") .withConfigTemplateVersion(new ConfigTemplateVersionInner() - .withProperties(new ConfigTemplateVersionProperties().withConfigurations("rgricnhvcbqykc"))), + .withProperties(new ConfigTemplateVersionProperties().withConfigurations( + BinaryData.fromBytes("zsapegdehodzmwjmwl".getBytes(StandardCharsets.UTF_8))))), com.azure.core.util.Context.NONE); } } @@ -305,14 +648,14 @@ public final class ConfigTemplatesCreateVersionSamples { */ public final class ConfigTemplatesDeleteSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_Delete_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_Delete_MaximumSet. + * Sample code: ConfigTemplates_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesDeleteMaximumSet( + public static void configTemplatesDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates().delete("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -327,14 +670,14 @@ public final class ConfigTemplatesDeleteSamples { */ public final class ConfigTemplatesGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_Get_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_Get_MaximumSet. + * Sample code: ConfigTemplates_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesGetMaximumSet( + public static void configTemplatesGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); @@ -342,6 +685,36 @@ public final class ConfigTemplatesGetByResourceGroupSamples { } ``` +### ConfigTemplates_LinkToHierarchies + +```java +import com.azure.resourcemanager.workloadorchestration.models.HierarchySelector; +import java.util.Arrays; + +/** + * Samples for ConfigTemplates LinkToHierarchies. + */ +public final class ConfigTemplatesLinkToHierarchiesSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_LinkToHierarchies_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplates_LinkToHierarchies_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplatesLinkToHierarchiesMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplates() + .linkToHierarchies("rgconfigurationmanager", "testname", new HierarchySelector().withContextId( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/context/test") + .withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("jwfyiatxaecbpounw"), com.azure.core.util.Context.NONE); + } +} +``` + ### ConfigTemplates_List ```java @@ -350,14 +723,27 @@ public final class ConfigTemplatesGetByResourceGroupSamples { */ public final class ConfigTemplatesListSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_ListBySubscription_MaximumSet. + * Sample code: ConfigTemplates_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesListBySubscriptionMaximumSet( + public static void configTemplatesListBySubscriptionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplates().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: ConfigTemplates_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplatesListBySubscriptionMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates().list(com.azure.core.util.Context.NONE); } @@ -372,14 +758,27 @@ public final class ConfigTemplatesListSamples { */ public final class ConfigTemplatesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplates_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplatesListByResourceGroupMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplates().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_ListByResourceGroup_MinimumSet_Gen.json */ /** - * Sample code: ConfigTemplates_ListByResourceGroup_MaximumSet. + * Sample code: ConfigTemplates_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesListByResourceGroupMaximumSet( + public static void configTemplatesListByResourceGroupMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } @@ -396,18 +795,48 @@ import com.azure.resourcemanager.workloadorchestration.models.VersionParameter; */ public final class ConfigTemplatesRemoveVersionSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_RemoveVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_RemoveVersion_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_RemoveVersion_MaximumSet. + * Sample code: ConfigTemplates_RemoveVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesRemoveVersionMaximumSet( + public static void configTemplatesRemoveVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates() .removeVersionWithResponse("rgconfigurationmanager", "testname", - new VersionParameter().withVersion("ghtvdzgmzncaifrnuumg"), com.azure.core.util.Context.NONE); + new VersionParameter().withVersion("nipqereqmxeiv"), com.azure.core.util.Context.NONE); + } +} +``` + +### ConfigTemplates_UnLinkFromHierarchies + +```java +import com.azure.resourcemanager.workloadorchestration.models.HierarchySelector; +import java.util.Arrays; + +/** + * Samples for ConfigTemplates UnLinkFromHierarchies. + */ +public final class ConfigTemplatesUnLinkFromHierarchiesSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_UnLinkFromHierarchies_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplates_UnLinkFromHierarchies_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplatesUnLinkFromHierarchiesMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplates() + .unLinkFromHierarchies("rgconfigurationmanager", "testname", new HierarchySelector().withContextId( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/context/test") + .withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("jwfyiatxaecbpounw"), com.azure.core.util.Context.NONE); } } ``` @@ -416,7 +845,7 @@ public final class ConfigTemplatesRemoveVersionSamples { ```java import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplate; -import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateProperties; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateUpdateProperties; import java.util.HashMap; import java.util.Map; @@ -425,21 +854,21 @@ import java.util.Map; */ public final class ConfigTemplatesUpdateSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_Update_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_Update_MaximumSet. + * Sample code: ConfigTemplates_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesUpdateMaximumSet( + public static void configTemplatesUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { ConfigTemplate resource = manager.configTemplates() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("key7701", "fakeTokenPlaceholder")) - .withProperties(new ConfigTemplateProperties().withDescription("cavjiqnrbzsvedicrixhwnfj")) + .withTags(mapOf()) + .withProperties(new ConfigTemplateUpdateProperties().withDescription("acogkthm")) .apply(); } @@ -473,25 +902,24 @@ import java.util.Map; */ public final class ContextsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Contexts_CreateOrUpdate_MaximumSet. + * Sample code: Contexts_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void contextsCreateOrUpdateMaximumSet( + public static void contextsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.contexts() .define("testname") - .withRegion("pkquwbplcp") + .withRegion("ctfi") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key3046", "fakeTokenPlaceholder")) + .withTags(mapOf()) .withProperties(new ContextProperties() - .withCapabilities(Arrays.asList(new Capability().withName("tpylinjcmlnycfpofpxjtqmt") - .withDescription("banbenutsngwytoqh") - .withState(ResourceState.ACTIVE))) - .withHierarchies(Arrays.asList(new Hierarchy().withName("upqe").withDescription("vg")))) + .withCapabilities(Arrays.asList( + new Capability().withName("alufbbxccup").withDescription("sin").withState(ResourceState.ACTIVE))) + .withHierarchies(Arrays.asList(new Hierarchy().withName("fz").withDescription("eg")))) .create(); } @@ -517,15 +945,15 @@ public final class ContextsCreateOrUpdateSamples { */ public final class ContextsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_Delete_MaximumSet_Gen.json */ /** - * Sample code: Contexts_Delete_MaximumSet. + * Sample code: Contexts_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - contextsDeleteMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void contextsDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.contexts().delete("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } } @@ -539,15 +967,15 @@ public final class ContextsDeleteSamples { */ public final class ContextsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_Get_MaximumSet_Gen.json */ /** - * Sample code: Contexts_Get_MaximumSet. + * Sample code: Contexts_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - contextsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void contextsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.contexts() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -562,36 +990,62 @@ public final class ContextsGetByResourceGroupSamples { */ public final class ContextsListSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: Contexts_ListBySubscription_MaximumSet. + * Sample code: Contexts_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void contextsListBySubscriptionMaximumSet( + public static void contextsListBySubscriptionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.contexts().list(com.azure.core.util.Context.NONE); } -} -``` -### Contexts_ListByResourceGroup - -```java -/** + /* + * x-ms-original-file: 2026-05-01-preview/Contexts_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: Contexts_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void contextsListBySubscriptionMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.contexts().list(com.azure.core.util.Context.NONE); + } +} +``` + +### Contexts_ListByResourceGroup + +```java +/** * Samples for Contexts ListByResourceGroup. */ public final class ContextsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: Contexts_ListByResourceGroup_MaximumSet. + * Sample code: Contexts_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void contextsListByResourceGroupMaximumSet( + public static void contextsListByResourceGroupMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.contexts().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Contexts_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: Contexts_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void contextsListByResourceGroupMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.contexts().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } @@ -603,7 +1057,7 @@ public final class ContextsListByResourceGroupSamples { ```java import com.azure.resourcemanager.workloadorchestration.models.Capability; import com.azure.resourcemanager.workloadorchestration.models.ContextModel; -import com.azure.resourcemanager.workloadorchestration.models.ContextProperties; +import com.azure.resourcemanager.workloadorchestration.models.ContextUpdateProperties; import com.azure.resourcemanager.workloadorchestration.models.Hierarchy; import com.azure.resourcemanager.workloadorchestration.models.ResourceState; import java.util.Arrays; @@ -615,25 +1069,25 @@ import java.util.Map; */ public final class ContextsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_Update_MaximumSet_Gen.json */ /** - * Sample code: Contexts_Update_MaximumSet. + * Sample code: Contexts_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - contextsUpdateMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void contextsUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { ContextModel resource = manager.contexts() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("key9545", "fakeTokenPlaceholder")) - .withProperties(new ContextProperties() - .withCapabilities(Arrays.asList(new Capability().withName("tpylinjcmlnycfpofpxjtqmt") - .withDescription("banbenutsngwytoqh") + .withTags(mapOf()) + .withProperties(new ContextUpdateProperties() + .withCapabilities(Arrays.asList(new Capability().withName("alufbbxccup") + .withDescription("hnwcxjwfecxnwsqkoac") .withState(ResourceState.ACTIVE))) - .withHierarchies(Arrays.asList(new Hierarchy().withName("upqe").withDescription("vg")))) + .withHierarchies(Arrays.asList(new Hierarchy().withName("fz").withDescription("nlrpsglqgbdmwpantk")))) .apply(); } @@ -665,23 +1119,23 @@ import java.util.Map; */ public final class DiagnosticsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Diagnostics_CreateOrUpdate_MaximumSet. + * Sample code: Diagnostics_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void diagnosticsCreateOrUpdateMaximumSet( + public static void diagnosticsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.diagnostics() .define("testname") - .withRegion("ouwfvnokjvivmjzqpupwrbsmls") + .withRegion("xxriixfihzwn") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key4304", "fakeTokenPlaceholder")) + .withTags(mapOf()) .withProperties(new DiagnosticProperties()) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } @@ -707,14 +1161,14 @@ public final class DiagnosticsCreateOrUpdateSamples { */ public final class DiagnosticsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_Delete_MaximumSet_Gen.json */ /** - * Sample code: Diagnostics_Delete_MaximumSet. + * Sample code: Diagnostics_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void diagnosticsDeleteMaximumSet( + public static void diagnosticsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.diagnostics().delete("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -729,15 +1183,15 @@ public final class DiagnosticsDeleteSamples { */ public final class DiagnosticsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_Get_MaximumSet_Gen.json */ /** - * Sample code: Diagnostics_Get_MaximumSet. + * Sample code: Diagnostics_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - diagnosticsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void diagnosticsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.diagnostics() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -752,14 +1206,27 @@ public final class DiagnosticsGetByResourceGroupSamples { */ public final class DiagnosticsListSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: Diagnostics_ListBySubscription_MaximumSet. + * Sample code: Diagnostics_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void diagnosticsListBySubscriptionMaximumSet( + public static void diagnosticsListBySubscriptionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.diagnostics().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Diagnostics_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: Diagnostics_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void diagnosticsListBySubscriptionMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.diagnostics().list(com.azure.core.util.Context.NONE); } @@ -774,14 +1241,27 @@ public final class DiagnosticsListSamples { */ public final class DiagnosticsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_ListByResourceGroup_MinimumSet_Gen.json */ /** - * Sample code: Diagnostics_ListByResourceGroup_MaximumSet. + * Sample code: Diagnostics_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void diagnosticsListByResourceGroupMaximumSet( + public static void diagnosticsListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.diagnostics().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Diagnostics_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: Diagnostics_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void diagnosticsListByResourceGroupMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.diagnostics().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } @@ -792,7 +1272,7 @@ public final class DiagnosticsListByResourceGroupSamples { ```java import com.azure.resourcemanager.workloadorchestration.models.Diagnostic; -import com.azure.resourcemanager.workloadorchestration.models.DiagnosticProperties; +import com.azure.resourcemanager.workloadorchestration.models.DiagnosticUpdateProperties; import java.util.HashMap; import java.util.Map; @@ -801,22 +1281,19 @@ import java.util.Map; */ public final class DiagnosticsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_Update_MaximumSet_Gen.json */ /** - * Sample code: Diagnostics_Update_MaximumSet. + * Sample code: Diagnostics_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void diagnosticsUpdateMaximumSet( + public static void diagnosticsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Diagnostic resource = manager.diagnostics() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); - resource.update() - .withTags(mapOf("key1922", "fakeTokenPlaceholder")) - .withProperties(new DiagnosticProperties()) - .apply(); + resource.update().withTags(mapOf()).withProperties(new DiagnosticUpdateProperties()).apply(); } // Use "Map.of" if available @@ -836,26 +1313,29 @@ public final class DiagnosticsUpdateSamples { ### DynamicSchemaVersions_CreateOrUpdate ```java +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; +import java.nio.charset.StandardCharsets; /** * Samples for DynamicSchemaVersions CreateOrUpdate. */ public final class DynamicSchemaVersionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemaVersions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemaVersions_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemaVersions_CreateOrUpdate_MaximumSet. + * Sample code: DynamicSchemaVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemaVersionsCreateOrUpdateMaximumSet( + public static void dynamicSchemaVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemaVersions() .define("1.0.0") .withExistingDynamicSchema("rgconfigurationmanager", "testname", "testname") - .withProperties(new SchemaVersionProperties().withValue("uiaqdwsi")) + .withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("gjohcqdzm".getBytes(StandardCharsets.UTF_8)))) .create(); } } @@ -869,14 +1349,14 @@ public final class DynamicSchemaVersionsCreateOrUpdateSamples { */ public final class DynamicSchemaVersionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemaVersions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemaVersions_Delete_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemaVersions_Delete_MaximumSet. + * Sample code: DynamicSchemaVersions_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemaVersionsDeleteMaximumSet( + public static void dynamicSchemaVersionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemaVersions() .delete("rgconfigurationmanager", "testname", "testname", "1.0.0", com.azure.core.util.Context.NONE); @@ -892,14 +1372,14 @@ public final class DynamicSchemaVersionsDeleteSamples { */ public final class DynamicSchemaVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemaVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemaVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemaVersions_Get_MaximumSet. + * Sample code: DynamicSchemaVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemaVersionsGetMaximumSet( + public static void dynamicSchemaVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemaVersions() .getWithResponse("rgconfigurationmanager", "testname", "testname", "1.0.0", @@ -916,14 +1396,14 @@ public final class DynamicSchemaVersionsGetSamples { */ public final class DynamicSchemaVersionsListByDynamicSchemaSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemaVersions_ListByDynamicSchema_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemaVersions_ListByDynamicSchema_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemaVersions_ListByDynamicSchema_MaximumSet. + * Sample code: DynamicSchemaVersions_ListByDynamicSchema_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemaVersionsListByDynamicSchemaMaximumSet( + public static void dynamicSchemaVersionsListByDynamicSchemaMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemaVersions() .listByDynamicSchema("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); @@ -934,28 +1414,33 @@ public final class DynamicSchemaVersionsListByDynamicSchemaSamples { ### DynamicSchemaVersions_Update ```java +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.DynamicSchemaVersion; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; +import java.nio.charset.StandardCharsets; /** * Samples for DynamicSchemaVersions Update. */ public final class DynamicSchemaVersionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemaVersions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemaVersions_Update_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemaVersions_Update_MaximumSet. + * Sample code: DynamicSchemaVersions_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemaVersionsUpdateMaximumSet( + public static void dynamicSchemaVersionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { DynamicSchemaVersion resource = manager.dynamicSchemaVersions() .getWithResponse("rgconfigurationmanager", "testname", "testname", "1.0.0", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withProperties(new SchemaVersionProperties().withValue("muezi")).apply(); + resource.update() + .withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("vmzzkntnuwfgemhnlogkglitm".getBytes(StandardCharsets.UTF_8)))) + .apply(); } } ``` @@ -970,14 +1455,14 @@ import com.azure.resourcemanager.workloadorchestration.models.DynamicSchemaPrope */ public final class DynamicSchemasCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemas_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemas_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemas_CreateOrUpdate_MaximumSet. + * Sample code: DynamicSchemas_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemasCreateOrUpdateMaximumSet( + public static void dynamicSchemasCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemas() .define("testname") @@ -996,14 +1481,14 @@ public final class DynamicSchemasCreateOrUpdateSamples { */ public final class DynamicSchemasDeleteSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemas_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemas_Delete_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemas_Delete_MaximumSet. + * Sample code: DynamicSchemas_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemasDeleteMaximumSet( + public static void dynamicSchemasDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemas() .delete("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); @@ -1019,14 +1504,14 @@ public final class DynamicSchemasDeleteSamples { */ public final class DynamicSchemasGetSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemas_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemas_Get_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemas_Get_MaximumSet. + * Sample code: DynamicSchemas_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemasGetMaximumSet( + public static void dynamicSchemasGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemas() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); @@ -1042,14 +1527,14 @@ public final class DynamicSchemasGetSamples { */ public final class DynamicSchemasListBySchemaSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemas_ListBySchema_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemas_ListBySchema_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemas_ListBySchema_MaximumSet. + * Sample code: DynamicSchemas_ListBySchema_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemasListBySchemaMaximumSet( + public static void dynamicSchemasListBySchemaMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemas().listBySchema("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -1067,14 +1552,14 @@ import com.azure.resourcemanager.workloadorchestration.models.DynamicSchemaPrope */ public final class DynamicSchemasUpdateSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemas_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemas_Update_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemas_Update_MaximumSet. + * Sample code: DynamicSchemas_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemasUpdateMaximumSet( + public static void dynamicSchemasUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { DynamicSchema resource = manager.dynamicSchemas() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE) @@ -1098,7 +1583,7 @@ import java.util.Map; */ public final class ExecutionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Executions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Executions_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Executions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. @@ -1109,10 +1594,10 @@ public final class ExecutionsCreateOrUpdateSamples { com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.executions() .define("abcde") - .withExistingVersion("rgconfigurationmanager", "abcde", "abcde", "abcde") - .withProperties( - new ExecutionProperties().withWorkflowVersionId("souenlqwltljsojdcbpc").withSpecification(mapOf())) - .withExtendedLocation(new ExtendedLocation().withName("ugf").withType(ExtendedLocationType.EDGE_ZONE)) + .withExistingVersion("rgconfigurationmanager", "testname", "testname", "abcde") + .withProperties(new ExecutionProperties().withWorkflowVersionId("ga").withSpecification(mapOf())) + .withExtendedLocation( + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } @@ -1138,7 +1623,7 @@ public final class ExecutionsCreateOrUpdateSamples { */ public final class ExecutionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Executions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Executions_Delete_MaximumSet_Gen.json */ /** * Sample code: Executions_Delete_MaximumSet - generated by [MaximumSet] rule. @@ -1148,7 +1633,8 @@ public final class ExecutionsDeleteSamples { public static void executionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.executions() - .delete("rgconfigurationmanager", "abcde", "abcde", "abcde", "abcde", com.azure.core.util.Context.NONE); + .delete("rgconfigurationmanager", "testname", "testname", "abcde", "abcde", + com.azure.core.util.Context.NONE); } } ``` @@ -1161,7 +1647,7 @@ public final class ExecutionsDeleteSamples { */ public final class ExecutionsGetSamples { /* - * x-ms-original-file: 2025-06-01/Executions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Executions_Get_MaximumSet_Gen.json */ /** * Sample code: Executions_Get_MaximumSet - generated by [MaximumSet] rule. @@ -1171,7 +1657,7 @@ public final class ExecutionsGetSamples { public static void executionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.executions() - .getWithResponse("rgconfigurationmanager", "abcde", "abcde", "abcde", "abcde", + .getWithResponse("rgconfigurationmanager", "testname", "testname", "abcde", "abcde", com.azure.core.util.Context.NONE); } } @@ -1185,7 +1671,7 @@ public final class ExecutionsGetSamples { */ public final class ExecutionsListByWorkflowVersionSamples { /* - * x-ms-original-file: 2025-06-01/Executions_ListByWorkflowVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Executions_ListByWorkflowVersion_MaximumSet_Gen.json */ /** * Sample code: Executions_ListByWorkflowVersion_MaximumSet - generated by [MaximumSet] rule. @@ -1195,7 +1681,7 @@ public final class ExecutionsListByWorkflowVersionSamples { public static void executionsListByWorkflowVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.executions() - .listByWorkflowVersion("rgconfigurationmanager", "abcde", "abcde", "abcde", + .listByWorkflowVersion("rgconfigurationmanager", "testname", "testname", "abcde", com.azure.core.util.Context.NONE); } } @@ -1214,7 +1700,7 @@ import java.util.Map; */ public final class ExecutionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Executions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Executions_Update_MaximumSet_Gen.json */ /** * Sample code: Executions_Update_MaximumSet - generated by [MaximumSet] rule. @@ -1224,12 +1710,11 @@ public final class ExecutionsUpdateSamples { public static void executionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Execution resource = manager.executions() - .getWithResponse("rgconfigurationmanager", "abcde", "abcde", "abcde", "abcde", + .getWithResponse("rgconfigurationmanager", "testname", "testname", "abcde", "abcde", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withProperties( - new ExecutionProperties().withWorkflowVersionId("xjsxzbfltzvbuvn").withSpecification(mapOf())) + .withProperties(new ExecutionProperties().withWorkflowVersionId("ihhcmejnkuto").withSpecification(mapOf())) .apply(); } @@ -1247,6 +1732,122 @@ public final class ExecutionsUpdateSamples { } ``` +### HierarchyConfigurationMetadataVersions_Get + +```java +/** + * Samples for HierarchyConfigurationMetadataVersions Get. + */ +public final class HierarchyConfigurationMetadataVersionsGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/HierarchyConfigurationMetadataVersions_Get_MaximumSet_Gen.json + */ + /** + * Sample code: HierarchyConfigurationMetadataVersions_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void hierarchyConfigurationMetadataVersionsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.hierarchyConfigurationMetadataVersions() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "ct101", "1.0.0", com.azure.core.util.Context.NONE); + } +} +``` + +### HierarchyConfigurationMetadataVersions_ListByParent + +```java +/** + * Samples for HierarchyConfigurationMetadataVersions ListByParent. + */ +public final class HierarchyConfigurationMetadataVersionsListByParentSamples { + /* + * x-ms-original-file: 2026-05-01-preview/HierarchyConfigurationMetadataVersions_ListByParent_MaximumSet_Gen.json + */ + /** + * Sample code: HierarchyConfigurationMetadataVersions_ListByParent_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void hierarchyConfigurationMetadataVersionsListByParentMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.hierarchyConfigurationMetadataVersions() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "ct101", com.azure.core.util.Context.NONE); + } +} +``` + +### HierarchyConfigurationMetadatas_Get + +```java +/** + * Samples for HierarchyConfigurationMetadatas Get. + */ +public final class HierarchyConfigurationMetadatasGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/HierarchyConfigurationMetadatas_Get_MaximumSet_Gen.json + */ + /** + * Sample code: HierarchyConfigurationMetadatas_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void hierarchyConfigurationMetadatasGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.hierarchyConfigurationMetadatas() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "ct101", com.azure.core.util.Context.NONE); + } +} +``` + +### HierarchyConfigurationMetadatas_ListByParent + +```java +/** + * Samples for HierarchyConfigurationMetadatas ListByParent. + */ +public final class HierarchyConfigurationMetadatasListByParentSamples { + /* + * x-ms-original-file: 2026-05-01-preview/HierarchyConfigurationMetadatas_ListByParent_MaximumSet_Gen.json + */ + /** + * Sample code: HierarchyConfigurationMetadatas_ListByParent_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void hierarchyConfigurationMetadatasListByParentMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.hierarchyConfigurationMetadatas() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/HierarchyConfigurationMetadatas_ListByParent_MinimumSet_Gen.json + */ + /** + * Sample code: HierarchyConfigurationMetadatas_ListByParent_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void hierarchyConfigurationMetadatasListByParentMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.hierarchyConfigurationMetadatas() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } +} +``` + ### InstanceHistories_Get ```java @@ -1255,14 +1856,14 @@ public final class ExecutionsUpdateSamples { */ public final class InstanceHistoriesGetSamples { /* - * x-ms-original-file: 2025-06-01/InstanceHistories_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/InstanceHistories_Get_MaximumSet_Gen.json */ /** - * Sample code: InstanceHistories_Get_MaximumSet. + * Sample code: InstanceHistories_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instanceHistoriesGetMaximumSet( + public static void instanceHistoriesGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instanceHistories() .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", "testname", @@ -1279,14 +1880,14 @@ public final class InstanceHistoriesGetSamples { */ public final class InstanceHistoriesListByInstanceSamples { /* - * x-ms-original-file: 2025-06-01/InstanceHistories_ListByInstance_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/InstanceHistories_ListByInstance_MaximumSet_Gen.json */ /** - * Sample code: InstanceHistories_ListByInstance_MaximumSet. + * Sample code: InstanceHistories_ListByInstance_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instanceHistoriesListByInstanceMaximumSet( + public static void instanceHistoriesListByInstanceMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instanceHistories() .listByInstance("rgconfigurationmanager", "testname", "testname", "testname", @@ -1310,26 +1911,26 @@ import com.azure.resourcemanager.workloadorchestration.models.ReconciliationStat */ public final class InstancesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Instances_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Instances_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Instances_CreateOrUpdate_MaximumSet. + * Sample code: Instances_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instancesCreateOrUpdateMaximumSet( + public static void instancesCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instances() .define("testname") .withExistingSolution("rgconfigurationmanager", "testname", "testname") - .withProperties(new InstanceProperties().withSolutionVersionId("acpddbkfclsgxg") - .withTargetId("eguutiftuxrsavvckjrv") + .withProperties(new InstanceProperties().withSolutionVersionId("nrufwrrlslbu") + .withTargetId("cxhzexpvtx") .withActiveState(ActiveState.ACTIVE) .withReconciliationPolicy(new ReconciliationPolicyProperties().withState(ReconciliationState.INACTIVE) - .withInterval("szucgzdbydcowvhprhx")) + .withInterval("sefmajhesdas")) .withSolutionScope("testname")) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } } @@ -1343,14 +1944,14 @@ public final class InstancesCreateOrUpdateSamples { */ public final class InstancesDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Instances_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Instances_Delete_MaximumSet_Gen.json */ /** - * Sample code: Instances_Delete_MaximumSet. + * Sample code: Instances_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instancesDeleteMaximumSet( + public static void instancesDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instances() .delete("rgconfigurationmanager", "testname", "testname", "testname", com.azure.core.util.Context.NONE); @@ -1366,15 +1967,15 @@ public final class InstancesDeleteSamples { */ public final class InstancesGetSamples { /* - * x-ms-original-file: 2025-06-01/Instances_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Instances_Get_MaximumSet_Gen.json */ /** - * Sample code: Instances_Get_MaximumSet. + * Sample code: Instances_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - instancesGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void instancesGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instances() .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", com.azure.core.util.Context.NONE); @@ -1390,14 +1991,14 @@ public final class InstancesGetSamples { */ public final class InstancesListBySolutionSamples { /* - * x-ms-original-file: 2025-06-01/Instances_ListBySolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Instances_ListBySolution_MaximumSet_Gen.json */ /** - * Sample code: Instances_ListBySolution_MaximumSet. + * Sample code: Instances_ListBySolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instancesListBySolutionMaximumSet( + public static void instancesListBySolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instances() .listBySolution("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); @@ -1419,25 +2020,25 @@ import com.azure.resourcemanager.workloadorchestration.models.ReconciliationStat */ public final class InstancesUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Instances_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Instances_Update_MaximumSet_Gen.json */ /** - * Sample code: Instances_Update_MaximumSet. + * Sample code: Instances_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instancesUpdateMaximumSet( + public static void instancesUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Instance resource = manager.instances() .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withProperties(new InstanceProperties().withSolutionVersionId("vrpzlamkvanqibtjarpxit") - .withTargetId("tqkdvc") + .withProperties(new InstanceProperties().withSolutionVersionId("ttjgk") + .withTargetId("bebahvhrwsnxkxlignvhxivicdyzvc") .withActiveState(ActiveState.ACTIVE) .withReconciliationPolicy(new ReconciliationPolicyProperties().withState(ReconciliationState.INACTIVE) - .withInterval("cmzlrjwnlshnkgv")) + .withInterval("otpsmjex")) .withSolutionScope("testname")) .apply(); } @@ -1452,16 +2053,19 @@ public final class InstancesUpdateSamples { */ public final class JobsGetSamples { /* - * x-ms-original-file: 2025-06-01/Jobs_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Jobs_Get_MaximumSet_Gen.json */ /** - * Sample code: Jobs_Get_MaximumSet. + * Sample code: Jobs_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - jobsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.jobs().getWithResponse("gt", "jobsName", com.azure.core.util.Context.NONE); + public static void jobsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.jobs() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "jobsName", com.azure.core.util.Context.NONE); } } ``` @@ -1474,16 +2078,89 @@ public final class JobsGetSamples { */ public final class JobsListByTargetSamples { /* - * x-ms-original-file: 2025-06-01/Jobs_ListByTarget_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Jobs_ListByTarget_MinimumSet_Gen.json + */ + /** + * Sample code: Jobs_ListByTarget_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void jobsListByTargetMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.jobs() + .listByTarget( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Jobs_ListByTarget_MaximumSet_Gen.json */ /** - * Sample code: Jobs_ListByTarget_MaximumSet. + * Sample code: Jobs_ListByTarget_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void jobsListByTargetMaximumSet( + public static void jobsListByTargetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.jobs().listByTarget("gt", com.azure.core.util.Context.NONE); + manager.jobs() + .listByTarget( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } +} +``` + +### SchemaReferences_CreateOrUpdate + +```java +import com.azure.resourcemanager.workloadorchestration.models.SchemaReferenceProperties; + +/** + * Samples for SchemaReferences CreateOrUpdate. + */ +public final class SchemaReferencesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: SchemaReferences_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemaReferencesCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.schemaReferences() + .define("default") + .withExistingResourceUri( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget") + .withProperties(new SchemaReferenceProperties().withSchemaId("fpztlfnz")) + .create(); + } +} +``` + +### SchemaReferences_Delete + +```java +/** + * Samples for SchemaReferences Delete. + */ +public final class SchemaReferencesDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: SchemaReferences_Delete_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemaReferencesDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.schemaReferences() + .delete( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "default", com.azure.core.util.Context.NONE); } } ``` @@ -1496,16 +2173,19 @@ public final class JobsListByTargetSamples { */ public final class SchemaReferencesGetSamples { /* - * x-ms-original-file: 2025-06-01/SchemaReferences_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_Get_MaximumSet_Gen.json */ /** - * Sample code: SchemaReferences_Get_MaximumSet. + * Sample code: SchemaReferences_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaReferencesGetMaximumSet( + public static void schemaReferencesGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.schemaReferences().getWithResponse("jdvtghygpz", "testname", com.azure.core.util.Context.NONE); + manager.schemaReferences() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "default", com.azure.core.util.Context.NONE); } } ``` @@ -1518,16 +2198,66 @@ public final class SchemaReferencesGetSamples { */ public final class SchemaReferencesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/SchemaReferences_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: SchemaReferences_ListByResourceGroup_MaximumSet. + * Sample code: SchemaReferences_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaReferencesListByResourceGroupMaximumSet( + public static void schemaReferencesListByResourceGroupMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.schemaReferences().listByResourceGroup("jdvtghygpz", com.azure.core.util.Context.NONE); + manager.schemaReferences() + .listByResourceGroup( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: SchemaReferences_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule - generated by + * [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemaReferencesListByResourceGroupMaximumSetGeneratedByMaximumSetRuleGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.schemaReferences() + .listByResourceGroup( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } +} +``` + +### SchemaReferences_Update + +```java +import com.azure.resourcemanager.workloadorchestration.models.SchemaReference; +import com.azure.resourcemanager.workloadorchestration.models.SchemaReferenceProperties; + +/** + * Samples for SchemaReferences Update. + */ +public final class SchemaReferencesUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_Update_MaximumSet_Gen.json + */ + /** + * Sample code: SchemaReferences_Update_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemaReferencesUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + SchemaReference resource = manager.schemaReferences() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "default", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withProperties(new SchemaReferenceProperties().withSchemaId("uqhgbbzeyuwjdqnvfmntj")).apply(); } } ``` @@ -1535,26 +2265,29 @@ public final class SchemaReferencesListByResourceGroupSamples { ### SchemaVersions_CreateOrUpdate ```java +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; +import java.nio.charset.StandardCharsets; /** * Samples for SchemaVersions CreateOrUpdate. */ public final class SchemaVersionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SchemaVersions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaVersions_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: SchemaVersions_CreateOrUpdate_MaximumSet. + * Sample code: SchemaVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaVersionsCreateOrUpdateMaximumSet( + public static void schemaVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemaVersions() .define("1.0.0") .withExistingSchema("rgconfigurationmanager", "testname") - .withProperties(new SchemaVersionProperties().withValue("uiaqdwsi")) + .withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("gjohcqdzm".getBytes(StandardCharsets.UTF_8)))) .create(); } } @@ -1568,14 +2301,14 @@ public final class SchemaVersionsCreateOrUpdateSamples { */ public final class SchemaVersionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/SchemaVersions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaVersions_Delete_MaximumSet_Gen.json */ /** - * Sample code: SchemaVersions_Delete_MaximumSet. + * Sample code: SchemaVersions_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaVersionsDeleteMaximumSet( + public static void schemaVersionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemaVersions() .delete("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); @@ -1591,14 +2324,14 @@ public final class SchemaVersionsDeleteSamples { */ public final class SchemaVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/SchemaVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: SchemaVersions_Get_MaximumSet. + * Sample code: SchemaVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaVersionsGetMaximumSet( + public static void schemaVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemaVersions() .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); @@ -1614,14 +2347,14 @@ public final class SchemaVersionsGetSamples { */ public final class SchemaVersionsListBySchemaSamples { /* - * x-ms-original-file: 2025-06-01/SchemaVersions_ListBySchema_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaVersions_ListBySchema_MaximumSet_Gen.json */ /** - * Sample code: SchemaVersions_ListBySchema_MaximumSet. + * Sample code: SchemaVersions_ListBySchema_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaVersionsListBySchemaMaximumSet( + public static void schemaVersionsListBySchemaMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemaVersions().listBySchema("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -1631,27 +2364,32 @@ public final class SchemaVersionsListBySchemaSamples { ### SchemaVersions_Update ```java +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersion; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; +import java.nio.charset.StandardCharsets; /** * Samples for SchemaVersions Update. */ public final class SchemaVersionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SchemaVersions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaVersions_Update_MaximumSet_Gen.json */ /** - * Sample code: SchemaVersions_Update_MaximumSet. + * Sample code: SchemaVersions_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaVersionsUpdateMaximumSet( + public static void schemaVersionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { SchemaVersion resource = manager.schemaVersions() .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withProperties(new SchemaVersionProperties().withValue("muezi")).apply(); + resource.update() + .withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("vmzzkntnuwfgemhnlogkglitm".getBytes(StandardCharsets.UTF_8)))) + .apply(); } } ``` @@ -1668,20 +2406,20 @@ import java.util.Map; */ public final class SchemasCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Schemas_CreateOrUpdate_MaximumSet. + * Sample code: Schemas_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemasCreateOrUpdateMaximumSet( + public static void schemasCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas() .define("testname") - .withRegion("alvi") + .withRegion("shekiqtymhvonnlimmgsamnkcwjp") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key7017", "fakeTokenPlaceholder")) + .withTags(mapOf()) .withProperties(new SchemaProperties()) .create(); } @@ -1703,31 +2441,33 @@ public final class SchemasCreateOrUpdateSamples { ### Schemas_CreateVersion ```java +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionInner; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionWithUpdateTypeInner; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; import com.azure.resourcemanager.workloadorchestration.models.UpdateType; +import java.nio.charset.StandardCharsets; /** * Samples for Schemas CreateVersion. */ public final class SchemasCreateVersionSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_CreateVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_CreateVersion_MaximumSet_Gen.json */ /** - * Sample code: Schemas_CreateVersion_MaximumSet. + * Sample code: Schemas_CreateVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemasCreateVersionMaximumSet( + public static void schemasCreateVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas() .createVersion("rgconfigurationmanager", "testname", new SchemaVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) .withVersion("1.0.0") - .withSchemaVersion( - new SchemaVersionInner().withProperties(new SchemaVersionProperties().withValue("uiaqdwsi"))), + .withSchemaVersion(new SchemaVersionInner().withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("gjohcqdzm".getBytes(StandardCharsets.UTF_8))))), com.azure.core.util.Context.NONE); } } @@ -1741,15 +2481,15 @@ public final class SchemasCreateVersionSamples { */ public final class SchemasDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_Delete_MaximumSet_Gen.json */ /** - * Sample code: Schemas_Delete_MaximumSet. + * Sample code: Schemas_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - schemasDeleteMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void schemasDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas().delete("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } } @@ -1763,15 +2503,15 @@ public final class SchemasDeleteSamples { */ public final class SchemasGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_Get_MaximumSet_Gen.json */ /** - * Sample code: Schemas_Get_MaximumSet. + * Sample code: Schemas_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - schemasGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void schemasGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -1786,14 +2526,27 @@ public final class SchemasGetByResourceGroupSamples { */ public final class SchemasListSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_ListBySubscription_MinimumSet_Gen.json */ /** - * Sample code: Schemas_ListBySubscription_MaximumSet. + * Sample code: Schemas_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemasListBySubscriptionMaximumSet( + public static void schemasListBySubscriptionMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.schemas().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Schemas_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: Schemas_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemasListBySubscriptionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas().list(com.azure.core.util.Context.NONE); } @@ -1808,14 +2561,27 @@ public final class SchemasListSamples { */ public final class SchemasListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_ListByResourceGroup_MinimumSet_Gen.json */ /** - * Sample code: Schemas_ListByResourceGroup_MaximumSet. + * Sample code: Schemas_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemasListByResourceGroupMaximumSet( + public static void schemasListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.schemas().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Schemas_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: Schemas_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemasListByResourceGroupMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } @@ -1832,18 +2598,18 @@ import com.azure.resourcemanager.workloadorchestration.models.VersionParameter; */ public final class SchemasRemoveVersionSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_RemoveVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_RemoveVersion_MaximumSet_Gen.json */ /** - * Sample code: Schemas_RemoveVersion_MaximumSet. + * Sample code: Schemas_RemoveVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemasRemoveVersionMaximumSet( + public static void schemasRemoveVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas() .removeVersionWithResponse("rgconfigurationmanager", "testname", - new VersionParameter().withVersion("ghtvdzgmzncaifrnuumg"), com.azure.core.util.Context.NONE); + new VersionParameter().withVersion("nipqereqmxeiv"), com.azure.core.util.Context.NONE); } } ``` @@ -1852,7 +2618,7 @@ public final class SchemasRemoveVersionSamples { ```java import com.azure.resourcemanager.workloadorchestration.models.Schema; -import com.azure.resourcemanager.workloadorchestration.models.SchemaProperties; +import com.azure.resourcemanager.workloadorchestration.models.SchemaUpdateProperties; import java.util.HashMap; import java.util.Map; @@ -1861,21 +2627,343 @@ import java.util.Map; */ public final class SchemasUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_Update_MaximumSet_Gen.json */ /** - * Sample code: Schemas_Update_MaximumSet. + * Sample code: Schemas_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - schemasUpdateMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void schemasUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Schema resource = manager.schemas() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); + resource.update().withTags(mapOf()).withProperties(new SchemaUpdateProperties()).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### SiteReferences_CreateOrUpdate + +```java +import com.azure.resourcemanager.workloadorchestration.models.SiteReferenceProperties; + +/** + * Samples for SiteReferences CreateOrUpdate. + */ +public final class SiteReferencesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SiteReferences_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: SiteReferences_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void siteReferencesCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.siteReferences() + .define("testname") + .withExistingContext("rgconfigurationmanager", "testname") + .withProperties(new SiteReferenceProperties().withSiteId("gaehctrehvyhasstg")) + .create(); + } +} +``` + +### SiteReferences_Delete + +```java +/** + * Samples for SiteReferences Delete. + */ +public final class SiteReferencesDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SiteReferences_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: SiteReferences_Delete_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void siteReferencesDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.siteReferences() + .delete("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); + } +} +``` + +### SiteReferences_Get + +```java +/** + * Samples for SiteReferences Get. + */ +public final class SiteReferencesGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SiteReferences_Get_MaximumSet_Gen.json + */ + /** + * Sample code: SiteReferences_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void siteReferencesGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.siteReferences() + .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); + } +} +``` + +### SiteReferences_ListByContext + +```java +/** + * Samples for SiteReferences ListByContext. + */ +public final class SiteReferencesListByContextSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SiteReferences_ListByContext_MaximumSet_Gen.json + */ + /** + * Sample code: SiteReferences_ListByContext_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void siteReferencesListByContextMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.siteReferences().listByContext("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); + } +} +``` + +### SiteReferences_Update + +```java +import com.azure.resourcemanager.workloadorchestration.models.SiteReference; +import com.azure.resourcemanager.workloadorchestration.models.SiteReferenceProperties; + +/** + * Samples for SiteReferences Update. + */ +public final class SiteReferencesUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SiteReferences_Update_MaximumSet_Gen.json + */ + /** + * Sample code: SiteReferences_Update_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void siteReferencesUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + SiteReference resource = manager.siteReferences() + .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withProperties(new SiteReferenceProperties().withSiteId("cifefexczjlpyn")).apply(); + } +} +``` + +### SolutionDeployments_CreateOrUpdate + +```java +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadata; +import com.azure.resourcemanager.workloadorchestration.models.TargetMetadata; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SolutionDeployments CreateOrUpdate. + */ +public final class SolutionDeploymentsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_CreateOrUpdate_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsCreateOrUpdateMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionDeployments() + .define("nhlqmzheqzagkdztldtqj") + .withRegion("igudkwioxbauvezpqnxfpzihalxw") + .withExistingResourceGroup("rgconfigurationmanager") + .withTags(mapOf("key3698", "fakeTokenPlaceholder")) + .withProperties(new SolutionDeploymentProperties() + .withSolutionTemplateProperties(new SolutionTemplateMetadata().withSubscriptionId("drkshbgxfn") + .withResourceGroupName("buqhpshsfrejqxsuurhwaim") + .withName("tbldbhhnetgrzp") + .withVersion("bamks")) + .withInput(mapOf()) + .withTargetProperties(new TargetMetadata().withCapabilities(Arrays.asList("ruaslqqdcjxbajpkutaxlkhifw")) + .withTargetIds(Arrays.asList()))) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### SolutionDeployments_Delete + +```java +/** + * Samples for SolutionDeployments Delete. + */ +public final class SolutionDeploymentsDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_Delete_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsDeleteMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionDeployments().delete("rgconfigurationmanager", "abcdef", com.azure.core.util.Context.NONE); + } +} +``` + +### SolutionDeployments_GetByResourceGroup + +```java +/** + * Samples for SolutionDeployments GetByResourceGroup. + */ +public final class SolutionDeploymentsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_Get_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_Get_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsGetMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionDeployments() + .getByResourceGroupWithResponse("rgconfigurationmanager", "nhlqmzheqzagkdztldtqj", + com.azure.core.util.Context.NONE); + } +} +``` + +### SolutionDeployments_List + +```java +/** + * Samples for SolutionDeployments List. + */ +public final class SolutionDeploymentsListSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_ListBySubscription_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsListBySubscriptionMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionDeployments().list(com.azure.core.util.Context.NONE); + } +} +``` + +### SolutionDeployments_ListByResourceGroup + +```java +/** + * Samples for SolutionDeployments ListByResourceGroup. + */ +public final class SolutionDeploymentsListByResourceGroupSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_ListByResourceGroup_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsListByResourceGroupMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionDeployments().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } +} +``` + +### SolutionDeployments_Update + +```java +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeployment; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdateProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadataUpdate; +import com.azure.resourcemanager.workloadorchestration.models.TargetMetadata; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SolutionDeployments Update. + */ +public final class SolutionDeploymentsUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_Update_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_Update_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsUpdateMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + SolutionDeployment resource = manager.solutionDeployments() + .getByResourceGroupWithResponse("rgconfigurationmanager", "nhlqmzheqzagkdztldtqj", + com.azure.core.util.Context.NONE) + .getValue(); resource.update() - .withTags(mapOf("key6760", "fakeTokenPlaceholder")) - .withProperties(new SchemaProperties()) + .withTags(mapOf("key3704", "fakeTokenPlaceholder")) + .withProperties(new SolutionDeploymentUpdateProperties() + .withSolutionTemplateProperties( + new SolutionTemplateMetadataUpdate().withSubscriptionId("mqntqdolbjerkxxhieczxkxp") + .withResourceGroupName("gjihxpgiogcnvhgo") + .withName("zzfltgjkeptkaxaobzhao") + .withVersion("ptsxmabzqnqqlaxbsgubiia")) + .withInput(mapOf()) + .withTargetProperties(new TargetMetadata().withCapabilities(Arrays.asList("ruaslqqdcjxbajpkutaxlkhifw")) + .withTargetIds(Arrays.asList()))) .apply(); } @@ -1893,126 +2981,166 @@ public final class SchemasUpdateSamples { } ``` -### SiteReferences_CreateOrUpdate +### SolutionMetadataVersions_Get + +```java +/** + * Samples for SolutionMetadataVersions Get. + */ +public final class SolutionMetadataVersionsGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionMetadataVersions_Get_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionMetadataVersions_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionMetadataVersionsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionMetadataVersions() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "metadataSampleName", "1.0.0", com.azure.core.util.Context.NONE); + } +} +``` + +### SolutionMetadataVersions_ListByParent ```java -import com.azure.resourcemanager.workloadorchestration.models.SiteReferenceProperties; - /** - * Samples for SiteReferences CreateOrUpdate. + * Samples for SolutionMetadataVersions ListByParent. */ -public final class SiteReferencesCreateOrUpdateSamples { +public final class SolutionMetadataVersionsListByParentSamples { /* - * x-ms-original-file: 2025-06-01/SiteReferences_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionMetadataVersions_ListByParent_MaximumSet_Gen.json */ /** - * Sample code: SiteReferences_CreateOrUpdate_MaximumSet. + * Sample code: SolutionMetadataVersions_ListByParent_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void siteReferencesCreateOrUpdateMaximumSet( + public static void solutionMetadataVersionsListByParentMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.siteReferences() - .define("testname") - .withExistingContext("rgconfigurationmanager", "testname") - .withProperties(new SiteReferenceProperties().withSiteId("xxjpxdcaumewwgpbwzkcrgrcw")) - .create(); + manager.solutionMetadataVersions() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "metadataSampleName", com.azure.core.util.Context.NONE); } } ``` -### SiteReferences_Delete +### SolutionMetadatas_Get ```java /** - * Samples for SiteReferences Delete. + * Samples for SolutionMetadatas Get. */ -public final class SiteReferencesDeleteSamples { +public final class SolutionMetadatasGetSamples { /* - * x-ms-original-file: 2025-06-01/SiteReferences_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionMetadatas_Get_MaximumSet_Gen.json */ /** - * Sample code: SiteReferences_Delete_MaximumSet. + * Sample code: SolutionMetadatas_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void siteReferencesDeleteMaximumSet( + public static void solutionMetadatasGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.siteReferences() - .delete("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); + manager.solutionMetadatas() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "metadataSampleName", com.azure.core.util.Context.NONE); } } ``` -### SiteReferences_Get +### SolutionMetadatas_ListByParent ```java /** - * Samples for SiteReferences Get. + * Samples for SolutionMetadatas ListByParent. */ -public final class SiteReferencesGetSamples { +public final class SolutionMetadatasListByParentSamples { /* - * x-ms-original-file: 2025-06-01/SiteReferences_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionMetadatas_ListByParent_MinimumSet_Gen.json */ /** - * Sample code: SiteReferences_Get_MaximumSet. + * Sample code: SolutionMetadatas_ListByParent_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void siteReferencesGetMaximumSet( + public static void solutionMetadatasListByParentMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.siteReferences() - .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); + manager.solutionMetadatas() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/SolutionMetadatas_ListByParent_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionMetadatas_ListByParent_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionMetadatasListByParentMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionMetadatas() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); } } ``` -### SiteReferences_ListByContext +### SolutionSchemas_Get ```java /** - * Samples for SiteReferences ListByContext. + * Samples for SolutionSchemas Get. */ -public final class SiteReferencesListByContextSamples { +public final class SolutionSchemasGetSamples { /* - * x-ms-original-file: 2025-06-01/SiteReferences_ListByContext_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionSchemas_Get_MaximumSet_Gen.json */ /** - * Sample code: SiteReferences_ListByContext_MaximumSet. + * Sample code: SolutionSchemas_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void siteReferencesListByContextMaximumSet( + public static void solutionSchemasGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.siteReferences().listByContext("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); + manager.solutionSchemas() + .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", "testname", + com.azure.core.util.Context.NONE); } } ``` -### SiteReferences_Update +### SolutionSchemas_ListBySolutionTemplateVersion ```java -import com.azure.resourcemanager.workloadorchestration.models.SiteReference; -import com.azure.resourcemanager.workloadorchestration.models.SiteReferenceProperties; - /** - * Samples for SiteReferences Update. + * Samples for SolutionSchemas ListBySolutionTemplateVersion. */ -public final class SiteReferencesUpdateSamples { +public final class SolutionSchemasListBySolutionTemplateVersionSamples { /* - * x-ms-original-file: 2025-06-01/SiteReferences_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionSchemas_ListBySolutionTemplateVersion_MaximumSet_Gen.json */ /** - * Sample code: SiteReferences_Update_MaximumSet. + * Sample code: SolutionSchemas_ListBySolutionTemplateVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void siteReferencesUpdateMaximumSet( + public static void solutionSchemasListBySolutionTemplateVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - SiteReference resource = manager.siteReferences() - .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withProperties(new SiteReferenceProperties().withSiteId("nwiuyaro")).apply(); + manager.solutionSchemas() + .listBySolutionTemplateVersion("rgconfigurationmanager", "testname", "1.0.0", + com.azure.core.util.Context.NONE); } } ``` @@ -2029,14 +3157,14 @@ import java.util.Arrays; */ public final class SolutionTemplateVersionsBulkDeploySolutionSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplateVersions_BulkDeploySolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_BulkDeploySolution_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplateVersions_BulkDeploySolution_MaximumSet. + * Sample code: SolutionTemplateVersions_BulkDeploySolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplateVersionsBulkDeploySolutionMaximumSet( + public static void solutionTemplateVersionsBulkDeploySolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplateVersions() .bulkDeploySolution("rgconfigurationmanager", "testname", "1.0.0", new BulkDeploySolutionParameter() @@ -2060,31 +3188,166 @@ import java.util.Arrays; */ public final class SolutionTemplateVersionsBulkPublishSolutionSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplateVersions_BulkPublishSolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_BulkPublishSolution_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplateVersions_BulkPublishSolution_MaximumSet. + * Sample code: SolutionTemplateVersions_BulkPublishSolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplateVersionsBulkPublishSolutionMaximumSet( + public static void solutionTemplateVersionsBulkPublishSolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplateVersions() .bulkPublishSolution("rgconfigurationmanager", "testname", "1.0.0", new BulkPublishSolutionParameter() .withTargets(Arrays.asList(new BulkPublishTargetDetails().withTargetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") - .withSolutionInstanceName("test-instance"))) - .withSolutionInstanceName("test-instance") + .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1") + .withSolutionTemplateId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionTemplateVersion("bwji") + .withSolutionInstanceName("testname") + .withTargetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") + .withDependencies(Arrays.asList()))) + .withSolutionInstanceName("testname") + .withSolutionVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1") + .withSolutionConfiguration("mxnhusmdpoxqmbujrudeildj"))) + .withSolutionInstanceName("testname") .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1") .withSolutionTemplateId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") - .withSolutionTemplateVersion("1.0.0") - .withSolutionInstanceName("test-instance") + .withSolutionTemplateVersion("bwji") + .withSolutionInstanceName("testname") .withTargetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") - .withDependencies(Arrays.asList()))), - com.azure.core.util.Context.NONE); + .withDependencies(Arrays.asList()))) + .withSolutionConfiguration("tkkfcy"), com.azure.core.util.Context.NONE); + } +} +``` + +### SolutionTemplateVersions_BulkReviewSolution + +```java +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewSolutionParameter; +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewTargetDetails; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDependencyParameter; +import java.util.Arrays; + +/** + * Samples for SolutionTemplateVersions BulkReviewSolution. + */ +public final class SolutionTemplateVersionsBulkReviewSolutionSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_BulkReviewSolution_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionTemplateVersions_BulkReviewSolution_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplateVersionsBulkReviewSolutionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionTemplateVersions() + .bulkReviewSolution("rgconfigurationmanager", "testname", "1.0.0", new BulkReviewSolutionParameter() + .withTargets(Arrays.asList(new BulkReviewTargetDetails().withTargetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") + .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1") + .withSolutionTemplateId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionTemplateVersion("bwji") + .withSolutionInstanceName("testname") + .withTargetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") + .withDependencies(Arrays.asList()))) + .withSolutionInstanceName("testname") + .withSolutionConfiguration("hizjdicxgebxdoxvplltbemeg"))) + .withSolutionInstanceName("testname") + .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1") + .withSolutionTemplateId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionTemplateVersion("bwji") + .withSolutionInstanceName("testname") + .withTargetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") + .withDependencies(Arrays.asList()))) + .withSolutionConfiguration("jrmogjyqtgidoxbvbztkz"), com.azure.core.util.Context.NONE); + } +} +``` + +### SolutionTemplateVersions_CreateOrUpdate + +```java +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.OrchestratorType; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; +import java.nio.charset.StandardCharsets; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SolutionTemplateVersions CreateOrUpdate. + */ +public final class SolutionTemplateVersionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionTemplateVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplateVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionTemplateVersions() + .define("1.0.0") + .withExistingSolutionTemplate("rgconfigurationmanager", "testname") + .withProperties(new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("zprhmcyzk".getBytes(StandardCharsets.UTF_8))) + .withSpecification(mapOf()) + .withOrchestratorType(OrchestratorType.TO)) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### SolutionTemplateVersions_Delete + +```java +/** + * Samples for SolutionTemplateVersions Delete. + */ +public final class SolutionTemplateVersionsDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionTemplateVersions_Delete_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplateVersionsDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionTemplateVersions() + .delete("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); } } ``` @@ -2097,14 +3360,14 @@ public final class SolutionTemplateVersionsBulkPublishSolutionSamples { */ public final class SolutionTemplateVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplateVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplateVersions_Get_MaximumSet. + * Sample code: SolutionTemplateVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplateVersionsGetMaximumSet( + public static void solutionTemplateVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplateVersions() .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); @@ -2120,14 +3383,14 @@ public final class SolutionTemplateVersionsGetSamples { */ public final class SolutionTemplateVersionsListBySolutionTemplateSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplateVersions_ListBySolutionTemplate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_ListBySolutionTemplate_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplateVersions_ListBySolutionTemplate_MaximumSet. + * Sample code: SolutionTemplateVersions_ListBySolutionTemplate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplateVersionsListBySolutionTemplateMaximumSet( + public static void solutionTemplateVersionsListBySolutionTemplateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplateVersions() .listBySolutionTemplate("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); @@ -2135,6 +3398,56 @@ public final class SolutionTemplateVersionsListBySolutionTemplateSamples { } ``` +### SolutionTemplateVersions_Update + +```java +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.OrchestratorType; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersion; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; +import java.nio.charset.StandardCharsets; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SolutionTemplateVersions Update. + */ +public final class SolutionTemplateVersionsUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_Update_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionTemplateVersions_Update_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplateVersionsUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + SolutionTemplateVersion resource = manager.solutionTemplateVersions() + .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("pwehvxzltujmytianbjsqgmcj".getBytes(StandardCharsets.UTF_8))) + .withSpecification(mapOf()) + .withOrchestratorType(OrchestratorType.TO)) + .apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + ### SolutionTemplates_CreateOrUpdate ```java @@ -2149,22 +3462,22 @@ import java.util.Map; */ public final class SolutionTemplatesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_CreateOrUpdate_MaximumSet. + * Sample code: SolutionTemplates_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesCreateOrUpdateMaximumSet( + public static void solutionTemplatesCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates() .define("testname") - .withRegion("zheaaqvadewftnctxzpinrgeproqs") + .withRegion("jrsskqyliezys") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key5091", "fakeTokenPlaceholder")) - .withProperties(new SolutionTemplateProperties().withDescription("psrftehgzngcdlccivhjmwsmiz") - .withCapabilities(Arrays.asList("dfoyxbbknrhvlunhmuyyt")) + .withTags(mapOf()) + .withProperties(new SolutionTemplateProperties().withDescription("baglpvguwonbgw") + .withCapabilities(Arrays.asList("xhycgngfkknnrm")) .withState(ResourceState.ACTIVE) .withEnableExternalValidation(true)) .create(); @@ -2187,11 +3500,13 @@ public final class SolutionTemplatesCreateOrUpdateSamples { ### SolutionTemplates_CreateVersion ```java +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionWithUpdateTypeInner; import com.azure.resourcemanager.workloadorchestration.models.OrchestratorType; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; import com.azure.resourcemanager.workloadorchestration.models.UpdateType; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; @@ -2200,21 +3515,22 @@ import java.util.Map; */ public final class SolutionTemplatesCreateVersionSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_CreateVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_CreateVersion_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_CreateVersion_MaximumSet. + * Sample code: SolutionTemplates_CreateVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesCreateVersionMaximumSet( + public static void solutionTemplatesCreateVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates() .createVersion("rgconfigurationmanager", "testname", new SolutionTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) .withVersion("1.0.0") - .withSolutionTemplateVersion(new SolutionTemplateVersionInner().withProperties( - new SolutionTemplateVersionProperties().withConfigurations("ofqcsavwmeuwmvtjnqpoybtjvkmrlh") + .withSolutionTemplateVersion( + new SolutionTemplateVersionInner().withProperties(new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("zprhmcyzk".getBytes(StandardCharsets.UTF_8))) .withSpecification(mapOf()) .withOrchestratorType(OrchestratorType.TO))), com.azure.core.util.Context.NONE); @@ -2242,14 +3558,14 @@ public final class SolutionTemplatesCreateVersionSamples { */ public final class SolutionTemplatesDeleteSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_Delete_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_Delete_MaximumSet. + * Sample code: SolutionTemplates_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesDeleteMaximumSet( + public static void solutionTemplatesDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates().delete("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -2264,14 +3580,14 @@ public final class SolutionTemplatesDeleteSamples { */ public final class SolutionTemplatesGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_Get_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_Get_MaximumSet. + * Sample code: SolutionTemplates_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesGetMaximumSet( + public static void solutionTemplatesGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); @@ -2287,14 +3603,27 @@ public final class SolutionTemplatesGetByResourceGroupSamples { */ public final class SolutionTemplatesListSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_ListBySubscription_MaximumSet. + * Sample code: SolutionTemplates_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesListBySubscriptionMaximumSet( + public static void solutionTemplatesListBySubscriptionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionTemplates().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: SolutionTemplates_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplatesListBySubscriptionMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates().list(com.azure.core.util.Context.NONE); } @@ -2309,14 +3638,27 @@ public final class SolutionTemplatesListSamples { */ public final class SolutionTemplatesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: SolutionTemplates_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplatesListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionTemplates().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_ListByResourceGroup_MaximumSet. + * Sample code: SolutionTemplates_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesListByResourceGroupMaximumSet( + public static void solutionTemplatesListByResourceGroupMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } @@ -2333,18 +3675,18 @@ import com.azure.resourcemanager.workloadorchestration.models.VersionParameter; */ public final class SolutionTemplatesRemoveVersionSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_RemoveVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_RemoveVersion_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_RemoveVersion_MaximumSet. + * Sample code: SolutionTemplates_RemoveVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesRemoveVersionMaximumSet( + public static void solutionTemplatesRemoveVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates() - .removeVersion("rgconfigurationmanager", "testname", - new VersionParameter().withVersion("ghtvdzgmzncaifrnuumg"), com.azure.core.util.Context.NONE); + .removeVersion("rgconfigurationmanager", "testname", new VersionParameter().withVersion("nipqereqmxeiv"), + com.azure.core.util.Context.NONE); } } ``` @@ -2354,7 +3696,7 @@ public final class SolutionTemplatesRemoveVersionSamples { ```java import com.azure.resourcemanager.workloadorchestration.models.ResourceState; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplate; -import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateUpdateProperties; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -2364,22 +3706,22 @@ import java.util.Map; */ public final class SolutionTemplatesUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_Update_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_Update_MaximumSet. + * Sample code: SolutionTemplates_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesUpdateMaximumSet( + public static void solutionTemplatesUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { SolutionTemplate resource = manager.solutionTemplates() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("key8772", "fakeTokenPlaceholder")) - .withProperties(new SolutionTemplateProperties().withDescription("onqlteg") - .withCapabilities(Arrays.asList("relsv")) + .withTags(mapOf()) + .withProperties(new SolutionTemplateUpdateProperties().withDescription("jbsuwcclfsxtzglvk") + .withCapabilities(Arrays.asList("wjgogxhkayhrcn")) .withState(ResourceState.ACTIVE) .withEnableExternalValidation(true)) .apply(); @@ -2413,21 +3755,21 @@ import java.util.Map; */ public final class SolutionVersionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SolutionVersions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionVersions_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: SolutionVersions_CreateOrUpdate_MaximumSet. + * Sample code: SolutionVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionVersionsCreateOrUpdateMaximumSet( + public static void solutionVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionVersions() .define("testname") .withExistingSolution("rgconfigurationmanager", "testname", "testname") .withProperties(new SolutionVersionProperties().withSpecification(mapOf())) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } @@ -2453,14 +3795,14 @@ public final class SolutionVersionsCreateOrUpdateSamples { */ public final class SolutionVersionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/SolutionVersions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionVersions_Delete_MaximumSet_Gen.json */ /** - * Sample code: SolutionVersions_Delete_MaximumSet. + * Sample code: SolutionVersions_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionVersionsDeleteMaximumSet( + public static void solutionVersionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionVersions() .delete("rgconfigurationmanager", "testname", "testname", "testname", com.azure.core.util.Context.NONE); @@ -2476,14 +3818,14 @@ public final class SolutionVersionsDeleteSamples { */ public final class SolutionVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/SolutionVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: SolutionVersions_Get_MaximumSet. + * Sample code: SolutionVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionVersionsGetMaximumSet( + public static void solutionVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionVersions() .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", @@ -2500,14 +3842,14 @@ public final class SolutionVersionsGetSamples { */ public final class SolutionVersionsListBySolutionSamples { /* - * x-ms-original-file: 2025-06-01/SolutionVersions_ListBySolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionVersions_ListBySolution_MaximumSet_Gen.json */ /** - * Sample code: SolutionVersions_ListBySolution_MaximumSet. + * Sample code: SolutionVersions_ListBySolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionVersionsListBySolutionMaximumSet( + public static void solutionVersionsListBySolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionVersions() .listBySolution("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); @@ -2528,14 +3870,14 @@ import java.util.Map; */ public final class SolutionVersionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SolutionVersions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionVersions_Update_MaximumSet_Gen.json */ /** - * Sample code: SolutionVersions_Update_MaximumSet. + * Sample code: SolutionVersions_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionVersionsUpdateMaximumSet( + public static void solutionVersionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { SolutionVersion resource = manager.solutionVersions() .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", @@ -2570,21 +3912,21 @@ import com.azure.resourcemanager.workloadorchestration.models.SolutionProperties */ public final class SolutionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Solutions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Solutions_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Solutions_CreateOrUpdate_MaximumSet. + * Sample code: Solutions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionsCreateOrUpdateMaximumSet( + public static void solutionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutions() .define("testname") .withExistingTarget("rgconfigurationmanager", "testname") .withProperties(new SolutionProperties()) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } } @@ -2598,14 +3940,14 @@ public final class SolutionsCreateOrUpdateSamples { */ public final class SolutionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Solutions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Solutions_Delete_MaximumSet_Gen.json */ /** - * Sample code: Solutions_Delete_MaximumSet. + * Sample code: Solutions_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionsDeleteMaximumSet( + public static void solutionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutions().delete("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); } @@ -2620,15 +3962,15 @@ public final class SolutionsDeleteSamples { */ public final class SolutionsGetSamples { /* - * x-ms-original-file: 2025-06-01/Solutions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Solutions_Get_MaximumSet_Gen.json */ /** - * Sample code: Solutions_Get_MaximumSet. + * Sample code: Solutions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - solutionsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void solutionsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutions() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); } @@ -2643,14 +3985,14 @@ public final class SolutionsGetSamples { */ public final class SolutionsListByTargetSamples { /* - * x-ms-original-file: 2025-06-01/Solutions_ListByTarget_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Solutions_ListByTarget_MaximumSet_Gen.json */ /** - * Sample code: Solutions_ListByTarget_MaximumSet. + * Sample code: Solutions_ListByTarget_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionsListByTargetMaximumSet( + public static void solutionsListByTargetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutions().listByTarget("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -2661,26 +4003,26 @@ public final class SolutionsListByTargetSamples { ```java import com.azure.resourcemanager.workloadorchestration.models.Solution; -import com.azure.resourcemanager.workloadorchestration.models.SolutionProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionUpdateProperties; /** * Samples for Solutions Update. */ public final class SolutionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Solutions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Solutions_Update_MaximumSet_Gen.json */ /** - * Sample code: Solutions_Update_MaximumSet. + * Sample code: Solutions_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionsUpdateMaximumSet( + public static void solutionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Solution resource = manager.solutions() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withProperties(new SolutionProperties()).apply(); + resource.update().withProperties(new SolutionUpdateProperties()).apply(); } } ``` @@ -2701,31 +4043,31 @@ import java.util.Map; */ public final class TargetsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Targets_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Targets_CreateOrUpdate_MaximumSet. + * Sample code: Targets_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsCreateOrUpdateMaximumSet( + public static void targetsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .define("testname") - .withRegion("kckloegmwsjgwtcl") + .withRegion("yimw") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key612", "fakeTokenPlaceholder")) - .withProperties(new TargetProperties().withDescription("riabrxtvhlmizyhffdpjeyhvw") - .withDisplayName("qjlbshhqzfmwxvvynibkoi") + .withTags(mapOf()) + .withProperties(new TargetProperties().withDescription("tprpzngmtoweelhwwilawu") + .withDisplayName("uqslbtoqsdhxuzhjyxxhh") .withContextId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/contexts/testContext") .withTargetSpecification(mapOf()) - .withCapabilities(Arrays.asList("grjapghdidoao")) - .withHierarchyLevel("octqptfirejhjfavlnfqeiikqx") + .withCapabilities(Arrays.asList("jo")) + .withHierarchyLevel("gfeixwakwerayliymdejq") .withSolutionScope("testname") .withState(ResourceState.ACTIVE)) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } @@ -2751,15 +4093,15 @@ public final class TargetsCreateOrUpdateSamples { */ public final class TargetsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Targets_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_Delete_MaximumSet_Gen.json */ /** - * Sample code: Targets_Delete_MaximumSet. + * Sample code: Targets_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - targetsDeleteMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void targetsDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets().delete("rgconfigurationmanager", "testname", true, com.azure.core.util.Context.NONE); } } @@ -2773,15 +4115,15 @@ public final class TargetsDeleteSamples { */ public final class TargetsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Targets_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_Get_MaximumSet_Gen.json */ /** - * Sample code: Targets_Get_MaximumSet. + * Sample code: Targets_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - targetsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void targetsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -2798,18 +4140,18 @@ import com.azure.resourcemanager.workloadorchestration.models.InstallSolutionPar */ public final class TargetsInstallSolutionSamples { /* - * x-ms-original-file: 2025-06-01/Targets_InstallSolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_InstallSolution_MaximumSet_Gen.json */ /** - * Sample code: Targets_InstallSolution_MaximumSet. + * Sample code: Targets_InstallSolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsInstallSolutionMaximumSet( + public static void targetsInstallSolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .installSolution("rgconfigurationmanager", "testname", new InstallSolutionParameter().withSolutionVersionId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1"), com.azure.core.util.Context.NONE); } } @@ -2823,14 +4165,27 @@ public final class TargetsInstallSolutionSamples { */ public final class TargetsListSamples { /* - * x-ms-original-file: 2025-06-01/Targets_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: Targets_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void targetsListBySubscriptionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.targets().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Targets_ListBySubscription_MinimumSet_Gen.json */ /** - * Sample code: Targets_ListBySubscription_MaximumSet. + * Sample code: Targets_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsListBySubscriptionMaximumSet( + public static void targetsListBySubscriptionMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets().list(com.azure.core.util.Context.NONE); } @@ -2845,14 +4200,27 @@ public final class TargetsListSamples { */ public final class TargetsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Targets_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: Targets_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void targetsListByResourceGroupMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.targets().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Targets_ListByResourceGroup_MinimumSet_Gen.json */ /** - * Sample code: Targets_ListByResourceGroup_MaximumSet. + * Sample code: Targets_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsListByResourceGroupMaximumSet( + public static void targetsListByResourceGroupMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } @@ -2869,19 +4237,19 @@ import com.azure.resourcemanager.workloadorchestration.models.SolutionVersionPar */ public final class TargetsPublishSolutionVersionSamples { /* - * x-ms-original-file: 2025-06-01/Targets_PublishSolutionVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_PublishSolutionVersion_MaximumSet_Gen.json */ /** - * Sample code: Targets_PublishSolutionVersion_MaximumSet. + * Sample code: Targets_PublishSolutionVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsPublishSolutionVersionMaximumSet( + public static void targetsPublishSolutionVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .publishSolutionVersion("rgconfigurationmanager", "testname", new SolutionVersionParameter().withSolutionVersionId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1"), com.azure.core.util.Context.NONE); } } @@ -2897,19 +4265,19 @@ import com.azure.resourcemanager.workloadorchestration.models.RemoveRevisionPara */ public final class TargetsRemoveRevisionSamples { /* - * x-ms-original-file: 2025-06-01/Targets_RemoveRevision_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_RemoveRevision_MaximumSet_Gen.json */ /** - * Sample code: Targets_RemoveRevision_MaximumSet. + * Sample code: Targets_RemoveRevision_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsRemoveRevisionMaximumSet( + public static void targetsRemoveRevisionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .removeRevision("rgconfigurationmanager", "testname", new RemoveRevisionParameter().withSolutionTemplateId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") - .withSolutionVersion("tomwmqybqomwkfaeukjneva"), com.azure.core.util.Context.NONE); + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionVersion("f"), com.azure.core.util.Context.NONE); } } ``` @@ -2926,27 +4294,28 @@ import java.util.Arrays; */ public final class TargetsResolveConfigurationSamples { /* - * x-ms-original-file: 2025-06-01/Targets_ResolveConfiguration_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_ResolveConfiguration_MaximumSet_Gen.json */ /** - * Sample code: Targets_ResolveConfiguration_MaximumSet. + * Sample code: Targets_ResolveConfiguration_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsResolveConfigurationMaximumSet( + public static void targetsResolveConfigurationMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() - .resolveConfiguration("rgconfigurationmanager", "testname", - new SolutionTemplateParameter().withSolutionTemplateVersionId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/{resourceType}/{resourceName}") + .resolveConfiguration("rgconfigurationmanager", "testname", new SolutionTemplateParameter() + .withSolutionTemplateVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st/versions/1.0.0") + .withSolutionInstanceName("testname") + .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter() + .withSolutionVersionId("bqeggxlmrbyitmhbfcsumackq") + .withSolutionTemplateId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionTemplateVersion("bwji") .withSolutionInstanceName("testname") - .withSolutionDependencies( - Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId("cydzqntmjlqtksbavjwteru") - .withSolutionTemplateId("liqauthxnscodbiwktwfwrrsg") - .withSolutionTemplateVersion("gordjasyxxrj") - .withSolutionInstanceName("testname") - .withTargetId("steadvphxtyhjokqicrtg") - .withDependencies(Arrays.asList()))), + .withTargetId("vpzvkhtgzwtrnbktyvsltfcel") + .withDependencies(Arrays.asList()))), com.azure.core.util.Context.NONE); } } @@ -2964,27 +4333,28 @@ import java.util.Arrays; */ public final class TargetsReviewSolutionVersionSamples { /* - * x-ms-original-file: 2025-06-01/Targets_ReviewSolutionVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_ReviewSolutionVersion_MaximumSet_Gen.json */ /** - * Sample code: Targets_ReviewSolutionVersion_MaximumSet. + * Sample code: Targets_ReviewSolutionVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsReviewSolutionVersionMaximumSet( + public static void targetsReviewSolutionVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() - .reviewSolutionVersion("rgconfigurationmanager", "testname", - new SolutionTemplateParameter().withSolutionTemplateVersionId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/{resourceType}/{resourceName}") + .reviewSolutionVersion("rgconfigurationmanager", "testname", new SolutionTemplateParameter() + .withSolutionTemplateVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st/versions/1.0.0") + .withSolutionInstanceName("testname") + .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter() + .withSolutionVersionId("bqeggxlmrbyitmhbfcsumackq") + .withSolutionTemplateId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionTemplateVersion("bwji") .withSolutionInstanceName("testname") - .withSolutionDependencies( - Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId("cydzqntmjlqtksbavjwteru") - .withSolutionTemplateId("liqauthxnscodbiwktwfwrrsg") - .withSolutionTemplateVersion("gordjasyxxrj") - .withSolutionInstanceName("testname") - .withTargetId("steadvphxtyhjokqicrtg") - .withDependencies(Arrays.asList()))), + .withTargetId("vpzvkhtgzwtrnbktyvsltfcel") + .withDependencies(Arrays.asList()))), com.azure.core.util.Context.NONE); } } @@ -3000,20 +4370,48 @@ import com.azure.resourcemanager.workloadorchestration.models.UninstallSolutionP */ public final class TargetsUninstallSolutionSamples { /* - * x-ms-original-file: 2025-06-01/Targets_UninstallSolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_UninstallSolution_MaximumSet_Gen.json */ /** - * Sample code: Targets_UninstallSolution_MaximumSet. + * Sample code: Targets_UninstallSolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsUninstallSolutionMaximumSet( + public static void targetsUninstallSolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .uninstallSolution("rgconfigurationmanager", "testname", new UninstallSolutionParameter().withSolutionTemplateId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") - .withSolutionInstanceName("lzihiumrcxbolmkqktvtuqyhg"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionInstanceName("yedwbsm"), + com.azure.core.util.Context.NONE); + } +} +``` + +### Targets_UnstageSolutionVersion + +```java +import com.azure.resourcemanager.workloadorchestration.models.SolutionVersionParameter; + +/** + * Samples for Targets UnstageSolutionVersion. + */ +public final class TargetsUnstageSolutionVersionSamples { + /* + * x-ms-original-file: 2026-05-01-preview/Targets_UnstageSolutionVersion_MaximumSet_Gen.json + */ + /** + * Sample code: Targets_UnstageSolutionVersion_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void targetsUnstageSolutionVersionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.targets() + .unstageSolutionVersion("rgconfigurationmanager", "testname", + new SolutionVersionParameter().withSolutionVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1"), com.azure.core.util.Context.NONE); } } @@ -3024,7 +4422,7 @@ public final class TargetsUninstallSolutionSamples { ```java import com.azure.resourcemanager.workloadorchestration.models.ResourceState; import com.azure.resourcemanager.workloadorchestration.models.Target; -import com.azure.resourcemanager.workloadorchestration.models.TargetProperties; +import com.azure.resourcemanager.workloadorchestration.models.TargetUpdateProperties; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -3034,27 +4432,27 @@ import java.util.Map; */ public final class TargetsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Targets_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_Update_MaximumSet_Gen.json */ /** - * Sample code: Targets_Update_MaximumSet. + * Sample code: Targets_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - targetsUpdateMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void targetsUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Target resource = manager.targets() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("key8026", "fakeTokenPlaceholder")) - .withProperties(new TargetProperties().withDescription("yhnhdpznncdvncmnvoeohqjx") - .withDisplayName("pguujtzjjvixgjitugybrefp") + .withTags(mapOf()) + .withProperties(new TargetUpdateProperties().withDescription("gvtsccujzvogbzzccu") + .withDisplayName("zkcgsktvpwlsxtnuowajfmu") .withContextId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/contexts/testContext") .withTargetSpecification(mapOf()) - .withCapabilities(Arrays.asList("dasqhyxfakivfzqb")) - .withHierarchyLevel("hfyntwxetgsmnucbjvvphtyxu") + .withCapabilities(Arrays.asList("nbizsvnhtvhposoccvfwaf")) + .withHierarchyLevel("zwsfzqtsyswpbbakmorrzepb") .withSolutionScope("testname") .withState(ResourceState.ACTIVE)) .apply(); @@ -3086,20 +4484,20 @@ import com.azure.resourcemanager.workloadorchestration.models.ValidationStatus; */ public final class TargetsUpdateExternalValidationStatusSamples { /* - * x-ms-original-file: 2025-06-01/Targets_UpdateExternalValidationStatus_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_UpdateExternalValidationStatus_MaximumSet_Gen.json */ /** - * Sample code: Targets_UpdateExternalValidationStatus_MaximumSet. + * Sample code: Targets_UpdateExternalValidationStatus_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsUpdateExternalValidationStatusMaximumSet( + public static void targetsUpdateExternalValidationStatusMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .updateExternalValidationStatus("rgconfigurationmanager", "testname", - new UpdateExternalValidationStatusParameter().withSolutionVersionId("shntcsuwlmpehmuqkrbf") + new UpdateExternalValidationStatusParameter().withSolutionVersionId("foxslnpcddxwvbatisyxhbsusmnqk") .withErrorDetails(new ManagementError()) - .withExternalValidationId("ivsjzwy") + .withExternalValidationId("cds") .withValidationStatus(ValidationStatus.VALID), com.azure.core.util.Context.NONE); } @@ -3126,32 +4524,32 @@ import java.util.Map; */ public final class WorkflowVersionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/WorkflowVersions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/WorkflowVersions_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: WorkflowVersions_CreateOrUpdate_MaximumSet. + * Sample code: WorkflowVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowVersionsCreateOrUpdateMaximumSet( + public static void workflowVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflowVersions() - .define("testname") + .define("abcde") .withExistingWorkflow("rgconfigurationmanager", "testname", "testname") .withProperties(new WorkflowVersionProperties().withStageSpec(Arrays.asList(new StageSpec() - .withName("amrbjd") + .withName("jgldxxbuucvqlpstdbbql") .withSpecification(mapOf()) - .withTasks(Arrays.asList(new TaskSpec().withName("xxmeyvmgydbcwxqwjhadjxjod") + .withTasks(Arrays.asList(new TaskSpec().withName("hozvidsilycopddjfuebjglcourar") .withTargetId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget") .withSpecification(mapOf()))) .withTaskOption( - new TaskOption().withConcurrency(3) + new TaskOption().withConcurrency(2) .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE) .withMaxToleratedFailures(0))))) .withSpecification(mapOf())) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } @@ -3177,17 +4575,17 @@ public final class WorkflowVersionsCreateOrUpdateSamples { */ public final class WorkflowVersionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/WorkflowVersions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/WorkflowVersions_Delete_MaximumSet_Gen.json */ /** - * Sample code: WorkflowVersions_Delete_MaximumSet. + * Sample code: WorkflowVersions_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowVersionsDeleteMaximumSet( + public static void workflowVersionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflowVersions() - .delete("rgconfigurationmanager", "testname", "testname", "testname", com.azure.core.util.Context.NONE); + .delete("rgconfigurationmanager", "testname", "testname", "abcde", com.azure.core.util.Context.NONE); } } ``` @@ -3200,17 +4598,17 @@ public final class WorkflowVersionsDeleteSamples { */ public final class WorkflowVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/WorkflowVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/WorkflowVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: WorkflowVersions_Get_MaximumSet. + * Sample code: WorkflowVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowVersionsGetMaximumSet( + public static void workflowVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflowVersions() - .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", + .getWithResponse("rgconfigurationmanager", "testname", "testname", "abcde", com.azure.core.util.Context.NONE); } } @@ -3224,14 +4622,14 @@ public final class WorkflowVersionsGetSamples { */ public final class WorkflowVersionsListByWorkflowSamples { /* - * x-ms-original-file: 2025-06-01/WorkflowVersions_ListByWorkflow_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/WorkflowVersions_ListByWorkflow_MaximumSet_Gen.json */ /** - * Sample code: WorkflowVersions_ListByWorkflow_MaximumSet. + * Sample code: WorkflowVersions_ListByWorkflow_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowVersionsListByWorkflowMaximumSet( + public static void workflowVersionsListByWorkflowMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflowVersions() .listByWorkflow("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); @@ -3258,29 +4656,29 @@ import java.util.Map; */ public final class WorkflowVersionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/WorkflowVersions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/WorkflowVersions_Update_MaximumSet_Gen.json */ /** - * Sample code: WorkflowVersions_Update_MaximumSet. + * Sample code: WorkflowVersions_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowVersionsUpdateMaximumSet( + public static void workflowVersionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { WorkflowVersion resource = manager.workflowVersions() - .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", + .getWithResponse("rgconfigurationmanager", "testname", "testname", "abcde", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withProperties(new WorkflowVersionProperties().withStageSpec(Arrays.asList(new StageSpec() - .withName("amrbjd") + .withName("jgldxxbuucvqlpstdbbql") .withSpecification(mapOf()) - .withTasks(Arrays.asList(new TaskSpec().withName("xxmeyvmgydbcwxqwjhadjxjod") + .withTasks(Arrays.asList(new TaskSpec().withName("hozvidsilycopddjfuebjglcourar") .withTargetId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget") .withSpecification(mapOf()))) .withTaskOption( - new TaskOption().withConcurrency(3) + new TaskOption().withConcurrency(2) .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE) .withMaxToleratedFailures(0))))) .withSpecification(mapOf())) @@ -3313,21 +4711,21 @@ import com.azure.resourcemanager.workloadorchestration.models.WorkflowProperties */ public final class WorkflowsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Workflows_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Workflows_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Workflows_CreateOrUpdate_MaximumSet. + * Sample code: Workflows_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowsCreateOrUpdateMaximumSet( + public static void workflowsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflows() .define("testname") .withExistingContext("rgconfigurationmanager", "testname") .withProperties(new WorkflowProperties()) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } } @@ -3341,14 +4739,14 @@ public final class WorkflowsCreateOrUpdateSamples { */ public final class WorkflowsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Workflows_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Workflows_Delete_MaximumSet_Gen.json */ /** - * Sample code: Workflows_Delete_MaximumSet. + * Sample code: Workflows_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowsDeleteMaximumSet( + public static void workflowsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflows().delete("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); } @@ -3363,15 +4761,15 @@ public final class WorkflowsDeleteSamples { */ public final class WorkflowsGetSamples { /* - * x-ms-original-file: 2025-06-01/Workflows_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Workflows_Get_MaximumSet_Gen.json */ /** - * Sample code: Workflows_Get_MaximumSet. + * Sample code: Workflows_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - workflowsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void workflowsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflows() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); } @@ -3386,14 +4784,14 @@ public final class WorkflowsGetSamples { */ public final class WorkflowsListByContextSamples { /* - * x-ms-original-file: 2025-06-01/Workflows_ListByContext_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Workflows_ListByContext_MaximumSet_Gen.json */ /** - * Sample code: Workflows_ListByContext_MaximumSet. + * Sample code: Workflows_ListByContext_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowsListByContextMaximumSet( + public static void workflowsListByContextMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflows().listByContext("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } @@ -3411,14 +4809,14 @@ import com.azure.resourcemanager.workloadorchestration.models.WorkflowProperties */ public final class WorkflowsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Workflows_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Workflows_Update_MaximumSet_Gen.json */ /** - * Sample code: Workflows_Update_MaximumSet. + * Sample code: Workflows_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowsUpdateMaximumSet( + public static void workflowsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Workflow resource = manager.workflows() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE) diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/pom.xml b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/pom.xml index 679e30e9781bd..43edd004e175a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/pom.xml +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/pom.xml @@ -3,7 +3,7 @@ ~ Licensed under the MIT License. ~ Code generated by Microsoft (R) TypeSpec Code Generator. --> - + 4.0.0 com.azure @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for Workload Orchestration Management - This package contains Microsoft Azure SDK for Workload Orchestration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft.Edge Resource Provider management API. Package api-version 2025-06-01. + This package contains Microsoft Azure SDK for Workload Orchestration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft.Edge Resource Provider management API. Package api-version 2026-05-01-preview. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/WorkloadOrchestrationManager.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/WorkloadOrchestrationManager.java index 072f7332da859..40bb6e298f6ed 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/WorkloadOrchestrationManager.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/WorkloadOrchestrationManager.java @@ -25,6 +25,8 @@ import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.workloadorchestration.fluent.WorkloadOrchestrationManagementClient; +import com.azure.resourcemanager.workloadorchestration.implementation.ConfigTemplateMetadatasImpl; +import com.azure.resourcemanager.workloadorchestration.implementation.ConfigTemplateSchemasImpl; import com.azure.resourcemanager.workloadorchestration.implementation.ConfigTemplateVersionsImpl; import com.azure.resourcemanager.workloadorchestration.implementation.ConfigTemplatesImpl; import com.azure.resourcemanager.workloadorchestration.implementation.ContextsImpl; @@ -32,6 +34,8 @@ import com.azure.resourcemanager.workloadorchestration.implementation.DynamicSchemaVersionsImpl; import com.azure.resourcemanager.workloadorchestration.implementation.DynamicSchemasImpl; import com.azure.resourcemanager.workloadorchestration.implementation.ExecutionsImpl; +import com.azure.resourcemanager.workloadorchestration.implementation.HierarchyConfigurationMetadataVersionsImpl; +import com.azure.resourcemanager.workloadorchestration.implementation.HierarchyConfigurationMetadatasImpl; import com.azure.resourcemanager.workloadorchestration.implementation.InstanceHistoriesImpl; import com.azure.resourcemanager.workloadorchestration.implementation.InstancesImpl; import com.azure.resourcemanager.workloadorchestration.implementation.JobsImpl; @@ -39,6 +43,10 @@ import com.azure.resourcemanager.workloadorchestration.implementation.SchemaVersionsImpl; import com.azure.resourcemanager.workloadorchestration.implementation.SchemasImpl; import com.azure.resourcemanager.workloadorchestration.implementation.SiteReferencesImpl; +import com.azure.resourcemanager.workloadorchestration.implementation.SolutionDeploymentsImpl; +import com.azure.resourcemanager.workloadorchestration.implementation.SolutionMetadataVersionsImpl; +import com.azure.resourcemanager.workloadorchestration.implementation.SolutionMetadatasImpl; +import com.azure.resourcemanager.workloadorchestration.implementation.SolutionSchemasImpl; import com.azure.resourcemanager.workloadorchestration.implementation.SolutionTemplateVersionsImpl; import com.azure.resourcemanager.workloadorchestration.implementation.SolutionTemplatesImpl; import com.azure.resourcemanager.workloadorchestration.implementation.SolutionVersionsImpl; @@ -47,6 +55,8 @@ import com.azure.resourcemanager.workloadorchestration.implementation.WorkflowVersionsImpl; import com.azure.resourcemanager.workloadorchestration.implementation.WorkflowsImpl; import com.azure.resourcemanager.workloadorchestration.implementation.WorkloadOrchestrationManagementClientBuilder; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadatas; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateSchemas; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersions; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplates; import com.azure.resourcemanager.workloadorchestration.models.Contexts; @@ -54,6 +64,8 @@ import com.azure.resourcemanager.workloadorchestration.models.DynamicSchemaVersions; import com.azure.resourcemanager.workloadorchestration.models.DynamicSchemas; import com.azure.resourcemanager.workloadorchestration.models.Executions; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataVersions; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadatas; import com.azure.resourcemanager.workloadorchestration.models.InstanceHistories; import com.azure.resourcemanager.workloadorchestration.models.Instances; import com.azure.resourcemanager.workloadorchestration.models.Jobs; @@ -61,6 +73,10 @@ import com.azure.resourcemanager.workloadorchestration.models.SchemaVersions; import com.azure.resourcemanager.workloadorchestration.models.Schemas; import com.azure.resourcemanager.workloadorchestration.models.SiteReferences; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeployments; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataVersions; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadatas; +import com.azure.resourcemanager.workloadorchestration.models.SolutionSchemas; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersions; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplates; import com.azure.resourcemanager.workloadorchestration.models.SolutionVersions; @@ -99,6 +115,10 @@ public final class WorkloadOrchestrationManager { private Solutions solutions; + private SolutionMetadatas solutionMetadatas; + + private SolutionMetadataVersions solutionMetadataVersions; + private SolutionTemplateVersions solutionTemplateVersions; private SolutionTemplates solutionTemplates; @@ -123,6 +143,18 @@ public final class WorkloadOrchestrationManager { private SiteReferences siteReferences; + private SolutionSchemas solutionSchemas; + + private ConfigTemplateSchemas configTemplateSchemas; + + private ConfigTemplateMetadatas configTemplateMetadatas; + + private HierarchyConfigurationMetadatas hierarchyConfigurationMetadatas; + + private HierarchyConfigurationMetadataVersions hierarchyConfigurationMetadataVersions; + + private SolutionDeployments solutionDeployments; + private final WorkloadOrchestrationManagementClient clientObject; private WorkloadOrchestrationManager(HttpPipeline httpPipeline, AzureProfile profile, @@ -424,7 +456,7 @@ public DynamicSchemaVersions dynamicSchemaVersions() { } /** - * Gets the resource collection API of SchemaReferences. + * Gets the resource collection API of SchemaReferences. It manages SchemaReference. * * @return Resource collection API of SchemaReferences. */ @@ -448,7 +480,32 @@ public Solutions solutions() { } /** - * Gets the resource collection API of SolutionTemplateVersions. + * Gets the resource collection API of SolutionMetadatas. + * + * @return Resource collection API of SolutionMetadatas. + */ + public SolutionMetadatas solutionMetadatas() { + if (this.solutionMetadatas == null) { + this.solutionMetadatas = new SolutionMetadatasImpl(clientObject.getSolutionMetadatas(), this); + } + return solutionMetadatas; + } + + /** + * Gets the resource collection API of SolutionMetadataVersions. + * + * @return Resource collection API of SolutionMetadataVersions. + */ + public SolutionMetadataVersions solutionMetadataVersions() { + if (this.solutionMetadataVersions == null) { + this.solutionMetadataVersions + = new SolutionMetadataVersionsImpl(clientObject.getSolutionMetadataVersions(), this); + } + return solutionMetadataVersions; + } + + /** + * Gets the resource collection API of SolutionTemplateVersions. It manages SolutionTemplateVersion. * * @return Resource collection API of SolutionTemplateVersions. */ @@ -509,7 +566,7 @@ public ConfigTemplates configTemplates() { } /** - * Gets the resource collection API of ConfigTemplateVersions. + * Gets the resource collection API of ConfigTemplateVersions. It manages ConfigTemplateVersion. * * @return Resource collection API of ConfigTemplateVersions. */ @@ -593,6 +650,81 @@ public SiteReferences siteReferences() { return siteReferences; } + /** + * Gets the resource collection API of SolutionSchemas. + * + * @return Resource collection API of SolutionSchemas. + */ + public SolutionSchemas solutionSchemas() { + if (this.solutionSchemas == null) { + this.solutionSchemas = new SolutionSchemasImpl(clientObject.getSolutionSchemas(), this); + } + return solutionSchemas; + } + + /** + * Gets the resource collection API of ConfigTemplateSchemas. + * + * @return Resource collection API of ConfigTemplateSchemas. + */ + public ConfigTemplateSchemas configTemplateSchemas() { + if (this.configTemplateSchemas == null) { + this.configTemplateSchemas = new ConfigTemplateSchemasImpl(clientObject.getConfigTemplateSchemas(), this); + } + return configTemplateSchemas; + } + + /** + * Gets the resource collection API of ConfigTemplateMetadatas. It manages ConfigTemplateMetadata. + * + * @return Resource collection API of ConfigTemplateMetadatas. + */ + public ConfigTemplateMetadatas configTemplateMetadatas() { + if (this.configTemplateMetadatas == null) { + this.configTemplateMetadatas + = new ConfigTemplateMetadatasImpl(clientObject.getConfigTemplateMetadatas(), this); + } + return configTemplateMetadatas; + } + + /** + * Gets the resource collection API of HierarchyConfigurationMetadatas. + * + * @return Resource collection API of HierarchyConfigurationMetadatas. + */ + public HierarchyConfigurationMetadatas hierarchyConfigurationMetadatas() { + if (this.hierarchyConfigurationMetadatas == null) { + this.hierarchyConfigurationMetadatas + = new HierarchyConfigurationMetadatasImpl(clientObject.getHierarchyConfigurationMetadatas(), this); + } + return hierarchyConfigurationMetadatas; + } + + /** + * Gets the resource collection API of HierarchyConfigurationMetadataVersions. + * + * @return Resource collection API of HierarchyConfigurationMetadataVersions. + */ + public HierarchyConfigurationMetadataVersions hierarchyConfigurationMetadataVersions() { + if (this.hierarchyConfigurationMetadataVersions == null) { + this.hierarchyConfigurationMetadataVersions = new HierarchyConfigurationMetadataVersionsImpl( + clientObject.getHierarchyConfigurationMetadataVersions(), this); + } + return hierarchyConfigurationMetadataVersions; + } + + /** + * Gets the resource collection API of SolutionDeployments. It manages SolutionDeployment. + * + * @return Resource collection API of SolutionDeployments. + */ + public SolutionDeployments solutionDeployments() { + if (this.solutionDeployments == null) { + this.solutionDeployments = new SolutionDeploymentsImpl(clientObject.getSolutionDeployments(), this); + } + return solutionDeployments; + } + /** * Gets wrapped service client WorkloadOrchestrationManagementClient providing direct access to the underlying * auto-generated API implementation, based on Azure REST API. diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateMetadatasClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateMetadatasClient.java new file mode 100644 index 0000000000000..0ea6c217f0f9a --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateMetadatasClient.java @@ -0,0 +1,275 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateMetadataInner; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdate; + +/** + * An instance of this class provides access to all the operations defined in ConfigTemplateMetadatasClient. + */ +public interface ConfigTemplateMetadatasClient { + /** + * Get a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateMetadata Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, Context context); + + /** + * Get a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConfigTemplateMetadataInner get(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName); + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ConfigTemplateMetadataInner> beginCreateOrUpdate( + String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + ConfigTemplateMetadataInner resource); + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ConfigTemplateMetadataInner> beginCreateOrUpdate( + String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + ConfigTemplateMetadataInner resource, Context context); + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConfigTemplateMetadataInner createOrUpdate(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataInner resource); + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConfigTemplateMetadataInner createOrUpdate(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataInner resource, Context context); + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ConfigTemplateMetadataInner> beginUpdate( + String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + ConfigTemplateMetadataUpdate properties); + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ConfigTemplateMetadataInner> beginUpdate( + String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + ConfigTemplateMetadataUpdate properties, Context context); + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConfigTemplateMetadataInner update(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataUpdate properties); + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConfigTemplateMetadataInner update(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataUpdate properties, Context context); + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName); + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, Context context); + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String configTemplateName, String configTemplateMetadataName); + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + Context context); + + /** + * List by ConfigTemplate. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByConfigTemplate(String resourceGroupName, + String configTemplateName); + + /** + * List by ConfigTemplate. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByConfigTemplate(String resourceGroupName, String configTemplateName, + Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateSchemasClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateSchemasClient.java new file mode 100644 index 0000000000000..c357a3ae75f2c --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateSchemasClient.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateSchemaInner; + +/** + * An instance of this class provides access to all the operations defined in ConfigTemplateSchemasClient. + */ +public interface ConfigTemplateSchemasClient { + /** + * Get a ConfigTemplateSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param configTemplateSchemaName The name of the ConfigTemplateSchemaProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateSchema Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, String configTemplateSchemaName, Context context); + + /** + * Get a ConfigTemplateSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param configTemplateSchemaName The name of the ConfigTemplateSchemaProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateSchema Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConfigTemplateSchemaInner get(String resourceGroupName, String configTemplateName, String configTemplateVersionName, + String configTemplateSchemaName); + + /** + * List by ConfigTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByConfigTemplateVersion(String resourceGroupName, + String configTemplateName, String configTemplateVersionName); + + /** + * List by ConfigTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByConfigTemplateVersion(String resourceGroupName, + String configTemplateName, String configTemplateVersionName, Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateVersionsClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateVersionsClient.java index 3487904675da3..2e47b8fce2b86 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateVersionsClient.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateVersionsClient.java @@ -8,7 +8,9 @@ import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner; /** @@ -46,6 +48,165 @@ Response getWithResponse(String resourceGroupName, S ConfigTemplateVersionInner get(String resourceGroupName, String configTemplateName, String configTemplateVersionName); + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ConfigTemplateVersionInner> beginCreateOrUpdate( + String resourceGroupName, String configTemplateName, String configTemplateVersionName, + ConfigTemplateVersionInner resource); + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ConfigTemplateVersionInner> beginCreateOrUpdate( + String resourceGroupName, String configTemplateName, String configTemplateVersionName, + ConfigTemplateVersionInner resource, Context context); + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConfigTemplateVersionInner createOrUpdate(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner resource); + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConfigTemplateVersionInner createOrUpdate(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner resource, Context context); + + /** + * Update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner properties, Context context); + + /** + * Update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConfigTemplateVersionInner update(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner properties); + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String configTemplateName, + String configTemplateVersionName); + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, Context context); + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String configTemplateName, String configTemplateVersionName); + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String configTemplateName, String configTemplateVersionName, Context context); + /** * List Config Template Version Resources. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplatesClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplatesClient.java index 1d91ef596d5a1..09b770ba1d772 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplatesClient.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplatesClient.java @@ -16,6 +16,7 @@ import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionWithUpdateTypeInner; import com.azure.resourcemanager.workloadorchestration.fluent.models.RemoveVersionResponseInner; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateUpdate; +import com.azure.resourcemanager.workloadorchestration.models.HierarchySelector; import com.azure.resourcemanager.workloadorchestration.models.VersionParameter; /** @@ -142,6 +143,124 @@ Response updateWithResponse(String resourceGroupName, Strin @ServiceMethod(returns = ReturnType.SINGLE) ConfigTemplateInner update(String resourceGroupName, String configTemplateName, ConfigTemplateUpdate properties); + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginLinkToHierarchies(String resourceGroupName, String configTemplateName, + HierarchySelector body); + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginLinkToHierarchies(String resourceGroupName, String configTemplateName, + HierarchySelector body, Context context); + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void linkToHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body); + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void linkToHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body, + Context context); + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginUnLinkFromHierarchies(String resourceGroupName, String configTemplateName, + HierarchySelector body); + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginUnLinkFromHierarchies(String resourceGroupName, String configTemplateName, + HierarchySelector body, Context context); + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void unLinkFromHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body); + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void unLinkFromHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body, + Context context); + /** * Create or update a Config Template Version Resource with the specified UpdateType. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/HierarchyConfigurationMetadataVersionsClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/HierarchyConfigurationMetadataVersionsClient.java new file mode 100644 index 0000000000000..fd4dbd166e826 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/HierarchyConfigurationMetadataVersionsClient.java @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataVersionInner; + +/** + * An instance of this class provides access to all the operations defined in + * HierarchyConfigurationMetadataVersionsClient. + */ +public interface HierarchyConfigurationMetadataVersionsClient { + /** + * Get a Hierarchy Configuration Metadata Version resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param hierarchyConfigurationMetadataVersionName Name of the hierarchy configuration metadata version. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata Version resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceUri, + String hierarchyConfigurationMetadataName, String hierarchyConfigurationMetadataVersionName, Context context); + + /** + * Get a Hierarchy Configuration Metadata Version resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param hierarchyConfigurationMetadataVersionName Name of the hierarchy configuration metadata version. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata Version resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + HierarchyConfigurationMetadataVersionInner get(String resourceUri, String hierarchyConfigurationMetadataName, + String hierarchyConfigurationMetadataVersionName); + + /** + * List Hierarchy Configuration Metadata Version resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByParent(String resourceUri, + String hierarchyConfigurationMetadataName); + + /** + * List Hierarchy Configuration Metadata Version resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByParent(String resourceUri, + String hierarchyConfigurationMetadataName, Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/HierarchyConfigurationMetadatasClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/HierarchyConfigurationMetadatasClient.java new file mode 100644 index 0000000000000..6ebabbe2bb4e5 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/HierarchyConfigurationMetadatasClient.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataInner; + +/** + * An instance of this class provides access to all the operations defined in HierarchyConfigurationMetadatasClient. + */ +public interface HierarchyConfigurationMetadatasClient { + /** + * Get a Hierarchy Configuration Metadata resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceUri, + String hierarchyConfigurationMetadataName, Context context); + + /** + * Get a Hierarchy Configuration Metadata resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + HierarchyConfigurationMetadataInner get(String resourceUri, String hierarchyConfigurationMetadataName); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByParent(String resourceUri); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByParent(String resourceUri, Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SchemaReferencesClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SchemaReferencesClient.java index a8fde7f31b4e6..6900676d1432c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SchemaReferencesClient.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SchemaReferencesClient.java @@ -8,7 +8,9 @@ import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaReferenceInner; /** @@ -42,6 +44,149 @@ public interface SchemaReferencesClient { @ServiceMethod(returns = ReturnType.SINGLE) SchemaReferenceInner get(String resourceUri, String schemaReferenceName); + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SchemaReferenceInner> beginCreateOrUpdate(String resourceUri, + String schemaReferenceName, SchemaReferenceInner resource); + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SchemaReferenceInner> beginCreateOrUpdate(String resourceUri, + String schemaReferenceName, SchemaReferenceInner resource, Context context); + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SchemaReferenceInner createOrUpdate(String resourceUri, String schemaReferenceName, SchemaReferenceInner resource); + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SchemaReferenceInner createOrUpdate(String resourceUri, String schemaReferenceName, SchemaReferenceInner resource, + Context context); + + /** + * update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceUri, String schemaReferenceName, + SchemaReferenceInner properties, Context context); + + /** + * update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SchemaReferenceInner update(String resourceUri, String schemaReferenceName, SchemaReferenceInner properties); + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceUri, String schemaReferenceName); + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceUri, String schemaReferenceName, Context context); + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceUri, String schemaReferenceName); + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceUri, String schemaReferenceName, Context context); + /** * List by specified resource group. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionDeploymentsClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionDeploymentsClient.java new file mode 100644 index 0000000000000..14ea81f5d244e --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionDeploymentsClient.java @@ -0,0 +1,241 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionDeploymentInner; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdate; + +/** + * An instance of this class provides access to all the operations defined in SolutionDeploymentsClient. + */ +public interface SolutionDeploymentsClient { + /** + * Get a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionDeployment Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String solutionDeploymentName, Context context); + + /** + * Get a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionDeployment Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionDeploymentInner getByResourceGroup(String resourceGroupName, String solutionDeploymentName); + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SolutionDeploymentInner> + beginCreateOrUpdate(String resourceGroupName, String solutionDeploymentName, SolutionDeploymentInner resource); + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SolutionDeploymentInner> beginCreateOrUpdate( + String resourceGroupName, String solutionDeploymentName, SolutionDeploymentInner resource, Context context); + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionDeploymentInner createOrUpdate(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentInner resource); + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionDeploymentInner createOrUpdate(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentInner resource, Context context); + + /** + * update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentUpdate properties, Context context); + + /** + * update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionDeploymentInner update(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentUpdate properties); + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String solutionDeploymentName); + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String solutionDeploymentName, + Context context); + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String solutionDeploymentName); + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String solutionDeploymentName, Context context); + + /** + * List by specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List by specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * List by subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List by subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionMetadataVersionsClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionMetadataVersionsClient.java new file mode 100644 index 0000000000000..a990427bc270d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionMetadataVersionsClient.java @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataVersionInner; + +/** + * An instance of this class provides access to all the operations defined in SolutionMetadataVersionsClient. + */ +public interface SolutionMetadataVersionsClient { + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param solutionMetadataVersionName Name of the solution metadata version. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceUri, String solutionMetadataName, + String solutionMetadataVersionName, Context context); + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param solutionMetadataVersionName Name of the solution metadata version. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionMetadataVersionInner get(String resourceUri, String solutionMetadataName, + String solutionMetadataVersionName); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByParent(String resourceUri, String solutionMetadataName); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByParent(String resourceUri, String solutionMetadataName, + Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionMetadatasClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionMetadatasClient.java new file mode 100644 index 0000000000000..1a0d92039d1e1 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionMetadatasClient.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataInner; + +/** + * An instance of this class provides access to all the operations defined in SolutionMetadatasClient. + */ +public interface SolutionMetadatasClient { + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceUri, String solutionMetadataName, Context context); + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionMetadataInner get(String resourceUri, String solutionMetadataName); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByParent(String resourceUri); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByParent(String resourceUri, Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionSchemasClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionSchemasClient.java new file mode 100644 index 0000000000000..4875c2086fab0 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionSchemasClient.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionSchemaInner; + +/** + * An instance of this class provides access to all the operations defined in SolutionSchemasClient. + */ +public interface SolutionSchemasClient { + /** + * Get a SolutionSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param solutionSchemaName The name of the SolutionSchemaProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionSchema Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, String solutionSchemaName, Context context); + + /** + * Get a SolutionSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param solutionSchemaName The name of the SolutionSchemaProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionSchema Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionSchemaInner get(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + String solutionSchemaName); + + /** + * List by SolutionTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listBySolutionTemplateVersion(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName); + + /** + * List by SolutionTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listBySolutionTemplateVersion(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionTemplateVersionsClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionTemplateVersionsClient.java index 92a9b128c3bd4..7b6fa9e960be9 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionTemplateVersionsClient.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionTemplateVersionsClient.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.models.BulkDeploySolutionParameter; import com.azure.resourcemanager.workloadorchestration.models.BulkPublishSolutionParameter; +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewSolutionParameter; /** * An instance of this class provides access to all the operations defined in SolutionTemplateVersionsClient. @@ -50,6 +51,166 @@ Response getWithResponse(String resourceGroupName, SolutionTemplateVersionInner get(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName); + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SolutionTemplateVersionInner> beginCreateOrUpdate( + String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + SolutionTemplateVersionInner resource); + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SolutionTemplateVersionInner> beginCreateOrUpdate( + String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + SolutionTemplateVersionInner resource, Context context); + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionTemplateVersionInner createOrUpdate(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, SolutionTemplateVersionInner resource); + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionTemplateVersionInner createOrUpdate(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, SolutionTemplateVersionInner resource, Context context); + + /** + * Update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, SolutionTemplateVersionInner properties, Context context); + + /** + * Update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionTemplateVersionInner update(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, SolutionTemplateVersionInner properties); + + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName); + + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, Context context); + + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName); + + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + Context context); + /** * List Solution Template Version Resources. * @@ -208,4 +369,68 @@ void bulkPublishSolution(String resourceGroupName, String solutionTemplateName, @ServiceMethod(returns = ReturnType.SINGLE) void bulkPublishSolution(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, BulkPublishSolutionParameter body, Context context); + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginBulkReviewSolution(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, BulkReviewSolutionParameter body); + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginBulkReviewSolution(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, BulkReviewSolutionParameter body, Context context); + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void bulkReviewSolution(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + BulkReviewSolutionParameter body); + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void bulkReviewSolution(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + BulkReviewSolutionParameter body, Context context); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/TargetsClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/TargetsClient.java index 3d5ad3f9294dc..d7d0db2af70fe 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/TargetsClient.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/TargetsClient.java @@ -697,4 +697,66 @@ SolutionVersionInner updateExternalValidationStatus(String resourceGroupName, St @ServiceMethod(returns = ReturnType.SINGLE) SolutionVersionInner updateExternalValidationStatus(String resourceGroupName, String targetName, UpdateExternalValidationStatusParameter body, Context context); + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SolutionVersionInner> + beginUnstageSolutionVersion(String resourceGroupName, String targetName, SolutionVersionParameter body); + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SolutionVersionInner> beginUnstageSolutionVersion( + String resourceGroupName, String targetName, SolutionVersionParameter body, Context context); + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionVersionInner unstageSolutionVersion(String resourceGroupName, String targetName, + SolutionVersionParameter body); + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SolutionVersionInner unstageSolutionVersion(String resourceGroupName, String targetName, + SolutionVersionParameter body, Context context); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/WorkloadOrchestrationManagementClient.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/WorkloadOrchestrationManagementClient.java index aab992a2fce9c..3a3029f3d28a8 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/WorkloadOrchestrationManagementClient.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/WorkloadOrchestrationManagementClient.java @@ -109,6 +109,20 @@ public interface WorkloadOrchestrationManagementClient { */ SolutionsClient getSolutions(); + /** + * Gets the SolutionMetadatasClient object to access its operations. + * + * @return the SolutionMetadatasClient object. + */ + SolutionMetadatasClient getSolutionMetadatas(); + + /** + * Gets the SolutionMetadataVersionsClient object to access its operations. + * + * @return the SolutionMetadataVersionsClient object. + */ + SolutionMetadataVersionsClient getSolutionMetadataVersions(); + /** * Gets the SolutionTemplateVersionsClient object to access its operations. * @@ -192,4 +206,46 @@ public interface WorkloadOrchestrationManagementClient { * @return the SiteReferencesClient object. */ SiteReferencesClient getSiteReferences(); + + /** + * Gets the SolutionSchemasClient object to access its operations. + * + * @return the SolutionSchemasClient object. + */ + SolutionSchemasClient getSolutionSchemas(); + + /** + * Gets the ConfigTemplateSchemasClient object to access its operations. + * + * @return the ConfigTemplateSchemasClient object. + */ + ConfigTemplateSchemasClient getConfigTemplateSchemas(); + + /** + * Gets the ConfigTemplateMetadatasClient object to access its operations. + * + * @return the ConfigTemplateMetadatasClient object. + */ + ConfigTemplateMetadatasClient getConfigTemplateMetadatas(); + + /** + * Gets the HierarchyConfigurationMetadatasClient object to access its operations. + * + * @return the HierarchyConfigurationMetadatasClient object. + */ + HierarchyConfigurationMetadatasClient getHierarchyConfigurationMetadatas(); + + /** + * Gets the HierarchyConfigurationMetadataVersionsClient object to access its operations. + * + * @return the HierarchyConfigurationMetadataVersionsClient object. + */ + HierarchyConfigurationMetadataVersionsClient getHierarchyConfigurationMetadataVersions(); + + /** + * Gets the SolutionDeploymentsClient object to access its operations. + * + * @return the SolutionDeploymentsClient object. + */ + SolutionDeploymentsClient getSolutionDeployments(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateMetadataInner.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateMetadataInner.java new file mode 100644 index 0000000000000..aec0fdcf8efbc --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateMetadataInner.java @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataProperties; +import java.io.IOException; + +/** + * ConfigTemplateMetadata Resource. + */ +@Fluent +public final class ConfigTemplateMetadataInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private ConfigTemplateMetadataProperties properties; + + /* + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. + * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity + * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section + * 14.27) header fields. + */ + private String eTag; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ConfigTemplateMetadataInner class. + */ + public ConfigTemplateMetadataInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public ConfigTemplateMetadataProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the ConfigTemplateMetadataInner object itself. + */ + public ConfigTemplateMetadataInner withProperties(ConfigTemplateMetadataProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigTemplateMetadataInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigTemplateMetadataInner if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ConfigTemplateMetadataInner. + */ + public static ConfigTemplateMetadataInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigTemplateMetadataInner deserializedConfigTemplateMetadataInner = new ConfigTemplateMetadataInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedConfigTemplateMetadataInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedConfigTemplateMetadataInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedConfigTemplateMetadataInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedConfigTemplateMetadataInner.properties + = ConfigTemplateMetadataProperties.fromJson(reader); + } else if ("eTag".equals(fieldName)) { + deserializedConfigTemplateMetadataInner.eTag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedConfigTemplateMetadataInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigTemplateMetadataInner; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateSchemaInner.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateSchemaInner.java new file mode 100644 index 0000000000000..6b187ce042090 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateSchemaInner.java @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateSchemaProperties; +import java.io.IOException; + +/** + * SolutionSchema Resource. + */ +@Immutable +public final class ConfigTemplateSchemaInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private ConfigTemplateSchemaProperties properties; + + /* + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. + * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity + * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section + * 14.27) header fields. + */ + private String eTag; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ConfigTemplateSchemaInner class. + */ + private ConfigTemplateSchemaInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public ConfigTemplateSchemaProperties properties() { + return this.properties; + } + + /** + * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigTemplateSchemaInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigTemplateSchemaInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ConfigTemplateSchemaInner. + */ + public static ConfigTemplateSchemaInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigTemplateSchemaInner deserializedConfigTemplateSchemaInner = new ConfigTemplateSchemaInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedConfigTemplateSchemaInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedConfigTemplateSchemaInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedConfigTemplateSchemaInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedConfigTemplateSchemaInner.properties = ConfigTemplateSchemaProperties.fromJson(reader); + } else if ("eTag".equals(fieldName)) { + deserializedConfigTemplateSchemaInner.eTag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedConfigTemplateSchemaInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigTemplateSchemaInner; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/HierarchyConfigurationMetadataInner.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/HierarchyConfigurationMetadataInner.java new file mode 100644 index 0000000000000..49920c5d3eb39 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/HierarchyConfigurationMetadataInner.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataProperties; +import java.io.IOException; + +/** + * Hierarchy Configuration Metadata Resource attached to a Target or Site. + */ +@Immutable +public final class HierarchyConfigurationMetadataInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private HierarchyConfigurationMetadataProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of HierarchyConfigurationMetadataInner class. + */ + private HierarchyConfigurationMetadataInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public HierarchyConfigurationMetadataProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HierarchyConfigurationMetadataInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HierarchyConfigurationMetadataInner if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the HierarchyConfigurationMetadataInner. + */ + public static HierarchyConfigurationMetadataInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HierarchyConfigurationMetadataInner deserializedHierarchyConfigurationMetadataInner + = new HierarchyConfigurationMetadataInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataInner.properties + = HierarchyConfigurationMetadataProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedHierarchyConfigurationMetadataInner; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/HierarchyConfigurationMetadataVersionInner.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/HierarchyConfigurationMetadataVersionInner.java new file mode 100644 index 0000000000000..b7b3ccc3bd675 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/HierarchyConfigurationMetadataVersionInner.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataVersionProperties; +import java.io.IOException; + +/** + * Configuration Metadata Version Resource. + */ +@Immutable +public final class HierarchyConfigurationMetadataVersionInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private HierarchyConfigurationMetadataVersionProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of HierarchyConfigurationMetadataVersionInner class. + */ + private HierarchyConfigurationMetadataVersionInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public HierarchyConfigurationMetadataVersionProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HierarchyConfigurationMetadataVersionInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HierarchyConfigurationMetadataVersionInner if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the HierarchyConfigurationMetadataVersionInner. + */ + public static HierarchyConfigurationMetadataVersionInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HierarchyConfigurationMetadataVersionInner deserializedHierarchyConfigurationMetadataVersionInner + = new HierarchyConfigurationMetadataVersionInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionInner.properties + = HierarchyConfigurationMetadataVersionProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedHierarchyConfigurationMetadataVersionInner; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaReferenceInner.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaReferenceInner.java index 9262a540eedd2..92df30ae84a36 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaReferenceInner.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaReferenceInner.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.workloadorchestration.fluent.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.json.JsonReader; @@ -16,7 +16,7 @@ /** * Schema Reference Resource. */ -@Immutable +@Fluent public final class SchemaReferenceInner extends ProxyResource { /* * The resource-specific properties for this resource. @@ -54,7 +54,7 @@ public final class SchemaReferenceInner extends ProxyResource { /** * Creates an instance of SchemaReferenceInner class. */ - private SchemaReferenceInner() { + public SchemaReferenceInner() { } /** @@ -66,6 +66,17 @@ public SchemaReferenceProperties properties() { return this.properties; } + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the SchemaReferenceInner object itself. + */ + public SchemaReferenceInner withProperties(SchemaReferenceProperties properties) { + this.properties = properties; + return this; + } + /** * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionDeploymentInner.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionDeploymentInner.java new file mode 100644 index 0000000000000..97903222be308 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionDeploymentInner.java @@ -0,0 +1,203 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentProperties; +import java.io.IOException; +import java.util.Map; + +/** + * Solution Deployment Resource. Represents a resource to be deployed on the cloud or edge. + */ +@Fluent +public final class SolutionDeploymentInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private SolutionDeploymentProperties properties; + + /* + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. + * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity + * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section + * 14.27) header fields. + */ + private String eTag; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of SolutionDeploymentInner class. + */ + public SolutionDeploymentInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public SolutionDeploymentProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the SolutionDeploymentInner object itself. + */ + public SolutionDeploymentInner withProperties(SolutionDeploymentProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public SolutionDeploymentInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public SolutionDeploymentInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionDeploymentInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionDeploymentInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SolutionDeploymentInner. + */ + public static SolutionDeploymentInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionDeploymentInner deserializedSolutionDeploymentInner = new SolutionDeploymentInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedSolutionDeploymentInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedSolutionDeploymentInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedSolutionDeploymentInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedSolutionDeploymentInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedSolutionDeploymentInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedSolutionDeploymentInner.properties = SolutionDeploymentProperties.fromJson(reader); + } else if ("eTag".equals(fieldName)) { + deserializedSolutionDeploymentInner.eTag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedSolutionDeploymentInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionDeploymentInner; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionMetadataInner.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionMetadataInner.java new file mode 100644 index 0000000000000..4cf6fd8747d4b --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionMetadataInner.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataProperties; +import java.io.IOException; + +/** + * Solution Metadata Resource attached to a Target or Site. + */ +@Immutable +public final class SolutionMetadataInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private SolutionMetadataProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of SolutionMetadataInner class. + */ + private SolutionMetadataInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public SolutionMetadataProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionMetadataInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionMetadataInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SolutionMetadataInner. + */ + public static SolutionMetadataInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionMetadataInner deserializedSolutionMetadataInner = new SolutionMetadataInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedSolutionMetadataInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedSolutionMetadataInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedSolutionMetadataInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedSolutionMetadataInner.properties = SolutionMetadataProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedSolutionMetadataInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionMetadataInner; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionMetadataVersionInner.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionMetadataVersionInner.java new file mode 100644 index 0000000000000..fee939ad82111 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionMetadataVersionInner.java @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataVersionProperties; +import java.io.IOException; + +/** + * Solution Metadata Version Resource. + */ +@Immutable +public final class SolutionMetadataVersionInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private SolutionMetadataVersionProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of SolutionMetadataVersionInner class. + */ + private SolutionMetadataVersionInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public SolutionMetadataVersionProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionMetadataVersionInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionMetadataVersionInner if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SolutionMetadataVersionInner. + */ + public static SolutionMetadataVersionInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionMetadataVersionInner deserializedSolutionMetadataVersionInner = new SolutionMetadataVersionInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedSolutionMetadataVersionInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedSolutionMetadataVersionInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedSolutionMetadataVersionInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedSolutionMetadataVersionInner.properties + = SolutionMetadataVersionProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedSolutionMetadataVersionInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionMetadataVersionInner; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionSchemaInner.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionSchemaInner.java new file mode 100644 index 0000000000000..65c817d8d7d7f --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionSchemaInner.java @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.models.SolutionSchemaProperties; +import java.io.IOException; + +/** + * SolutionSchema Resource. + */ +@Immutable +public final class SolutionSchemaInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private SolutionSchemaProperties properties; + + /* + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. + * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity + * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section + * 14.27) header fields. + */ + private String eTag; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of SolutionSchemaInner class. + */ + private SolutionSchemaInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public SolutionSchemaProperties properties() { + return this.properties; + } + + /** + * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionSchemaInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionSchemaInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SolutionSchemaInner. + */ + public static SolutionSchemaInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionSchemaInner deserializedSolutionSchemaInner = new SolutionSchemaInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedSolutionSchemaInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedSolutionSchemaInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedSolutionSchemaInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedSolutionSchemaInner.properties = SolutionSchemaProperties.fromJson(reader); + } else if ("eTag".equals(fieldName)) { + deserializedSolutionSchemaInner.eTag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedSolutionSchemaInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionSchemaInner; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateImpl.java index 48f13d1f1a2f0..ff41d421fb910 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateImpl.java @@ -15,6 +15,7 @@ import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateUpdate; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateUpdateProperties; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersion; +import com.azure.resourcemanager.workloadorchestration.models.HierarchySelector; import com.azure.resourcemanager.workloadorchestration.models.RemoveVersionResponse; import com.azure.resourcemanager.workloadorchestration.models.VersionParameter; import java.util.Collections; @@ -159,6 +160,22 @@ public ConfigTemplate refresh(Context context) { return this; } + public void linkToHierarchies(HierarchySelector body) { + serviceManager.configTemplates().linkToHierarchies(resourceGroupName, configTemplateName, body); + } + + public void linkToHierarchies(HierarchySelector body, Context context) { + serviceManager.configTemplates().linkToHierarchies(resourceGroupName, configTemplateName, body, context); + } + + public void unLinkFromHierarchies(HierarchySelector body) { + serviceManager.configTemplates().unLinkFromHierarchies(resourceGroupName, configTemplateName, body); + } + + public void unLinkFromHierarchies(HierarchySelector body, Context context) { + serviceManager.configTemplates().unLinkFromHierarchies(resourceGroupName, configTemplateName, body, context); + } + public ConfigTemplateVersion createVersion(ConfigTemplateVersionWithUpdateTypeInner body) { return serviceManager.configTemplates().createVersion(resourceGroupName, configTemplateName, body); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadataImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadataImpl.java new file mode 100644 index 0000000000000..a39c2a061bcdc --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadataImpl.java @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateMetadataInner; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadata; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataProperties; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdate; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdateProperties; + +public final class ConfigTemplateMetadataImpl + implements ConfigTemplateMetadata, ConfigTemplateMetadata.Definition, ConfigTemplateMetadata.Update { + private ConfigTemplateMetadataInner innerObject; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ConfigTemplateMetadataProperties properties() { + return this.innerModel().properties(); + } + + public String eTag() { + return this.innerModel().eTag(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public ConfigTemplateMetadataInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String configTemplateName; + + private String configTemplateMetadataName; + + private ConfigTemplateMetadataUpdate updateProperties; + + public ConfigTemplateMetadataImpl withExistingConfigTemplate(String resourceGroupName, String configTemplateName) { + this.resourceGroupName = resourceGroupName; + this.configTemplateName = configTemplateName; + return this; + } + + public ConfigTemplateMetadata create() { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateMetadatas() + .createOrUpdate(resourceGroupName, configTemplateName, configTemplateMetadataName, this.innerModel(), + Context.NONE); + return this; + } + + public ConfigTemplateMetadata create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateMetadatas() + .createOrUpdate(resourceGroupName, configTemplateName, configTemplateMetadataName, this.innerModel(), + context); + return this; + } + + ConfigTemplateMetadataImpl(String name, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = new ConfigTemplateMetadataInner(); + this.serviceManager = serviceManager; + this.configTemplateMetadataName = name; + } + + public ConfigTemplateMetadataImpl update() { + this.updateProperties = new ConfigTemplateMetadataUpdate(); + return this; + } + + public ConfigTemplateMetadata apply() { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateMetadatas() + .update(resourceGroupName, configTemplateName, configTemplateMetadataName, updateProperties, Context.NONE); + return this; + } + + public ConfigTemplateMetadata apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateMetadatas() + .update(resourceGroupName, configTemplateName, configTemplateMetadataName, updateProperties, context); + return this; + } + + ConfigTemplateMetadataImpl(ConfigTemplateMetadataInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.configTemplateName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "configTemplates"); + this.configTemplateMetadataName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "configTemplateMetadatas"); + } + + public ConfigTemplateMetadata refresh() { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateMetadatas() + .getWithResponse(resourceGroupName, configTemplateName, configTemplateMetadataName, Context.NONE) + .getValue(); + return this; + } + + public ConfigTemplateMetadata refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateMetadatas() + .getWithResponse(resourceGroupName, configTemplateName, configTemplateMetadataName, context) + .getValue(); + return this; + } + + public ConfigTemplateMetadataImpl withProperties(ConfigTemplateMetadataProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + public ConfigTemplateMetadataImpl withProperties(ConfigTemplateMetadataUpdateProperties properties) { + this.updateProperties.withProperties(properties); + return this; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadatasClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadatasClientImpl.java new file mode 100644 index 0000000000000..6b12133a18357 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadatasClientImpl.java @@ -0,0 +1,1013 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateMetadataInner; +import com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateMetadataListResult; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ConfigTemplateMetadatasClient. + */ +public final class ConfigTemplateMetadatasClientImpl implements ConfigTemplateMetadatasClient { + /** + * The proxy service used to perform REST calls. + */ + private final ConfigTemplateMetadatasService service; + + /** + * The service client containing this operation class. + */ + private final WorkloadOrchestrationManagementClientImpl client; + + /** + * Initializes an instance of ConfigTemplateMetadatasClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ConfigTemplateMetadatasClientImpl(WorkloadOrchestrationManagementClientImpl client) { + this.service = RestProxy.create(ConfigTemplateMetadatasService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for WorkloadOrchestrationManagementClientConfigTemplateMetadatas to be + * used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "WorkloadOrchestrationManagementClientConfigTemplateMetadatas") + public interface ConfigTemplateMetadatasService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/configTemplateMetadatas/{configTemplateMetadataName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateMetadataName") String configTemplateMetadataName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/configTemplateMetadatas/{configTemplateMetadataName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateMetadataName") String configTemplateMetadataName, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/configTemplateMetadatas/{configTemplateMetadataName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateMetadataName") String configTemplateMetadataName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConfigTemplateMetadataInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/configTemplateMetadatas/{configTemplateMetadataName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateMetadataName") String configTemplateMetadataName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConfigTemplateMetadataInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/configTemplateMetadatas/{configTemplateMetadataName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateMetadataName") String configTemplateMetadataName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConfigTemplateMetadataUpdate properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/configTemplateMetadatas/{configTemplateMetadataName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateMetadataName") String configTemplateMetadataName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConfigTemplateMetadataUpdate properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/configTemplateMetadatas/{configTemplateMetadataName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateMetadataName") String configTemplateMetadataName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/configTemplateMetadatas/{configTemplateMetadataName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateMetadataName") String configTemplateMetadataName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/configTemplateMetadatas") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByConfigTemplate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/configTemplateMetadatas") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByConfigTemplateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByConfigTemplateNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByConfigTemplateNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateMetadata Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String configTemplateName, String configTemplateMetadataName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateMetadataName, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateMetadata Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName) { + return getWithResponseAsync(resourceGroupName, configTemplateName, configTemplateMetadataName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateMetadata Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, configTemplateName, configTemplateMetadataName, accept, context); + } + + /** + * Get a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConfigTemplateMetadataInner get(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName) { + return getWithResponse(resourceGroupName, configTemplateName, configTemplateMetadataName, Context.NONE) + .getValue(); + } + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String configTemplateName, String configTemplateMetadataName, ConfigTemplateMetadataInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateMetadataName, + contentType, accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateMetadataName, + contentType, accept, resource, Context.NONE); + } + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateMetadataName, + contentType, accept, resource, context); + } + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ConfigTemplateMetadataInner> beginCreateOrUpdateAsync( + String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + ConfigTemplateMetadataInner resource) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, configTemplateName, + configTemplateMetadataName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ConfigTemplateMetadataInner.class, ConfigTemplateMetadataInner.class, + this.client.getContext()); + } + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ConfigTemplateMetadataInner> beginCreateOrUpdate( + String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + ConfigTemplateMetadataInner resource) { + Response response + = createOrUpdateWithResponse(resourceGroupName, configTemplateName, configTemplateMetadataName, resource); + return this.client.getLroResult(response, + ConfigTemplateMetadataInner.class, ConfigTemplateMetadataInner.class, Context.NONE); + } + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ConfigTemplateMetadataInner> beginCreateOrUpdate( + String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + ConfigTemplateMetadataInner resource, Context context) { + Response response = createOrUpdateWithResponse(resourceGroupName, configTemplateName, + configTemplateMetadataName, resource, context); + return this.client.getLroResult(response, + ConfigTemplateMetadataInner.class, ConfigTemplateMetadataInner.class, context); + } + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, configTemplateName, configTemplateMetadataName, resource) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConfigTemplateMetadataInner createOrUpdate(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataInner resource) { + return beginCreateOrUpdate(resourceGroupName, configTemplateName, configTemplateMetadataName, resource) + .getFinalResult(); + } + + /** + * Create or update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConfigTemplateMetadataInner createOrUpdate(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, configTemplateName, configTemplateMetadataName, resource, context) + .getFinalResult(); + } + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, + String configTemplateName, String configTemplateMetadataName, ConfigTemplateMetadataUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateMetadataName, + contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateMetadataName, + contentType, accept, properties, Context.NONE); + } + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateMetadataName, + contentType, accept, properties, context); + } + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ConfigTemplateMetadataInner> beginUpdateAsync( + String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + ConfigTemplateMetadataUpdate properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, configTemplateName, configTemplateMetadataName, properties); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ConfigTemplateMetadataInner.class, ConfigTemplateMetadataInner.class, + this.client.getContext()); + } + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ConfigTemplateMetadataInner> beginUpdate( + String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + ConfigTemplateMetadataUpdate properties) { + Response response + = updateWithResponse(resourceGroupName, configTemplateName, configTemplateMetadataName, properties); + return this.client.getLroResult(response, + ConfigTemplateMetadataInner.class, ConfigTemplateMetadataInner.class, Context.NONE); + } + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ConfigTemplateMetadataInner> beginUpdate( + String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + ConfigTemplateMetadataUpdate properties, Context context) { + Response response = updateWithResponse(resourceGroupName, configTemplateName, + configTemplateMetadataName, properties, context); + return this.client.getLroResult(response, + ConfigTemplateMetadataInner.class, ConfigTemplateMetadataInner.class, context); + } + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataUpdate properties) { + return beginUpdateAsync(resourceGroupName, configTemplateName, configTemplateMetadataName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConfigTemplateMetadataInner update(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataUpdate properties) { + return beginUpdate(resourceGroupName, configTemplateName, configTemplateMetadataName, properties) + .getFinalResult(); + } + + /** + * Update a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configTemplateMetadata Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConfigTemplateMetadataInner update(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, ConfigTemplateMetadataUpdate properties, Context context) { + return beginUpdate(resourceGroupName, configTemplateName, configTemplateMetadataName, properties, context) + .getFinalResult(); + } + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String configTemplateName, String configTemplateMetadataName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateMetadataName, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateMetadataName, + Context.NONE); + } + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateMetadataName, + context); + } + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, configTemplateName, configTemplateMetadataName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName) { + Response response + = deleteWithResponse(resourceGroupName, configTemplateName, configTemplateMetadataName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, Context context) { + Response response + = deleteWithResponse(resourceGroupName, configTemplateName, configTemplateMetadataName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName) { + return beginDeleteAsync(resourceGroupName, configTemplateName, configTemplateMetadataName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String configTemplateName, String configTemplateMetadataName) { + beginDelete(resourceGroupName, configTemplateName, configTemplateMetadataName).getFinalResult(); + } + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + Context context) { + beginDelete(resourceGroupName, configTemplateName, configTemplateMetadataName, context).getFinalResult(); + } + + /** + * List by ConfigTemplate. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByConfigTemplateSinglePageAsync(String resourceGroupName, String configTemplateName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByConfigTemplate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List by ConfigTemplate. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByConfigTemplateAsync(String resourceGroupName, + String configTemplateName) { + return new PagedFlux<>(() -> listByConfigTemplateSinglePageAsync(resourceGroupName, configTemplateName), + nextLink -> listByConfigTemplateNextSinglePageAsync(nextLink)); + } + + /** + * List by ConfigTemplate. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByConfigTemplateSinglePage(String resourceGroupName, + String configTemplateName) { + final String accept = "application/json"; + Response res + = service.listByConfigTemplateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List by ConfigTemplate. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByConfigTemplateSinglePage(String resourceGroupName, + String configTemplateName, Context context) { + final String accept = "application/json"; + Response res + = service.listByConfigTemplateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List by ConfigTemplate. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByConfigTemplate(String resourceGroupName, + String configTemplateName) { + return new PagedIterable<>(() -> listByConfigTemplateSinglePage(resourceGroupName, configTemplateName), + nextLink -> listByConfigTemplateNextSinglePage(nextLink)); + } + + /** + * List by ConfigTemplate. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByConfigTemplate(String resourceGroupName, + String configTemplateName, Context context) { + return new PagedIterable<>(() -> listByConfigTemplateSinglePage(resourceGroupName, configTemplateName, context), + nextLink -> listByConfigTemplateNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByConfigTemplateNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByConfigTemplateNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByConfigTemplateNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByConfigTemplateNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByConfigTemplateNextSinglePage(String nextLink, + Context context) { + final String accept = "application/json"; + Response res + = service.listByConfigTemplateNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadatasImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadatasImpl.java new file mode 100644 index 0000000000000..aa0ebc19e7e69 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadatasImpl.java @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateMetadataInner; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadata; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadatas; + +public final class ConfigTemplateMetadatasImpl implements ConfigTemplateMetadatas { + private static final ClientLogger LOGGER = new ClientLogger(ConfigTemplateMetadatasImpl.class); + + private final ConfigTemplateMetadatasClient innerClient; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + public ConfigTemplateMetadatasImpl(ConfigTemplateMetadatasClient innerClient, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, configTemplateName, configTemplateMetadataName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ConfigTemplateMetadataImpl(inner.getValue(), this.manager())); + } + + public ConfigTemplateMetadata get(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName) { + ConfigTemplateMetadataInner inner + = this.serviceClient().get(resourceGroupName, configTemplateName, configTemplateMetadataName); + if (inner != null) { + return new ConfigTemplateMetadataImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String configTemplateName, String configTemplateMetadataName) { + this.serviceClient().delete(resourceGroupName, configTemplateName, configTemplateMetadataName); + } + + public void delete(String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + Context context) { + this.serviceClient().delete(resourceGroupName, configTemplateName, configTemplateMetadataName, context); + } + + public PagedIterable listByConfigTemplate(String resourceGroupName, + String configTemplateName) { + PagedIterable inner + = this.serviceClient().listByConfigTemplate(resourceGroupName, configTemplateName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConfigTemplateMetadataImpl(inner1, this.manager())); + } + + public PagedIterable listByConfigTemplate(String resourceGroupName, + String configTemplateName, Context context) { + PagedIterable inner + = this.serviceClient().listByConfigTemplate(resourceGroupName, configTemplateName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConfigTemplateMetadataImpl(inner1, this.manager())); + } + + public ConfigTemplateMetadata getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String configTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplates"); + if (configTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'configTemplates'.", id))); + } + String configTemplateMetadataName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplateMetadatas"); + if (configTemplateMetadataName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'configTemplateMetadatas'.", id))); + } + return this.getWithResponse(resourceGroupName, configTemplateName, configTemplateMetadataName, Context.NONE) + .getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String configTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplates"); + if (configTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'configTemplates'.", id))); + } + String configTemplateMetadataName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplateMetadatas"); + if (configTemplateMetadataName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'configTemplateMetadatas'.", id))); + } + return this.getWithResponse(resourceGroupName, configTemplateName, configTemplateMetadataName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String configTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplates"); + if (configTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'configTemplates'.", id))); + } + String configTemplateMetadataName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplateMetadatas"); + if (configTemplateMetadataName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'configTemplateMetadatas'.", id))); + } + this.delete(resourceGroupName, configTemplateName, configTemplateMetadataName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String configTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplates"); + if (configTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'configTemplates'.", id))); + } + String configTemplateMetadataName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplateMetadatas"); + if (configTemplateMetadataName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'configTemplateMetadatas'.", id))); + } + this.delete(resourceGroupName, configTemplateName, configTemplateMetadataName, context); + } + + private ConfigTemplateMetadatasClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } + + public ConfigTemplateMetadataImpl define(String name) { + return new ConfigTemplateMetadataImpl(name, this.manager()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemaImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemaImpl.java new file mode 100644 index 0000000000000..08ac51931cb28 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemaImpl.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateSchemaInner; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateSchema; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateSchemaProperties; + +public final class ConfigTemplateSchemaImpl implements ConfigTemplateSchema { + private ConfigTemplateSchemaInner innerObject; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + ConfigTemplateSchemaImpl(ConfigTemplateSchemaInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ConfigTemplateSchemaProperties properties() { + return this.innerModel().properties(); + } + + public String eTag() { + return this.innerModel().eTag(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public ConfigTemplateSchemaInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemasClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemasClientImpl.java new file mode 100644 index 0000000000000..524362b46448b --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemasClientImpl.java @@ -0,0 +1,397 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateSchemasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateSchemaInner; +import com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateSchemaListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ConfigTemplateSchemasClient. + */ +public final class ConfigTemplateSchemasClientImpl implements ConfigTemplateSchemasClient { + /** + * The proxy service used to perform REST calls. + */ + private final ConfigTemplateSchemasService service; + + /** + * The service client containing this operation class. + */ + private final WorkloadOrchestrationManagementClientImpl client; + + /** + * Initializes an instance of ConfigTemplateSchemasClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ConfigTemplateSchemasClientImpl(WorkloadOrchestrationManagementClientImpl client) { + this.service = RestProxy.create(ConfigTemplateSchemasService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for WorkloadOrchestrationManagementClientConfigTemplateSchemas to be used + * by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "WorkloadOrchestrationManagementClientConfigTemplateSchemas") + public interface ConfigTemplateSchemasService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions/{configTemplateVersionName}/configTemplateSchemas/{configTemplateSchemaName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateVersionName") String configTemplateVersionName, + @PathParam("configTemplateSchemaName") String configTemplateSchemaName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions/{configTemplateVersionName}/configTemplateSchemas/{configTemplateSchemaName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateVersionName") String configTemplateVersionName, + @PathParam("configTemplateSchemaName") String configTemplateSchemaName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions/{configTemplateVersionName}/configTemplateSchemas") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByConfigTemplateVersion( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateVersionName") String configTemplateVersionName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions/{configTemplateVersionName}/configTemplateSchemas") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByConfigTemplateVersionSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateVersionName") String configTemplateVersionName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByConfigTemplateVersionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByConfigTemplateVersionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a ConfigTemplateSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param configTemplateSchemaName The name of the ConfigTemplateSchemaProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateSchema Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String configTemplateName, String configTemplateVersionName, String configTemplateSchemaName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateVersionName, + configTemplateSchemaName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a ConfigTemplateSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param configTemplateSchemaName The name of the ConfigTemplateSchemaProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateSchema Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, String configTemplateSchemaName) { + return getWithResponseAsync(resourceGroupName, configTemplateName, configTemplateVersionName, + configTemplateSchemaName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a ConfigTemplateSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param configTemplateSchemaName The name of the ConfigTemplateSchemaProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateSchema Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, String configTemplateSchemaName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, configTemplateName, configTemplateVersionName, configTemplateSchemaName, accept, + context); + } + + /** + * Get a ConfigTemplateSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param configTemplateSchemaName The name of the ConfigTemplateSchemaProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateSchema Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConfigTemplateSchemaInner get(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, String configTemplateSchemaName) { + return getWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, + configTemplateSchemaName, Context.NONE).getValue(); + } + + /** + * List by ConfigTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByConfigTemplateVersionSinglePageAsync( + String resourceGroupName, String configTemplateName, String configTemplateVersionName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByConfigTemplateVersion(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, configTemplateName, + configTemplateVersionName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List by ConfigTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByConfigTemplateVersionAsync(String resourceGroupName, + String configTemplateName, String configTemplateVersionName) { + return new PagedFlux<>(() -> listByConfigTemplateVersionSinglePageAsync(resourceGroupName, configTemplateName, + configTemplateVersionName), nextLink -> listByConfigTemplateVersionNextSinglePageAsync(nextLink)); + } + + /** + * List by ConfigTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByConfigTemplateVersionSinglePage(String resourceGroupName, + String configTemplateName, String configTemplateVersionName) { + final String accept = "application/json"; + Response res = service.listByConfigTemplateVersionSync( + this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, + configTemplateName, configTemplateVersionName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List by ConfigTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByConfigTemplateVersionSinglePage(String resourceGroupName, + String configTemplateName, String configTemplateVersionName, Context context) { + final String accept = "application/json"; + Response res = service.listByConfigTemplateVersionSync( + this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, + configTemplateName, configTemplateVersionName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List by ConfigTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByConfigTemplateVersion(String resourceGroupName, + String configTemplateName, String configTemplateVersionName) { + return new PagedIterable<>(() -> listByConfigTemplateVersionSinglePage(resourceGroupName, configTemplateName, + configTemplateVersionName), nextLink -> listByConfigTemplateVersionNextSinglePage(nextLink)); + } + + /** + * List by ConfigTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByConfigTemplateVersion(String resourceGroupName, + String configTemplateName, String configTemplateVersionName, Context context) { + return new PagedIterable<>( + () -> listByConfigTemplateVersionSinglePage(resourceGroupName, configTemplateName, + configTemplateVersionName, context), + nextLink -> listByConfigTemplateVersionNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByConfigTemplateVersionNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> service.listByConfigTemplateVersionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByConfigTemplateVersionNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByConfigTemplateVersionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByConfigTemplateVersionNextSinglePage(String nextLink, + Context context) { + final String accept = "application/json"; + Response res + = service.listByConfigTemplateVersionNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemasImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemasImpl.java new file mode 100644 index 0000000000000..94ba5f8452046 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemasImpl.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateSchemasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateSchemaInner; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateSchema; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateSchemas; + +public final class ConfigTemplateSchemasImpl implements ConfigTemplateSchemas { + private static final ClientLogger LOGGER = new ClientLogger(ConfigTemplateSchemasImpl.class); + + private final ConfigTemplateSchemasClient innerClient; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + public ConfigTemplateSchemasImpl(ConfigTemplateSchemasClient innerClient, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, String configTemplateSchemaName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, configTemplateSchemaName, + context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ConfigTemplateSchemaImpl(inner.getValue(), this.manager())); + } + + public ConfigTemplateSchema get(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, String configTemplateSchemaName) { + ConfigTemplateSchemaInner inner = this.serviceClient() + .get(resourceGroupName, configTemplateName, configTemplateVersionName, configTemplateSchemaName); + if (inner != null) { + return new ConfigTemplateSchemaImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable listByConfigTemplateVersion(String resourceGroupName, + String configTemplateName, String configTemplateVersionName) { + PagedIterable inner = this.serviceClient() + .listByConfigTemplateVersion(resourceGroupName, configTemplateName, configTemplateVersionName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConfigTemplateSchemaImpl(inner1, this.manager())); + } + + public PagedIterable listByConfigTemplateVersion(String resourceGroupName, + String configTemplateName, String configTemplateVersionName, Context context) { + PagedIterable inner = this.serviceClient() + .listByConfigTemplateVersion(resourceGroupName, configTemplateName, configTemplateVersionName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConfigTemplateSchemaImpl(inner1, this.manager())); + } + + private ConfigTemplateSchemasClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionImpl.java index cd7f836572286..cb190f88fcf06 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionImpl.java @@ -5,21 +5,17 @@ package com.azure.resourcemanager.workloadorchestration.implementation; import com.azure.core.management.SystemData; +import com.azure.core.util.Context; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersion; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; -public final class ConfigTemplateVersionImpl implements ConfigTemplateVersion { +public final class ConfigTemplateVersionImpl + implements ConfigTemplateVersion, ConfigTemplateVersion.Definition, ConfigTemplateVersion.Update { private ConfigTemplateVersionInner innerObject; private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; - ConfigTemplateVersionImpl(ConfigTemplateVersionInner innerObject, - com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - public String id() { return this.innerModel().id(); } @@ -44,6 +40,10 @@ public SystemData systemData() { return this.innerModel().systemData(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ConfigTemplateVersionInner innerModel() { return this.innerObject; } @@ -51,4 +51,91 @@ public ConfigTemplateVersionInner innerModel() { private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { return this.serviceManager; } + + private String resourceGroupName; + + private String configTemplateName; + + private String configTemplateVersionName; + + public ConfigTemplateVersionImpl withExistingConfigTemplate(String resourceGroupName, String configTemplateName) { + this.resourceGroupName = resourceGroupName; + this.configTemplateName = configTemplateName; + return this; + } + + public ConfigTemplateVersion create() { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateVersions() + .createOrUpdate(resourceGroupName, configTemplateName, configTemplateVersionName, this.innerModel(), + Context.NONE); + return this; + } + + public ConfigTemplateVersion create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateVersions() + .createOrUpdate(resourceGroupName, configTemplateName, configTemplateVersionName, this.innerModel(), + context); + return this; + } + + ConfigTemplateVersionImpl(String name, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = new ConfigTemplateVersionInner(); + this.serviceManager = serviceManager; + this.configTemplateVersionName = name; + } + + public ConfigTemplateVersionImpl update() { + return this; + } + + public ConfigTemplateVersion apply() { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateVersions() + .updateWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, this.innerModel(), + Context.NONE) + .getValue(); + return this; + } + + public ConfigTemplateVersion apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateVersions() + .updateWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, this.innerModel(), + context) + .getValue(); + return this; + } + + ConfigTemplateVersionImpl(ConfigTemplateVersionInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.configTemplateName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "configTemplates"); + this.configTemplateVersionName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "versions"); + } + + public ConfigTemplateVersion refresh() { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateVersions() + .getWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, Context.NONE) + .getValue(); + return this; + } + + public ConfigTemplateVersion refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getConfigTemplateVersions() + .getWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, context) + .getValue(); + return this; + } + + public ConfigTemplateVersionImpl withProperties(ConfigTemplateVersionProperties properties) { + this.innerModel().withProperties(properties); + return this; + } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsClientImpl.java index 1cd219da74266..223068f3884b6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsClientImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsClientImpl.java @@ -4,13 +4,17 @@ package com.azure.resourcemanager.workloadorchestration.implementation; +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; import com.azure.core.annotation.HeaderParam; import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceInterface; @@ -23,11 +27,17 @@ import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateVersionListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** @@ -84,6 +94,70 @@ Response getSync(@HostParam("endpoint") String endpo @PathParam("configTemplateVersionName") String configTemplateVersionName, @HeaderParam("Accept") String accept, Context context); + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions/{configTemplateVersionName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateVersionName") String configTemplateVersionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConfigTemplateVersionInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions/{configTemplateVersionName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateVersionName") String configTemplateVersionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConfigTemplateVersionInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions/{configTemplateVersionName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateVersionName") String configTemplateVersionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConfigTemplateVersionInner properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions/{configTemplateVersionName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateVersionName") String configTemplateVersionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConfigTemplateVersionInner properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions/{configTemplateVersionName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateVersionName") String configTemplateVersionName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions/{configTemplateVersionName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, + @PathParam("configTemplateVersionName") String configTemplateVersionName, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/versions") @ExpectedResponses({ 200 }) @@ -199,6 +273,453 @@ public ConfigTemplateVersionInner get(String resourceGroupName, String configTem .getValue(); } + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String configTemplateName, String configTemplateVersionName, ConfigTemplateVersionInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateVersionName, + contentType, accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateVersionName, + contentType, accept, resource, Context.NONE); + } + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateVersionName, + contentType, accept, resource, context); + } + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ConfigTemplateVersionInner> beginCreateOrUpdateAsync( + String resourceGroupName, String configTemplateName, String configTemplateVersionName, + ConfigTemplateVersionInner resource) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, configTemplateName, + configTemplateVersionName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ConfigTemplateVersionInner.class, ConfigTemplateVersionInner.class, + this.client.getContext()); + } + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ConfigTemplateVersionInner> beginCreateOrUpdate( + String resourceGroupName, String configTemplateName, String configTemplateVersionName, + ConfigTemplateVersionInner resource) { + Response response + = createOrUpdateWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, resource); + return this.client.getLroResult(response, + ConfigTemplateVersionInner.class, ConfigTemplateVersionInner.class, Context.NONE); + } + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ConfigTemplateVersionInner> beginCreateOrUpdate( + String resourceGroupName, String configTemplateName, String configTemplateVersionName, + ConfigTemplateVersionInner resource, Context context) { + Response response = createOrUpdateWithResponse(resourceGroupName, configTemplateName, + configTemplateVersionName, resource, context); + return this.client.getLroResult(response, + ConfigTemplateVersionInner.class, ConfigTemplateVersionInner.class, context); + } + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, configTemplateName, configTemplateVersionName, resource) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConfigTemplateVersionInner createOrUpdate(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner resource) { + return beginCreateOrUpdate(resourceGroupName, configTemplateName, configTemplateVersionName, resource) + .getFinalResult(); + } + + /** + * Create or update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConfigTemplateVersionInner createOrUpdate(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, configTemplateName, configTemplateVersionName, resource, context) + .getFinalResult(); + } + + /** + * Update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String configTemplateName, String configTemplateVersionName, ConfigTemplateVersionInner properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateVersionName, + contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner properties) { + return updateWithResponseAsync(resourceGroupName, configTemplateName, configTemplateVersionName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateVersionName, + contentType, accept, properties, context); + } + + /** + * Update a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return config Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConfigTemplateVersionInner update(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, ConfigTemplateVersionInner properties) { + return updateWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, properties, + Context.NONE).getValue(); + } + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String configTemplateName, String configTemplateVersionName) { + return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateVersionName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateVersionName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateVersionName, + Context.NONE); + } + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, configTemplateVersionName, context); + } + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String configTemplateName, + String configTemplateVersionName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, configTemplateName, configTemplateVersionName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String configTemplateName, + String configTemplateVersionName) { + Response response + = deleteWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, Context context) { + Response response + = deleteWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String configTemplateName, + String configTemplateVersionName) { + return beginDeleteAsync(resourceGroupName, configTemplateName, configTemplateVersionName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String configTemplateName, String configTemplateVersionName) { + beginDelete(resourceGroupName, configTemplateName, configTemplateVersionName).getFinalResult(); + } + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String configTemplateName, String configTemplateVersionName, + Context context) { + beginDelete(resourceGroupName, configTemplateName, configTemplateVersionName, context).getFinalResult(); + } + /** * List Config Template Version Resources. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsImpl.java index 70d3cc6202e70..7a86eaadaf527 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsImpl.java @@ -46,6 +46,15 @@ public ConfigTemplateVersion get(String resourceGroupName, String configTemplate } } + public void delete(String resourceGroupName, String configTemplateName, String configTemplateVersionName) { + this.serviceClient().delete(resourceGroupName, configTemplateName, configTemplateVersionName); + } + + public void delete(String resourceGroupName, String configTemplateName, String configTemplateVersionName, + Context context) { + this.serviceClient().delete(resourceGroupName, configTemplateName, configTemplateVersionName, context); + } + public PagedIterable listByConfigTemplate(String resourceGroupName, String configTemplateName) { PagedIterable inner @@ -60,6 +69,83 @@ public PagedIterable listByConfigTemplate(String resource return ResourceManagerUtils.mapPage(inner, inner1 -> new ConfigTemplateVersionImpl(inner1, this.manager())); } + public ConfigTemplateVersion getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String configTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplates"); + if (configTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'configTemplates'.", id))); + } + String configTemplateVersionName = ResourceManagerUtils.getValueFromIdByName(id, "versions"); + if (configTemplateVersionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id))); + } + return this.getWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, Context.NONE) + .getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String configTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplates"); + if (configTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'configTemplates'.", id))); + } + String configTemplateVersionName = ResourceManagerUtils.getValueFromIdByName(id, "versions"); + if (configTemplateVersionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id))); + } + return this.getWithResponse(resourceGroupName, configTemplateName, configTemplateVersionName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String configTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplates"); + if (configTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'configTemplates'.", id))); + } + String configTemplateVersionName = ResourceManagerUtils.getValueFromIdByName(id, "versions"); + if (configTemplateVersionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id))); + } + this.delete(resourceGroupName, configTemplateName, configTemplateVersionName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String configTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "configTemplates"); + if (configTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'configTemplates'.", id))); + } + String configTemplateVersionName = ResourceManagerUtils.getValueFromIdByName(id, "versions"); + if (configTemplateVersionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id))); + } + this.delete(resourceGroupName, configTemplateName, configTemplateVersionName, context); + } + private ConfigTemplateVersionsClient serviceClient() { return this.innerClient; } @@ -67,4 +153,8 @@ private ConfigTemplateVersionsClient serviceClient() { private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { return this.serviceManager; } + + public ConfigTemplateVersionImpl define(String name) { + return new ConfigTemplateVersionImpl(name, this.manager()); + } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesClientImpl.java index d287d2052d4ac..fb32f882c45e0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesClientImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesClientImpl.java @@ -41,6 +41,7 @@ import com.azure.resourcemanager.workloadorchestration.fluent.models.RemoveVersionResponseInner; import com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateListResult; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateUpdate; +import com.azure.resourcemanager.workloadorchestration.models.HierarchySelector; import com.azure.resourcemanager.workloadorchestration.models.VersionParameter; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -138,6 +139,46 @@ Response updateSync(@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, @BodyParam("application/json") ConfigTemplateUpdate properties, Context context); + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/linkToHierarchies") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> linkToHierarchies(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") HierarchySelector body, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/linkToHierarchies") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response linkToHierarchiesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") HierarchySelector body, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/unLinkFromHierarchies") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> unLinkFromHierarchies(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") HierarchySelector body, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/unLinkFromHierarchies") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response unLinkFromHierarchiesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configTemplateName") String configTemplateName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") HierarchySelector body, Context context); + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/configTemplates/{configTemplateName}/createVersion") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) @@ -592,6 +633,343 @@ public ConfigTemplateInner update(String resourceGroupName, String configTemplat return updateWithResponse(resourceGroupName, configTemplateName, properties, Context.NONE).getValue(); } + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> linkToHierarchiesWithResponseAsync(String resourceGroupName, + String configTemplateName, HierarchySelector body) { + final String contentType = "application/json"; + return FluxUtil + .withContext(context -> service.linkToHierarchies(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, contentType, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response linkToHierarchiesWithResponse(String resourceGroupName, String configTemplateName, + HierarchySelector body) { + final String contentType = "application/json"; + return service.linkToHierarchiesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, contentType, body, Context.NONE); + } + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response linkToHierarchiesWithResponse(String resourceGroupName, String configTemplateName, + HierarchySelector body, Context context) { + final String contentType = "application/json"; + return service.linkToHierarchiesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, contentType, body, context); + } + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginLinkToHierarchiesAsync(String resourceGroupName, + String configTemplateName, HierarchySelector body) { + Mono>> mono + = linkToHierarchiesWithResponseAsync(resourceGroupName, configTemplateName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginLinkToHierarchies(String resourceGroupName, + String configTemplateName, HierarchySelector body) { + Response response = linkToHierarchiesWithResponse(resourceGroupName, configTemplateName, body); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginLinkToHierarchies(String resourceGroupName, + String configTemplateName, HierarchySelector body, Context context) { + Response response + = linkToHierarchiesWithResponse(resourceGroupName, configTemplateName, body, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono linkToHierarchiesAsync(String resourceGroupName, String configTemplateName, + HierarchySelector body) { + return beginLinkToHierarchiesAsync(resourceGroupName, configTemplateName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void linkToHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body) { + beginLinkToHierarchies(resourceGroupName, configTemplateName, body).getFinalResult(); + } + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void linkToHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body, + Context context) { + beginLinkToHierarchies(resourceGroupName, configTemplateName, body, context).getFinalResult(); + } + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> unLinkFromHierarchiesWithResponseAsync(String resourceGroupName, + String configTemplateName, HierarchySelector body) { + final String contentType = "application/json"; + return FluxUtil + .withContext( + context -> service.unLinkFromHierarchies(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, contentType, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response unLinkFromHierarchiesWithResponse(String resourceGroupName, String configTemplateName, + HierarchySelector body) { + final String contentType = "application/json"; + return service.unLinkFromHierarchiesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, contentType, body, Context.NONE); + } + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response unLinkFromHierarchiesWithResponse(String resourceGroupName, String configTemplateName, + HierarchySelector body, Context context) { + final String contentType = "application/json"; + return service.unLinkFromHierarchiesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, configTemplateName, contentType, body, context); + } + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginUnLinkFromHierarchiesAsync(String resourceGroupName, + String configTemplateName, HierarchySelector body) { + Mono>> mono + = unLinkFromHierarchiesWithResponseAsync(resourceGroupName, configTemplateName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginUnLinkFromHierarchies(String resourceGroupName, + String configTemplateName, HierarchySelector body) { + Response response = unLinkFromHierarchiesWithResponse(resourceGroupName, configTemplateName, body); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginUnLinkFromHierarchies(String resourceGroupName, + String configTemplateName, HierarchySelector body, Context context) { + Response response + = unLinkFromHierarchiesWithResponse(resourceGroupName, configTemplateName, body, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono unLinkFromHierarchiesAsync(String resourceGroupName, String configTemplateName, + HierarchySelector body) { + return beginUnLinkFromHierarchiesAsync(resourceGroupName, configTemplateName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void unLinkFromHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body) { + beginUnLinkFromHierarchies(resourceGroupName, configTemplateName, body).getFinalResult(); + } + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void unLinkFromHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body, + Context context) { + beginUnLinkFromHierarchies(resourceGroupName, configTemplateName, body, context).getFinalResult(); + } + /** * Create or update a Config Template Version Resource with the specified UpdateType. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesImpl.java index b73bc7b4981df..a67ee3e7daff0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesImpl.java @@ -17,6 +17,7 @@ import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplate; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersion; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplates; +import com.azure.resourcemanager.workloadorchestration.models.HierarchySelector; import com.azure.resourcemanager.workloadorchestration.models.RemoveVersionResponse; import com.azure.resourcemanager.workloadorchestration.models.VersionParameter; @@ -50,6 +51,24 @@ public ConfigTemplate getByResourceGroup(String resourceGroupName, String config } } + public void linkToHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body) { + this.serviceClient().linkToHierarchies(resourceGroupName, configTemplateName, body); + } + + public void linkToHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body, + Context context) { + this.serviceClient().linkToHierarchies(resourceGroupName, configTemplateName, body, context); + } + + public void unLinkFromHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body) { + this.serviceClient().unLinkFromHierarchies(resourceGroupName, configTemplateName, body); + } + + public void unLinkFromHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body, + Context context) { + this.serviceClient().unLinkFromHierarchies(resourceGroupName, configTemplateName, body, context); + } + public ConfigTemplateVersion createVersion(String resourceGroupName, String configTemplateName, ConfigTemplateVersionWithUpdateTypeInner body) { ConfigTemplateVersionInner inner diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataImpl.java new file mode 100644 index 0000000000000..7267ad928b8e8 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataInner; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadata; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataProperties; + +public final class HierarchyConfigurationMetadataImpl implements HierarchyConfigurationMetadata { + private HierarchyConfigurationMetadataInner innerObject; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + HierarchyConfigurationMetadataImpl(HierarchyConfigurationMetadataInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public HierarchyConfigurationMetadataProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public HierarchyConfigurationMetadataInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionImpl.java new file mode 100644 index 0000000000000..96c533ae87434 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataVersionInner; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataVersion; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataVersionProperties; + +public final class HierarchyConfigurationMetadataVersionImpl implements HierarchyConfigurationMetadataVersion { + private HierarchyConfigurationMetadataVersionInner innerObject; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + HierarchyConfigurationMetadataVersionImpl(HierarchyConfigurationMetadataVersionInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public HierarchyConfigurationMetadataVersionProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public HierarchyConfigurationMetadataVersionInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionsClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionsClientImpl.java new file mode 100644 index 0000000000000..b437a981654b9 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionsClientImpl.java @@ -0,0 +1,387 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadataVersionsClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataVersionInner; +import com.azure.resourcemanager.workloadorchestration.implementation.models.HierarchyConfigurationMetadataVersionListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * HierarchyConfigurationMetadataVersionsClient. + */ +public final class HierarchyConfigurationMetadataVersionsClientImpl + implements HierarchyConfigurationMetadataVersionsClient { + /** + * The proxy service used to perform REST calls. + */ + private final HierarchyConfigurationMetadataVersionsService service; + + /** + * The service client containing this operation class. + */ + private final WorkloadOrchestrationManagementClientImpl client; + + /** + * Initializes an instance of HierarchyConfigurationMetadataVersionsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + HierarchyConfigurationMetadataVersionsClientImpl(WorkloadOrchestrationManagementClientImpl client) { + this.service = RestProxy.create(HierarchyConfigurationMetadataVersionsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for + * WorkloadOrchestrationManagementClientHierarchyConfigurationMetadataVersions to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "WorkloadOrchestrationManagementClientHierarchyConfigurationMetadataVersions") + public interface HierarchyConfigurationMetadataVersionsService { + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/hierarchyConfigurationMetadatas/{hierarchyConfigurationMetadataName}/versions/{hierarchyConfigurationMetadataVersionName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("hierarchyConfigurationMetadataName") String hierarchyConfigurationMetadataName, + @PathParam("hierarchyConfigurationMetadataVersionName") String hierarchyConfigurationMetadataVersionName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/hierarchyConfigurationMetadatas/{hierarchyConfigurationMetadataName}/versions/{hierarchyConfigurationMetadataVersionName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("hierarchyConfigurationMetadataName") String hierarchyConfigurationMetadataName, + @PathParam("hierarchyConfigurationMetadataVersionName") String hierarchyConfigurationMetadataVersionName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/hierarchyConfigurationMetadatas/{hierarchyConfigurationMetadataName}/versions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByParent( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("hierarchyConfigurationMetadataName") String hierarchyConfigurationMetadataName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/hierarchyConfigurationMetadatas/{hierarchyConfigurationMetadataName}/versions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByParentSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("hierarchyConfigurationMetadataName") String hierarchyConfigurationMetadataName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByParentNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByParentNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a Hierarchy Configuration Metadata Version resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param hierarchyConfigurationMetadataVersionName Name of the hierarchy configuration metadata version. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata Version resource along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceUri, + String hierarchyConfigurationMetadataName, String hierarchyConfigurationMetadataVersionName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + hierarchyConfigurationMetadataName, hierarchyConfigurationMetadataVersionName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a Hierarchy Configuration Metadata Version resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param hierarchyConfigurationMetadataVersionName Name of the hierarchy configuration metadata version. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata Version resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceUri, + String hierarchyConfigurationMetadataName, String hierarchyConfigurationMetadataVersionName) { + return getWithResponseAsync(resourceUri, hierarchyConfigurationMetadataName, + hierarchyConfigurationMetadataVersionName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a Hierarchy Configuration Metadata Version resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param hierarchyConfigurationMetadataVersionName Name of the hierarchy configuration metadata version. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata Version resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceUri, + String hierarchyConfigurationMetadataName, String hierarchyConfigurationMetadataVersionName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + hierarchyConfigurationMetadataName, hierarchyConfigurationMetadataVersionName, accept, context); + } + + /** + * Get a Hierarchy Configuration Metadata Version resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param hierarchyConfigurationMetadataVersionName Name of the hierarchy configuration metadata version. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata Version resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public HierarchyConfigurationMetadataVersionInner get(String resourceUri, String hierarchyConfigurationMetadataName, + String hierarchyConfigurationMetadataVersionName) { + return getWithResponse(resourceUri, hierarchyConfigurationMetadataName, + hierarchyConfigurationMetadataVersionName, Context.NONE).getValue(); + } + + /** + * List Hierarchy Configuration Metadata Version resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation along with {@link PagedResponse} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByParentSinglePageAsync(String resourceUri, String hierarchyConfigurationMetadataName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByParent(this.client.getEndpoint(), this.client.getApiVersion(), + resourceUri, hierarchyConfigurationMetadataName, accept, context)) + .>map( + res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List Hierarchy Configuration Metadata Version resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByParentAsync(String resourceUri, + String hierarchyConfigurationMetadataName) { + return new PagedFlux<>(() -> listByParentSinglePageAsync(resourceUri, hierarchyConfigurationMetadataName), + nextLink -> listByParentNextSinglePageAsync(nextLink)); + } + + /** + * List Hierarchy Configuration Metadata Version resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentSinglePage(String resourceUri, + String hierarchyConfigurationMetadataName) { + final String accept = "application/json"; + Response res + = service.listByParentSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + hierarchyConfigurationMetadataName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List Hierarchy Configuration Metadata Version resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentSinglePage(String resourceUri, + String hierarchyConfigurationMetadataName, Context context) { + final String accept = "application/json"; + Response res + = service.listByParentSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + hierarchyConfigurationMetadataName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List Hierarchy Configuration Metadata Version resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByParent(String resourceUri, + String hierarchyConfigurationMetadataName) { + return new PagedIterable<>(() -> listByParentSinglePage(resourceUri, hierarchyConfigurationMetadataName), + nextLink -> listByParentNextSinglePage(nextLink)); + } + + /** + * List Hierarchy Configuration Metadata Version resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByParent(String resourceUri, + String hierarchyConfigurationMetadataName, Context context) { + return new PagedIterable<>( + () -> listByParentSinglePage(resourceUri, hierarchyConfigurationMetadataName, context), + nextLink -> listByParentNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation along with {@link PagedResponse} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByParentNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByParentNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByParentNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentNextSinglePage(String nextLink, + Context context) { + final String accept = "application/json"; + Response res + = service.listByParentNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionsImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionsImpl.java new file mode 100644 index 0000000000000..c43918ede2e24 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionsImpl.java @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadataVersionsClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataVersionInner; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataVersion; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataVersions; + +public final class HierarchyConfigurationMetadataVersionsImpl implements HierarchyConfigurationMetadataVersions { + private static final ClientLogger LOGGER = new ClientLogger(HierarchyConfigurationMetadataVersionsImpl.class); + + private final HierarchyConfigurationMetadataVersionsClient innerClient; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + public HierarchyConfigurationMetadataVersionsImpl(HierarchyConfigurationMetadataVersionsClient innerClient, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceUri, + String hierarchyConfigurationMetadataName, String hierarchyConfigurationMetadataVersionName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceUri, hierarchyConfigurationMetadataName, hierarchyConfigurationMetadataVersionName, + context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new HierarchyConfigurationMetadataVersionImpl(inner.getValue(), this.manager())); + } + + public HierarchyConfigurationMetadataVersion get(String resourceUri, String hierarchyConfigurationMetadataName, + String hierarchyConfigurationMetadataVersionName) { + HierarchyConfigurationMetadataVersionInner inner = this.serviceClient() + .get(resourceUri, hierarchyConfigurationMetadataName, hierarchyConfigurationMetadataVersionName); + if (inner != null) { + return new HierarchyConfigurationMetadataVersionImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable listByParent(String resourceUri, + String hierarchyConfigurationMetadataName) { + PagedIterable inner + = this.serviceClient().listByParent(resourceUri, hierarchyConfigurationMetadataName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new HierarchyConfigurationMetadataVersionImpl(inner1, this.manager())); + } + + public PagedIterable listByParent(String resourceUri, + String hierarchyConfigurationMetadataName, Context context) { + PagedIterable inner + = this.serviceClient().listByParent(resourceUri, hierarchyConfigurationMetadataName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new HierarchyConfigurationMetadataVersionImpl(inner1, this.manager())); + } + + private HierarchyConfigurationMetadataVersionsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadatasClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadatasClientImpl.java new file mode 100644 index 0000000000000..8dd3038d71a41 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadatasClientImpl.java @@ -0,0 +1,357 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadatasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataInner; +import com.azure.resourcemanager.workloadorchestration.implementation.models.HierarchyConfigurationMetadataListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in HierarchyConfigurationMetadatasClient. + */ +public final class HierarchyConfigurationMetadatasClientImpl implements HierarchyConfigurationMetadatasClient { + /** + * The proxy service used to perform REST calls. + */ + private final HierarchyConfigurationMetadatasService service; + + /** + * The service client containing this operation class. + */ + private final WorkloadOrchestrationManagementClientImpl client; + + /** + * Initializes an instance of HierarchyConfigurationMetadatasClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + HierarchyConfigurationMetadatasClientImpl(WorkloadOrchestrationManagementClientImpl client) { + this.service = RestProxy.create(HierarchyConfigurationMetadatasService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for WorkloadOrchestrationManagementClientHierarchyConfigurationMetadatas + * to be used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "WorkloadOrchestrationManagementClientHierarchyConfigurationMetadatas") + public interface HierarchyConfigurationMetadatasService { + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/hierarchyConfigurationMetadatas/{hierarchyConfigurationMetadataName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("hierarchyConfigurationMetadataName") String hierarchyConfigurationMetadataName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/hierarchyConfigurationMetadatas/{hierarchyConfigurationMetadataName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("hierarchyConfigurationMetadataName") String hierarchyConfigurationMetadataName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/hierarchyConfigurationMetadatas") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByParent(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/hierarchyConfigurationMetadatas") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByParentSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByParentNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByParentNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a Hierarchy Configuration Metadata resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceUri, + String hierarchyConfigurationMetadataName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + hierarchyConfigurationMetadataName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a Hierarchy Configuration Metadata resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceUri, + String hierarchyConfigurationMetadataName) { + return getWithResponseAsync(resourceUri, hierarchyConfigurationMetadataName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a Hierarchy Configuration Metadata resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceUri, + String hierarchyConfigurationMetadataName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + hierarchyConfigurationMetadataName, accept, context); + } + + /** + * Get a Hierarchy Configuration Metadata resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public HierarchyConfigurationMetadataInner get(String resourceUri, String hierarchyConfigurationMetadataName) { + return getWithResponse(resourceUri, hierarchyConfigurationMetadataName, Context.NONE).getValue(); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByParentSinglePageAsync(String resourceUri) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByParent(this.client.getEndpoint(), this.client.getApiVersion(), + resourceUri, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByParentAsync(String resourceUri) { + return new PagedFlux<>(() -> listByParentSinglePageAsync(resourceUri), + nextLink -> listByParentNextSinglePageAsync(nextLink)); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentSinglePage(String resourceUri) { + final String accept = "application/json"; + Response res = service.listByParentSync(this.client.getEndpoint(), + this.client.getApiVersion(), resourceUri, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentSinglePage(String resourceUri, + Context context) { + final String accept = "application/json"; + Response res = service.listByParentSync(this.client.getEndpoint(), + this.client.getApiVersion(), resourceUri, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByParent(String resourceUri) { + return new PagedIterable<>(() -> listByParentSinglePage(resourceUri), + nextLink -> listByParentNextSinglePage(nextLink)); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByParent(String resourceUri, Context context) { + return new PagedIterable<>(() -> listByParentSinglePage(resourceUri, context), + nextLink -> listByParentNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByParentNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByParentNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByParentNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentNextSinglePage(String nextLink, + Context context) { + final String accept = "application/json"; + Response res + = service.listByParentNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadatasImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadatasImpl.java new file mode 100644 index 0000000000000..e3ffdfb7c1197 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadatasImpl.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadatasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataInner; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadata; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadatas; + +public final class HierarchyConfigurationMetadatasImpl implements HierarchyConfigurationMetadatas { + private static final ClientLogger LOGGER = new ClientLogger(HierarchyConfigurationMetadatasImpl.class); + + private final HierarchyConfigurationMetadatasClient innerClient; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + public HierarchyConfigurationMetadatasImpl(HierarchyConfigurationMetadatasClient innerClient, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceUri, + String hierarchyConfigurationMetadataName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceUri, hierarchyConfigurationMetadataName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new HierarchyConfigurationMetadataImpl(inner.getValue(), this.manager())); + } + + public HierarchyConfigurationMetadata get(String resourceUri, String hierarchyConfigurationMetadataName) { + HierarchyConfigurationMetadataInner inner + = this.serviceClient().get(resourceUri, hierarchyConfigurationMetadataName); + if (inner != null) { + return new HierarchyConfigurationMetadataImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable listByParent(String resourceUri) { + PagedIterable inner = this.serviceClient().listByParent(resourceUri); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new HierarchyConfigurationMetadataImpl(inner1, this.manager())); + } + + public PagedIterable listByParent(String resourceUri, Context context) { + PagedIterable inner + = this.serviceClient().listByParent(resourceUri, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new HierarchyConfigurationMetadataImpl(inner1, this.manager())); + } + + private HierarchyConfigurationMetadatasClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferenceImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferenceImpl.java index fdfd40900f813..d42a2a0ef26d1 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferenceImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferenceImpl.java @@ -5,21 +5,16 @@ package com.azure.resourcemanager.workloadorchestration.implementation; import com.azure.core.management.SystemData; +import com.azure.core.util.Context; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaReferenceInner; import com.azure.resourcemanager.workloadorchestration.models.SchemaReference; import com.azure.resourcemanager.workloadorchestration.models.SchemaReferenceProperties; -public final class SchemaReferenceImpl implements SchemaReference { +public final class SchemaReferenceImpl implements SchemaReference, SchemaReference.Definition, SchemaReference.Update { private SchemaReferenceInner innerObject; private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; - SchemaReferenceImpl(SchemaReferenceInner innerObject, - com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - public String id() { return this.innerModel().id(); } @@ -51,4 +46,85 @@ public SchemaReferenceInner innerModel() { private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { return this.serviceManager; } + + private String resourceUri; + + private String schemaReferenceName; + + public SchemaReferenceImpl withExistingResourceUri(String resourceUri) { + this.resourceUri = resourceUri; + return this; + } + + public SchemaReference create() { + this.innerObject = serviceManager.serviceClient() + .getSchemaReferences() + .createOrUpdate(resourceUri, schemaReferenceName, this.innerModel(), Context.NONE); + return this; + } + + public SchemaReference create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSchemaReferences() + .createOrUpdate(resourceUri, schemaReferenceName, this.innerModel(), context); + return this; + } + + SchemaReferenceImpl(String name, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = new SchemaReferenceInner(); + this.serviceManager = serviceManager; + this.schemaReferenceName = name; + } + + public SchemaReferenceImpl update() { + return this; + } + + public SchemaReference apply() { + this.innerObject = serviceManager.serviceClient() + .getSchemaReferences() + .updateWithResponse(resourceUri, schemaReferenceName, this.innerModel(), Context.NONE) + .getValue(); + return this; + } + + public SchemaReference apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSchemaReferences() + .updateWithResponse(resourceUri, schemaReferenceName, this.innerModel(), context) + .getValue(); + return this; + } + + SchemaReferenceImpl(SchemaReferenceInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(), + "/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}", "resourceUri"); + this.schemaReferenceName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(), + "/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}", "schemaReferenceName"); + } + + public SchemaReference refresh() { + this.innerObject = serviceManager.serviceClient() + .getSchemaReferences() + .getWithResponse(resourceUri, schemaReferenceName, Context.NONE) + .getValue(); + return this; + } + + public SchemaReference refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSchemaReferences() + .getWithResponse(resourceUri, schemaReferenceName, context) + .getValue(); + return this; + } + + public SchemaReferenceImpl withProperties(SchemaReferenceProperties properties) { + this.innerModel().withProperties(properties); + return this; + } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesClientImpl.java index 2fc49d01bf8e0..4cbaf426b8e13 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesClientImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesClientImpl.java @@ -4,13 +4,17 @@ package com.azure.resourcemanager.workloadorchestration.implementation; +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; import com.azure.core.annotation.HeaderParam; import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceInterface; @@ -23,11 +27,17 @@ import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaReferenceInner; import com.azure.resourcemanager.workloadorchestration.implementation.models.SchemaReferenceListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** @@ -82,6 +92,64 @@ Response getSync(@HostParam("endpoint") String endpoint, @PathParam("schemaReferenceName") String schemaReferenceName, @HeaderParam("Accept") String accept, Context context); + @Put("/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("schemaReferenceName") String schemaReferenceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SchemaReferenceInner resource, Context context); + + @Put("/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("schemaReferenceName") String schemaReferenceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SchemaReferenceInner resource, Context context); + + @Patch("/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("schemaReferenceName") String schemaReferenceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SchemaReferenceInner properties, Context context); + + @Patch("/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("schemaReferenceName") String schemaReferenceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SchemaReferenceInner properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("schemaReferenceName") String schemaReferenceName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("schemaReferenceName") String schemaReferenceName, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/{resourceUri}/providers/Microsoft.Edge/schemaReferences") @ExpectedResponses({ 200 }) @@ -185,6 +253,405 @@ public SchemaReferenceInner get(String resourceUri, String schemaReferenceName) return getWithResponse(resourceUri, schemaReferenceName, Context.NONE).getValue(); } + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceUri, + String schemaReferenceName, SchemaReferenceInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + resourceUri, schemaReferenceName, contentType, accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceUri, String schemaReferenceName, + SchemaReferenceInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + schemaReferenceName, contentType, accept, resource, Context.NONE); + } + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceUri, String schemaReferenceName, + SchemaReferenceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + schemaReferenceName, contentType, accept, resource, context); + } + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SchemaReferenceInner> + beginCreateOrUpdateAsync(String resourceUri, String schemaReferenceName, SchemaReferenceInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceUri, schemaReferenceName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SchemaReferenceInner.class, SchemaReferenceInner.class, this.client.getContext()); + } + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SchemaReferenceInner> beginCreateOrUpdate(String resourceUri, + String schemaReferenceName, SchemaReferenceInner resource) { + Response response = createOrUpdateWithResponse(resourceUri, schemaReferenceName, resource); + return this.client.getLroResult(response, + SchemaReferenceInner.class, SchemaReferenceInner.class, Context.NONE); + } + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SchemaReferenceInner> beginCreateOrUpdate(String resourceUri, + String schemaReferenceName, SchemaReferenceInner resource, Context context) { + Response response = createOrUpdateWithResponse(resourceUri, schemaReferenceName, resource, context); + return this.client.getLroResult(response, + SchemaReferenceInner.class, SchemaReferenceInner.class, context); + } + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceUri, String schemaReferenceName, + SchemaReferenceInner resource) { + return beginCreateOrUpdateAsync(resourceUri, schemaReferenceName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SchemaReferenceInner createOrUpdate(String resourceUri, String schemaReferenceName, + SchemaReferenceInner resource) { + return beginCreateOrUpdate(resourceUri, schemaReferenceName, resource).getFinalResult(); + } + + /** + * Create or update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SchemaReferenceInner createOrUpdate(String resourceUri, String schemaReferenceName, + SchemaReferenceInner resource, Context context) { + return beginCreateOrUpdate(resourceUri, schemaReferenceName, resource, context).getFinalResult(); + } + + /** + * update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceUri, String schemaReferenceName, + SchemaReferenceInner properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + schemaReferenceName, contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceUri, String schemaReferenceName, + SchemaReferenceInner properties) { + return updateWithResponseAsync(resourceUri, schemaReferenceName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceUri, String schemaReferenceName, + SchemaReferenceInner properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + schemaReferenceName, contentType, accept, properties, context); + } + + /** + * update a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return schema Reference Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SchemaReferenceInner update(String resourceUri, String schemaReferenceName, + SchemaReferenceInner properties) { + return updateWithResponse(resourceUri, schemaReferenceName, properties, Context.NONE).getValue(); + } + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceUri, String schemaReferenceName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + schemaReferenceName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceUri, String schemaReferenceName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + schemaReferenceName, Context.NONE); + } + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceUri, String schemaReferenceName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + schemaReferenceName, context); + } + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceUri, String schemaReferenceName) { + Mono>> mono = deleteWithResponseAsync(resourceUri, schemaReferenceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceUri, String schemaReferenceName) { + Response response = deleteWithResponse(resourceUri, schemaReferenceName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceUri, String schemaReferenceName, + Context context) { + Response response = deleteWithResponse(resourceUri, schemaReferenceName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceUri, String schemaReferenceName) { + return beginDeleteAsync(resourceUri, schemaReferenceName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceUri, String schemaReferenceName) { + beginDelete(resourceUri, schemaReferenceName).getFinalResult(); + } + + /** + * Delete a Schema Reference Resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param schemaReferenceName The name of the SchemaReference. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceUri, String schemaReferenceName, Context context) { + beginDelete(resourceUri, schemaReferenceName, context).getFinalResult(); + } + /** * List by specified resource group. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesImpl.java index 3b4475b80b6bc..09ac72767dff4 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesImpl.java @@ -43,6 +43,14 @@ public SchemaReference get(String resourceUri, String schemaReferenceName) { } } + public void deleteByResourceGroup(String resourceUri, String schemaReferenceName) { + this.serviceClient().delete(resourceUri, schemaReferenceName); + } + + public void delete(String resourceUri, String schemaReferenceName, Context context) { + this.serviceClient().delete(resourceUri, schemaReferenceName, context); + } + public PagedIterable listByResourceGroup(String resourceUri) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceUri); return ResourceManagerUtils.mapPage(inner, inner1 -> new SchemaReferenceImpl(inner1, this.manager())); @@ -53,6 +61,70 @@ public PagedIterable listByResourceGroup(String resourceUri, Co return ResourceManagerUtils.mapPage(inner, inner1 -> new SchemaReferenceImpl(inner1, this.manager())); } + public SchemaReference getById(String id) { + String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id, + "/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}", "resourceUri"); + if (resourceUri == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id))); + } + String schemaReferenceName = ResourceManagerUtils.getValueFromIdByParameterName(id, + "/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}", "schemaReferenceName"); + if (schemaReferenceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'schemaReferences'.", id))); + } + return this.getWithResponse(resourceUri, schemaReferenceName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id, + "/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}", "resourceUri"); + if (resourceUri == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id))); + } + String schemaReferenceName = ResourceManagerUtils.getValueFromIdByParameterName(id, + "/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}", "schemaReferenceName"); + if (schemaReferenceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'schemaReferences'.", id))); + } + return this.getWithResponse(resourceUri, schemaReferenceName, context); + } + + public void deleteById(String id) { + String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id, + "/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}", "resourceUri"); + if (resourceUri == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id))); + } + String schemaReferenceName = ResourceManagerUtils.getValueFromIdByParameterName(id, + "/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}", "schemaReferenceName"); + if (schemaReferenceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'schemaReferences'.", id))); + } + this.delete(resourceUri, schemaReferenceName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id, + "/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}", "resourceUri"); + if (resourceUri == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id))); + } + String schemaReferenceName = ResourceManagerUtils.getValueFromIdByParameterName(id, + "/{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}", "schemaReferenceName"); + if (schemaReferenceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'schemaReferences'.", id))); + } + this.delete(resourceUri, schemaReferenceName, context); + } + private SchemaReferencesClient serviceClient() { return this.innerClient; } @@ -60,4 +132,8 @@ private SchemaReferencesClient serviceClient() { private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { return this.serviceManager; } + + public SchemaReferenceImpl define(String name) { + return new SchemaReferenceImpl(name, this.manager()); + } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentImpl.java new file mode 100644 index 0000000000000..2cdf11d3428fb --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentImpl.java @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionDeploymentInner; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeployment; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdate; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdateProperties; +import java.util.Collections; +import java.util.Map; + +public final class SolutionDeploymentImpl + implements SolutionDeployment, SolutionDeployment.Definition, SolutionDeployment.Update { + private SolutionDeploymentInner innerObject; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public SolutionDeploymentProperties properties() { + return this.innerModel().properties(); + } + + public String eTag() { + return this.innerModel().eTag(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public SolutionDeploymentInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String solutionDeploymentName; + + private SolutionDeploymentUpdate updateProperties; + + public SolutionDeploymentImpl withExistingResourceGroup(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + public SolutionDeployment create() { + this.innerObject = serviceManager.serviceClient() + .getSolutionDeployments() + .createOrUpdate(resourceGroupName, solutionDeploymentName, this.innerModel(), Context.NONE); + return this; + } + + public SolutionDeployment create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSolutionDeployments() + .createOrUpdate(resourceGroupName, solutionDeploymentName, this.innerModel(), context); + return this; + } + + SolutionDeploymentImpl(String name, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = new SolutionDeploymentInner(); + this.serviceManager = serviceManager; + this.solutionDeploymentName = name; + } + + public SolutionDeploymentImpl update() { + this.updateProperties = new SolutionDeploymentUpdate(); + return this; + } + + public SolutionDeployment apply() { + this.innerObject = serviceManager.serviceClient() + .getSolutionDeployments() + .updateWithResponse(resourceGroupName, solutionDeploymentName, updateProperties, Context.NONE) + .getValue(); + return this; + } + + public SolutionDeployment apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSolutionDeployments() + .updateWithResponse(resourceGroupName, solutionDeploymentName, updateProperties, context) + .getValue(); + return this; + } + + SolutionDeploymentImpl(SolutionDeploymentInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.solutionDeploymentName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "solutionDeployments"); + } + + public SolutionDeployment refresh() { + this.innerObject = serviceManager.serviceClient() + .getSolutionDeployments() + .getByResourceGroupWithResponse(resourceGroupName, solutionDeploymentName, Context.NONE) + .getValue(); + return this; + } + + public SolutionDeployment refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSolutionDeployments() + .getByResourceGroupWithResponse(resourceGroupName, solutionDeploymentName, context) + .getValue(); + return this; + } + + public SolutionDeploymentImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public SolutionDeploymentImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public SolutionDeploymentImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public SolutionDeploymentImpl withProperties(SolutionDeploymentProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + public SolutionDeploymentImpl withProperties(SolutionDeploymentUpdateProperties properties) { + this.updateProperties.withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel() == null || this.innerModel().id() == null; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentsClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentsClientImpl.java new file mode 100644 index 0000000000000..269557d2400ec --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentsClientImpl.java @@ -0,0 +1,1015 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionDeploymentInner; +import com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionDeploymentListResult; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in SolutionDeploymentsClient. + */ +public final class SolutionDeploymentsClientImpl implements SolutionDeploymentsClient { + /** + * The proxy service used to perform REST calls. + */ + private final SolutionDeploymentsService service; + + /** + * The service client containing this operation class. + */ + private final WorkloadOrchestrationManagementClientImpl client; + + /** + * Initializes an instance of SolutionDeploymentsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SolutionDeploymentsClientImpl(WorkloadOrchestrationManagementClientImpl client) { + this.service = RestProxy.create(SolutionDeploymentsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for WorkloadOrchestrationManagementClientSolutionDeployments to be used + * by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "WorkloadOrchestrationManagementClientSolutionDeployments") + public interface SolutionDeploymentsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionDeployments/{solutionDeploymentName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionDeploymentName") String solutionDeploymentName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionDeployments/{solutionDeploymentName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionDeploymentName") String solutionDeploymentName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionDeployments/{solutionDeploymentName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionDeploymentName") String solutionDeploymentName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SolutionDeploymentInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionDeployments/{solutionDeploymentName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionDeploymentName") String solutionDeploymentName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SolutionDeploymentInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionDeployments/{solutionDeploymentName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionDeploymentName") String solutionDeploymentName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SolutionDeploymentUpdate properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionDeployments/{solutionDeploymentName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionDeploymentName") String solutionDeploymentName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SolutionDeploymentUpdate properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionDeployments/{solutionDeploymentName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionDeploymentName") String solutionDeploymentName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionDeployments/{solutionDeploymentName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionDeploymentName") String solutionDeploymentName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionDeployments") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionDeployments") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Edge/solutionDeployments") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Edge/solutionDeployments") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listBySubscriptionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionDeployment Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String solutionDeploymentName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionDeploymentName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionDeployment Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, + String solutionDeploymentName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, solutionDeploymentName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionDeployment Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String solutionDeploymentName, Context context) { + final String accept = "application/json"; + return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionDeploymentName, accept, context); + } + + /** + * Get a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionDeployment Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionDeploymentInner getByResourceGroup(String resourceGroupName, String solutionDeploymentName) { + return getByResourceGroupWithResponse(resourceGroupName, solutionDeploymentName, Context.NONE).getValue(); + } + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String solutionDeploymentName, SolutionDeploymentInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionDeploymentName, contentType, accept, + resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionDeploymentName, contentType, accept, resource, + Context.NONE); + } + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionDeploymentName, contentType, accept, resource, + context); + } + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SolutionDeploymentInner> beginCreateOrUpdateAsync( + String resourceGroupName, String solutionDeploymentName, SolutionDeploymentInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, solutionDeploymentName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), SolutionDeploymentInner.class, SolutionDeploymentInner.class, + this.client.getContext()); + } + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SolutionDeploymentInner> + beginCreateOrUpdate(String resourceGroupName, String solutionDeploymentName, SolutionDeploymentInner resource) { + Response response = createOrUpdateWithResponse(resourceGroupName, solutionDeploymentName, resource); + return this.client.getLroResult(response, + SolutionDeploymentInner.class, SolutionDeploymentInner.class, Context.NONE); + } + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SolutionDeploymentInner> beginCreateOrUpdate( + String resourceGroupName, String solutionDeploymentName, SolutionDeploymentInner resource, Context context) { + Response response + = createOrUpdateWithResponse(resourceGroupName, solutionDeploymentName, resource, context); + return this.client.getLroResult(response, + SolutionDeploymentInner.class, SolutionDeploymentInner.class, context); + } + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, solutionDeploymentName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionDeploymentInner createOrUpdate(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentInner resource) { + return beginCreateOrUpdate(resourceGroupName, solutionDeploymentName, resource).getFinalResult(); + } + + /** + * Create or update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionDeploymentInner createOrUpdate(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, solutionDeploymentName, resource, context).getFinalResult(); + } + + /** + * update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String solutionDeploymentName, SolutionDeploymentUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionDeploymentName, contentType, accept, + properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentUpdate properties) { + return updateWithResponseAsync(resourceGroupName, solutionDeploymentName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionDeploymentName, contentType, accept, properties, + context); + } + + /** + * update a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Deployment Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionDeploymentInner update(String resourceGroupName, String solutionDeploymentName, + SolutionDeploymentUpdate properties) { + return updateWithResponse(resourceGroupName, solutionDeploymentName, properties, Context.NONE).getValue(); + } + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String solutionDeploymentName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionDeploymentName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String solutionDeploymentName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionDeploymentName, Context.NONE); + } + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String solutionDeploymentName, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionDeploymentName, context); + } + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String solutionDeploymentName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, solutionDeploymentName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String solutionDeploymentName) { + Response response = deleteWithResponse(resourceGroupName, solutionDeploymentName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String solutionDeploymentName, + Context context) { + Response response = deleteWithResponse(resourceGroupName, solutionDeploymentName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String solutionDeploymentName) { + return beginDeleteAsync(resourceGroupName, solutionDeploymentName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String solutionDeploymentName) { + beginDelete(resourceGroupName, solutionDeploymentName).getFinalResult(); + } + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String solutionDeploymentName, Context context) { + beginDelete(resourceGroupName, solutionDeploymentName, context).getFinalResult(); + } + + /** + * List by specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List by specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * List by specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List by specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, + Context context) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List by specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); + } + + /** + * List by specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); + } + + /** + * List by subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List by subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * List by subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List by subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List by subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); + } + + /** + * List by subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), + nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentsImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentsImpl.java new file mode 100644 index 0000000000000..c6aa69ce0ee85 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentsImpl.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionDeploymentInner; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeployment; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeployments; + +public final class SolutionDeploymentsImpl implements SolutionDeployments { + private static final ClientLogger LOGGER = new ClientLogger(SolutionDeploymentsImpl.class); + + private final SolutionDeploymentsClient innerClient; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + public SolutionDeploymentsImpl(SolutionDeploymentsClient innerClient, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getByResourceGroupWithResponse(String resourceGroupName, + String solutionDeploymentName, Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, solutionDeploymentName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SolutionDeploymentImpl(inner.getValue(), this.manager())); + } + + public SolutionDeployment getByResourceGroup(String resourceGroupName, String solutionDeploymentName) { + SolutionDeploymentInner inner + = this.serviceClient().getByResourceGroup(resourceGroupName, solutionDeploymentName); + if (inner != null) { + return new SolutionDeploymentImpl(inner, this.manager()); + } else { + return null; + } + } + + public void deleteByResourceGroup(String resourceGroupName, String solutionDeploymentName) { + this.serviceClient().delete(resourceGroupName, solutionDeploymentName); + } + + public void delete(String resourceGroupName, String solutionDeploymentName, Context context) { + this.serviceClient().delete(resourceGroupName, solutionDeploymentName, context); + } + + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SolutionDeploymentImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SolutionDeploymentImpl(inner1, this.manager())); + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SolutionDeploymentImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SolutionDeploymentImpl(inner1, this.manager())); + } + + public SolutionDeployment getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String solutionDeploymentName = ResourceManagerUtils.getValueFromIdByName(id, "solutionDeployments"); + if (solutionDeploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'solutionDeployments'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, solutionDeploymentName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String solutionDeploymentName = ResourceManagerUtils.getValueFromIdByName(id, "solutionDeployments"); + if (solutionDeploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'solutionDeployments'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, solutionDeploymentName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String solutionDeploymentName = ResourceManagerUtils.getValueFromIdByName(id, "solutionDeployments"); + if (solutionDeploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'solutionDeployments'.", id))); + } + this.delete(resourceGroupName, solutionDeploymentName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String solutionDeploymentName = ResourceManagerUtils.getValueFromIdByName(id, "solutionDeployments"); + if (solutionDeploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'solutionDeployments'.", id))); + } + this.delete(resourceGroupName, solutionDeploymentName, context); + } + + private SolutionDeploymentsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } + + public SolutionDeploymentImpl define(String name) { + return new SolutionDeploymentImpl(name, this.manager()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataImpl.java new file mode 100644 index 0000000000000..22db25e5d2b8a --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataInner; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadata; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataProperties; + +public final class SolutionMetadataImpl implements SolutionMetadata { + private SolutionMetadataInner innerObject; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + SolutionMetadataImpl(SolutionMetadataInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SolutionMetadataProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public SolutionMetadataInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionImpl.java new file mode 100644 index 0000000000000..4d6c384c35ccb --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataVersionInner; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataVersion; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataVersionProperties; + +public final class SolutionMetadataVersionImpl implements SolutionMetadataVersion { + private SolutionMetadataVersionInner innerObject; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + SolutionMetadataVersionImpl(SolutionMetadataVersionInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SolutionMetadataVersionProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public SolutionMetadataVersionInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionsClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionsClientImpl.java new file mode 100644 index 0000000000000..a3799613720cd --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionsClientImpl.java @@ -0,0 +1,372 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadataVersionsClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataVersionInner; +import com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionMetadataVersionListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in SolutionMetadataVersionsClient. + */ +public final class SolutionMetadataVersionsClientImpl implements SolutionMetadataVersionsClient { + /** + * The proxy service used to perform REST calls. + */ + private final SolutionMetadataVersionsService service; + + /** + * The service client containing this operation class. + */ + private final WorkloadOrchestrationManagementClientImpl client; + + /** + * Initializes an instance of SolutionMetadataVersionsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SolutionMetadataVersionsClientImpl(WorkloadOrchestrationManagementClientImpl client) { + this.service = RestProxy.create(SolutionMetadataVersionsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for WorkloadOrchestrationManagementClientSolutionMetadataVersions to be + * used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "WorkloadOrchestrationManagementClientSolutionMetadataVersions") + public interface SolutionMetadataVersionsService { + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/solutionMetadatas/{solutionMetadataName}/versions/{solutionMetadataVersionName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("solutionMetadataName") String solutionMetadataName, + @PathParam("solutionMetadataVersionName") String solutionMetadataVersionName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/solutionMetadatas/{solutionMetadataName}/versions/{solutionMetadataVersionName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("solutionMetadataName") String solutionMetadataName, + @PathParam("solutionMetadataVersionName") String solutionMetadataVersionName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/solutionMetadatas/{solutionMetadataName}/versions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByParent(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("solutionMetadataName") String solutionMetadataName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/solutionMetadatas/{solutionMetadataName}/versions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByParentSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("solutionMetadataName") String solutionMetadataName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByParentNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByParentNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param solutionMetadataVersionName Name of the solution metadata version. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceUri, + String solutionMetadataName, String solutionMetadataVersionName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + solutionMetadataName, solutionMetadataVersionName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param solutionMetadataVersionName Name of the solution metadata version. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceUri, String solutionMetadataName, + String solutionMetadataVersionName) { + return getWithResponseAsync(resourceUri, solutionMetadataName, solutionMetadataVersionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param solutionMetadataVersionName Name of the solution metadata version. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceUri, String solutionMetadataName, + String solutionMetadataVersionName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + solutionMetadataName, solutionMetadataVersionName, accept, context); + } + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param solutionMetadataVersionName Name of the solution metadata version. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionMetadataVersionInner get(String resourceUri, String solutionMetadataName, + String solutionMetadataVersionName) { + return getWithResponse(resourceUri, solutionMetadataName, solutionMetadataVersionName, Context.NONE).getValue(); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByParentSinglePageAsync(String resourceUri, + String solutionMetadataName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByParent(this.client.getEndpoint(), this.client.getApiVersion(), + resourceUri, solutionMetadataName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByParentAsync(String resourceUri, String solutionMetadataName) { + return new PagedFlux<>(() -> listByParentSinglePageAsync(resourceUri, solutionMetadataName), + nextLink -> listByParentNextSinglePageAsync(nextLink)); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentSinglePage(String resourceUri, + String solutionMetadataName) { + final String accept = "application/json"; + Response res = service.listByParentSync(this.client.getEndpoint(), + this.client.getApiVersion(), resourceUri, solutionMetadataName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentSinglePage(String resourceUri, + String solutionMetadataName, Context context) { + final String accept = "application/json"; + Response res = service.listByParentSync(this.client.getEndpoint(), + this.client.getApiVersion(), resourceUri, solutionMetadataName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByParent(String resourceUri, String solutionMetadataName) { + return new PagedIterable<>(() -> listByParentSinglePage(resourceUri, solutionMetadataName), + nextLink -> listByParentNextSinglePage(nextLink)); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByParent(String resourceUri, String solutionMetadataName, + Context context) { + return new PagedIterable<>(() -> listByParentSinglePage(resourceUri, solutionMetadataName, context), + nextLink -> listByParentNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByParentNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByParentNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByParentNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByParentNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionsImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionsImpl.java new file mode 100644 index 0000000000000..3768e0886af84 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionsImpl.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadataVersionsClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataVersionInner; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataVersion; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataVersions; + +public final class SolutionMetadataVersionsImpl implements SolutionMetadataVersions { + private static final ClientLogger LOGGER = new ClientLogger(SolutionMetadataVersionsImpl.class); + + private final SolutionMetadataVersionsClient innerClient; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + public SolutionMetadataVersionsImpl(SolutionMetadataVersionsClient innerClient, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceUri, String solutionMetadataName, + String solutionMetadataVersionName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceUri, solutionMetadataName, solutionMetadataVersionName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SolutionMetadataVersionImpl(inner.getValue(), this.manager())); + } + + public SolutionMetadataVersion get(String resourceUri, String solutionMetadataName, + String solutionMetadataVersionName) { + SolutionMetadataVersionInner inner + = this.serviceClient().get(resourceUri, solutionMetadataName, solutionMetadataVersionName); + if (inner != null) { + return new SolutionMetadataVersionImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable listByParent(String resourceUri, String solutionMetadataName) { + PagedIterable inner + = this.serviceClient().listByParent(resourceUri, solutionMetadataName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SolutionMetadataVersionImpl(inner1, this.manager())); + } + + public PagedIterable listByParent(String resourceUri, String solutionMetadataName, + Context context) { + PagedIterable inner + = this.serviceClient().listByParent(resourceUri, solutionMetadataName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SolutionMetadataVersionImpl(inner1, this.manager())); + } + + private SolutionMetadataVersionsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadatasClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadatasClientImpl.java new file mode 100644 index 0000000000000..8f380cf87d6e9 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadatasClientImpl.java @@ -0,0 +1,349 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadatasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataInner; +import com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionMetadataListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in SolutionMetadatasClient. + */ +public final class SolutionMetadatasClientImpl implements SolutionMetadatasClient { + /** + * The proxy service used to perform REST calls. + */ + private final SolutionMetadatasService service; + + /** + * The service client containing this operation class. + */ + private final WorkloadOrchestrationManagementClientImpl client; + + /** + * Initializes an instance of SolutionMetadatasClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SolutionMetadatasClientImpl(WorkloadOrchestrationManagementClientImpl client) { + this.service + = RestProxy.create(SolutionMetadatasService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for WorkloadOrchestrationManagementClientSolutionMetadatas to be used by + * the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "WorkloadOrchestrationManagementClientSolutionMetadatas") + public interface SolutionMetadatasService { + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/solutionMetadatas/{solutionMetadataName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("solutionMetadataName") String solutionMetadataName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/solutionMetadatas/{solutionMetadataName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, + @PathParam("solutionMetadataName") String solutionMetadataName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/solutionMetadatas") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByParent(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/{resourceUri}/providers/Microsoft.Edge/solutionMetadatas") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByParentSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByParentNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByParentNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceUri, + String solutionMetadataName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + solutionMetadataName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceUri, String solutionMetadataName) { + return getWithResponseAsync(resourceUri, solutionMetadataName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceUri, String solutionMetadataName, + Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, + solutionMetadataName, accept, context); + } + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionMetadataInner get(String resourceUri, String solutionMetadataName) { + return getWithResponse(resourceUri, solutionMetadataName, Context.NONE).getValue(); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByParentSinglePageAsync(String resourceUri) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByParent(this.client.getEndpoint(), this.client.getApiVersion(), + resourceUri, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByParentAsync(String resourceUri) { + return new PagedFlux<>(() -> listByParentSinglePageAsync(resourceUri), + nextLink -> listByParentNextSinglePageAsync(nextLink)); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentSinglePage(String resourceUri) { + final String accept = "application/json"; + Response res = service.listByParentSync(this.client.getEndpoint(), + this.client.getApiVersion(), resourceUri, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentSinglePage(String resourceUri, Context context) { + final String accept = "application/json"; + Response res = service.listByParentSync(this.client.getEndpoint(), + this.client.getApiVersion(), resourceUri, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByParent(String resourceUri) { + return new PagedIterable<>(() -> listByParentSinglePage(resourceUri), + nextLink -> listByParentNextSinglePage(nextLink)); + } + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByParent(String resourceUri, Context context) { + return new PagedIterable<>(() -> listByParentSinglePage(resourceUri, context), + nextLink -> listByParentNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByParentNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByParentNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByParentNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByParentNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByParentNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadatasImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadatasImpl.java new file mode 100644 index 0000000000000..f2196dd5347d0 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadatasImpl.java @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadatasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataInner; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadata; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadatas; + +public final class SolutionMetadatasImpl implements SolutionMetadatas { + private static final ClientLogger LOGGER = new ClientLogger(SolutionMetadatasImpl.class); + + private final SolutionMetadatasClient innerClient; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + public SolutionMetadatasImpl(SolutionMetadatasClient innerClient, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceUri, String solutionMetadataName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceUri, solutionMetadataName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SolutionMetadataImpl(inner.getValue(), this.manager())); + } + + public SolutionMetadata get(String resourceUri, String solutionMetadataName) { + SolutionMetadataInner inner = this.serviceClient().get(resourceUri, solutionMetadataName); + if (inner != null) { + return new SolutionMetadataImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable listByParent(String resourceUri) { + PagedIterable inner = this.serviceClient().listByParent(resourceUri); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SolutionMetadataImpl(inner1, this.manager())); + } + + public PagedIterable listByParent(String resourceUri, Context context) { + PagedIterable inner = this.serviceClient().listByParent(resourceUri, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SolutionMetadataImpl(inner1, this.manager())); + } + + private SolutionMetadatasClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemaImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemaImpl.java new file mode 100644 index 0000000000000..3cf43d7d4909b --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemaImpl.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionSchemaInner; +import com.azure.resourcemanager.workloadorchestration.models.SolutionSchema; +import com.azure.resourcemanager.workloadorchestration.models.SolutionSchemaProperties; + +public final class SolutionSchemaImpl implements SolutionSchema { + private SolutionSchemaInner innerObject; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + SolutionSchemaImpl(SolutionSchemaInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SolutionSchemaProperties properties() { + return this.innerModel().properties(); + } + + public String eTag() { + return this.innerModel().eTag(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public SolutionSchemaInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemasClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemasClientImpl.java new file mode 100644 index 0000000000000..9bd3394da97e3 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemasClientImpl.java @@ -0,0 +1,396 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionSchemasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionSchemaInner; +import com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionSchemaListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in SolutionSchemasClient. + */ +public final class SolutionSchemasClientImpl implements SolutionSchemasClient { + /** + * The proxy service used to perform REST calls. + */ + private final SolutionSchemasService service; + + /** + * The service client containing this operation class. + */ + private final WorkloadOrchestrationManagementClientImpl client; + + /** + * Initializes an instance of SolutionSchemasClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SolutionSchemasClientImpl(WorkloadOrchestrationManagementClientImpl client) { + this.service + = RestProxy.create(SolutionSchemasService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for WorkloadOrchestrationManagementClientSolutionSchemas to be used by + * the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "WorkloadOrchestrationManagementClientSolutionSchemas") + public interface SolutionSchemasService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}/solutionSchemas/{solutionSchemaName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, + @PathParam("solutionSchemaName") String solutionSchemaName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}/solutionSchemas/{solutionSchemaName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, + @PathParam("solutionSchemaName") String solutionSchemaName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}/solutionSchemas") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySolutionTemplateVersion(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}/solutionSchemas") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listBySolutionTemplateVersionSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySolutionTemplateVersionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listBySolutionTemplateVersionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a SolutionSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param solutionSchemaName The name of the SolutionSchemaProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionSchema Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, String solutionSchemaName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + solutionSchemaName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a SolutionSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param solutionSchemaName The name of the SolutionSchemaProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionSchema Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, String solutionSchemaName) { + return getWithResponseAsync(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + solutionSchemaName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a SolutionSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param solutionSchemaName The name of the SolutionSchemaProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionSchema Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, String solutionSchemaName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, solutionTemplateName, solutionTemplateVersionName, solutionSchemaName, accept, context); + } + + /** + * Get a SolutionSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param solutionSchemaName The name of the SolutionSchemaProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionSchema Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionSchemaInner get(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, String solutionSchemaName) { + return getWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, solutionSchemaName, + Context.NONE).getValue(); + } + + /** + * List by SolutionTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySolutionTemplateVersionSinglePageAsync( + String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listBySolutionTemplateVersion(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, + solutionTemplateVersionName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List by SolutionTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listBySolutionTemplateVersionAsync(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName) { + return new PagedFlux<>(() -> listBySolutionTemplateVersionSinglePageAsync(resourceGroupName, + solutionTemplateName, solutionTemplateVersionName), + nextLink -> listBySolutionTemplateVersionNextSinglePageAsync(nextLink)); + } + + /** + * List by SolutionTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySolutionTemplateVersionSinglePage(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName) { + final String accept = "application/json"; + Response res = service.listBySolutionTemplateVersionSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, + solutionTemplateVersionName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List by SolutionTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySolutionTemplateVersionSinglePage(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, Context context) { + final String accept = "application/json"; + Response res = service.listBySolutionTemplateVersionSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, + solutionTemplateVersionName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List by SolutionTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listBySolutionTemplateVersion(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName) { + return new PagedIterable<>(() -> listBySolutionTemplateVersionSinglePage(resourceGroupName, + solutionTemplateName, solutionTemplateVersionName), + nextLink -> listBySolutionTemplateVersionNextSinglePage(nextLink)); + } + + /** + * List by SolutionTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listBySolutionTemplateVersion(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, Context context) { + return new PagedIterable<>( + () -> listBySolutionTemplateVersionSinglePage(resourceGroupName, solutionTemplateName, + solutionTemplateVersionName, context), + nextLink -> listBySolutionTemplateVersionNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySolutionTemplateVersionNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> service.listBySolutionTemplateVersionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySolutionTemplateVersionNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listBySolutionTemplateVersionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySolutionTemplateVersionNextSinglePage(String nextLink, + Context context) { + final String accept = "application/json"; + Response res + = service.listBySolutionTemplateVersionNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemasImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemasImpl.java new file mode 100644 index 0000000000000..934818029612a --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemasImpl.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionSchemasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionSchemaInner; +import com.azure.resourcemanager.workloadorchestration.models.SolutionSchema; +import com.azure.resourcemanager.workloadorchestration.models.SolutionSchemas; + +public final class SolutionSchemasImpl implements SolutionSchemas { + private static final ClientLogger LOGGER = new ClientLogger(SolutionSchemasImpl.class); + + private final SolutionSchemasClient innerClient; + + private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; + + public SolutionSchemasImpl(SolutionSchemasClient innerClient, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, String solutionSchemaName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, solutionSchemaName, + context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SolutionSchemaImpl(inner.getValue(), this.manager())); + } + + public SolutionSchema get(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + String solutionSchemaName) { + SolutionSchemaInner inner = this.serviceClient() + .get(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, solutionSchemaName); + if (inner != null) { + return new SolutionSchemaImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable listBySolutionTemplateVersion(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName) { + PagedIterable inner = this.serviceClient() + .listBySolutionTemplateVersion(resourceGroupName, solutionTemplateName, solutionTemplateVersionName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SolutionSchemaImpl(inner1, this.manager())); + } + + public PagedIterable listBySolutionTemplateVersion(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, Context context) { + PagedIterable inner = this.serviceClient() + .listBySolutionTemplateVersion(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SolutionSchemaImpl(inner1, this.manager())); + } + + private SolutionSchemasClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionImpl.java index 617c48a4f27f7..2091879ffdecf 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionImpl.java @@ -5,21 +5,20 @@ package com.azure.resourcemanager.workloadorchestration.implementation; import com.azure.core.management.SystemData; +import com.azure.core.util.Context; import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner; +import com.azure.resourcemanager.workloadorchestration.models.BulkDeploySolutionParameter; +import com.azure.resourcemanager.workloadorchestration.models.BulkPublishSolutionParameter; +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewSolutionParameter; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersion; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; -public final class SolutionTemplateVersionImpl implements SolutionTemplateVersion { +public final class SolutionTemplateVersionImpl + implements SolutionTemplateVersion, SolutionTemplateVersion.Definition, SolutionTemplateVersion.Update { private SolutionTemplateVersionInner innerObject; private final com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager; - SolutionTemplateVersionImpl(SolutionTemplateVersionInner innerObject, - com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - public String id() { return this.innerModel().id(); } @@ -44,6 +43,10 @@ public SystemData systemData() { return this.innerModel().systemData(); } + public String resourceGroupName() { + return resourceGroupName; + } + public SolutionTemplateVersionInner innerModel() { return this.innerObject; } @@ -51,4 +54,122 @@ public SolutionTemplateVersionInner innerModel() { private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { return this.serviceManager; } + + private String resourceGroupName; + + private String solutionTemplateName; + + private String solutionTemplateVersionName; + + public SolutionTemplateVersionImpl withExistingSolutionTemplate(String resourceGroupName, + String solutionTemplateName) { + this.resourceGroupName = resourceGroupName; + this.solutionTemplateName = solutionTemplateName; + return this; + } + + public SolutionTemplateVersion create() { + this.innerObject = serviceManager.serviceClient() + .getSolutionTemplateVersions() + .createOrUpdate(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, this.innerModel(), + Context.NONE); + return this; + } + + public SolutionTemplateVersion create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSolutionTemplateVersions() + .createOrUpdate(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, this.innerModel(), + context); + return this; + } + + SolutionTemplateVersionImpl(String name, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = new SolutionTemplateVersionInner(); + this.serviceManager = serviceManager; + this.solutionTemplateVersionName = name; + } + + public SolutionTemplateVersionImpl update() { + return this; + } + + public SolutionTemplateVersion apply() { + this.innerObject = serviceManager.serviceClient() + .getSolutionTemplateVersions() + .updateWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, this.innerModel(), + Context.NONE) + .getValue(); + return this; + } + + public SolutionTemplateVersion apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSolutionTemplateVersions() + .updateWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, this.innerModel(), + context) + .getValue(); + return this; + } + + SolutionTemplateVersionImpl(SolutionTemplateVersionInner innerObject, + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.solutionTemplateName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "solutionTemplates"); + this.solutionTemplateVersionName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "versions"); + } + + public SolutionTemplateVersion refresh() { + this.innerObject = serviceManager.serviceClient() + .getSolutionTemplateVersions() + .getWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, Context.NONE) + .getValue(); + return this; + } + + public SolutionTemplateVersion refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSolutionTemplateVersions() + .getWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, context) + .getValue(); + return this; + } + + public void bulkDeploySolution(BulkDeploySolutionParameter body) { + serviceManager.solutionTemplateVersions() + .bulkDeploySolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body); + } + + public void bulkDeploySolution(BulkDeploySolutionParameter body, Context context) { + serviceManager.solutionTemplateVersions() + .bulkDeploySolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body, context); + } + + public void bulkPublishSolution(BulkPublishSolutionParameter body) { + serviceManager.solutionTemplateVersions() + .bulkPublishSolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body); + } + + public void bulkPublishSolution(BulkPublishSolutionParameter body, Context context) { + serviceManager.solutionTemplateVersions() + .bulkPublishSolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body, context); + } + + public void bulkReviewSolution(BulkReviewSolutionParameter body) { + serviceManager.solutionTemplateVersions() + .bulkReviewSolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body); + } + + public void bulkReviewSolution(BulkReviewSolutionParameter body, Context context) { + serviceManager.solutionTemplateVersions() + .bulkReviewSolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body, context); + } + + public SolutionTemplateVersionImpl withProperties(SolutionTemplateVersionProperties properties) { + this.innerModel().withProperties(properties); + return this; + } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsClientImpl.java index b474faecbf0d5..f6e528d0b2797 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsClientImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsClientImpl.java @@ -5,14 +5,17 @@ package com.azure.resourcemanager.workloadorchestration.implementation; import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; import com.azure.core.annotation.HeaderParam; import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceInterface; @@ -36,6 +39,7 @@ import com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionTemplateVersionListResult; import com.azure.resourcemanager.workloadorchestration.models.BulkDeploySolutionParameter; import com.azure.resourcemanager.workloadorchestration.models.BulkPublishSolutionParameter; +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewSolutionParameter; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -94,6 +98,70 @@ Response getSync(@HostParam("endpoint") String end @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, @HeaderParam("Accept") String accept, Context context); + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SolutionTemplateVersionInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SolutionTemplateVersionInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SolutionTemplateVersionInner properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SolutionTemplateVersionInner properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions") @ExpectedResponses({ 200 }) @@ -162,6 +230,30 @@ Response bulkPublishSolutionSync(@HostParam("endpoint") String endpo @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BulkPublishSolutionParameter body, Context context); + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}/bulkReviewSolution") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> bulkReviewSolution(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BulkReviewSolutionParameter body, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/solutionTemplates/{solutionTemplateName}/versions/{solutionTemplateVersionName}/bulkReviewSolution") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response bulkReviewSolutionSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("solutionTemplateName") String solutionTemplateName, + @PathParam("solutionTemplateVersionName") String solutionTemplateVersionName, + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BulkReviewSolutionParameter body, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -180,7 +272,368 @@ Response listBySolutionTemplateNextSync( } /** - * Get a Solution Template Version Resource. + * Get a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution Template Version Resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution Template Version Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName) { + return getWithResponseAsync(resourceGroupName, solutionTemplateName, solutionTemplateVersionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution Template Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, solutionTemplateName, solutionTemplateVersionName, accept, context); + } + + /** + * Get a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionTemplateVersionInner get(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName) { + return getWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, Context.NONE) + .getValue(); + } + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, SolutionTemplateVersionInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + contentType, accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, SolutionTemplateVersionInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + contentType, accept, resource, Context.NONE); + } + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, SolutionTemplateVersionInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + contentType, accept, resource, context); + } + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SolutionTemplateVersionInner> beginCreateOrUpdateAsync( + String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + SolutionTemplateVersionInner resource) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, solutionTemplateName, + solutionTemplateVersionName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), SolutionTemplateVersionInner.class, SolutionTemplateVersionInner.class, + this.client.getContext()); + } + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SolutionTemplateVersionInner> beginCreateOrUpdate( + String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + SolutionTemplateVersionInner resource) { + Response response = createOrUpdateWithResponse(resourceGroupName, solutionTemplateName, + solutionTemplateVersionName, resource); + return this.client.getLroResult(response, + SolutionTemplateVersionInner.class, SolutionTemplateVersionInner.class, Context.NONE); + } + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SolutionTemplateVersionInner> beginCreateOrUpdate( + String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + SolutionTemplateVersionInner resource, Context context) { + Response response = createOrUpdateWithResponse(resourceGroupName, solutionTemplateName, + solutionTemplateVersionName, resource, context); + return this.client.getLroResult(response, + SolutionTemplateVersionInner.class, SolutionTemplateVersionInner.class, context); + } + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, SolutionTemplateVersionInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, resource) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionTemplateVersionInner createOrUpdate(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, SolutionTemplateVersionInner resource) { + return beginCreateOrUpdate(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, resource) + .getFinalResult(); + } + + /** + * Create or update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionTemplateVersionInner createOrUpdate(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, SolutionTemplateVersionInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, resource, + context).getFinalResult(); + } + + /** + * Update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, SolutionTemplateVersionInner properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, SolutionTemplateVersionInner properties) { + return updateWithResponseAsync(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, SolutionTemplateVersionInner properties, + Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + contentType, accept, properties, context); + } + + /** + * Update a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Template Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionTemplateVersionInner update(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, SolutionTemplateVersionInner properties) { + return updateWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, properties, + Context.NONE).getValue(); + } + + /** + * Delete a Solution Template Version Resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param solutionTemplateName The name of the SolutionTemplate. @@ -188,22 +641,20 @@ Response listBySolutionTemplateNextSync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Solution Template Version Resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName) { - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, - accept, context)) + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a Solution Template Version Resource. + * Delete a Solution Template Version Resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param solutionTemplateName The name of the SolutionTemplate. @@ -211,17 +662,18 @@ private Mono> getWithResponseAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Solution Template Version Resource on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String solutionTemplateName, + private Response deleteWithResponse(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName) { - return getWithResponseAsync(resourceGroupName, solutionTemplateName, solutionTemplateVersionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + Context.NONE); } /** - * Get a Solution Template Version Resource. + * Delete a Solution Template Version Resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param solutionTemplateName The name of the SolutionTemplate. @@ -230,18 +682,18 @@ private Mono getAsync(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Solution Template Version Resource along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String solutionTemplateName, + private Response deleteWithResponse(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, Context context) { - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, solutionTemplateName, solutionTemplateVersionName, accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + context); } /** - * Get a Solution Template Version Resource. + * Delete a Solution Template Version Resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param solutionTemplateName The name of the SolutionTemplate. @@ -249,13 +701,104 @@ public Response getWithResponse(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Solution Template Version Resource. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, solutionTemplateName, solutionTemplateVersionName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName) { + Response response + = deleteWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, Context context) { + Response response + = deleteWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SolutionTemplateVersionInner get(String resourceGroupName, String solutionTemplateName, + private Mono deleteAsync(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName) { - return getWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, Context.NONE) - .getValue(); + return beginDeleteAsync(resourceGroupName, solutionTemplateName, solutionTemplateVersionName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName) { + beginDelete(resourceGroupName, solutionTemplateName, solutionTemplateVersionName).getFinalResult(); + } + + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + Context context) { + beginDelete(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, context).getFinalResult(); } /** @@ -752,6 +1295,192 @@ public void bulkPublishSolution(String resourceGroupName, String solutionTemplat .getFinalResult(); } + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> bulkReviewSolutionWithResponseAsync(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, BulkReviewSolutionParameter body) { + final String contentType = "application/json"; + return FluxUtil + .withContext(context -> service.bulkReviewSolution(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + contentType, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response bulkReviewSolutionWithResponse(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, BulkReviewSolutionParameter body) { + final String contentType = "application/json"; + return service.bulkReviewSolutionSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + contentType, body, Context.NONE); + } + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response bulkReviewSolutionWithResponse(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, BulkReviewSolutionParameter body, Context context) { + final String contentType = "application/json"; + return service.bulkReviewSolutionSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, solutionTemplateName, solutionTemplateVersionName, + contentType, body, context); + } + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginBulkReviewSolutionAsync(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, BulkReviewSolutionParameter body) { + Mono>> mono = bulkReviewSolutionWithResponseAsync(resourceGroupName, + solutionTemplateName, solutionTemplateVersionName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginBulkReviewSolution(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, BulkReviewSolutionParameter body) { + Response response = bulkReviewSolutionWithResponse(resourceGroupName, solutionTemplateName, + solutionTemplateVersionName, body); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginBulkReviewSolution(String resourceGroupName, + String solutionTemplateName, String solutionTemplateVersionName, BulkReviewSolutionParameter body, + Context context) { + Response response = bulkReviewSolutionWithResponse(resourceGroupName, solutionTemplateName, + solutionTemplateVersionName, body, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono bulkReviewSolutionAsync(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, BulkReviewSolutionParameter body) { + return beginBulkReviewSolutionAsync(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void bulkReviewSolution(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, BulkReviewSolutionParameter body) { + beginBulkReviewSolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body) + .getFinalResult(); + } + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void bulkReviewSolution(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, BulkReviewSolutionParameter body, Context context) { + beginBulkReviewSolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body, context) + .getFinalResult(); + } + /** * Get the next page of items. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsImpl.java index 9ba540e83fe4d..0d6489f4ec825 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsImpl.java @@ -13,6 +13,7 @@ import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.models.BulkDeploySolutionParameter; import com.azure.resourcemanager.workloadorchestration.models.BulkPublishSolutionParameter; +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewSolutionParameter; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersion; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersions; @@ -48,6 +49,15 @@ public SolutionTemplateVersion get(String resourceGroupName, String solutionTemp } } + public void delete(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName) { + this.serviceClient().delete(resourceGroupName, solutionTemplateName, solutionTemplateVersionName); + } + + public void delete(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + Context context) { + this.serviceClient().delete(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, context); + } + public PagedIterable listBySolutionTemplate(String resourceGroupName, String solutionTemplateName) { PagedIterable inner @@ -86,6 +96,95 @@ public void bulkPublishSolution(String resourceGroupName, String solutionTemplat .bulkPublishSolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body, context); } + public void bulkReviewSolution(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, BulkReviewSolutionParameter body) { + this.serviceClient() + .bulkReviewSolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body); + } + + public void bulkReviewSolution(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, BulkReviewSolutionParameter body, Context context) { + this.serviceClient() + .bulkReviewSolution(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, body, context); + } + + public SolutionTemplateVersion getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String solutionTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "solutionTemplates"); + if (solutionTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'solutionTemplates'.", id))); + } + String solutionTemplateVersionName = ResourceManagerUtils.getValueFromIdByName(id, "versions"); + if (solutionTemplateVersionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id))); + } + return this.getWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, Context.NONE) + .getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String solutionTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "solutionTemplates"); + if (solutionTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'solutionTemplates'.", id))); + } + String solutionTemplateVersionName = ResourceManagerUtils.getValueFromIdByName(id, "versions"); + if (solutionTemplateVersionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id))); + } + return this.getWithResponse(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String solutionTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "solutionTemplates"); + if (solutionTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'solutionTemplates'.", id))); + } + String solutionTemplateVersionName = ResourceManagerUtils.getValueFromIdByName(id, "versions"); + if (solutionTemplateVersionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id))); + } + this.delete(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String solutionTemplateName = ResourceManagerUtils.getValueFromIdByName(id, "solutionTemplates"); + if (solutionTemplateName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'solutionTemplates'.", id))); + } + String solutionTemplateVersionName = ResourceManagerUtils.getValueFromIdByName(id, "versions"); + if (solutionTemplateVersionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id))); + } + this.delete(resourceGroupName, solutionTemplateName, solutionTemplateVersionName, context); + } + private SolutionTemplateVersionsClient serviceClient() { return this.innerClient; } @@ -93,4 +192,8 @@ private SolutionTemplateVersionsClient serviceClient() { private com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager() { return this.serviceManager; } + + public SolutionTemplateVersionImpl define(String name) { + return new SolutionTemplateVersionImpl(name, this.manager()); + } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetImpl.java index cffe6de5c74e1..69333a4389fae 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetImpl.java @@ -222,6 +222,14 @@ public SolutionVersion updateExternalValidationStatus(UpdateExternalValidationSt return serviceManager.targets().updateExternalValidationStatus(resourceGroupName, targetName, body, context); } + public SolutionVersion unstageSolutionVersion(SolutionVersionParameter body) { + return serviceManager.targets().unstageSolutionVersion(resourceGroupName, targetName, body); + } + + public SolutionVersion unstageSolutionVersion(SolutionVersionParameter body, Context context) { + return serviceManager.targets().unstageSolutionVersion(resourceGroupName, targetName, body, context); + } + public TargetImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsClientImpl.java index 110cc52a2df53..2ecb305a32183 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsClientImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsClientImpl.java @@ -319,6 +319,24 @@ Response updateExternalValidationStatusSync(@HostParam("endpoint") S @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") UpdateExternalValidationStatusParameter body, Context context); + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/targets/{targetName}/unstageSolutionVersion") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> unstageSolutionVersion(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("targetName") String targetName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SolutionVersionParameter body, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/targets/{targetName}/unstageSolutionVersion") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response unstageSolutionVersionSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("targetName") String targetName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SolutionVersionParameter body, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -2379,6 +2397,183 @@ public SolutionVersionInner updateExternalValidationStatus(String resourceGroupN return beginUpdateExternalValidationStatus(resourceGroupName, targetName, body, context).getFinalResult(); } + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> unstageSolutionVersionWithResponseAsync(String resourceGroupName, + String targetName, SolutionVersionParameter body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.unstageSolutionVersion(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, targetName, contentType, accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response unstageSolutionVersionWithResponse(String resourceGroupName, String targetName, + SolutionVersionParameter body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.unstageSolutionVersionSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, targetName, contentType, accept, body, Context.NONE); + } + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response unstageSolutionVersionWithResponse(String resourceGroupName, String targetName, + SolutionVersionParameter body, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.unstageSolutionVersionSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, targetName, contentType, accept, body, context); + } + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of solution Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SolutionVersionInner> + beginUnstageSolutionVersionAsync(String resourceGroupName, String targetName, SolutionVersionParameter body) { + Mono>> mono + = unstageSolutionVersionWithResponseAsync(resourceGroupName, targetName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SolutionVersionInner.class, SolutionVersionInner.class, this.client.getContext()); + } + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SolutionVersionInner> + beginUnstageSolutionVersion(String resourceGroupName, String targetName, SolutionVersionParameter body) { + Response response = unstageSolutionVersionWithResponse(resourceGroupName, targetName, body); + return this.client.getLroResult(response, + SolutionVersionInner.class, SolutionVersionInner.class, Context.NONE); + } + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of solution Version Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SolutionVersionInner> beginUnstageSolutionVersion( + String resourceGroupName, String targetName, SolutionVersionParameter body, Context context) { + Response response + = unstageSolutionVersionWithResponse(resourceGroupName, targetName, body, context); + return this.client.getLroResult(response, + SolutionVersionInner.class, SolutionVersionInner.class, context); + } + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono unstageSolutionVersionAsync(String resourceGroupName, String targetName, + SolutionVersionParameter body) { + return beginUnstageSolutionVersionAsync(resourceGroupName, targetName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionVersionInner unstageSolutionVersion(String resourceGroupName, String targetName, + SolutionVersionParameter body) { + return beginUnstageSolutionVersion(resourceGroupName, targetName, body).getFinalResult(); + } + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SolutionVersionInner unstageSolutionVersion(String resourceGroupName, String targetName, + SolutionVersionParameter body, Context context) { + return beginUnstageSolutionVersion(resourceGroupName, targetName, body, context).getFinalResult(); + } + /** * Get the next page of items. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsImpl.java index b08f0765c41aa..188074c795e9d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsImpl.java @@ -195,6 +195,27 @@ public SolutionVersion updateExternalValidationStatus(String resourceGroupName, } } + public SolutionVersion unstageSolutionVersion(String resourceGroupName, String targetName, + SolutionVersionParameter body) { + SolutionVersionInner inner = this.serviceClient().unstageSolutionVersion(resourceGroupName, targetName, body); + if (inner != null) { + return new SolutionVersionImpl(inner, this.manager()); + } else { + return null; + } + } + + public SolutionVersion unstageSolutionVersion(String resourceGroupName, String targetName, + SolutionVersionParameter body, Context context) { + SolutionVersionInner inner + = this.serviceClient().unstageSolutionVersion(resourceGroupName, targetName, body, context); + if (inner != null) { + return new SolutionVersionImpl(inner, this.manager()); + } else { + return null; + } + } + public Target getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkloadOrchestrationManagementClientImpl.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkloadOrchestrationManagementClientImpl.java index d24d7a9f75059..dd56a6979d330 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkloadOrchestrationManagementClientImpl.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkloadOrchestrationManagementClientImpl.java @@ -26,6 +26,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateSchemasClient; import com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient; import com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient; import com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient; @@ -33,6 +35,8 @@ import com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient; import com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient; import com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient; +import com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadataVersionsClient; +import com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadatasClient; import com.azure.resourcemanager.workloadorchestration.fluent.InstanceHistoriesClient; import com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient; import com.azure.resourcemanager.workloadorchestration.fluent.JobsClient; @@ -40,6 +44,10 @@ import com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient; import com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient; import com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadataVersionsClient; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadatasClient; +import com.azure.resourcemanager.workloadorchestration.fluent.SolutionSchemasClient; import com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient; import com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient; import com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient; @@ -272,6 +280,34 @@ public SolutionsClient getSolutions() { return this.solutions; } + /** + * The SolutionMetadatasClient object to access its operations. + */ + private final SolutionMetadatasClient solutionMetadatas; + + /** + * Gets the SolutionMetadatasClient object to access its operations. + * + * @return the SolutionMetadatasClient object. + */ + public SolutionMetadatasClient getSolutionMetadatas() { + return this.solutionMetadatas; + } + + /** + * The SolutionMetadataVersionsClient object to access its operations. + */ + private final SolutionMetadataVersionsClient solutionMetadataVersions; + + /** + * Gets the SolutionMetadataVersionsClient object to access its operations. + * + * @return the SolutionMetadataVersionsClient object. + */ + public SolutionMetadataVersionsClient getSolutionMetadataVersions() { + return this.solutionMetadataVersions; + } + /** * The SolutionTemplateVersionsClient object to access its operations. */ @@ -440,6 +476,90 @@ public SiteReferencesClient getSiteReferences() { return this.siteReferences; } + /** + * The SolutionSchemasClient object to access its operations. + */ + private final SolutionSchemasClient solutionSchemas; + + /** + * Gets the SolutionSchemasClient object to access its operations. + * + * @return the SolutionSchemasClient object. + */ + public SolutionSchemasClient getSolutionSchemas() { + return this.solutionSchemas; + } + + /** + * The ConfigTemplateSchemasClient object to access its operations. + */ + private final ConfigTemplateSchemasClient configTemplateSchemas; + + /** + * Gets the ConfigTemplateSchemasClient object to access its operations. + * + * @return the ConfigTemplateSchemasClient object. + */ + public ConfigTemplateSchemasClient getConfigTemplateSchemas() { + return this.configTemplateSchemas; + } + + /** + * The ConfigTemplateMetadatasClient object to access its operations. + */ + private final ConfigTemplateMetadatasClient configTemplateMetadatas; + + /** + * Gets the ConfigTemplateMetadatasClient object to access its operations. + * + * @return the ConfigTemplateMetadatasClient object. + */ + public ConfigTemplateMetadatasClient getConfigTemplateMetadatas() { + return this.configTemplateMetadatas; + } + + /** + * The HierarchyConfigurationMetadatasClient object to access its operations. + */ + private final HierarchyConfigurationMetadatasClient hierarchyConfigurationMetadatas; + + /** + * Gets the HierarchyConfigurationMetadatasClient object to access its operations. + * + * @return the HierarchyConfigurationMetadatasClient object. + */ + public HierarchyConfigurationMetadatasClient getHierarchyConfigurationMetadatas() { + return this.hierarchyConfigurationMetadatas; + } + + /** + * The HierarchyConfigurationMetadataVersionsClient object to access its operations. + */ + private final HierarchyConfigurationMetadataVersionsClient hierarchyConfigurationMetadataVersions; + + /** + * Gets the HierarchyConfigurationMetadataVersionsClient object to access its operations. + * + * @return the HierarchyConfigurationMetadataVersionsClient object. + */ + public HierarchyConfigurationMetadataVersionsClient getHierarchyConfigurationMetadataVersions() { + return this.hierarchyConfigurationMetadataVersions; + } + + /** + * The SolutionDeploymentsClient object to access its operations. + */ + private final SolutionDeploymentsClient solutionDeployments; + + /** + * Gets the SolutionDeploymentsClient object to access its operations. + * + * @return the SolutionDeploymentsClient object. + */ + public SolutionDeploymentsClient getSolutionDeployments() { + return this.solutionDeployments; + } + /** * Initializes an instance of WorkloadOrchestrationManagementClient client. * @@ -457,7 +577,7 @@ public SiteReferencesClient getSiteReferences() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2025-06-01"; + this.apiVersion = "2026-05-01-preview"; this.dynamicSchemas = new DynamicSchemasClientImpl(this); this.schemas = new SchemasClientImpl(this); this.schemaVersions = new SchemaVersionsClientImpl(this); @@ -467,6 +587,8 @@ public SiteReferencesClient getSiteReferences() { this.dynamicSchemaVersions = new DynamicSchemaVersionsClientImpl(this); this.schemaReferences = new SchemaReferencesClientImpl(this); this.solutions = new SolutionsClientImpl(this); + this.solutionMetadatas = new SolutionMetadatasClientImpl(this); + this.solutionMetadataVersions = new SolutionMetadataVersionsClientImpl(this); this.solutionTemplateVersions = new SolutionTemplateVersionsClientImpl(this); this.solutionTemplates = new SolutionTemplatesClientImpl(this); this.instances = new InstancesClientImpl(this); @@ -479,6 +601,12 @@ public SiteReferencesClient getSiteReferences() { this.diagnostics = new DiagnosticsClientImpl(this); this.contexts = new ContextsClientImpl(this); this.siteReferences = new SiteReferencesClientImpl(this); + this.solutionSchemas = new SolutionSchemasClientImpl(this); + this.configTemplateSchemas = new ConfigTemplateSchemasClientImpl(this); + this.configTemplateMetadatas = new ConfigTemplateMetadatasClientImpl(this); + this.hierarchyConfigurationMetadatas = new HierarchyConfigurationMetadatasClientImpl(this); + this.hierarchyConfigurationMetadataVersions = new HierarchyConfigurationMetadataVersionsClientImpl(this); + this.solutionDeployments = new SolutionDeploymentsClientImpl(this); } /** diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateMetadataListResult.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateMetadataListResult.java new file mode 100644 index 0000000000000..e24150c4b588f --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateMetadataListResult.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateMetadataInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a ConfigTemplateMetadata list operation. + */ +@Immutable +public final class ConfigTemplateMetadataListResult implements JsonSerializable { + /* + * The ConfigTemplateMetadata items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of ConfigTemplateMetadataListResult class. + */ + private ConfigTemplateMetadataListResult() { + } + + /** + * Get the value property: The ConfigTemplateMetadata items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigTemplateMetadataListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigTemplateMetadataListResult if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ConfigTemplateMetadataListResult. + */ + public static ConfigTemplateMetadataListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigTemplateMetadataListResult deserializedConfigTemplateMetadataListResult + = new ConfigTemplateMetadataListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ConfigTemplateMetadataInner.fromJson(reader1)); + deserializedConfigTemplateMetadataListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedConfigTemplateMetadataListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigTemplateMetadataListResult; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateSchemaListResult.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateSchemaListResult.java new file mode 100644 index 0000000000000..b9d19afeb4026 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateSchemaListResult.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateSchemaInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a ConfigTemplateSchema list operation. + */ +@Immutable +public final class ConfigTemplateSchemaListResult implements JsonSerializable { + /* + * The ConfigTemplateSchema items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of ConfigTemplateSchemaListResult class. + */ + private ConfigTemplateSchemaListResult() { + } + + /** + * Get the value property: The ConfigTemplateSchema items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigTemplateSchemaListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigTemplateSchemaListResult if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ConfigTemplateSchemaListResult. + */ + public static ConfigTemplateSchemaListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigTemplateSchemaListResult deserializedConfigTemplateSchemaListResult + = new ConfigTemplateSchemaListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ConfigTemplateSchemaInner.fromJson(reader1)); + deserializedConfigTemplateSchemaListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedConfigTemplateSchemaListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigTemplateSchemaListResult; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/HierarchyConfigurationMetadataListResult.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/HierarchyConfigurationMetadataListResult.java new file mode 100644 index 0000000000000..2421cde9ef224 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/HierarchyConfigurationMetadataListResult.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a HierarchyConfigurationMetadata list operation. + */ +@Immutable +public final class HierarchyConfigurationMetadataListResult + implements JsonSerializable { + /* + * The HierarchyConfigurationMetadata items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of HierarchyConfigurationMetadataListResult class. + */ + private HierarchyConfigurationMetadataListResult() { + } + + /** + * Get the value property: The HierarchyConfigurationMetadata items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HierarchyConfigurationMetadataListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HierarchyConfigurationMetadataListResult if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the HierarchyConfigurationMetadataListResult. + */ + public static HierarchyConfigurationMetadataListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HierarchyConfigurationMetadataListResult deserializedHierarchyConfigurationMetadataListResult + = new HierarchyConfigurationMetadataListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> HierarchyConfigurationMetadataInner.fromJson(reader1)); + deserializedHierarchyConfigurationMetadataListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedHierarchyConfigurationMetadataListResult; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/HierarchyConfigurationMetadataVersionListResult.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/HierarchyConfigurationMetadataVersionListResult.java new file mode 100644 index 0000000000000..dc5f95ba054c4 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/HierarchyConfigurationMetadataVersionListResult.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataVersionInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a HierarchyConfigurationMetadataVersion list operation. + */ +@Immutable +public final class HierarchyConfigurationMetadataVersionListResult + implements JsonSerializable { + /* + * The HierarchyConfigurationMetadataVersion items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of HierarchyConfigurationMetadataVersionListResult class. + */ + private HierarchyConfigurationMetadataVersionListResult() { + } + + /** + * Get the value property: The HierarchyConfigurationMetadataVersion items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HierarchyConfigurationMetadataVersionListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HierarchyConfigurationMetadataVersionListResult if the JsonReader was pointing to an + * instance of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the HierarchyConfigurationMetadataVersionListResult. + */ + public static HierarchyConfigurationMetadataVersionListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HierarchyConfigurationMetadataVersionListResult deserializedHierarchyConfigurationMetadataVersionListResult + = new HierarchyConfigurationMetadataVersionListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> HierarchyConfigurationMetadataVersionInner.fromJson(reader1)); + deserializedHierarchyConfigurationMetadataVersionListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedHierarchyConfigurationMetadataVersionListResult; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionDeploymentListResult.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionDeploymentListResult.java new file mode 100644 index 0000000000000..2a291fa206b6d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionDeploymentListResult.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionDeploymentInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a SolutionDeployment list operation. + */ +@Immutable +public final class SolutionDeploymentListResult implements JsonSerializable { + /* + * The SolutionDeployment items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of SolutionDeploymentListResult class. + */ + private SolutionDeploymentListResult() { + } + + /** + * Get the value property: The SolutionDeployment items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionDeploymentListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionDeploymentListResult if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SolutionDeploymentListResult. + */ + public static SolutionDeploymentListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionDeploymentListResult deserializedSolutionDeploymentListResult = new SolutionDeploymentListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> SolutionDeploymentInner.fromJson(reader1)); + deserializedSolutionDeploymentListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedSolutionDeploymentListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionDeploymentListResult; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionMetadataListResult.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionMetadataListResult.java new file mode 100644 index 0000000000000..b2ebbdcb76d02 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionMetadataListResult.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a SolutionMetadata list operation. + */ +@Immutable +public final class SolutionMetadataListResult implements JsonSerializable { + /* + * The SolutionMetadata items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of SolutionMetadataListResult class. + */ + private SolutionMetadataListResult() { + } + + /** + * Get the value property: The SolutionMetadata items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionMetadataListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionMetadataListResult if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SolutionMetadataListResult. + */ + public static SolutionMetadataListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionMetadataListResult deserializedSolutionMetadataListResult = new SolutionMetadataListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> SolutionMetadataInner.fromJson(reader1)); + deserializedSolutionMetadataListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedSolutionMetadataListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionMetadataListResult; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionMetadataVersionListResult.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionMetadataVersionListResult.java new file mode 100644 index 0000000000000..3661765f2fbc1 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionMetadataVersionListResult.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataVersionInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a SolutionMetadataVersion list operation. + */ +@Immutable +public final class SolutionMetadataVersionListResult implements JsonSerializable { + /* + * The SolutionMetadataVersion items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of SolutionMetadataVersionListResult class. + */ + private SolutionMetadataVersionListResult() { + } + + /** + * Get the value property: The SolutionMetadataVersion items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionMetadataVersionListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionMetadataVersionListResult if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SolutionMetadataVersionListResult. + */ + public static SolutionMetadataVersionListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionMetadataVersionListResult deserializedSolutionMetadataVersionListResult + = new SolutionMetadataVersionListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> SolutionMetadataVersionInner.fromJson(reader1)); + deserializedSolutionMetadataVersionListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedSolutionMetadataVersionListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionMetadataVersionListResult; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionSchemaListResult.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionSchemaListResult.java new file mode 100644 index 0000000000000..973789eafaacb --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionSchemaListResult.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionSchemaInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a SolutionSchema list operation. + */ +@Immutable +public final class SolutionSchemaListResult implements JsonSerializable { + /* + * The SolutionSchema items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of SolutionSchemaListResult class. + */ + private SolutionSchemaListResult() { + } + + /** + * Get the value property: The SolutionSchema items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionSchemaListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionSchemaListResult if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SolutionSchemaListResult. + */ + public static SolutionSchemaListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionSchemaListResult deserializedSolutionSchemaListResult = new SolutionSchemaListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> SolutionSchemaInner.fromJson(reader1)); + deserializedSolutionSchemaListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedSolutionSchemaListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionSchemaListResult; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/AdditionalData.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/AdditionalData.java new file mode 100644 index 0000000000000..c9a112a15b3d6 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/AdditionalData.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Additional metadata or properties. + */ +@Immutable +public final class AdditionalData implements JsonSerializable { + /* + * Id of the workflow. + */ + private String workflowId; + + /** + * Creates an instance of AdditionalData class. + */ + private AdditionalData() { + } + + /** + * Get the workflowId property: Id of the workflow. + * + * @return the workflowId value. + */ + public String workflowId() { + return this.workflowId; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("workflowId", this.workflowId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdditionalData from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdditionalData if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the AdditionalData. + */ + public static AdditionalData fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdditionalData deserializedAdditionalData = new AdditionalData(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("workflowId".equals(fieldName)) { + deserializedAdditionalData.workflowId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAdditionalData; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishSolutionParameter.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishSolutionParameter.java index d9e0d04cfd677..7f1956af913d9 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishSolutionParameter.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishSolutionParameter.java @@ -32,6 +32,11 @@ public final class BulkPublishSolutionParameter implements JsonSerializable solutionDependencies; + /* + * Configuration of solution + */ + private String solutionConfiguration; + /** * Creates an instance of BulkPublishSolutionParameter class. */ @@ -99,6 +104,26 @@ public List solutionDependencies() { return this; } + /** + * Get the solutionConfiguration property: Configuration of solution. + * + * @return the solutionConfiguration value. + */ + public String solutionConfiguration() { + return this.solutionConfiguration; + } + + /** + * Set the solutionConfiguration property: Configuration of solution. + * + * @param solutionConfiguration the solutionConfiguration value to set. + * @return the BulkPublishSolutionParameter object itself. + */ + public BulkPublishSolutionParameter withSolutionConfiguration(String solutionConfiguration) { + this.solutionConfiguration = solutionConfiguration; + return this; + } + /** * {@inheritDoc} */ @@ -109,6 +134,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("solutionInstanceName", this.solutionInstanceName); jsonWriter.writeArrayField("solutionDependencies", this.solutionDependencies, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("solutionConfiguration", this.solutionConfiguration); return jsonWriter.writeEndObject(); } @@ -138,6 +164,8 @@ public static BulkPublishSolutionParameter fromJson(JsonReader jsonReader) throw List solutionDependencies = reader.readArray(reader1 -> SolutionDependencyParameter.fromJson(reader1)); deserializedBulkPublishSolutionParameter.solutionDependencies = solutionDependencies; + } else if ("solutionConfiguration".equals(fieldName)) { + deserializedBulkPublishSolutionParameter.solutionConfiguration = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishTargetDetails.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishTargetDetails.java index e8c9d13a2f7d6..f518e907f7340 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishTargetDetails.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishTargetDetails.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * Bulk publish target details. @@ -21,11 +22,26 @@ public final class BulkPublishTargetDetails implements JsonSerializable solutionDependencies; + /* * Name of the solution instance */ private String solutionInstanceName; + /* + * ArmId of Target Solution Version + */ + private String solutionVersionId; + + /* + * Configuration of solution + */ + private String solutionConfiguration; + /** * Creates an instance of BulkPublishTargetDetails class. */ @@ -52,6 +68,26 @@ public BulkPublishTargetDetails withTargetId(String targetId) { return this; } + /** + * Get the solutionDependencies property: Solution dependencies. + * + * @return the solutionDependencies value. + */ + public List solutionDependencies() { + return this.solutionDependencies; + } + + /** + * Set the solutionDependencies property: Solution dependencies. + * + * @param solutionDependencies the solutionDependencies value to set. + * @return the BulkPublishTargetDetails object itself. + */ + public BulkPublishTargetDetails withSolutionDependencies(List solutionDependencies) { + this.solutionDependencies = solutionDependencies; + return this; + } + /** * Get the solutionInstanceName property: Name of the solution instance. * @@ -72,6 +108,46 @@ public BulkPublishTargetDetails withSolutionInstanceName(String solutionInstance return this; } + /** + * Get the solutionVersionId property: ArmId of Target Solution Version. + * + * @return the solutionVersionId value. + */ + public String solutionVersionId() { + return this.solutionVersionId; + } + + /** + * Set the solutionVersionId property: ArmId of Target Solution Version. + * + * @param solutionVersionId the solutionVersionId value to set. + * @return the BulkPublishTargetDetails object itself. + */ + public BulkPublishTargetDetails withSolutionVersionId(String solutionVersionId) { + this.solutionVersionId = solutionVersionId; + return this; + } + + /** + * Get the solutionConfiguration property: Configuration of solution. + * + * @return the solutionConfiguration value. + */ + public String solutionConfiguration() { + return this.solutionConfiguration; + } + + /** + * Set the solutionConfiguration property: Configuration of solution. + * + * @param solutionConfiguration the solutionConfiguration value to set. + * @return the BulkPublishTargetDetails object itself. + */ + public BulkPublishTargetDetails withSolutionConfiguration(String solutionConfiguration) { + this.solutionConfiguration = solutionConfiguration; + return this; + } + /** * {@inheritDoc} */ @@ -79,7 +155,11 @@ public BulkPublishTargetDetails withSolutionInstanceName(String solutionInstance public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("targetId", this.targetId); + jsonWriter.writeArrayField("solutionDependencies", this.solutionDependencies, + (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("solutionInstanceName", this.solutionInstanceName); + jsonWriter.writeStringField("solutionVersionId", this.solutionVersionId); + jsonWriter.writeStringField("solutionConfiguration", this.solutionConfiguration); return jsonWriter.writeEndObject(); } @@ -101,8 +181,16 @@ public static BulkPublishTargetDetails fromJson(JsonReader jsonReader) throws IO if ("targetId".equals(fieldName)) { deserializedBulkPublishTargetDetails.targetId = reader.getString(); + } else if ("solutionDependencies".equals(fieldName)) { + List solutionDependencies + = reader.readArray(reader1 -> SolutionDependencyParameter.fromJson(reader1)); + deserializedBulkPublishTargetDetails.solutionDependencies = solutionDependencies; } else if ("solutionInstanceName".equals(fieldName)) { deserializedBulkPublishTargetDetails.solutionInstanceName = reader.getString(); + } else if ("solutionVersionId".equals(fieldName)) { + deserializedBulkPublishTargetDetails.solutionVersionId = reader.getString(); + } else if ("solutionConfiguration".equals(fieldName)) { + deserializedBulkPublishTargetDetails.solutionConfiguration = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkReviewSolutionParameter.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkReviewSolutionParameter.java new file mode 100644 index 0000000000000..66db55ef6f3e7 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkReviewSolutionParameter.java @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Bulk publish solution parameter. + */ +@Fluent +public final class BulkReviewSolutionParameter implements JsonSerializable { + /* + * Targets to which solution needs to be published + */ + private List targets; + + /* + * Name of the solution instance + */ + private String solutionInstanceName; + + /* + * Solution dependencies + */ + private List solutionDependencies; + + /* + * Configuration of solution + */ + private String solutionConfiguration; + + /** + * Creates an instance of BulkReviewSolutionParameter class. + */ + public BulkReviewSolutionParameter() { + } + + /** + * Get the targets property: Targets to which solution needs to be published. + * + * @return the targets value. + */ + public List targets() { + return this.targets; + } + + /** + * Set the targets property: Targets to which solution needs to be published. + * + * @param targets the targets value to set. + * @return the BulkReviewSolutionParameter object itself. + */ + public BulkReviewSolutionParameter withTargets(List targets) { + this.targets = targets; + return this; + } + + /** + * Get the solutionInstanceName property: Name of the solution instance. + * + * @return the solutionInstanceName value. + */ + public String solutionInstanceName() { + return this.solutionInstanceName; + } + + /** + * Set the solutionInstanceName property: Name of the solution instance. + * + * @param solutionInstanceName the solutionInstanceName value to set. + * @return the BulkReviewSolutionParameter object itself. + */ + public BulkReviewSolutionParameter withSolutionInstanceName(String solutionInstanceName) { + this.solutionInstanceName = solutionInstanceName; + return this; + } + + /** + * Get the solutionDependencies property: Solution dependencies. + * + * @return the solutionDependencies value. + */ + public List solutionDependencies() { + return this.solutionDependencies; + } + + /** + * Set the solutionDependencies property: Solution dependencies. + * + * @param solutionDependencies the solutionDependencies value to set. + * @return the BulkReviewSolutionParameter object itself. + */ + public BulkReviewSolutionParameter + withSolutionDependencies(List solutionDependencies) { + this.solutionDependencies = solutionDependencies; + return this; + } + + /** + * Get the solutionConfiguration property: Configuration of solution. + * + * @return the solutionConfiguration value. + */ + public String solutionConfiguration() { + return this.solutionConfiguration; + } + + /** + * Set the solutionConfiguration property: Configuration of solution. + * + * @param solutionConfiguration the solutionConfiguration value to set. + * @return the BulkReviewSolutionParameter object itself. + */ + public BulkReviewSolutionParameter withSolutionConfiguration(String solutionConfiguration) { + this.solutionConfiguration = solutionConfiguration; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("targets", this.targets, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("solutionInstanceName", this.solutionInstanceName); + jsonWriter.writeArrayField("solutionDependencies", this.solutionDependencies, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("solutionConfiguration", this.solutionConfiguration); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BulkReviewSolutionParameter from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BulkReviewSolutionParameter if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BulkReviewSolutionParameter. + */ + public static BulkReviewSolutionParameter fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BulkReviewSolutionParameter deserializedBulkReviewSolutionParameter = new BulkReviewSolutionParameter(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targets".equals(fieldName)) { + List targets + = reader.readArray(reader1 -> BulkReviewTargetDetails.fromJson(reader1)); + deserializedBulkReviewSolutionParameter.targets = targets; + } else if ("solutionInstanceName".equals(fieldName)) { + deserializedBulkReviewSolutionParameter.solutionInstanceName = reader.getString(); + } else if ("solutionDependencies".equals(fieldName)) { + List solutionDependencies + = reader.readArray(reader1 -> SolutionDependencyParameter.fromJson(reader1)); + deserializedBulkReviewSolutionParameter.solutionDependencies = solutionDependencies; + } else if ("solutionConfiguration".equals(fieldName)) { + deserializedBulkReviewSolutionParameter.solutionConfiguration = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBulkReviewSolutionParameter; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkReviewTargetDetails.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkReviewTargetDetails.java new file mode 100644 index 0000000000000..c450722177e16 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkReviewTargetDetails.java @@ -0,0 +1,174 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Bulk publish target details. + */ +@Fluent +public final class BulkReviewTargetDetails implements JsonSerializable { + /* + * ArmId of Target + */ + private String targetId; + + /* + * Solution dependencies + */ + private List solutionDependencies; + + /* + * Name of the solution instance + */ + private String solutionInstanceName; + + /* + * Configuration of solution + */ + private String solutionConfiguration; + + /** + * Creates an instance of BulkReviewTargetDetails class. + */ + public BulkReviewTargetDetails() { + } + + /** + * Get the targetId property: ArmId of Target. + * + * @return the targetId value. + */ + public String targetId() { + return this.targetId; + } + + /** + * Set the targetId property: ArmId of Target. + * + * @param targetId the targetId value to set. + * @return the BulkReviewTargetDetails object itself. + */ + public BulkReviewTargetDetails withTargetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** + * Get the solutionDependencies property: Solution dependencies. + * + * @return the solutionDependencies value. + */ + public List solutionDependencies() { + return this.solutionDependencies; + } + + /** + * Set the solutionDependencies property: Solution dependencies. + * + * @param solutionDependencies the solutionDependencies value to set. + * @return the BulkReviewTargetDetails object itself. + */ + public BulkReviewTargetDetails withSolutionDependencies(List solutionDependencies) { + this.solutionDependencies = solutionDependencies; + return this; + } + + /** + * Get the solutionInstanceName property: Name of the solution instance. + * + * @return the solutionInstanceName value. + */ + public String solutionInstanceName() { + return this.solutionInstanceName; + } + + /** + * Set the solutionInstanceName property: Name of the solution instance. + * + * @param solutionInstanceName the solutionInstanceName value to set. + * @return the BulkReviewTargetDetails object itself. + */ + public BulkReviewTargetDetails withSolutionInstanceName(String solutionInstanceName) { + this.solutionInstanceName = solutionInstanceName; + return this; + } + + /** + * Get the solutionConfiguration property: Configuration of solution. + * + * @return the solutionConfiguration value. + */ + public String solutionConfiguration() { + return this.solutionConfiguration; + } + + /** + * Set the solutionConfiguration property: Configuration of solution. + * + * @param solutionConfiguration the solutionConfiguration value to set. + * @return the BulkReviewTargetDetails object itself. + */ + public BulkReviewTargetDetails withSolutionConfiguration(String solutionConfiguration) { + this.solutionConfiguration = solutionConfiguration; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetId", this.targetId); + jsonWriter.writeArrayField("solutionDependencies", this.solutionDependencies, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("solutionInstanceName", this.solutionInstanceName); + jsonWriter.writeStringField("solutionConfiguration", this.solutionConfiguration); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BulkReviewTargetDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BulkReviewTargetDetails if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BulkReviewTargetDetails. + */ + public static BulkReviewTargetDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BulkReviewTargetDetails deserializedBulkReviewTargetDetails = new BulkReviewTargetDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetId".equals(fieldName)) { + deserializedBulkReviewTargetDetails.targetId = reader.getString(); + } else if ("solutionDependencies".equals(fieldName)) { + List solutionDependencies + = reader.readArray(reader1 -> SolutionDependencyParameter.fromJson(reader1)); + deserializedBulkReviewTargetDetails.solutionDependencies = solutionDependencies; + } else if ("solutionInstanceName".equals(fieldName)) { + deserializedBulkReviewTargetDetails.solutionInstanceName = reader.getString(); + } else if ("solutionConfiguration".equals(fieldName)) { + deserializedBulkReviewTargetDetails.solutionConfiguration = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBulkReviewTargetDetails; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/CMStages.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/CMStages.java new file mode 100644 index 0000000000000..afb55ea0990f3 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/CMStages.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Stages for Solution Version. + */ +public final class CMStages extends ExpandableStringEnum { + /** + * Configuration stage. + */ + public static final CMStages CONFIGURATION = fromString("Configuration"); + + /** + * Publish stage. + */ + public static final CMStages PUBLISH = fromString("Publish"); + + /** + * Deployment stage. + */ + public static final CMStages DEPLOYMENT = fromString("Deployment"); + + /** + * Uninstallation stage. + */ + public static final CMStages UNINSTALLATION = fromString("Uninstallation"); + + /** + * External Validation stage. + */ + public static final CMStages EXTERNAL_VALIDATION = fromString("ExternalValidation"); + + /** + * Staging stage. + */ + public static final CMStages STAGING = fromString("Staging"); + + /** + * Unstaging stage. + */ + public static final CMStages UNSTAGING = fromString("Unstaging"); + + /** + * Creates a new instance of CMStages value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CMStages() { + } + + /** + * Creates or finds a CMStages from its string representation. + * + * @param name a name to look for. + * @return the corresponding CMStages. + */ + public static CMStages fromString(String name) { + return fromString(name, CMStages.class); + } + + /** + * Gets known CMStages values. + * + * @return known CMStages values. + */ + public static Collection values() { + return values(CMStages.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Capability.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Capability.java index f4b076b543ca1..9bf3db3f8cb25 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Capability.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Capability.java @@ -12,7 +12,7 @@ import java.io.IOException; /** - * Capability, to match in Solution Templates and Targets. + * Capability, to match in Solution Templates & Targets. */ @Fluent public final class Capability implements JsonSerializable { diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplate.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplate.java index 13f6d758d6f6d..4c72d0b6a5fce 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplate.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplate.java @@ -275,6 +275,48 @@ interface WithProperties { */ ConfigTemplate refresh(Context context); + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void linkToHierarchies(HierarchySelector body); + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void linkToHierarchies(HierarchySelector body, Context context); + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void unLinkFromHierarchies(HierarchySelector body); + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void unLinkFromHierarchies(HierarchySelector body, Context context); + /** * Create or update a Config Template Version Resource with the specified UpdateType. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateConfigurationState.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateConfigurationState.java new file mode 100644 index 0000000000000..2d939f020db68 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateConfigurationState.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Configuration State Enums. + */ +public final class ConfigTemplateConfigurationState extends ExpandableStringEnum { + /** + * Configuration Completed. + */ + public static final ConfigTemplateConfigurationState CONFIGURATION_COMPLETED = fromString("ConfigurationCompleted"); + + /** + * Configuration Completed. + */ + public static final ConfigTemplateConfigurationState CONFIGURATION_PENDING = fromString("ConfigurationPending"); + + /** + * Creates a new instance of ConfigTemplateConfigurationState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ConfigTemplateConfigurationState() { + } + + /** + * Creates or finds a ConfigTemplateConfigurationState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ConfigTemplateConfigurationState. + */ + public static ConfigTemplateConfigurationState fromString(String name) { + return fromString(name, ConfigTemplateConfigurationState.class); + } + + /** + * Gets known ConfigTemplateConfigurationState values. + * + * @return known ConfigTemplateConfigurationState values. + */ + public static Collection values() { + return values(ConfigTemplateConfigurationState.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadata.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadata.java new file mode 100644 index 0000000000000..174fcc527f606 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadata.java @@ -0,0 +1,199 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateMetadataInner; + +/** + * An immutable client-side representation of ConfigTemplateMetadata. + */ +public interface ConfigTemplateMetadata { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + ConfigTemplateMetadataProperties properties(); + + /** + * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + String eTag(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateMetadataInner object. + * + * @return the inner object. + */ + ConfigTemplateMetadataInner innerModel(); + + /** + * The entirety of the ConfigTemplateMetadata definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The ConfigTemplateMetadata definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the ConfigTemplateMetadata definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the ConfigTemplateMetadata definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, configTemplateName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @return the next definition stage. + */ + WithCreate withExistingConfigTemplate(String resourceGroupName, String configTemplateName); + } + + /** + * The stage of the ConfigTemplateMetadata definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + ConfigTemplateMetadata create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + ConfigTemplateMetadata create(Context context); + } + + /** + * The stage of the ConfigTemplateMetadata definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(ConfigTemplateMetadataProperties properties); + } + } + + /** + * Begins update for the ConfigTemplateMetadata resource. + * + * @return the stage of resource update. + */ + ConfigTemplateMetadata.Update update(); + + /** + * The template for ConfigTemplateMetadata update. + */ + interface Update extends UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + ConfigTemplateMetadata apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + ConfigTemplateMetadata apply(Context context); + } + + /** + * The ConfigTemplateMetadata update stages. + */ + interface UpdateStages { + /** + * The stage of the ConfigTemplateMetadata update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + Update withProperties(ConfigTemplateMetadataUpdateProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + ConfigTemplateMetadata refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + ConfigTemplateMetadata refresh(Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataProperties.java new file mode 100644 index 0000000000000..84ac09215e0a2 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataProperties.java @@ -0,0 +1,182 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * ConfigTemplateMetadata Properties. + */ +@Fluent +public final class ConfigTemplateMetadataProperties implements JsonSerializable { + /* + * ArmId of Context + */ + private String contextId; + + /* + * Hierarchy ARM Ids + */ + private List linkedHierarchies; + + /* + * Hierarchy ARM Ids + */ + private List unLinkedHierarchies; + + /* + * Unique identifier for the config template, generated by the system + */ + private String templateUniqueIdentifier; + + /* + * Provisioning state of resource + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of ConfigTemplateMetadataProperties class. + */ + public ConfigTemplateMetadataProperties() { + } + + /** + * Get the contextId property: ArmId of Context. + * + * @return the contextId value. + */ + public String contextId() { + return this.contextId; + } + + /** + * Set the contextId property: ArmId of Context. + * + * @param contextId the contextId value to set. + * @return the ConfigTemplateMetadataProperties object itself. + */ + public ConfigTemplateMetadataProperties withContextId(String contextId) { + this.contextId = contextId; + return this; + } + + /** + * Get the linkedHierarchies property: Hierarchy ARM Ids. + * + * @return the linkedHierarchies value. + */ + public List linkedHierarchies() { + return this.linkedHierarchies; + } + + /** + * Set the linkedHierarchies property: Hierarchy ARM Ids. + * + * @param linkedHierarchies the linkedHierarchies value to set. + * @return the ConfigTemplateMetadataProperties object itself. + */ + public ConfigTemplateMetadataProperties withLinkedHierarchies(List linkedHierarchies) { + this.linkedHierarchies = linkedHierarchies; + return this; + } + + /** + * Get the unLinkedHierarchies property: Hierarchy ARM Ids. + * + * @return the unLinkedHierarchies value. + */ + public List unLinkedHierarchies() { + return this.unLinkedHierarchies; + } + + /** + * Set the unLinkedHierarchies property: Hierarchy ARM Ids. + * + * @param unLinkedHierarchies the unLinkedHierarchies value to set. + * @return the ConfigTemplateMetadataProperties object itself. + */ + public ConfigTemplateMetadataProperties withUnLinkedHierarchies(List unLinkedHierarchies) { + this.unLinkedHierarchies = unLinkedHierarchies; + return this; + } + + /** + * Get the templateUniqueIdentifier property: Unique identifier for the config template, generated by the system. + * + * @return the templateUniqueIdentifier value. + */ + public String templateUniqueIdentifier() { + return this.templateUniqueIdentifier; + } + + /** + * Get the provisioningState property: Provisioning state of resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("contextId", this.contextId); + jsonWriter.writeArrayField("linkedHierarchies", this.linkedHierarchies, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("unLinkedHierarchies", this.unLinkedHierarchies, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigTemplateMetadataProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigTemplateMetadataProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConfigTemplateMetadataProperties. + */ + public static ConfigTemplateMetadataProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigTemplateMetadataProperties deserializedConfigTemplateMetadataProperties + = new ConfigTemplateMetadataProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("contextId".equals(fieldName)) { + deserializedConfigTemplateMetadataProperties.contextId = reader.getString(); + } else if ("linkedHierarchies".equals(fieldName)) { + List linkedHierarchies + = reader.readArray(reader1 -> HierarchyMetadata.fromJson(reader1)); + deserializedConfigTemplateMetadataProperties.linkedHierarchies = linkedHierarchies; + } else if ("unLinkedHierarchies".equals(fieldName)) { + List unLinkedHierarchies + = reader.readArray(reader1 -> HierarchyMetadata.fromJson(reader1)); + deserializedConfigTemplateMetadataProperties.unLinkedHierarchies = unLinkedHierarchies; + } else if ("templateUniqueIdentifier".equals(fieldName)) { + deserializedConfigTemplateMetadataProperties.templateUniqueIdentifier = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedConfigTemplateMetadataProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigTemplateMetadataProperties; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataUpdate.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataUpdate.java new file mode 100644 index 0000000000000..3c2cdee5f3155 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataUpdate.java @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The type used for update operations of the ConfigTemplateMetadata. + */ +@Fluent +public final class ConfigTemplateMetadataUpdate implements JsonSerializable { + /* + * The resource-specific properties for this resource. + */ + private ConfigTemplateMetadataUpdateProperties properties; + + /** + * Creates an instance of ConfigTemplateMetadataUpdate class. + */ + public ConfigTemplateMetadataUpdate() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public ConfigTemplateMetadataUpdateProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the ConfigTemplateMetadataUpdate object itself. + */ + public ConfigTemplateMetadataUpdate withProperties(ConfigTemplateMetadataUpdateProperties properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigTemplateMetadataUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigTemplateMetadataUpdate if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConfigTemplateMetadataUpdate. + */ + public static ConfigTemplateMetadataUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigTemplateMetadataUpdate deserializedConfigTemplateMetadataUpdate = new ConfigTemplateMetadataUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedConfigTemplateMetadataUpdate.properties + = ConfigTemplateMetadataUpdateProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigTemplateMetadataUpdate; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataUpdateProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataUpdateProperties.java new file mode 100644 index 0000000000000..8994347bc55f1 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataUpdateProperties.java @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The updatable properties of the ConfigTemplateMetadata. + */ +@Fluent +public final class ConfigTemplateMetadataUpdateProperties + implements JsonSerializable { + /* + * ArmId of Context + */ + private String contextId; + + /* + * Hierarchy ARM Ids + */ + private List linkedHierarchies; + + /* + * Hierarchy ARM Ids + */ + private List unLinkedHierarchies; + + /** + * Creates an instance of ConfigTemplateMetadataUpdateProperties class. + */ + public ConfigTemplateMetadataUpdateProperties() { + } + + /** + * Get the contextId property: ArmId of Context. + * + * @return the contextId value. + */ + public String contextId() { + return this.contextId; + } + + /** + * Set the contextId property: ArmId of Context. + * + * @param contextId the contextId value to set. + * @return the ConfigTemplateMetadataUpdateProperties object itself. + */ + public ConfigTemplateMetadataUpdateProperties withContextId(String contextId) { + this.contextId = contextId; + return this; + } + + /** + * Get the linkedHierarchies property: Hierarchy ARM Ids. + * + * @return the linkedHierarchies value. + */ + public List linkedHierarchies() { + return this.linkedHierarchies; + } + + /** + * Set the linkedHierarchies property: Hierarchy ARM Ids. + * + * @param linkedHierarchies the linkedHierarchies value to set. + * @return the ConfigTemplateMetadataUpdateProperties object itself. + */ + public ConfigTemplateMetadataUpdateProperties withLinkedHierarchies(List linkedHierarchies) { + this.linkedHierarchies = linkedHierarchies; + return this; + } + + /** + * Get the unLinkedHierarchies property: Hierarchy ARM Ids. + * + * @return the unLinkedHierarchies value. + */ + public List unLinkedHierarchies() { + return this.unLinkedHierarchies; + } + + /** + * Set the unLinkedHierarchies property: Hierarchy ARM Ids. + * + * @param unLinkedHierarchies the unLinkedHierarchies value to set. + * @return the ConfigTemplateMetadataUpdateProperties object itself. + */ + public ConfigTemplateMetadataUpdateProperties withUnLinkedHierarchies(List unLinkedHierarchies) { + this.unLinkedHierarchies = unLinkedHierarchies; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("contextId", this.contextId); + jsonWriter.writeArrayField("linkedHierarchies", this.linkedHierarchies, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("unLinkedHierarchies", this.unLinkedHierarchies, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigTemplateMetadataUpdateProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigTemplateMetadataUpdateProperties if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConfigTemplateMetadataUpdateProperties. + */ + public static ConfigTemplateMetadataUpdateProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigTemplateMetadataUpdateProperties deserializedConfigTemplateMetadataUpdateProperties + = new ConfigTemplateMetadataUpdateProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("contextId".equals(fieldName)) { + deserializedConfigTemplateMetadataUpdateProperties.contextId = reader.getString(); + } else if ("linkedHierarchies".equals(fieldName)) { + List linkedHierarchies + = reader.readArray(reader1 -> HierarchyMetadata.fromJson(reader1)); + deserializedConfigTemplateMetadataUpdateProperties.linkedHierarchies = linkedHierarchies; + } else if ("unLinkedHierarchies".equals(fieldName)) { + List unLinkedHierarchies + = reader.readArray(reader1 -> HierarchyMetadata.fromJson(reader1)); + deserializedConfigTemplateMetadataUpdateProperties.unLinkedHierarchies = unLinkedHierarchies; + } else { + reader.skipChildren(); + } + } + + return deserializedConfigTemplateMetadataUpdateProperties; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadatas.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadatas.java new file mode 100644 index 0000000000000..7bb2f89b00ffa --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadatas.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of ConfigTemplateMetadatas. + */ +public interface ConfigTemplateMetadatas { + /** + * Get a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateMetadata Resource along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateMetadataName, Context context); + + /** + * Get a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateMetadata Resource. + */ + ConfigTemplateMetadata get(String resourceGroupName, String configTemplateName, String configTemplateMetadataName); + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String configTemplateName, String configTemplateMetadataName); + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateMetadataName The name of the ConfigTemplateMetadataProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String configTemplateName, String configTemplateMetadataName, + Context context); + + /** + * List by ConfigTemplate. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByConfigTemplate(String resourceGroupName, String configTemplateName); + + /** + * List by ConfigTemplate. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateMetadata list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByConfigTemplate(String resourceGroupName, String configTemplateName, + Context context); + + /** + * Get a ConfigTemplateMetadata Resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateMetadata Resource along with {@link Response}. + */ + ConfigTemplateMetadata getById(String id); + + /** + * Get a ConfigTemplateMetadata Resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateMetadata Resource along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Delete a ConfigTemplateMetadata Resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new ConfigTemplateMetadata resource. + * + * @param name resource name. + * @return the first stage of the new ConfigTemplateMetadata definition. + */ + ConfigTemplateMetadata.DefinitionStages.Blank define(String name); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateProperties.java index fbb3d8b3defb5..c787e3b0b0921 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateProperties.java @@ -16,6 +16,11 @@ */ @Fluent public final class ConfigTemplateProperties implements JsonSerializable { + /* + * A unique identifier for the config template, generated by the system + */ + private String uniqueIdentifier; + /* * Description of config template */ @@ -37,6 +42,15 @@ public final class ConfigTemplateProperties implements JsonSerializable { + /* + * Value of schema + */ + private BinaryData value; + + /* + * Unique identifier for the config template, generated by the system + */ + private String templateUniqueIdentifier; + + /* + * Provisioning state of resource + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of ConfigTemplateSchemaProperties class. + */ + private ConfigTemplateSchemaProperties() { + } + + /** + * Get the value property: Value of schema. + * + * @return the value value. + */ + public BinaryData value() { + return this.value; + } + + /** + * Get the templateUniqueIdentifier property: Unique identifier for the config template, generated by the system. + * + * @return the templateUniqueIdentifier value. + */ + public String templateUniqueIdentifier() { + return this.templateUniqueIdentifier; + } + + /** + * Get the provisioningState property: Provisioning state of resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigTemplateSchemaProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigTemplateSchemaProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConfigTemplateSchemaProperties. + */ + public static ConfigTemplateSchemaProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigTemplateSchemaProperties deserializedConfigTemplateSchemaProperties + = new ConfigTemplateSchemaProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + deserializedConfigTemplateSchemaProperties.value + = reader.getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped())); + } else if ("templateUniqueIdentifier".equals(fieldName)) { + deserializedConfigTemplateSchemaProperties.templateUniqueIdentifier = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedConfigTemplateSchemaProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigTemplateSchemaProperties; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateSchemas.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateSchemas.java new file mode 100644 index 0000000000000..ced67de5805c1 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateSchemas.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of ConfigTemplateSchemas. + */ +public interface ConfigTemplateSchemas { + /** + * Get a ConfigTemplateSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param configTemplateSchemaName The name of the ConfigTemplateSchemaProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateSchema Resource along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, String configTemplateSchemaName, Context context); + + /** + * Get a ConfigTemplateSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param configTemplateSchemaName The name of the ConfigTemplateSchemaProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ConfigTemplateSchema Resource. + */ + ConfigTemplateSchema get(String resourceGroupName, String configTemplateName, String configTemplateVersionName, + String configTemplateSchemaName); + + /** + * List by ConfigTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByConfigTemplateVersion(String resourceGroupName, String configTemplateName, + String configTemplateVersionName); + + /** + * List by ConfigTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ConfigTemplateSchema list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByConfigTemplateVersion(String resourceGroupName, String configTemplateName, + String configTemplateVersionName, Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersion.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersion.java index e0323297e5667..5ef4fb5ed6b63 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersion.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersion.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.workloadorchestration.models; import com.azure.core.management.SystemData; +import com.azure.core.util.Context; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner; /** @@ -56,10 +57,143 @@ public interface ConfigTemplateVersion { */ SystemData systemData(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner object. * * @return the inner object. */ ConfigTemplateVersionInner innerModel(); + + /** + * The entirety of the ConfigTemplateVersion definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The ConfigTemplateVersion definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the ConfigTemplateVersion definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the ConfigTemplateVersion definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, configTemplateName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @return the next definition stage. + */ + WithCreate withExistingConfigTemplate(String resourceGroupName, String configTemplateName); + } + + /** + * The stage of the ConfigTemplateVersion definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + ConfigTemplateVersion create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + ConfigTemplateVersion create(Context context); + } + + /** + * The stage of the ConfigTemplateVersion definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(ConfigTemplateVersionProperties properties); + } + } + + /** + * Begins update for the ConfigTemplateVersion resource. + * + * @return the stage of resource update. + */ + ConfigTemplateVersion.Update update(); + + /** + * The template for ConfigTemplateVersion update. + */ + interface Update extends UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + ConfigTemplateVersion apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + ConfigTemplateVersion apply(Context context); + } + + /** + * The ConfigTemplateVersion update stages. + */ + interface UpdateStages { + /** + * The stage of the ConfigTemplateVersion update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + Update withProperties(ConfigTemplateVersionProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + ConfigTemplateVersion refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + ConfigTemplateVersion refresh(Context context); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersionProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersionProperties.java index bf5f00b1dc1d5..62b1911dc6151 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersionProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersionProperties.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.workloadorchestration.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.BinaryData; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,7 +20,7 @@ public final class ConfigTemplateVersionProperties implements JsonSerializable BinaryData.fromObject(nonNullReader.readUntyped())); } else if ("provisioningState".equals(fieldName)) { deserializedConfigTemplateVersionProperties.provisioningState = ProvisioningState.fromString(reader.getString()); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersions.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersions.java index 062d13b378282..714f7873ef60a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersions.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersions.java @@ -40,6 +40,31 @@ Response getWithResponse(String resourceGroupName, String */ ConfigTemplateVersion get(String resourceGroupName, String configTemplateName, String configTemplateVersionName); + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String configTemplateName, String configTemplateVersionName); + + /** + * Delete a Config Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param configTemplateVersionName The name of the ConfigTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String configTemplateName, String configTemplateVersionName, Context context); + /** * List Config Template Version Resources. * @@ -65,4 +90,56 @@ Response getWithResponse(String resourceGroupName, String */ PagedIterable listByConfigTemplate(String resourceGroupName, String configTemplateName, Context context); + + /** + * Get a Config Template Version Resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Config Template Version Resource along with {@link Response}. + */ + ConfigTemplateVersion getById(String id); + + /** + * Get a Config Template Version Resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Config Template Version Resource along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete a Config Template Version Resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Delete a Config Template Version Resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new ConfigTemplateVersion resource. + * + * @param name resource name. + * @return the first stage of the new ConfigTemplateVersion definition. + */ + ConfigTemplateVersion.DefinitionStages.Blank define(String name); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplates.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplates.java index 5d8aa7156e5d2..326b7855e43c2 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplates.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplates.java @@ -39,6 +39,58 @@ Response getByResourceGroupWithResponse(String resourceGroupName */ ConfigTemplate getByResourceGroup(String resourceGroupName, String configTemplateName); + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void linkToHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body); + + /** + * Apply a Config Template to a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void linkToHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body, + Context context); + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void unLinkFromHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body); + + /** + * Remove a Config Template from a particular hierarchy node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configTemplateName The name of the ConfigTemplate. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void unLinkFromHierarchies(String resourceGroupName, String configTemplateName, HierarchySelector body, + Context context); + /** * Create or update a Config Template Version Resource with the specified UpdateType. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigurationState.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigurationState.java new file mode 100644 index 0000000000000..d70d19e3d8cf1 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigurationState.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Configuration State Enums. + */ +public final class ConfigurationState extends ExpandableStringEnum { + /** + * Configuration Completed. + */ + public static final ConfigurationState CONFIGURATION_COMPLETED = fromString("ConfigurationCompleted"); + + /** + * Configuration Completed. + */ + public static final ConfigurationState CONFIGURATION_PENDING = fromString("ConfigurationPending"); + + /** + * Creates a new instance of ConfigurationState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ConfigurationState() { + } + + /** + * Creates or finds a ConfigurationState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ConfigurationState. + */ + public static ConfigurationState fromString(String name) { + return fromString(name, ConfigurationState.class); + } + + /** + * Gets known ConfigurationState values. + * + * @return known ConfigurationState values. + */ + public static Collection values() { + return values(ConfigurationState.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextProperties.java index f06dd653bedfd..de75e85e54f3f 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextProperties.java @@ -17,6 +17,11 @@ */ @Fluent public final class ContextProperties implements JsonSerializable { + /* + * A unique identifier for the context, generated by the system + */ + private String uniqueIdentifier; + /* * List of Capabilities */ @@ -38,6 +43,15 @@ public final class ContextProperties implements JsonSerializable hierarchies = reader.readArray(reader1 -> Hierarchy.fromJson(reader1)); deserializedContextProperties.hierarchies = hierarchies; + } else if ("uniqueIdentifier".equals(fieldName)) { + deserializedContextProperties.uniqueIdentifier = reader.getString(); } else if ("provisioningState".equals(fieldName)) { deserializedContextProperties.provisioningState = ProvisioningState.fromString(reader.getString()); } else { diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdate.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdate.java index 937256f269e1d..e77bbff4b0fbf 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdate.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdate.java @@ -13,7 +13,7 @@ import java.util.Map; /** - * The type used for update operations of the Diagnostic. + * The updatable properties of the Diagnostic. */ @Fluent public final class DiagnosticUpdate implements JsonSerializable { diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdateProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdateProperties.java index 71974cb5813f8..1c7a72525f87d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdateProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdateProperties.java @@ -16,12 +16,26 @@ */ @Immutable public final class DiagnosticUpdateProperties implements JsonSerializable { + /* + * The status of the last operation. + */ + private ProvisioningState provisioningState; + /** * Creates an instance of DiagnosticUpdateProperties class. */ public DiagnosticUpdateProperties() { } + /** + * Get the provisioningState property: The status of the last operation. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + /** * {@inheritDoc} */ @@ -46,7 +60,12 @@ public static DiagnosticUpdateProperties fromJson(JsonReader jsonReader) throws String fieldName = reader.getFieldName(); reader.nextToken(); - reader.skipChildren(); + if ("provisioningState".equals(fieldName)) { + deserializedDiagnosticUpdateProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } } return deserializedDiagnosticUpdateProperties; diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemaProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemaProperties.java index 5dc62184899e9..cfec3da7a4171 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemaProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemaProperties.java @@ -16,6 +16,11 @@ */ @Immutable public final class DynamicSchemaProperties implements JsonSerializable { + /* + * Display name of the dynamic schema + */ + private String displayName; + /* * Type of configuration */ @@ -37,6 +42,15 @@ public final class DynamicSchemaProperties implements JsonSerializable { + /* + * Display name of the hierarchy configuration metadata resource + */ + private String displayName; + + /* + * Configuration template Id + */ + private String configTemplateId; + + /** + * Creates an instance of HierarchyConfigurationMetadataProperties class. + */ + private HierarchyConfigurationMetadataProperties() { + } + + /** + * Get the displayName property: Display name of the hierarchy configuration metadata resource. + * + * @return the displayName value. + */ + public String displayName() { + return this.displayName; + } + + /** + * Get the configTemplateId property: Configuration template Id. + * + * @return the configTemplateId value. + */ + public String configTemplateId() { + return this.configTemplateId; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HierarchyConfigurationMetadataProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HierarchyConfigurationMetadataProperties if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the HierarchyConfigurationMetadataProperties. + */ + public static HierarchyConfigurationMetadataProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HierarchyConfigurationMetadataProperties deserializedHierarchyConfigurationMetadataProperties + = new HierarchyConfigurationMetadataProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("displayName".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataProperties.displayName = reader.getString(); + } else if ("configTemplateId".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataProperties.configTemplateId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedHierarchyConfigurationMetadataProperties; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersion.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersion.java new file mode 100644 index 0000000000000..d5d635d974c8d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersion.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataVersionInner; + +/** + * An immutable client-side representation of HierarchyConfigurationMetadataVersion. + */ +public interface HierarchyConfigurationMetadataVersion { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + HierarchyConfigurationMetadataVersionProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner + * com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataVersionInner object. + * + * @return the inner object. + */ + HierarchyConfigurationMetadataVersionInner innerModel(); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersionProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersionProperties.java new file mode 100644 index 0000000000000..5ec4970629d8c --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersionProperties.java @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Hierarchy Configuration Metadata Version Properties. + */ +@Immutable +public final class HierarchyConfigurationMetadataVersionProperties + implements JsonSerializable { + /* + * Display name of the hierarchy configuration metadata resource + */ + private String parentDisplayName; + + /* + * Configuration template version Id + */ + private String configTemplateVersionId; + + /* + * Schema Id for the config template version at the hierarchy + */ + private String schemaId; + + /* + * Dynamic Configuration Id for the config template version + */ + private String dynamicConfigurationVersionId; + + /* + * Configuration status of the config template version + */ + private ConfigTemplateConfigurationState configurationStatus; + + /** + * Creates an instance of HierarchyConfigurationMetadataVersionProperties class. + */ + private HierarchyConfigurationMetadataVersionProperties() { + } + + /** + * Get the parentDisplayName property: Display name of the hierarchy configuration metadata resource. + * + * @return the parentDisplayName value. + */ + public String parentDisplayName() { + return this.parentDisplayName; + } + + /** + * Get the configTemplateVersionId property: Configuration template version Id. + * + * @return the configTemplateVersionId value. + */ + public String configTemplateVersionId() { + return this.configTemplateVersionId; + } + + /** + * Get the schemaId property: Schema Id for the config template version at the hierarchy. + * + * @return the schemaId value. + */ + public String schemaId() { + return this.schemaId; + } + + /** + * Get the dynamicConfigurationVersionId property: Dynamic Configuration Id for the config template version. + * + * @return the dynamicConfigurationVersionId value. + */ + public String dynamicConfigurationVersionId() { + return this.dynamicConfigurationVersionId; + } + + /** + * Get the configurationStatus property: Configuration status of the config template version. + * + * @return the configurationStatus value. + */ + public ConfigTemplateConfigurationState configurationStatus() { + return this.configurationStatus; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HierarchyConfigurationMetadataVersionProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HierarchyConfigurationMetadataVersionProperties if the JsonReader was pointing to an + * instance of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the HierarchyConfigurationMetadataVersionProperties. + */ + public static HierarchyConfigurationMetadataVersionProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HierarchyConfigurationMetadataVersionProperties deserializedHierarchyConfigurationMetadataVersionProperties + = new HierarchyConfigurationMetadataVersionProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("parentDisplayName".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionProperties.parentDisplayName = reader.getString(); + } else if ("configTemplateVersionId".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionProperties.configTemplateVersionId + = reader.getString(); + } else if ("schemaId".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionProperties.schemaId = reader.getString(); + } else if ("dynamicConfigurationVersionId".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionProperties.dynamicConfigurationVersionId + = reader.getString(); + } else if ("configurationStatus".equals(fieldName)) { + deserializedHierarchyConfigurationMetadataVersionProperties.configurationStatus + = ConfigTemplateConfigurationState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedHierarchyConfigurationMetadataVersionProperties; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersions.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersions.java new file mode 100644 index 0000000000000..bff624a9b5a98 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersions.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of HierarchyConfigurationMetadataVersions. + */ +public interface HierarchyConfigurationMetadataVersions { + /** + * Get a Hierarchy Configuration Metadata Version resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param hierarchyConfigurationMetadataVersionName Name of the hierarchy configuration metadata version. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata Version resource along with {@link Response}. + */ + Response getWithResponse(String resourceUri, + String hierarchyConfigurationMetadataName, String hierarchyConfigurationMetadataVersionName, Context context); + + /** + * Get a Hierarchy Configuration Metadata Version resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param hierarchyConfigurationMetadataVersionName Name of the hierarchy configuration metadata version. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata Version resource. + */ + HierarchyConfigurationMetadataVersion get(String resourceUri, String hierarchyConfigurationMetadataName, + String hierarchyConfigurationMetadataVersionName); + + /** + * List Hierarchy Configuration Metadata Version resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByParent(String resourceUri, + String hierarchyConfigurationMetadataName); + + /** + * List Hierarchy Configuration Metadata Version resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByParent(String resourceUri, + String hierarchyConfigurationMetadataName, Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadatas.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadatas.java new file mode 100644 index 0000000000000..613291668a3f1 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadatas.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of HierarchyConfigurationMetadatas. + */ +public interface HierarchyConfigurationMetadatas { + /** + * Get a Hierarchy Configuration Metadata resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata resource along with {@link Response}. + */ + Response getWithResponse(String resourceUri, + String hierarchyConfigurationMetadataName, Context context); + + /** + * Get a Hierarchy Configuration Metadata resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param hierarchyConfigurationMetadataName Name of the hierarchy configuration metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Hierarchy Configuration Metadata resource. + */ + HierarchyConfigurationMetadata get(String resourceUri, String hierarchyConfigurationMetadataName); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByParent(String resourceUri); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a HierarchyConfigurationMetadata list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByParent(String resourceUri, Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyMetadata.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyMetadata.java new file mode 100644 index 0000000000000..b6b7165b5b0d0 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyMetadata.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Hierarchy Ids With Level for applying config Template which will further generate ARG objects. + */ +@Fluent +public final class HierarchyMetadata implements JsonSerializable { + /* + * Hierarchy Ids + */ + private List hierarchyIds; + + /* + * Hierarchy Level + */ + private String level; + + /** + * Creates an instance of HierarchyMetadata class. + */ + public HierarchyMetadata() { + } + + /** + * Get the hierarchyIds property: Hierarchy Ids. + * + * @return the hierarchyIds value. + */ + public List hierarchyIds() { + return this.hierarchyIds; + } + + /** + * Set the hierarchyIds property: Hierarchy Ids. + * + * @param hierarchyIds the hierarchyIds value to set. + * @return the HierarchyMetadata object itself. + */ + public HierarchyMetadata withHierarchyIds(List hierarchyIds) { + this.hierarchyIds = hierarchyIds; + return this; + } + + /** + * Get the level property: Hierarchy Level. + * + * @return the level value. + */ + public String level() { + return this.level; + } + + /** + * Set the level property: Hierarchy Level. + * + * @param level the level value to set. + * @return the HierarchyMetadata object itself. + */ + public HierarchyMetadata withLevel(String level) { + this.level = level; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("hierarchyIds", this.hierarchyIds, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("level", this.level); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HierarchyMetadata from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HierarchyMetadata if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the HierarchyMetadata. + */ + public static HierarchyMetadata fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HierarchyMetadata deserializedHierarchyMetadata = new HierarchyMetadata(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("hierarchyIds".equals(fieldName)) { + List hierarchyIds = reader.readArray(reader1 -> reader1.getString()); + deserializedHierarchyMetadata.hierarchyIds = hierarchyIds; + } else if ("level".equals(fieldName)) { + deserializedHierarchyMetadata.level = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedHierarchyMetadata; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchySelector.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchySelector.java new file mode 100644 index 0000000000000..c58c2afa88768 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchySelector.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Hierarchy Ids With Level for applying config Template which will further generate ARG objects. + */ +@Fluent +public final class HierarchySelector implements JsonSerializable { + /* + * Context Id + */ + private String contextId; + + /* + * Hierarchy Ids + */ + private List hierarchyIds; + + /* + * Hierarchy Level + */ + private String level; + + /** + * Creates an instance of HierarchySelector class. + */ + public HierarchySelector() { + } + + /** + * Get the contextId property: Context Id. + * + * @return the contextId value. + */ + public String contextId() { + return this.contextId; + } + + /** + * Set the contextId property: Context Id. + * + * @param contextId the contextId value to set. + * @return the HierarchySelector object itself. + */ + public HierarchySelector withContextId(String contextId) { + this.contextId = contextId; + return this; + } + + /** + * Get the hierarchyIds property: Hierarchy Ids. + * + * @return the hierarchyIds value. + */ + public List hierarchyIds() { + return this.hierarchyIds; + } + + /** + * Set the hierarchyIds property: Hierarchy Ids. + * + * @param hierarchyIds the hierarchyIds value to set. + * @return the HierarchySelector object itself. + */ + public HierarchySelector withHierarchyIds(List hierarchyIds) { + this.hierarchyIds = hierarchyIds; + return this; + } + + /** + * Get the level property: Hierarchy Level. + * + * @return the level value. + */ + public String level() { + return this.level; + } + + /** + * Set the level property: Hierarchy Level. + * + * @param level the level value to set. + * @return the HierarchySelector object itself. + */ + public HierarchySelector withLevel(String level) { + this.level = level; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("contextId", this.contextId); + jsonWriter.writeArrayField("hierarchyIds", this.hierarchyIds, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("level", this.level); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HierarchySelector from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HierarchySelector if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the HierarchySelector. + */ + public static HierarchySelector fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HierarchySelector deserializedHierarchySelector = new HierarchySelector(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("contextId".equals(fieldName)) { + deserializedHierarchySelector.contextId = reader.getString(); + } else if ("hierarchyIds".equals(fieldName)) { + List hierarchyIds = reader.readArray(reader1 -> reader1.getString()); + deserializedHierarchySelector.hierarchyIds = hierarchyIds; + } else if ("level".equals(fieldName)) { + deserializedHierarchySelector.level = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedHierarchySelector; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/InternalState.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/InternalState.java new file mode 100644 index 0000000000000..965e19329a4ce --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/InternalState.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Internal state of resource. + */ +public final class InternalState extends ExpandableStringEnum { + /** + * Resource is pending validation. + */ + public static final InternalState PENDING_VALIDATION = fromString("PendingValidation"); + + /** + * Resource is validated. + */ + public static final InternalState VALIDATED = fromString("Validated"); + + /** + * Resource is ValidatedWithSchema. + */ + public static final InternalState VALIDATED_WITH_SCHEMA = fromString("ValidatedWithSchema"); + + /** + * Resource is ValidatedWithoutSchema. + */ + public static final InternalState VALIDATED_WITHOUT_SCHEMA = fromString("ValidatedWithoutSchema"); + + /** + * Creates a new instance of InternalState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public InternalState() { + } + + /** + * Creates or finds a InternalState from its string representation. + * + * @param name a name to look for. + * @return the corresponding InternalState. + */ + public static InternalState fromString(String name) { + return fromString(name, InternalState.class); + } + + /** + * Gets known InternalState values. + * + * @return known InternalState values. + */ + public static Collection values() { + return values(InternalState.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobParameterBase.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobParameterBase.java index 2c67c9387d81f..3d1fc8b2d7b90 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobParameterBase.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobParameterBase.java @@ -72,6 +72,10 @@ public static JobParameterBase fromJson(JsonReader jsonReader) throws IOExceptio // Use the discriminator value to determine which subtype should be deserialized. if ("deploy".equals(discriminatorValue)) { return DeployJobParameter.fromJson(readerToUse.reset()); + } else if ("publish".equals(discriminatorValue)) { + return PublishJobParameter.fromJson(readerToUse.reset()); + } else if ("uninstall".equals(discriminatorValue)) { + return UninstallJobParameter.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobProperties.java index ec0e8ca5024ea..ec6a4eb8c4e88 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobProperties.java @@ -71,6 +71,11 @@ public final class JobProperties implements JsonSerializable { */ private ManagementError errorDetails; + /* + * Additional metadata or properties. + */ + private AdditionalData additionalData; + /** * Creates an instance of JobProperties class. */ @@ -167,6 +172,15 @@ public ManagementError errorDetails() { return this.errorDetails; } + /** + * Get the additionalData property: Additional metadata or properties. + * + * @return the additionalData value. + */ + public AdditionalData additionalData() { + return this.additionalData; + } + /** * {@inheritDoc} */ @@ -183,6 +197,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("correlationId", this.correlationId); jsonWriter.writeArrayField("steps", this.steps, (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("triggeredBy", this.triggeredBy); + jsonWriter.writeJsonField("additionalData", this.additionalData); return jsonWriter.writeEndObject(); } @@ -225,6 +240,8 @@ public static JobProperties fromJson(JsonReader jsonReader) throws IOException { deserializedJobProperties.provisioningState = ProvisioningState.fromString(reader.getString()); } else if ("errorDetails".equals(fieldName)) { deserializedJobProperties.errorDetails = ManagementError.fromJson(reader); + } else if ("additionalData".equals(fieldName)) { + deserializedJobProperties.additionalData = AdditionalData.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobStepStatisticsBase.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobStepStatisticsBase.java index c32b1a7aa774a..3a2fc26428175 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobStepStatisticsBase.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobStepStatisticsBase.java @@ -73,6 +73,10 @@ public static JobStepStatisticsBase fromJson(JsonReader jsonReader) throws IOExc // Use the discriminator value to determine which subtype should be deserialized. if ("deploy".equals(discriminatorValue)) { return DeployJobStepStatistics.fromJson(readerToUse.reset()); + } else if ("publish".equals(discriminatorValue)) { + return PublishJobStepStatistics.fromJson(readerToUse.reset()); + } else if ("uninstall".equals(discriminatorValue)) { + return UninstallJobStepStatistics.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobType.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobType.java index 65141924c2eb4..c5c0b24e8b8dc 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobType.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobType.java @@ -16,6 +16,11 @@ public final class JobType extends ExpandableStringEnum { */ public static final JobType DEPLOY = fromString("deploy"); + /** + * A publish job. + */ + public static final JobType PUBLISH = fromString("publish"); + /** * A staging job. */ @@ -26,6 +31,11 @@ public final class JobType extends ExpandableStringEnum { */ public static final JobType EXTERNAL_VALIDATION = fromString("externalValidation"); + /** + * An Uninstall job. + */ + public static final JobType UNINSTALL = fromString("uninstall"); + /** * Creates a new instance of JobType value. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/PublishJobParameter.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/PublishJobParameter.java new file mode 100644 index 0000000000000..e37a613b4270e --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/PublishJobParameter.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Parameters for a publish job. + */ +@Immutable +public final class PublishJobParameter extends JobParameterBase { + /* + * Job type discriminator value + */ + private JobType jobType = JobType.PUBLISH; + + /* + * The parameter property. + */ + private SolutionVersionParameter parameter; + + /** + * Creates an instance of PublishJobParameter class. + */ + private PublishJobParameter() { + } + + /** + * Get the jobType property: Job type discriminator value. + * + * @return the jobType value. + */ + @Override + public JobType jobType() { + return this.jobType; + } + + /** + * Get the parameter property: The parameter property. + * + * @return the parameter value. + */ + public SolutionVersionParameter parameter() { + return this.parameter; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("jobType", this.jobType == null ? null : this.jobType.toString()); + jsonWriter.writeJsonField("parameter", this.parameter); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PublishJobParameter from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PublishJobParameter if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the PublishJobParameter. + */ + public static PublishJobParameter fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PublishJobParameter deserializedPublishJobParameter = new PublishJobParameter(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("jobType".equals(fieldName)) { + deserializedPublishJobParameter.jobType = JobType.fromString(reader.getString()); + } else if ("parameter".equals(fieldName)) { + deserializedPublishJobParameter.parameter = SolutionVersionParameter.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPublishJobParameter; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/PublishJobStepStatistics.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/PublishJobStepStatistics.java new file mode 100644 index 0000000000000..5d4911ae4a7eb --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/PublishJobStepStatistics.java @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Publish statistics for a job step, including total, success, and failed counts. + */ +@Immutable +public final class PublishJobStepStatistics extends JobStepStatisticsBase { + /* + * Statistics type discriminator value + */ + private JobType statisticsType = JobType.PUBLISH; + + /* + * Total count of items processed in this step + */ + private Integer totalCount; + + /* + * Count of successful items in this step + */ + private Integer successCount; + + /* + * Count of failed items in this step + */ + private Integer failedCount; + + /** + * Creates an instance of PublishJobStepStatistics class. + */ + private PublishJobStepStatistics() { + } + + /** + * Get the statisticsType property: Statistics type discriminator value. + * + * @return the statisticsType value. + */ + @Override + public JobType statisticsType() { + return this.statisticsType; + } + + /** + * Get the totalCount property: Total count of items processed in this step. + * + * @return the totalCount value. + */ + public Integer totalCount() { + return this.totalCount; + } + + /** + * Get the successCount property: Count of successful items in this step. + * + * @return the successCount value. + */ + public Integer successCount() { + return this.successCount; + } + + /** + * Get the failedCount property: Count of failed items in this step. + * + * @return the failedCount value. + */ + public Integer failedCount() { + return this.failedCount; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("statisticsType", + this.statisticsType == null ? null : this.statisticsType.toString()); + jsonWriter.writeNumberField("totalCount", this.totalCount); + jsonWriter.writeNumberField("successCount", this.successCount); + jsonWriter.writeNumberField("failedCount", this.failedCount); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PublishJobStepStatistics from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PublishJobStepStatistics if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the PublishJobStepStatistics. + */ + public static PublishJobStepStatistics fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PublishJobStepStatistics deserializedPublishJobStepStatistics = new PublishJobStepStatistics(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("statisticsType".equals(fieldName)) { + deserializedPublishJobStepStatistics.statisticsType = JobType.fromString(reader.getString()); + } else if ("totalCount".equals(fieldName)) { + deserializedPublishJobStepStatistics.totalCount = reader.getNullable(JsonReader::getInt); + } else if ("successCount".equals(fieldName)) { + deserializedPublishJobStepStatistics.successCount = reader.getNullable(JsonReader::getInt); + } else if ("failedCount".equals(fieldName)) { + deserializedPublishJobStepStatistics.failedCount = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedPublishJobStepStatistics; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReference.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReference.java index da4bfd1b6c8a1..2c131405085d8 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReference.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReference.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.workloadorchestration.models; import com.azure.core.management.SystemData; +import com.azure.core.util.Context; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaReferenceInner; /** @@ -62,4 +63,128 @@ public interface SchemaReference { * @return the inner object. */ SchemaReferenceInner innerModel(); + + /** + * The entirety of the SchemaReference definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithScope, DefinitionStages.WithCreate { + } + + /** + * The SchemaReference definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the SchemaReference definition. + */ + interface Blank extends WithScope { + } + + /** + * The stage of the SchemaReference definition allowing to specify parent resource. + */ + interface WithScope { + /** + * Specifies resourceUri. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @return the next definition stage. + */ + WithCreate withExistingResourceUri(String resourceUri); + } + + /** + * The stage of the SchemaReference definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + SchemaReference create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + SchemaReference create(Context context); + } + + /** + * The stage of the SchemaReference definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(SchemaReferenceProperties properties); + } + } + + /** + * Begins update for the SchemaReference resource. + * + * @return the stage of resource update. + */ + SchemaReference.Update update(); + + /** + * The template for SchemaReference update. + */ + interface Update extends UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + SchemaReference apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + SchemaReference apply(Context context); + } + + /** + * The SchemaReference update stages. + */ + interface UpdateStages { + /** + * The stage of the SchemaReference update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + Update withProperties(SchemaReferenceProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + SchemaReference refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + SchemaReference refresh(Context context); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReferenceProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReferenceProperties.java index 0e42fa34a835d..f804c86f687f8 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReferenceProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReferenceProperties.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.workloadorchestration.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Schema Reference Properties. */ -@Immutable +@Fluent public final class SchemaReferenceProperties implements JsonSerializable { /* * Schema Id of schema reference @@ -29,7 +29,7 @@ public final class SchemaReferenceProperties implements JsonSerializable listByResourceGroup(String resourceUri, Context context); + + /** + * Get a Schema Reference Resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Schema Reference Resource along with {@link Response}. + */ + SchemaReference getById(String id); + + /** + * Get a Schema Reference Resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Schema Reference Resource along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete a Schema Reference Resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Delete a Schema Reference Resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new SchemaReference resource. + * + * @param name resource name. + * @return the first stage of the new SchemaReference definition. + */ + SchemaReference.DefinitionStages.Blank define(String name); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdate.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdate.java index 42cef0185e1d0..58bf2755a535d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdate.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdate.java @@ -13,7 +13,7 @@ import java.util.Map; /** - * The type used for update operations of the Schema. + * The updatable properties of the Schema. */ @Fluent public final class SchemaUpdate implements JsonSerializable { diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdateProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdateProperties.java index a1f9513e435bc..6128d953f1cb0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdateProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdateProperties.java @@ -16,12 +16,40 @@ */ @Immutable public final class SchemaUpdateProperties implements JsonSerializable { + /* + * Current Version of schema + */ + private String currentVersion; + + /* + * Provisioning state of resource + */ + private ProvisioningState provisioningState; + /** * Creates an instance of SchemaUpdateProperties class. */ public SchemaUpdateProperties() { } + /** + * Get the currentVersion property: Current Version of schema. + * + * @return the currentVersion value. + */ + public String currentVersion() { + return this.currentVersion; + } + + /** + * Get the provisioningState property: Provisioning state of resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + /** * {@inheritDoc} */ @@ -46,7 +74,14 @@ public static SchemaUpdateProperties fromJson(JsonReader jsonReader) throws IOEx String fieldName = reader.getFieldName(); reader.nextToken(); - reader.skipChildren(); + if ("currentVersion".equals(fieldName)) { + deserializedSchemaUpdateProperties.currentVersion = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedSchemaUpdateProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } } return deserializedSchemaUpdateProperties; diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersionProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersionProperties.java index 6cd77358bd4ef..1eb5b2ab99ed7 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersionProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersionProperties.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.workloadorchestration.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.BinaryData; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,7 +20,7 @@ public final class SchemaVersionProperties implements JsonSerializable BinaryData.fromObject(nonNullReader.readUntyped())); } else if ("provisioningState".equals(fieldName)) { deserializedSchemaVersionProperties.provisioningState = ProvisioningState.fromString(reader.getString()); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeployment.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeployment.java new file mode 100644 index 0000000000000..ca326c8a802c1 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeployment.java @@ -0,0 +1,275 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionDeploymentInner; +import java.util.Map; + +/** + * An immutable client-side representation of SolutionDeployment. + */ +public interface SolutionDeployment { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + SolutionDeploymentProperties properties(); + + /** + * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + String eTag(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionDeploymentInner object. + * + * @return the inner object. + */ + SolutionDeploymentInner innerModel(); + + /** + * The entirety of the SolutionDeployment definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { + } + + /** + * The SolutionDeployment definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the SolutionDeployment definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the SolutionDeployment definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(String location); + } + + /** + * The stage of the SolutionDeployment definition allowing to specify parent resource. + */ + interface WithResourceGroup { + /** + * Specifies resourceGroupName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @return the next definition stage. + */ + WithCreate withExistingResourceGroup(String resourceGroupName); + } + + /** + * The stage of the SolutionDeployment definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + SolutionDeployment create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + SolutionDeployment create(Context context); + } + + /** + * The stage of the SolutionDeployment definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the SolutionDeployment definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(SolutionDeploymentProperties properties); + } + } + + /** + * Begins update for the SolutionDeployment resource. + * + * @return the stage of resource update. + */ + SolutionDeployment.Update update(); + + /** + * The template for SolutionDeployment update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + SolutionDeployment apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + SolutionDeployment apply(Context context); + } + + /** + * The SolutionDeployment update stages. + */ + interface UpdateStages { + /** + * The stage of the SolutionDeployment update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the SolutionDeployment update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + Update withProperties(SolutionDeploymentUpdateProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + SolutionDeployment refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + SolutionDeployment refresh(Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentProperties.java new file mode 100644 index 0000000000000..2e01251cbb7f3 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentProperties.java @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.BinaryData; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * Solution Deployment Properties. + */ +@Fluent +public final class SolutionDeploymentProperties implements JsonSerializable { + /* + * Target properties + */ + private SolutionTemplateMetadata solutionTemplateProperties; + + /* + * Input field + */ + private Map input; + + /* + * Output field + */ + private Map output; + + /* + * Target properties + */ + private TargetMetadata targetProperties; + + /* + * Provisioning state of resource + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of SolutionDeploymentProperties class. + */ + public SolutionDeploymentProperties() { + } + + /** + * Get the solutionTemplateProperties property: Target properties. + * + * @return the solutionTemplateProperties value. + */ + public SolutionTemplateMetadata solutionTemplateProperties() { + return this.solutionTemplateProperties; + } + + /** + * Set the solutionTemplateProperties property: Target properties. + * + * @param solutionTemplateProperties the solutionTemplateProperties value to set. + * @return the SolutionDeploymentProperties object itself. + */ + public SolutionDeploymentProperties + withSolutionTemplateProperties(SolutionTemplateMetadata solutionTemplateProperties) { + this.solutionTemplateProperties = solutionTemplateProperties; + return this; + } + + /** + * Get the input property: Input field. + * + * @return the input value. + */ + public Map input() { + return this.input; + } + + /** + * Set the input property: Input field. + * + * @param input the input value to set. + * @return the SolutionDeploymentProperties object itself. + */ + public SolutionDeploymentProperties withInput(Map input) { + this.input = input; + return this; + } + + /** + * Get the output property: Output field. + * + * @return the output value. + */ + public Map output() { + return this.output; + } + + /** + * Get the targetProperties property: Target properties. + * + * @return the targetProperties value. + */ + public TargetMetadata targetProperties() { + return this.targetProperties; + } + + /** + * Set the targetProperties property: Target properties. + * + * @param targetProperties the targetProperties value to set. + * @return the SolutionDeploymentProperties object itself. + */ + public SolutionDeploymentProperties withTargetProperties(TargetMetadata targetProperties) { + this.targetProperties = targetProperties; + return this; + } + + /** + * Get the provisioningState property: Provisioning state of resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("solutionTemplateProperties", this.solutionTemplateProperties); + jsonWriter.writeJsonField("targetProperties", this.targetProperties); + jsonWriter.writeMapField("input", this.input, (writer, element) -> { + if (element == null) { + writer.writeNull(); + } else { + element.writeTo(writer); + } + }); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionDeploymentProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionDeploymentProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SolutionDeploymentProperties. + */ + public static SolutionDeploymentProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionDeploymentProperties deserializedSolutionDeploymentProperties = new SolutionDeploymentProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("solutionTemplateProperties".equals(fieldName)) { + deserializedSolutionDeploymentProperties.solutionTemplateProperties + = SolutionTemplateMetadata.fromJson(reader); + } else if ("targetProperties".equals(fieldName)) { + deserializedSolutionDeploymentProperties.targetProperties = TargetMetadata.fromJson(reader); + } else if ("input".equals(fieldName)) { + Map input = reader.readMap(reader1 -> reader1 + .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()))); + deserializedSolutionDeploymentProperties.input = input; + } else if ("output".equals(fieldName)) { + Map output = reader.readMap(reader1 -> reader1 + .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()))); + deserializedSolutionDeploymentProperties.output = output; + } else if ("provisioningState".equals(fieldName)) { + deserializedSolutionDeploymentProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionDeploymentProperties; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentUpdate.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentUpdate.java new file mode 100644 index 0000000000000..818022aa06c62 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentUpdate.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * The type used for update operations of the SolutionDeployment. + */ +@Fluent +public final class SolutionDeploymentUpdate implements JsonSerializable { + /* + * Resource tags. + */ + private Map tags; + + /* + * The resource-specific properties for this resource. + */ + private SolutionDeploymentUpdateProperties properties; + + /** + * Creates an instance of SolutionDeploymentUpdate class. + */ + public SolutionDeploymentUpdate() { + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the SolutionDeploymentUpdate object itself. + */ + public SolutionDeploymentUpdate withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public SolutionDeploymentUpdateProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the SolutionDeploymentUpdate object itself. + */ + public SolutionDeploymentUpdate withProperties(SolutionDeploymentUpdateProperties properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionDeploymentUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionDeploymentUpdate if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SolutionDeploymentUpdate. + */ + public static SolutionDeploymentUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionDeploymentUpdate deserializedSolutionDeploymentUpdate = new SolutionDeploymentUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedSolutionDeploymentUpdate.tags = tags; + } else if ("properties".equals(fieldName)) { + deserializedSolutionDeploymentUpdate.properties + = SolutionDeploymentUpdateProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionDeploymentUpdate; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentUpdateProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentUpdateProperties.java new file mode 100644 index 0000000000000..594704f2f2ba9 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentUpdateProperties.java @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.BinaryData; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * The updatable properties of the SolutionDeploymentProperties. + */ +@Fluent +public final class SolutionDeploymentUpdateProperties implements JsonSerializable { + /* + * Target properties + */ + private SolutionTemplateMetadataUpdate solutionTemplateProperties; + + /* + * Input field + */ + private Map input; + + /* + * Target properties + */ + private TargetMetadata targetProperties; + + /** + * Creates an instance of SolutionDeploymentUpdateProperties class. + */ + public SolutionDeploymentUpdateProperties() { + } + + /** + * Get the solutionTemplateProperties property: Target properties. + * + * @return the solutionTemplateProperties value. + */ + public SolutionTemplateMetadataUpdate solutionTemplateProperties() { + return this.solutionTemplateProperties; + } + + /** + * Set the solutionTemplateProperties property: Target properties. + * + * @param solutionTemplateProperties the solutionTemplateProperties value to set. + * @return the SolutionDeploymentUpdateProperties object itself. + */ + public SolutionDeploymentUpdateProperties + withSolutionTemplateProperties(SolutionTemplateMetadataUpdate solutionTemplateProperties) { + this.solutionTemplateProperties = solutionTemplateProperties; + return this; + } + + /** + * Get the input property: Input field. + * + * @return the input value. + */ + public Map input() { + return this.input; + } + + /** + * Set the input property: Input field. + * + * @param input the input value to set. + * @return the SolutionDeploymentUpdateProperties object itself. + */ + public SolutionDeploymentUpdateProperties withInput(Map input) { + this.input = input; + return this; + } + + /** + * Get the targetProperties property: Target properties. + * + * @return the targetProperties value. + */ + public TargetMetadata targetProperties() { + return this.targetProperties; + } + + /** + * Set the targetProperties property: Target properties. + * + * @param targetProperties the targetProperties value to set. + * @return the SolutionDeploymentUpdateProperties object itself. + */ + public SolutionDeploymentUpdateProperties withTargetProperties(TargetMetadata targetProperties) { + this.targetProperties = targetProperties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("solutionTemplateProperties", this.solutionTemplateProperties); + jsonWriter.writeMapField("input", this.input, (writer, element) -> { + if (element == null) { + writer.writeNull(); + } else { + element.writeTo(writer); + } + }); + jsonWriter.writeJsonField("targetProperties", this.targetProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionDeploymentUpdateProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionDeploymentUpdateProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SolutionDeploymentUpdateProperties. + */ + public static SolutionDeploymentUpdateProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionDeploymentUpdateProperties deserializedSolutionDeploymentUpdateProperties + = new SolutionDeploymentUpdateProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("solutionTemplateProperties".equals(fieldName)) { + deserializedSolutionDeploymentUpdateProperties.solutionTemplateProperties + = SolutionTemplateMetadataUpdate.fromJson(reader); + } else if ("input".equals(fieldName)) { + Map input = reader.readMap(reader1 -> reader1 + .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()))); + deserializedSolutionDeploymentUpdateProperties.input = input; + } else if ("targetProperties".equals(fieldName)) { + deserializedSolutionDeploymentUpdateProperties.targetProperties = TargetMetadata.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionDeploymentUpdateProperties; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeployments.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeployments.java new file mode 100644 index 0000000000000..c93b26f93764d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeployments.java @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of SolutionDeployments. + */ +public interface SolutionDeployments { + /** + * Get a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionDeployment Resource along with {@link Response}. + */ + Response getByResourceGroupWithResponse(String resourceGroupName, String solutionDeploymentName, + Context context); + + /** + * Get a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionDeployment Resource. + */ + SolutionDeployment getByResourceGroup(String resourceGroupName, String solutionDeploymentName); + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByResourceGroup(String resourceGroupName, String solutionDeploymentName); + + /** + * Delete a SolutionDeployment Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionDeploymentName The name of the SolutionDeployment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String solutionDeploymentName, Context context); + + /** + * List by specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List by specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * List by subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * List by subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionDeployment list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(Context context); + + /** + * Get a SolutionDeployment Resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionDeployment Resource along with {@link Response}. + */ + SolutionDeployment getById(String id); + + /** + * Get a SolutionDeployment Resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionDeployment Resource along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete a SolutionDeployment Resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Delete a SolutionDeployment Resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new SolutionDeployment resource. + * + * @param name resource name. + * @return the first stage of the new SolutionDeployment definition. + */ + SolutionDeployment.DefinitionStages.Blank define(String name); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadata.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadata.java new file mode 100644 index 0000000000000..704eaa740b84c --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadata.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataInner; + +/** + * An immutable client-side representation of SolutionMetadata. + */ +public interface SolutionMetadata { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + SolutionMetadataProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataInner object. + * + * @return the inner object. + */ + SolutionMetadataInner innerModel(); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataProperties.java new file mode 100644 index 0000000000000..413261a4b6a27 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataProperties.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Solution Metadata Properties. + */ +@Immutable +public final class SolutionMetadataProperties implements JsonSerializable { + /* + * Display name of the solution metadata resource + */ + private String displayName; + + /* + * Solution template Id + */ + private String solutionTemplateId; + + /* + * Latest solution template version + */ + private String latestVersion; + + /* + * Current solution template version + */ + private String currentVersion; + + /** + * Creates an instance of SolutionMetadataProperties class. + */ + private SolutionMetadataProperties() { + } + + /** + * Get the displayName property: Display name of the solution metadata resource. + * + * @return the displayName value. + */ + public String displayName() { + return this.displayName; + } + + /** + * Get the solutionTemplateId property: Solution template Id. + * + * @return the solutionTemplateId value. + */ + public String solutionTemplateId() { + return this.solutionTemplateId; + } + + /** + * Get the latestVersion property: Latest solution template version. + * + * @return the latestVersion value. + */ + public String latestVersion() { + return this.latestVersion; + } + + /** + * Get the currentVersion property: Current solution template version. + * + * @return the currentVersion value. + */ + public String currentVersion() { + return this.currentVersion; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionMetadataProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionMetadataProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SolutionMetadataProperties. + */ + public static SolutionMetadataProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionMetadataProperties deserializedSolutionMetadataProperties = new SolutionMetadataProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("displayName".equals(fieldName)) { + deserializedSolutionMetadataProperties.displayName = reader.getString(); + } else if ("solutionTemplateId".equals(fieldName)) { + deserializedSolutionMetadataProperties.solutionTemplateId = reader.getString(); + } else if ("latestVersion".equals(fieldName)) { + deserializedSolutionMetadataProperties.latestVersion = reader.getString(); + } else if ("currentVersion".equals(fieldName)) { + deserializedSolutionMetadataProperties.currentVersion = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionMetadataProperties; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersion.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersion.java new file mode 100644 index 0000000000000..d234cc983a294 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersion.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataVersionInner; + +/** + * An immutable client-side representation of SolutionMetadataVersion. + */ +public interface SolutionMetadataVersion { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + SolutionMetadataVersionProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataVersionInner object. + * + * @return the inner object. + */ + SolutionMetadataVersionInner innerModel(); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersionProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersionProperties.java new file mode 100644 index 0000000000000..0e4afd3cf2407 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersionProperties.java @@ -0,0 +1,139 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Solution Metadata Version Properties. + */ +@Immutable +public final class SolutionMetadataVersionProperties implements JsonSerializable { + /* + * Display name of the solution metadata resource + */ + private String parentDisplayName; + + /* + * Solution template version Id + */ + private String solutionTemplateVersionId; + + /* + * Schema Id for the solution template version at the hierarchy + */ + private String schemaId; + + /* + * Dynamic Configuration Id for the solution template version + */ + private String dynamicConfigurationVersionId; + + /* + * Configuration status of the solution template version + */ + private ConfigurationState configurationStatus; + + /** + * Creates an instance of SolutionMetadataVersionProperties class. + */ + private SolutionMetadataVersionProperties() { + } + + /** + * Get the parentDisplayName property: Display name of the solution metadata resource. + * + * @return the parentDisplayName value. + */ + public String parentDisplayName() { + return this.parentDisplayName; + } + + /** + * Get the solutionTemplateVersionId property: Solution template version Id. + * + * @return the solutionTemplateVersionId value. + */ + public String solutionTemplateVersionId() { + return this.solutionTemplateVersionId; + } + + /** + * Get the schemaId property: Schema Id for the solution template version at the hierarchy. + * + * @return the schemaId value. + */ + public String schemaId() { + return this.schemaId; + } + + /** + * Get the dynamicConfigurationVersionId property: Dynamic Configuration Id for the solution template version. + * + * @return the dynamicConfigurationVersionId value. + */ + public String dynamicConfigurationVersionId() { + return this.dynamicConfigurationVersionId; + } + + /** + * Get the configurationStatus property: Configuration status of the solution template version. + * + * @return the configurationStatus value. + */ + public ConfigurationState configurationStatus() { + return this.configurationStatus; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionMetadataVersionProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionMetadataVersionProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SolutionMetadataVersionProperties. + */ + public static SolutionMetadataVersionProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionMetadataVersionProperties deserializedSolutionMetadataVersionProperties + = new SolutionMetadataVersionProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("parentDisplayName".equals(fieldName)) { + deserializedSolutionMetadataVersionProperties.parentDisplayName = reader.getString(); + } else if ("solutionTemplateVersionId".equals(fieldName)) { + deserializedSolutionMetadataVersionProperties.solutionTemplateVersionId = reader.getString(); + } else if ("schemaId".equals(fieldName)) { + deserializedSolutionMetadataVersionProperties.schemaId = reader.getString(); + } else if ("dynamicConfigurationVersionId".equals(fieldName)) { + deserializedSolutionMetadataVersionProperties.dynamicConfigurationVersionId = reader.getString(); + } else if ("configurationStatus".equals(fieldName)) { + deserializedSolutionMetadataVersionProperties.configurationStatus + = ConfigurationState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionMetadataVersionProperties; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersions.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersions.java new file mode 100644 index 0000000000000..cf72a703dff57 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersions.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of SolutionMetadataVersions. + */ +public interface SolutionMetadataVersions { + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param solutionMetadataVersionName Name of the solution metadata version. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource along with {@link Response}. + */ + Response getWithResponse(String resourceUri, String solutionMetadataName, + String solutionMetadataVersionName, Context context); + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param solutionMetadataVersionName Name of the solution metadata version. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource. + */ + SolutionMetadataVersion get(String resourceUri, String solutionMetadataName, String solutionMetadataVersionName); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByParent(String resourceUri, String solutionMetadataName); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadataVersion list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByParent(String resourceUri, String solutionMetadataName, + Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadatas.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadatas.java new file mode 100644 index 0000000000000..fd8887ffeb6a0 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadatas.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of SolutionMetadatas. + */ +public interface SolutionMetadatas { + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource along with {@link Response}. + */ + Response getWithResponse(String resourceUri, String solutionMetadataName, Context context); + + /** + * Get a Solution resource. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param solutionMetadataName Name of the solution metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution resource. + */ + SolutionMetadata get(String resourceUri, String solutionMetadataName); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByParent(String resourceUri); + + /** + * List Solution resources. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionMetadata list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByParent(String resourceUri, Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionProperties.java index 04b6bdc1c0187..fd6e893c5c2e3 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionProperties.java @@ -22,6 +22,11 @@ public final class SolutionProperties implements JsonSerializable availableSolutionTemplateVersions = reader.readArray(reader1 -> AvailableSolutionTemplateVersion.fromJson(reader1)); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchema.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchema.java new file mode 100644 index 0000000000000..f38e322d9ec3d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchema.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionSchemaInner; + +/** + * An immutable client-side representation of SolutionSchema. + */ +public interface SolutionSchema { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + SolutionSchemaProperties properties(); + + /** + * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + String eTag(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionSchemaInner object. + * + * @return the inner object. + */ + SolutionSchemaInner innerModel(); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchemaProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchemaProperties.java new file mode 100644 index 0000000000000..d0dbd2bcb363c --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchemaProperties.java @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.BinaryData; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * SolutionSchema Properties. + */ +@Immutable +public final class SolutionSchemaProperties implements JsonSerializable { + /* + * Value of schema + */ + private BinaryData value; + + /* + * Hierarchy Level + */ + private String level; + + /* + * Unique identifier for the solution template, generated by the system + */ + private String templateUniqueIdentifier; + + /* + * Provisioning state of resource + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of SolutionSchemaProperties class. + */ + private SolutionSchemaProperties() { + } + + /** + * Get the value property: Value of schema. + * + * @return the value value. + */ + public BinaryData value() { + return this.value; + } + + /** + * Get the level property: Hierarchy Level. + * + * @return the level value. + */ + public String level() { + return this.level; + } + + /** + * Get the templateUniqueIdentifier property: Unique identifier for the solution template, generated by the system. + * + * @return the templateUniqueIdentifier value. + */ + public String templateUniqueIdentifier() { + return this.templateUniqueIdentifier; + } + + /** + * Get the provisioningState property: Provisioning state of resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionSchemaProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionSchemaProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SolutionSchemaProperties. + */ + public static SolutionSchemaProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionSchemaProperties deserializedSolutionSchemaProperties = new SolutionSchemaProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + deserializedSolutionSchemaProperties.value + = reader.getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped())); + } else if ("level".equals(fieldName)) { + deserializedSolutionSchemaProperties.level = reader.getString(); + } else if ("templateUniqueIdentifier".equals(fieldName)) { + deserializedSolutionSchemaProperties.templateUniqueIdentifier = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedSolutionSchemaProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionSchemaProperties; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchemas.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchemas.java new file mode 100644 index 0000000000000..411fbf1f20c1f --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchemas.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of SolutionSchemas. + */ +public interface SolutionSchemas { + /** + * Get a SolutionSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param solutionSchemaName The name of the SolutionSchemaProperties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionSchema Resource along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, String solutionSchemaName, Context context); + + /** + * Get a SolutionSchema Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param solutionSchemaName The name of the SolutionSchemaProperties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SolutionSchema Resource. + */ + SolutionSchema get(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + String solutionSchemaName); + + /** + * List by SolutionTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listBySolutionTemplateVersion(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName); + + /** + * List by SolutionTemplateVersion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SolutionSchema list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listBySolutionTemplateVersion(String resourceGroupName, String solutionTemplateName, + String solutionTemplateVersionName, Context context); +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateMetadata.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateMetadata.java new file mode 100644 index 0000000000000..b8a156abd589d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateMetadata.java @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Solution Template Details. + */ +@Fluent +public final class SolutionTemplateMetadata implements JsonSerializable { + /* + * Solution template subscription + */ + private String subscriptionId; + + /* + * Solution template resource group + */ + private String resourceGroupName; + + /* + * Solution template name + */ + private String name; + + /* + * Solution template version + */ + private String version; + + /** + * Creates an instance of SolutionTemplateMetadata class. + */ + public SolutionTemplateMetadata() { + } + + /** + * Get the subscriptionId property: Solution template subscription. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the subscriptionId property: Solution template subscription. + * + * @param subscriptionId the subscriptionId value to set. + * @return the SolutionTemplateMetadata object itself. + */ + public SolutionTemplateMetadata withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get the resourceGroupName property: Solution template resource group. + * + * @return the resourceGroupName value. + */ + public String resourceGroupName() { + return this.resourceGroupName; + } + + /** + * Set the resourceGroupName property: Solution template resource group. + * + * @param resourceGroupName the resourceGroupName value to set. + * @return the SolutionTemplateMetadata object itself. + */ + public SolutionTemplateMetadata withResourceGroupName(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + /** + * Get the name property: Solution template name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Solution template name. + * + * @param name the name value to set. + * @return the SolutionTemplateMetadata object itself. + */ + public SolutionTemplateMetadata withName(String name) { + this.name = name; + return this; + } + + /** + * Get the version property: Solution template version. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Set the version property: Solution template version. + * + * @param version the version value to set. + * @return the SolutionTemplateMetadata object itself. + */ + public SolutionTemplateMetadata withVersion(String version) { + this.version = version; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("version", this.version); + jsonWriter.writeStringField("subscriptionId", this.subscriptionId); + jsonWriter.writeStringField("resourceGroupName", this.resourceGroupName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionTemplateMetadata from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionTemplateMetadata if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SolutionTemplateMetadata. + */ + public static SolutionTemplateMetadata fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionTemplateMetadata deserializedSolutionTemplateMetadata = new SolutionTemplateMetadata(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedSolutionTemplateMetadata.name = reader.getString(); + } else if ("version".equals(fieldName)) { + deserializedSolutionTemplateMetadata.version = reader.getString(); + } else if ("subscriptionId".equals(fieldName)) { + deserializedSolutionTemplateMetadata.subscriptionId = reader.getString(); + } else if ("resourceGroupName".equals(fieldName)) { + deserializedSolutionTemplateMetadata.resourceGroupName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionTemplateMetadata; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateMetadataUpdate.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateMetadataUpdate.java new file mode 100644 index 0000000000000..34e1fd741a1c6 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateMetadataUpdate.java @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Solution Template Details for update operations. + */ +@Fluent +public final class SolutionTemplateMetadataUpdate implements JsonSerializable { + /* + * Solution template subscription + */ + private String subscriptionId; + + /* + * Solution template resource group + */ + private String resourceGroupName; + + /* + * Solution template name + */ + private String name; + + /* + * Solution template version + */ + private String version; + + /** + * Creates an instance of SolutionTemplateMetadataUpdate class. + */ + public SolutionTemplateMetadataUpdate() { + } + + /** + * Get the subscriptionId property: Solution template subscription. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the subscriptionId property: Solution template subscription. + * + * @param subscriptionId the subscriptionId value to set. + * @return the SolutionTemplateMetadataUpdate object itself. + */ + public SolutionTemplateMetadataUpdate withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get the resourceGroupName property: Solution template resource group. + * + * @return the resourceGroupName value. + */ + public String resourceGroupName() { + return this.resourceGroupName; + } + + /** + * Set the resourceGroupName property: Solution template resource group. + * + * @param resourceGroupName the resourceGroupName value to set. + * @return the SolutionTemplateMetadataUpdate object itself. + */ + public SolutionTemplateMetadataUpdate withResourceGroupName(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + /** + * Get the name property: Solution template name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Solution template name. + * + * @param name the name value to set. + * @return the SolutionTemplateMetadataUpdate object itself. + */ + public SolutionTemplateMetadataUpdate withName(String name) { + this.name = name; + return this; + } + + /** + * Get the version property: Solution template version. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Set the version property: Solution template version. + * + * @param version the version value to set. + * @return the SolutionTemplateMetadataUpdate object itself. + */ + public SolutionTemplateMetadataUpdate withVersion(String version) { + this.version = version; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("subscriptionId", this.subscriptionId); + jsonWriter.writeStringField("resourceGroupName", this.resourceGroupName); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("version", this.version); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SolutionTemplateMetadataUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SolutionTemplateMetadataUpdate if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SolutionTemplateMetadataUpdate. + */ + public static SolutionTemplateMetadataUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SolutionTemplateMetadataUpdate deserializedSolutionTemplateMetadataUpdate + = new SolutionTemplateMetadataUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("subscriptionId".equals(fieldName)) { + deserializedSolutionTemplateMetadataUpdate.subscriptionId = reader.getString(); + } else if ("resourceGroupName".equals(fieldName)) { + deserializedSolutionTemplateMetadataUpdate.resourceGroupName = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedSolutionTemplateMetadataUpdate.name = reader.getString(); + } else if ("version".equals(fieldName)) { + deserializedSolutionTemplateMetadataUpdate.version = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSolutionTemplateMetadataUpdate; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateProperties.java index 39608f60f2562..b0c6153c004c5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateProperties.java @@ -17,6 +17,11 @@ */ @Fluent public final class SolutionTemplateProperties implements JsonSerializable { + /* + * A unique identifier for the solution template, generated by the system + */ + private String uniqueIdentifier; + /* * Description of Solution template */ @@ -53,6 +58,15 @@ public final class SolutionTemplateProperties implements JsonSerializable capabilities = reader.readArray(reader1 -> reader1.getString()); deserializedSolutionTemplateProperties.capabilities = capabilities; + } else if ("uniqueIdentifier".equals(fieldName)) { + deserializedSolutionTemplateProperties.uniqueIdentifier = reader.getString(); } else if ("latestVersion".equals(fieldName)) { deserializedSolutionTemplateProperties.latestVersion = reader.getString(); } else if ("state".equals(fieldName)) { diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersion.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersion.java index fc53e94d8ee1f..dc4bfab476fbe 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersion.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersion.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.workloadorchestration.models; import com.azure.core.management.SystemData; +import com.azure.core.util.Context; import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner; /** @@ -56,10 +57,206 @@ public interface SolutionTemplateVersion { */ SystemData systemData(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner object. * * @return the inner object. */ SolutionTemplateVersionInner innerModel(); + + /** + * The entirety of the SolutionTemplateVersion definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The SolutionTemplateVersion definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the SolutionTemplateVersion definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the SolutionTemplateVersion definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, solutionTemplateName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @return the next definition stage. + */ + WithCreate withExistingSolutionTemplate(String resourceGroupName, String solutionTemplateName); + } + + /** + * The stage of the SolutionTemplateVersion definition which contains all the minimum required properties for + * the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + SolutionTemplateVersion create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + SolutionTemplateVersion create(Context context); + } + + /** + * The stage of the SolutionTemplateVersion definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(SolutionTemplateVersionProperties properties); + } + } + + /** + * Begins update for the SolutionTemplateVersion resource. + * + * @return the stage of resource update. + */ + SolutionTemplateVersion.Update update(); + + /** + * The template for SolutionTemplateVersion update. + */ + interface Update extends UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + SolutionTemplateVersion apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + SolutionTemplateVersion apply(Context context); + } + + /** + * The SolutionTemplateVersion update stages. + */ + interface UpdateStages { + /** + * The stage of the SolutionTemplateVersion update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + Update withProperties(SolutionTemplateVersionProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + SolutionTemplateVersion refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + SolutionTemplateVersion refresh(Context context); + + /** + * Post request for bulk deploy. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void bulkDeploySolution(BulkDeploySolutionParameter body); + + /** + * Post request for bulk deploy. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void bulkDeploySolution(BulkDeploySolutionParameter body, Context context); + + /** + * Post request for bulk publish. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void bulkPublishSolution(BulkPublishSolutionParameter body); + + /** + * Post request for bulk publish. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void bulkPublishSolution(BulkPublishSolutionParameter body, Context context); + + /** + * Post request for bulk review. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void bulkReviewSolution(BulkReviewSolutionParameter body); + + /** + * Post request for bulk review. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void bulkReviewSolution(BulkReviewSolutionParameter body, Context context); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersionProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersionProperties.java index 7831aba02f6ad..94c8ba72f880d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersionProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersionProperties.java @@ -21,7 +21,7 @@ public final class SolutionTemplateVersionProperties implements JsonSerializable /* * Config expressions for this solution version */ - private String configurations; + private BinaryData configurations; /* * App components spec @@ -33,6 +33,11 @@ public final class SolutionTemplateVersionProperties implements JsonSerializable */ private OrchestratorType orchestratorType; + /* + * Internal State of resource + */ + private InternalState internalState; + /* * Provisioning state of resource */ @@ -49,7 +54,7 @@ public SolutionTemplateVersionProperties() { * * @return the configurations value. */ - public String configurations() { + public BinaryData configurations() { return this.configurations; } @@ -59,7 +64,7 @@ public String configurations() { * @param configurations the configurations value to set. * @return the SolutionTemplateVersionProperties object itself. */ - public SolutionTemplateVersionProperties withConfigurations(String configurations) { + public SolutionTemplateVersionProperties withConfigurations(BinaryData configurations) { this.configurations = configurations; return this; } @@ -104,6 +109,15 @@ public SolutionTemplateVersionProperties withOrchestratorType(OrchestratorType o return this; } + /** + * Get the internalState property: Internal State of resource. + * + * @return the internalState value. + */ + public InternalState internalState() { + return this.internalState; + } + /** * Get the provisioningState property: Provisioning state of resource. * @@ -119,7 +133,6 @@ public ProvisioningState provisioningState() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("configurations", this.configurations); jsonWriter.writeMapField("specification", this.specification, (writer, element) -> { if (element == null) { writer.writeNull(); @@ -127,6 +140,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { element.writeTo(writer); } }); + if (this.configurations != null) { + jsonWriter.writeFieldName("configurations"); + this.configurations.writeTo(jsonWriter); + } jsonWriter.writeStringField("orchestratorType", this.orchestratorType == null ? null : this.orchestratorType.toString()); return jsonWriter.writeEndObject(); @@ -149,15 +166,19 @@ public static SolutionTemplateVersionProperties fromJson(JsonReader jsonReader) String fieldName = reader.getFieldName(); reader.nextToken(); - if ("configurations".equals(fieldName)) { - deserializedSolutionTemplateVersionProperties.configurations = reader.getString(); - } else if ("specification".equals(fieldName)) { + if ("specification".equals(fieldName)) { Map specification = reader.readMap(reader1 -> reader1 .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()))); deserializedSolutionTemplateVersionProperties.specification = specification; + } else if ("configurations".equals(fieldName)) { + deserializedSolutionTemplateVersionProperties.configurations + = reader.getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped())); } else if ("orchestratorType".equals(fieldName)) { deserializedSolutionTemplateVersionProperties.orchestratorType = OrchestratorType.fromString(reader.getString()); + } else if ("internalState".equals(fieldName)) { + deserializedSolutionTemplateVersionProperties.internalState + = InternalState.fromString(reader.getString()); } else if ("provisioningState".equals(fieldName)) { deserializedSolutionTemplateVersionProperties.provisioningState = ProvisioningState.fromString(reader.getString()); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersions.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersions.java index 8917e03628725..a3afd68ae0714 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersions.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersions.java @@ -41,6 +41,32 @@ Response getWithResponse(String resourceGroupName, Stri SolutionTemplateVersion get(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName); + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName); + + /** + * Delete a Solution Template Version Resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + Context context); + /** * List Solution Template Version Resources. * @@ -127,4 +153,85 @@ void bulkPublishSolution(String resourceGroupName, String solutionTemplateName, */ void bulkPublishSolution(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, BulkPublishSolutionParameter body, Context context); + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void bulkReviewSolution(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + BulkReviewSolutionParameter body); + + /** + * Post request for bulk review. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param solutionTemplateName The name of the SolutionTemplate. + * @param solutionTemplateVersionName The name of the SolutionTemplateVersion. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void bulkReviewSolution(String resourceGroupName, String solutionTemplateName, String solutionTemplateVersionName, + BulkReviewSolutionParameter body, Context context); + + /** + * Get a Solution Template Version Resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution Template Version Resource along with {@link Response}. + */ + SolutionTemplateVersion getById(String id); + + /** + * Get a Solution Template Version Resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Solution Template Version Resource along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete a Solution Template Version Resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Delete a Solution Template Version Resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new SolutionTemplateVersion resource. + * + * @param name resource name. + * @return the first stage of the new SolutionTemplateVersion definition. + */ + SolutionTemplateVersion.DefinitionStages.Blank define(String name); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdate.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdate.java index fd2a2b578248b..8afc2cedbbf1c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdate.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdate.java @@ -12,7 +12,7 @@ import java.io.IOException; /** - * The type used for update operations of the Solution. + * The updatable properties of the Solution. */ @Fluent public final class SolutionUpdate implements JsonSerializable { diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdateProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdateProperties.java index 8ec4701166448..6ba3791889a72 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdateProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdateProperties.java @@ -10,18 +10,76 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * The updatable properties of the Solution. */ @Immutable public final class SolutionUpdateProperties implements JsonSerializable { + /* + * Solution template Id + */ + private String solutionTemplateId; + + /* + * Display name of the solution + */ + private String displayName; + + /* + * List of latest revisions for available solution template versions + */ + private List availableSolutionTemplateVersions; + + /* + * Provisioning state of resource + */ + private ProvisioningState provisioningState; + /** * Creates an instance of SolutionUpdateProperties class. */ public SolutionUpdateProperties() { } + /** + * Get the solutionTemplateId property: Solution template Id. + * + * @return the solutionTemplateId value. + */ + public String solutionTemplateId() { + return this.solutionTemplateId; + } + + /** + * Get the displayName property: Display name of the solution. + * + * @return the displayName value. + */ + public String displayName() { + return this.displayName; + } + + /** + * Get the availableSolutionTemplateVersions property: List of latest revisions for available solution template + * versions. + * + * @return the availableSolutionTemplateVersions value. + */ + public List availableSolutionTemplateVersions() { + return this.availableSolutionTemplateVersions; + } + + /** + * Get the provisioningState property: Provisioning state of resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + /** * {@inheritDoc} */ @@ -46,7 +104,21 @@ public static SolutionUpdateProperties fromJson(JsonReader jsonReader) throws IO String fieldName = reader.getFieldName(); reader.nextToken(); - reader.skipChildren(); + if ("solutionTemplateId".equals(fieldName)) { + deserializedSolutionUpdateProperties.solutionTemplateId = reader.getString(); + } else if ("displayName".equals(fieldName)) { + deserializedSolutionUpdateProperties.displayName = reader.getString(); + } else if ("availableSolutionTemplateVersions".equals(fieldName)) { + List availableSolutionTemplateVersions + = reader.readArray(reader1 -> AvailableSolutionTemplateVersion.fromJson(reader1)); + deserializedSolutionUpdateProperties.availableSolutionTemplateVersions + = availableSolutionTemplateVersions; + } else if ("provisioningState".equals(fieldName)) { + deserializedSolutionUpdateProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } } return deserializedSolutionUpdateProperties; diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersionProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersionProperties.java index 0a17e22c6cdfb..43c2c0b6dfe57 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersionProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersionProperties.java @@ -38,12 +38,12 @@ public final class SolutionVersionProperties implements JsonSerializable stages; + /* * Solution instance name */ @@ -85,6 +95,11 @@ public final class SolutionVersionProperties implements JsonSerializable stages() { + return this.stages; + } + /** * Get the solutionInstanceName property: Solution instance name. * @@ -230,6 +263,16 @@ public String latestActionTrackingUri() { return this.latestActionTrackingUri; } + /** + * Get the latestActionTriggeredBy property: Object Id of user who triggered the latest action on this solution + * version. + * + * @return the latestActionTriggeredBy value. + */ + public String latestActionTriggeredBy() { + return this.latestActionTriggeredBy; + } + /** * Get the actionType property: The type of the latest action performed on this solution version. * @@ -291,15 +334,22 @@ public static SolutionVersionProperties fromJson(JsonReader jsonReader) throws I } else if ("targetDisplayName".equals(fieldName)) { deserializedSolutionVersionProperties.targetDisplayName = reader.getString(); } else if ("configuration".equals(fieldName)) { - deserializedSolutionVersionProperties.configuration = reader.getString(); + deserializedSolutionVersionProperties.configuration + = reader.getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped())); } else if ("targetLevelConfiguration".equals(fieldName)) { - deserializedSolutionVersionProperties.targetLevelConfiguration = reader.getString(); + deserializedSolutionVersionProperties.targetLevelConfiguration + = reader.getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped())); } else if ("reviewId".equals(fieldName)) { deserializedSolutionVersionProperties.reviewId = reader.getString(); } else if ("externalValidationId".equals(fieldName)) { deserializedSolutionVersionProperties.externalValidationId = reader.getString(); } else if ("state".equals(fieldName)) { deserializedSolutionVersionProperties.state = State.fromString(reader.getString()); + } else if ("currentStage".equals(fieldName)) { + deserializedSolutionVersionProperties.currentStage = StageMap.fromJson(reader); + } else if ("stages".equals(fieldName)) { + List stages = reader.readArray(reader1 -> StageMap.fromJson(reader1)); + deserializedSolutionVersionProperties.stages = stages; } else if ("solutionInstanceName".equals(fieldName)) { deserializedSolutionVersionProperties.solutionInstanceName = reader.getString(); } else if ("solutionDependencies".equals(fieldName)) { @@ -310,6 +360,8 @@ public static SolutionVersionProperties fromJson(JsonReader jsonReader) throws I deserializedSolutionVersionProperties.errorDetails = ManagementError.fromJson(reader); } else if ("latestActionTrackingUri".equals(fieldName)) { deserializedSolutionVersionProperties.latestActionTrackingUri = reader.getString(); + } else if ("latestActionTriggeredBy".equals(fieldName)) { + deserializedSolutionVersionProperties.latestActionTriggeredBy = reader.getString(); } else if ("actionType".equals(fieldName)) { deserializedSolutionVersionProperties.actionType = JobType.fromString(reader.getString()); } else if ("provisioningState".equals(fieldName)) { diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/StageMap.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/StageMap.java new file mode 100644 index 0000000000000..33aa9021f249e --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/StageMap.java @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.List; + +/** + * Stage Map for Solution Version. + */ +@Immutable +public final class StageMap implements JsonSerializable { + /* + * Display State + */ + private String displayState; + + /* + * Stage name + */ + private CMStages stage; + + /* + * Stage status + */ + private StateCategory status; + + /* + * Stage start time + */ + private OffsetDateTime startTime; + + /* + * Stage end time + */ + private OffsetDateTime endTime; + + /* + * Child stages which represents more granular level stage status if any + */ + private List childStages; + + /** + * Creates an instance of StageMap class. + */ + private StageMap() { + } + + /** + * Get the displayState property: Display State. + * + * @return the displayState value. + */ + public String displayState() { + return this.displayState; + } + + /** + * Get the stage property: Stage name. + * + * @return the stage value. + */ + public CMStages stage() { + return this.stage; + } + + /** + * Get the status property: Stage status. + * + * @return the status value. + */ + public StateCategory status() { + return this.status; + } + + /** + * Get the startTime property: Stage start time. + * + * @return the startTime value. + */ + public OffsetDateTime startTime() { + return this.startTime; + } + + /** + * Get the endTime property: Stage end time. + * + * @return the endTime value. + */ + public OffsetDateTime endTime() { + return this.endTime; + } + + /** + * Get the childStages property: Child stages which represents more granular level stage status if any. + * + * @return the childStages value. + */ + public List childStages() { + return this.childStages; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StageMap from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StageMap if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the StageMap. + */ + public static StageMap fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StageMap deserializedStageMap = new StageMap(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("displayState".equals(fieldName)) { + deserializedStageMap.displayState = reader.getString(); + } else if ("stage".equals(fieldName)) { + deserializedStageMap.stage = CMStages.fromString(reader.getString()); + } else if ("status".equals(fieldName)) { + deserializedStageMap.status = StateCategory.fromString(reader.getString()); + } else if ("startTime".equals(fieldName)) { + deserializedStageMap.startTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("endTime".equals(fieldName)) { + deserializedStageMap.endTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("childStages".equals(fieldName)) { + List childStages = reader.readArray(reader1 -> StageMap.fromJson(reader1)); + deserializedStageMap.childStages = childStages; + } else { + reader.skipChildren(); + } + } + + return deserializedStageMap; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/State.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/State.java index 839c24030569a..6bedcf09f6f96 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/State.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/State.java @@ -66,6 +66,11 @@ public final class State extends ExpandableStringEnum { */ public static final State STAGING = fromString("Staging"); + /** + * State is not applicable. + */ + public static final State NOT_APPLICABLE = fromString("NotApplicable"); + /** * Creates a new instance of State value. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/StateCategory.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/StateCategory.java new file mode 100644 index 0000000000000..21e114a650afd --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/StateCategory.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * State Category for Solution Version. + */ +public final class StateCategory extends ExpandableStringEnum { + /** + * Pending state [Non-Terminal]. + */ + public static final StateCategory PENDING = fromString("Pending"); + + /** + * InProgress state [Non-Terminal]. + */ + public static final StateCategory IN_PROGRESS = fromString("InProgress"); + + /** + * Completed state [Terminal]. + */ + public static final StateCategory COMPLETED = fromString("Completed"); + + /** + * Failed state [Terminal]. + */ + public static final StateCategory FAILED = fromString("Failed"); + + /** + * None state [Terminal]. + */ + public static final StateCategory NONE = fromString("None"); + + /** + * Creates a new instance of StateCategory value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public StateCategory() { + } + + /** + * Creates or finds a StateCategory from its string representation. + * + * @param name a name to look for. + * @return the corresponding StateCategory. + */ + public static StateCategory fromString(String name) { + return fromString(name, StateCategory.class); + } + + /** + * Gets known StateCategory values. + * + * @return known StateCategory values. + */ + public static Collection values() { + return values(StateCategory.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Target.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Target.java index 99de0ce072d3e..0160a1e146f9e 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Target.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Target.java @@ -448,4 +448,27 @@ interface WithProperties { * @return solution Version Resource. */ SolutionVersion updateExternalValidationStatus(UpdateExternalValidationStatusParameter body, Context context); + + /** + * Post request to unstage solution version. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource. + */ + SolutionVersion unstageSolutionVersion(SolutionVersionParameter body); + + /** + * Post request to unstage solution version. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource. + */ + SolutionVersion unstageSolutionVersion(SolutionVersionParameter body, Context context); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetMetadata.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetMetadata.java new file mode 100644 index 0000000000000..7e437f950ebf0 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetMetadata.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Solution Deployment Target Details. + */ +@Fluent +public final class TargetMetadata implements JsonSerializable { + /* + * List of capabilities + */ + private List capabilities; + + /* + * ARM resource IDs of the Targets resources + */ + private List targetIds; + + /** + * Creates an instance of TargetMetadata class. + */ + public TargetMetadata() { + } + + /** + * Get the capabilities property: List of capabilities. + * + * @return the capabilities value. + */ + public List capabilities() { + return this.capabilities; + } + + /** + * Set the capabilities property: List of capabilities. + * + * @param capabilities the capabilities value to set. + * @return the TargetMetadata object itself. + */ + public TargetMetadata withCapabilities(List capabilities) { + this.capabilities = capabilities; + return this; + } + + /** + * Get the targetIds property: ARM resource IDs of the Targets resources. + * + * @return the targetIds value. + */ + public List targetIds() { + return this.targetIds; + } + + /** + * Set the targetIds property: ARM resource IDs of the Targets resources. + * + * @param targetIds the targetIds value to set. + * @return the TargetMetadata object itself. + */ + public TargetMetadata withTargetIds(List targetIds) { + this.targetIds = targetIds; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("capabilities", this.capabilities, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("targetIds", this.targetIds, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TargetMetadata from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TargetMetadata if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the TargetMetadata. + */ + public static TargetMetadata fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TargetMetadata deserializedTargetMetadata = new TargetMetadata(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("capabilities".equals(fieldName)) { + List capabilities = reader.readArray(reader1 -> reader1.getString()); + deserializedTargetMetadata.capabilities = capabilities; + } else if ("targetIds".equals(fieldName)) { + List targetIds = reader.readArray(reader1 -> reader1.getString()); + deserializedTargetMetadata.targetIds = targetIds; + } else { + reader.skipChildren(); + } + } + + return deserializedTargetMetadata; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetProperties.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetProperties.java index dcbea1a28529e..fa7dd5086544f 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetProperties.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetProperties.java @@ -262,6 +262,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("description", this.description); jsonWriter.writeStringField("displayName", this.displayName); jsonWriter.writeStringField("contextId", this.contextId); + jsonWriter.writeArrayField("capabilities", this.capabilities, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("hierarchyLevel", this.hierarchyLevel); jsonWriter.writeMapField("targetSpecification", this.targetSpecification, (writer, element) -> { if (element == null) { writer.writeNull(); @@ -269,8 +271,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { element.writeTo(writer); } }); - jsonWriter.writeArrayField("capabilities", this.capabilities, (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("hierarchyLevel", this.hierarchyLevel); jsonWriter.writeStringField("solutionScope", this.solutionScope); jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); return jsonWriter.writeEndObject(); @@ -298,15 +298,15 @@ public static TargetProperties fromJson(JsonReader jsonReader) throws IOExceptio deserializedTargetProperties.displayName = reader.getString(); } else if ("contextId".equals(fieldName)) { deserializedTargetProperties.contextId = reader.getString(); - } else if ("targetSpecification".equals(fieldName)) { - Map targetSpecification = reader.readMap(reader1 -> reader1 - .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()))); - deserializedTargetProperties.targetSpecification = targetSpecification; } else if ("capabilities".equals(fieldName)) { List capabilities = reader.readArray(reader1 -> reader1.getString()); deserializedTargetProperties.capabilities = capabilities; } else if ("hierarchyLevel".equals(fieldName)) { deserializedTargetProperties.hierarchyLevel = reader.getString(); + } else if ("targetSpecification".equals(fieldName)) { + Map targetSpecification = reader.readMap(reader1 -> reader1 + .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()))); + deserializedTargetProperties.targetSpecification = targetSpecification; } else if ("status".equals(fieldName)) { deserializedTargetProperties.status = DeploymentStatus.fromJson(reader); } else if ("solutionScope".equals(fieldName)) { diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Targets.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Targets.java index 9e03316afa178..c39427cb85823 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Targets.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/Targets.java @@ -294,6 +294,34 @@ SolutionVersion updateExternalValidationStatus(String resourceGroupName, String SolutionVersion updateExternalValidationStatus(String resourceGroupName, String targetName, UpdateExternalValidationStatusParameter body, Context context); + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource. + */ + SolutionVersion unstageSolutionVersion(String resourceGroupName, String targetName, SolutionVersionParameter body); + + /** + * Post request to unstage solution version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param targetName Name of the target. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return solution Version Resource. + */ + SolutionVersion unstageSolutionVersion(String resourceGroupName, String targetName, SolutionVersionParameter body, + Context context); + /** * Get a Target Resource. * diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/UninstallJobParameter.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/UninstallJobParameter.java new file mode 100644 index 0000000000000..9f53cf5295654 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/UninstallJobParameter.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Parameters for an Uninstall job. + */ +@Immutable +public final class UninstallJobParameter extends JobParameterBase { + /* + * Job type discriminator value + */ + private JobType jobType = JobType.UNINSTALL; + + /* + * The parameter property. + */ + private UninstallSolutionParameter parameter; + + /** + * Creates an instance of UninstallJobParameter class. + */ + private UninstallJobParameter() { + } + + /** + * Get the jobType property: Job type discriminator value. + * + * @return the jobType value. + */ + @Override + public JobType jobType() { + return this.jobType; + } + + /** + * Get the parameter property: The parameter property. + * + * @return the parameter value. + */ + public UninstallSolutionParameter parameter() { + return this.parameter; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("jobType", this.jobType == null ? null : this.jobType.toString()); + jsonWriter.writeJsonField("parameter", this.parameter); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UninstallJobParameter from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UninstallJobParameter if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the UninstallJobParameter. + */ + public static UninstallJobParameter fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UninstallJobParameter deserializedUninstallJobParameter = new UninstallJobParameter(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("jobType".equals(fieldName)) { + deserializedUninstallJobParameter.jobType = JobType.fromString(reader.getString()); + } else if ("parameter".equals(fieldName)) { + deserializedUninstallJobParameter.parameter = UninstallSolutionParameter.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedUninstallJobParameter; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/UninstallJobStepStatistics.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/UninstallJobStepStatistics.java new file mode 100644 index 0000000000000..429fcac3da0ba --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/java/com/azure/resourcemanager/workloadorchestration/models/UninstallJobStepStatistics.java @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Uninstall statistics for a job step, including total, success, and failed counts. + */ +@Immutable +public final class UninstallJobStepStatistics extends JobStepStatisticsBase { + /* + * Statistics type discriminator value + */ + private JobType statisticsType = JobType.UNINSTALL; + + /* + * Total count of items processed in this step + */ + private Integer totalCount; + + /* + * Count of successful items in this step + */ + private Integer successCount; + + /* + * Count of failed items in this step + */ + private Integer failedCount; + + /** + * Creates an instance of UninstallJobStepStatistics class. + */ + private UninstallJobStepStatistics() { + } + + /** + * Get the statisticsType property: Statistics type discriminator value. + * + * @return the statisticsType value. + */ + @Override + public JobType statisticsType() { + return this.statisticsType; + } + + /** + * Get the totalCount property: Total count of items processed in this step. + * + * @return the totalCount value. + */ + public Integer totalCount() { + return this.totalCount; + } + + /** + * Get the successCount property: Count of successful items in this step. + * + * @return the successCount value. + */ + public Integer successCount() { + return this.successCount; + } + + /** + * Get the failedCount property: Count of failed items in this step. + * + * @return the failedCount value. + */ + public Integer failedCount() { + return this.failedCount; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("statisticsType", + this.statisticsType == null ? null : this.statisticsType.toString()); + jsonWriter.writeNumberField("totalCount", this.totalCount); + jsonWriter.writeNumberField("successCount", this.successCount); + jsonWriter.writeNumberField("failedCount", this.failedCount); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UninstallJobStepStatistics from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UninstallJobStepStatistics if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the UninstallJobStepStatistics. + */ + public static UninstallJobStepStatistics fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UninstallJobStepStatistics deserializedUninstallJobStepStatistics = new UninstallJobStepStatistics(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("statisticsType".equals(fieldName)) { + deserializedUninstallJobStepStatistics.statisticsType = JobType.fromString(reader.getString()); + } else if ("totalCount".equals(fieldName)) { + deserializedUninstallJobStepStatistics.totalCount = reader.getNullable(JsonReader::getInt); + } else if ("successCount".equals(fieldName)) { + deserializedUninstallJobStepStatistics.successCount = reader.getNullable(JsonReader::getInt); + } else if ("failedCount".equals(fieldName)) { + deserializedUninstallJobStepStatistics.failedCount = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedUninstallJobStepStatistics; + }); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/resources/META-INF/azure-resourcemanager-workloadorchestration_metadata.json b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/resources/META-INF/azure-resourcemanager-workloadorchestration_metadata.json index 7d6e2af77c9a7..9179fa65b47af 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/resources/META-INF/azure-resourcemanager-workloadorchestration_metadata.json +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/resources/META-INF/azure-resourcemanager-workloadorchestration_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.Edge":"2025-06-01"},"crossLanguageDefinitions":{"com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient":"Microsoft.Edge.ConfigTemplateVersions","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.get":"Microsoft.Edge.ConfigTemplateVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.getWithResponse":"Microsoft.Edge.ConfigTemplateVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.listByConfigTemplate":"Microsoft.Edge.ConfigTemplateVersions.listByConfigTemplate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient":"Microsoft.Edge.ConfigTemplates","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.beginCreateOrUpdate":"Microsoft.Edge.ConfigTemplates.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.beginCreateVersion":"Microsoft.Edge.ConfigTemplates.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.beginDelete":"Microsoft.Edge.ConfigTemplates.delete","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.createOrUpdate":"Microsoft.Edge.ConfigTemplates.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.createVersion":"Microsoft.Edge.ConfigTemplates.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.delete":"Microsoft.Edge.ConfigTemplates.delete","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.getByResourceGroup":"Microsoft.Edge.ConfigTemplates.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.getByResourceGroupWithResponse":"Microsoft.Edge.ConfigTemplates.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.list":"Microsoft.Edge.ConfigTemplates.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.listByResourceGroup":"Microsoft.Edge.ConfigTemplates.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.removeVersion":"Microsoft.Edge.ConfigTemplates.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.removeVersionWithResponse":"Microsoft.Edge.ConfigTemplates.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.update":"Microsoft.Edge.ConfigTemplates.update","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.updateWithResponse":"Microsoft.Edge.ConfigTemplates.update","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient":"Microsoft.Edge.Contexts","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.beginCreateOrUpdate":"Microsoft.Edge.Contexts.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.beginDelete":"Microsoft.Edge.Contexts.delete","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.beginUpdate":"Microsoft.Edge.Contexts.update","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.createOrUpdate":"Microsoft.Edge.Contexts.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.delete":"Microsoft.Edge.Contexts.delete","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.getByResourceGroup":"Microsoft.Edge.Contexts.get","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.getByResourceGroupWithResponse":"Microsoft.Edge.Contexts.get","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.list":"Microsoft.Edge.Contexts.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.listByResourceGroup":"Microsoft.Edge.Contexts.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.update":"Microsoft.Edge.Contexts.update","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient":"Microsoft.Edge.Diagnostics","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.beginCreateOrUpdate":"Microsoft.Edge.Diagnostics.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.beginDelete":"Microsoft.Edge.Diagnostics.delete","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.beginUpdate":"Microsoft.Edge.Diagnostics.update","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.createOrUpdate":"Microsoft.Edge.Diagnostics.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.delete":"Microsoft.Edge.Diagnostics.delete","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.getByResourceGroup":"Microsoft.Edge.Diagnostics.get","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.getByResourceGroupWithResponse":"Microsoft.Edge.Diagnostics.get","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.list":"Microsoft.Edge.Diagnostics.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.listByResourceGroup":"Microsoft.Edge.Diagnostics.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.update":"Microsoft.Edge.Diagnostics.update","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient":"Microsoft.Edge.DynamicSchemaVersions","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.beginCreateOrUpdate":"Microsoft.Edge.DynamicSchemaVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.beginDelete":"Microsoft.Edge.DynamicSchemaVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.createOrUpdate":"Microsoft.Edge.DynamicSchemaVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.delete":"Microsoft.Edge.DynamicSchemaVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.get":"Microsoft.Edge.DynamicSchemaVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.getWithResponse":"Microsoft.Edge.DynamicSchemaVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.listByDynamicSchema":"Microsoft.Edge.DynamicSchemaVersions.listByDynamicSchema","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.update":"Microsoft.Edge.DynamicSchemaVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.updateWithResponse":"Microsoft.Edge.DynamicSchemaVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient":"Microsoft.Edge.DynamicSchemas","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.beginCreateOrUpdate":"Microsoft.Edge.DynamicSchemas.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.beginDelete":"Microsoft.Edge.DynamicSchemas.delete","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.createOrUpdate":"Microsoft.Edge.DynamicSchemas.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.delete":"Microsoft.Edge.DynamicSchemas.delete","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.get":"Microsoft.Edge.DynamicSchemas.get","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.getWithResponse":"Microsoft.Edge.DynamicSchemas.get","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.listBySchema":"Microsoft.Edge.DynamicSchemas.listBySchema","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.update":"Microsoft.Edge.DynamicSchemas.update","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.updateWithResponse":"Microsoft.Edge.DynamicSchemas.update","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient":"Microsoft.Edge.Executions","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.beginCreateOrUpdate":"Microsoft.Edge.Executions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.beginDelete":"Microsoft.Edge.Executions.delete","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.beginUpdate":"Microsoft.Edge.Executions.update","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.createOrUpdate":"Microsoft.Edge.Executions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.delete":"Microsoft.Edge.Executions.delete","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.get":"Microsoft.Edge.Executions.get","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.getWithResponse":"Microsoft.Edge.Executions.get","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.listByWorkflowVersion":"Microsoft.Edge.Executions.listByWorkflowVersion","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.update":"Microsoft.Edge.Executions.update","com.azure.resourcemanager.workloadorchestration.fluent.InstanceHistoriesClient":"Microsoft.Edge.InstanceHistories","com.azure.resourcemanager.workloadorchestration.fluent.InstanceHistoriesClient.get":"Microsoft.Edge.InstanceHistories.get","com.azure.resourcemanager.workloadorchestration.fluent.InstanceHistoriesClient.getWithResponse":"Microsoft.Edge.InstanceHistories.get","com.azure.resourcemanager.workloadorchestration.fluent.InstanceHistoriesClient.listByInstance":"Microsoft.Edge.InstanceHistories.listByInstance","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient":"Microsoft.Edge.Instances","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.beginCreateOrUpdate":"Microsoft.Edge.Instances.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.beginDelete":"Microsoft.Edge.Instances.delete","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.beginUpdate":"Microsoft.Edge.Instances.update","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.createOrUpdate":"Microsoft.Edge.Instances.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.delete":"Microsoft.Edge.Instances.delete","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.get":"Microsoft.Edge.Instances.get","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.getWithResponse":"Microsoft.Edge.Instances.get","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.listBySolution":"Microsoft.Edge.Instances.listBySolution","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.update":"Microsoft.Edge.Instances.update","com.azure.resourcemanager.workloadorchestration.fluent.JobsClient":"Microsoft.Edge.Jobs","com.azure.resourcemanager.workloadorchestration.fluent.JobsClient.get":"Microsoft.Edge.Jobs.get","com.azure.resourcemanager.workloadorchestration.fluent.JobsClient.getWithResponse":"Microsoft.Edge.Jobs.get","com.azure.resourcemanager.workloadorchestration.fluent.JobsClient.listByTarget":"Microsoft.Edge.Jobs.listByTarget","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient":"Microsoft.Edge.SchemaReferences","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.get":"Microsoft.Edge.SchemaReferences.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.getWithResponse":"Microsoft.Edge.SchemaReferences.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.listByResourceGroup":"Microsoft.Edge.SchemaReferences.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient":"Microsoft.Edge.SchemaVersions","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.beginCreateOrUpdate":"Microsoft.Edge.SchemaVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.beginDelete":"Microsoft.Edge.SchemaVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.createOrUpdate":"Microsoft.Edge.SchemaVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.delete":"Microsoft.Edge.SchemaVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.get":"Microsoft.Edge.SchemaVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.getWithResponse":"Microsoft.Edge.SchemaVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.listBySchema":"Microsoft.Edge.SchemaVersions.listBySchema","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.update":"Microsoft.Edge.SchemaVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.updateWithResponse":"Microsoft.Edge.SchemaVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient":"Microsoft.Edge.Schemas","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.beginCreateOrUpdate":"Microsoft.Edge.Schemas.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.beginCreateVersion":"Microsoft.Edge.Schemas.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.beginDelete":"Microsoft.Edge.Schemas.delete","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.createOrUpdate":"Microsoft.Edge.Schemas.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.createVersion":"Microsoft.Edge.Schemas.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.delete":"Microsoft.Edge.Schemas.delete","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.getByResourceGroup":"Microsoft.Edge.Schemas.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.getByResourceGroupWithResponse":"Microsoft.Edge.Schemas.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.list":"Microsoft.Edge.Schemas.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.listByResourceGroup":"Microsoft.Edge.Schemas.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.removeVersion":"Microsoft.Edge.Schemas.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.removeVersionWithResponse":"Microsoft.Edge.Schemas.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.update":"Microsoft.Edge.Schemas.update","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.updateWithResponse":"Microsoft.Edge.Schemas.update","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient":"Microsoft.Edge.SiteReferences","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.beginCreateOrUpdate":"Microsoft.Edge.SiteReferences.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.beginDelete":"Microsoft.Edge.SiteReferences.delete","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.beginUpdate":"Microsoft.Edge.SiteReferences.update","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.createOrUpdate":"Microsoft.Edge.SiteReferences.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.delete":"Microsoft.Edge.SiteReferences.delete","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.get":"Microsoft.Edge.SiteReferences.get","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.getWithResponse":"Microsoft.Edge.SiteReferences.get","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.listByContext":"Microsoft.Edge.SiteReferences.listByContext","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.update":"Microsoft.Edge.SiteReferences.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient":"Microsoft.Edge.SolutionTemplateVersions","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.beginBulkDeploySolution":"Microsoft.Edge.SolutionTemplateVersions.bulkDeploySolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.beginBulkPublishSolution":"Microsoft.Edge.SolutionTemplateVersions.bulkPublishSolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.bulkDeploySolution":"Microsoft.Edge.SolutionTemplateVersions.bulkDeploySolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.bulkPublishSolution":"Microsoft.Edge.SolutionTemplateVersions.bulkPublishSolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.get":"Microsoft.Edge.SolutionTemplateVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.getWithResponse":"Microsoft.Edge.SolutionTemplateVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.listBySolutionTemplate":"Microsoft.Edge.SolutionTemplateVersions.listBySolutionTemplate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient":"Microsoft.Edge.SolutionTemplates","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.beginCreateOrUpdate":"Microsoft.Edge.SolutionTemplates.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.beginCreateVersion":"Microsoft.Edge.SolutionTemplates.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.beginDelete":"Microsoft.Edge.SolutionTemplates.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.beginRemoveVersion":"Microsoft.Edge.SolutionTemplates.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.createOrUpdate":"Microsoft.Edge.SolutionTemplates.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.createVersion":"Microsoft.Edge.SolutionTemplates.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.delete":"Microsoft.Edge.SolutionTemplates.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.getByResourceGroup":"Microsoft.Edge.SolutionTemplates.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.getByResourceGroupWithResponse":"Microsoft.Edge.SolutionTemplates.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.list":"Microsoft.Edge.SolutionTemplates.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.listByResourceGroup":"Microsoft.Edge.SolutionTemplates.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.removeVersion":"Microsoft.Edge.SolutionTemplates.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.update":"Microsoft.Edge.SolutionTemplates.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.updateWithResponse":"Microsoft.Edge.SolutionTemplates.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient":"Microsoft.Edge.SolutionVersions","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.beginCreateOrUpdate":"Microsoft.Edge.SolutionVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.beginDelete":"Microsoft.Edge.SolutionVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.beginUpdate":"Microsoft.Edge.SolutionVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.createOrUpdate":"Microsoft.Edge.SolutionVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.delete":"Microsoft.Edge.SolutionVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.get":"Microsoft.Edge.SolutionVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.getWithResponse":"Microsoft.Edge.SolutionVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.listBySolution":"Microsoft.Edge.SolutionVersions.listBySolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.update":"Microsoft.Edge.SolutionVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient":"Microsoft.Edge.Solutions","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.beginCreateOrUpdate":"Microsoft.Edge.Solutions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.beginDelete":"Microsoft.Edge.Solutions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.beginUpdate":"Microsoft.Edge.Solutions.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.createOrUpdate":"Microsoft.Edge.Solutions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.delete":"Microsoft.Edge.Solutions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.get":"Microsoft.Edge.Solutions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.getWithResponse":"Microsoft.Edge.Solutions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.listByTarget":"Microsoft.Edge.Solutions.listByTarget","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.update":"Microsoft.Edge.Solutions.update","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient":"Microsoft.Edge.Targets","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginCreateOrUpdate":"Microsoft.Edge.Targets.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginDelete":"Microsoft.Edge.Targets.delete","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginInstallSolution":"Microsoft.Edge.Targets.installSolution","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginPublishSolutionVersion":"Microsoft.Edge.Targets.publishSolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginRemoveRevision":"Microsoft.Edge.Targets.removeRevision","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginResolveConfiguration":"Microsoft.Edge.Targets.resolveConfiguration","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginReviewSolutionVersion":"Microsoft.Edge.Targets.reviewSolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginUninstallSolution":"Microsoft.Edge.Targets.uninstallSolution","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginUpdate":"Microsoft.Edge.Targets.update","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginUpdateExternalValidationStatus":"Microsoft.Edge.Targets.updateExternalValidationStatus","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.createOrUpdate":"Microsoft.Edge.Targets.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.delete":"Microsoft.Edge.Targets.delete","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.getByResourceGroup":"Microsoft.Edge.Targets.get","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.getByResourceGroupWithResponse":"Microsoft.Edge.Targets.get","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.installSolution":"Microsoft.Edge.Targets.installSolution","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.list":"Microsoft.Edge.Targets.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.listByResourceGroup":"Microsoft.Edge.Targets.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.publishSolutionVersion":"Microsoft.Edge.Targets.publishSolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.removeRevision":"Microsoft.Edge.Targets.removeRevision","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.resolveConfiguration":"Microsoft.Edge.Targets.resolveConfiguration","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.reviewSolutionVersion":"Microsoft.Edge.Targets.reviewSolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.uninstallSolution":"Microsoft.Edge.Targets.uninstallSolution","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.update":"Microsoft.Edge.Targets.update","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.updateExternalValidationStatus":"Microsoft.Edge.Targets.updateExternalValidationStatus","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient":"Microsoft.Edge.WorkflowVersions","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.beginCreateOrUpdate":"Microsoft.Edge.WorkflowVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.beginDelete":"Microsoft.Edge.WorkflowVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.beginUpdate":"Microsoft.Edge.WorkflowVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.createOrUpdate":"Microsoft.Edge.WorkflowVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.delete":"Microsoft.Edge.WorkflowVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.get":"Microsoft.Edge.WorkflowVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.getWithResponse":"Microsoft.Edge.WorkflowVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.listByWorkflow":"Microsoft.Edge.WorkflowVersions.listByWorkflow","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.update":"Microsoft.Edge.WorkflowVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient":"Microsoft.Edge.Workflows","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.beginCreateOrUpdate":"Microsoft.Edge.Workflows.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.beginDelete":"Microsoft.Edge.Workflows.delete","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.beginUpdate":"Microsoft.Edge.Workflows.update","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.createOrUpdate":"Microsoft.Edge.Workflows.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.delete":"Microsoft.Edge.Workflows.delete","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.get":"Microsoft.Edge.Workflows.get","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.getWithResponse":"Microsoft.Edge.Workflows.get","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.listByContext":"Microsoft.Edge.Workflows.listByContext","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.update":"Microsoft.Edge.Workflows.update","com.azure.resourcemanager.workloadorchestration.fluent.WorkloadOrchestrationManagementClient":"Microsoft.Edge","com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateInner":"Microsoft.Edge.ConfigTemplate","com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner":"Microsoft.Edge.ConfigTemplateVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionWithUpdateTypeInner":"Microsoft.Edge.ConfigTemplateVersionWithUpdateType","com.azure.resourcemanager.workloadorchestration.fluent.models.ContextInner":"Microsoft.Edge.Context","com.azure.resourcemanager.workloadorchestration.fluent.models.DiagnosticInner":"Microsoft.Edge.Diagnostic","com.azure.resourcemanager.workloadorchestration.fluent.models.DynamicSchemaInner":"Microsoft.Edge.DynamicSchema","com.azure.resourcemanager.workloadorchestration.fluent.models.DynamicSchemaVersionInner":"Microsoft.Edge.DynamicSchemaVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.ExecutionInner":"Microsoft.Edge.Execution","com.azure.resourcemanager.workloadorchestration.fluent.models.InstanceHistoryInner":"Microsoft.Edge.InstanceHistory","com.azure.resourcemanager.workloadorchestration.fluent.models.InstanceInner":"Microsoft.Edge.Instance","com.azure.resourcemanager.workloadorchestration.fluent.models.JobInner":"Microsoft.Edge.Job","com.azure.resourcemanager.workloadorchestration.fluent.models.RemoveVersionResponseInner":"Microsoft.Edge.RemoveVersionResponse","com.azure.resourcemanager.workloadorchestration.fluent.models.ResolvedConfigurationInner":"Microsoft.Edge.ResolvedConfiguration","com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaInner":"Microsoft.Edge.Schema","com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaReferenceInner":"Microsoft.Edge.SchemaReference","com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionInner":"Microsoft.Edge.SchemaVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionWithUpdateTypeInner":"Microsoft.Edge.SchemaVersionWithUpdateType","com.azure.resourcemanager.workloadorchestration.fluent.models.SiteReferenceInner":"Microsoft.Edge.SiteReference","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionInner":"Microsoft.Edge.Solution","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateInner":"Microsoft.Edge.SolutionTemplate","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner":"Microsoft.Edge.SolutionTemplateVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionWithUpdateTypeInner":"Microsoft.Edge.SolutionTemplateVersionWithUpdateType","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionVersionInner":"Microsoft.Edge.SolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.TargetInner":"Microsoft.Edge.Target","com.azure.resourcemanager.workloadorchestration.fluent.models.WorkflowInner":"Microsoft.Edge.Workflow","com.azure.resourcemanager.workloadorchestration.fluent.models.WorkflowVersionInner":"Microsoft.Edge.WorkflowVersion","com.azure.resourcemanager.workloadorchestration.implementation.WorkloadOrchestrationManagementClientBuilder":"Microsoft.Edge","com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.ContextListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.DiagnosticListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.DynamicSchemaListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.DynamicSchemaVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.ExecutionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.InstanceHistoryListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.InstanceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.JobListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SchemaListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SchemaReferenceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SchemaVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SiteReferenceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionTemplateListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionTemplateVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.TargetListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.WorkflowListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.WorkflowVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.models.ActiveState":"Microsoft.Edge.ActiveState","com.azure.resourcemanager.workloadorchestration.models.AvailableSolutionTemplateVersion":"Microsoft.Edge.AvailableSolutionTemplateVersion","com.azure.resourcemanager.workloadorchestration.models.BulkDeploySolutionParameter":"Microsoft.Edge.BulkDeploySolutionParameter","com.azure.resourcemanager.workloadorchestration.models.BulkDeployTargetDetails":"Microsoft.Edge.BulkDeployTargetDetails","com.azure.resourcemanager.workloadorchestration.models.BulkPublishSolutionParameter":"Microsoft.Edge.BulkPublishSolutionParameter","com.azure.resourcemanager.workloadorchestration.models.BulkPublishTargetDetails":"Microsoft.Edge.BulkPublishTargetDetails","com.azure.resourcemanager.workloadorchestration.models.Capability":"Microsoft.Edge.Capability","com.azure.resourcemanager.workloadorchestration.models.ComponentStatus":"Microsoft.Edge.ComponentStatus","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateProperties":"Microsoft.Edge.ConfigTemplateProperties","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties":"Microsoft.Edge.ConfigTemplateVersionProperties","com.azure.resourcemanager.workloadorchestration.models.ConfigurationModel":"Microsoft.Edge.ConfigurationModel","com.azure.resourcemanager.workloadorchestration.models.ConfigurationType":"Microsoft.Edge.ConfigurationType","com.azure.resourcemanager.workloadorchestration.models.ContextProperties":"Microsoft.Edge.ContextProperties","com.azure.resourcemanager.workloadorchestration.models.ContextUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.workloadorchestration.models.ContextUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.workloadorchestration.models.DeployJobParameter":"Microsoft.Edge.DeployJobParameter","com.azure.resourcemanager.workloadorchestration.models.DeployJobStepStatistics":"Microsoft.Edge.DeployJobStepStatistics","com.azure.resourcemanager.workloadorchestration.models.DeploymentStatus":"Microsoft.Edge.DeploymentStatus","com.azure.resourcemanager.workloadorchestration.models.DiagnosticProperties":"Microsoft.Edge.DiagnosticProperties","com.azure.resourcemanager.workloadorchestration.models.DiagnosticUpdate":"Microsoft.Edge.DiagnosticUpdate","com.azure.resourcemanager.workloadorchestration.models.DiagnosticUpdateProperties":"Microsoft.Edge.DiagnosticUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.DynamicSchemaProperties":"Microsoft.Edge.DynamicSchemaProperties","com.azure.resourcemanager.workloadorchestration.models.ErrorAction":"Microsoft.Edge.ErrorAction","com.azure.resourcemanager.workloadorchestration.models.ErrorActionMode":"Microsoft.Edge.ErrorActionMode","com.azure.resourcemanager.workloadorchestration.models.ExecutionProperties":"Microsoft.Edge.ExecutionProperties","com.azure.resourcemanager.workloadorchestration.models.ExecutionStatus":"Microsoft.Edge.ExecutionStatus","com.azure.resourcemanager.workloadorchestration.models.ExtendedLocation":"Azure.ResourceManager.CommonTypes.ExtendedLocation","com.azure.resourcemanager.workloadorchestration.models.ExtendedLocationType":"Azure.ResourceManager.CommonTypes.ExtendedLocationType","com.azure.resourcemanager.workloadorchestration.models.Hierarchy":"Microsoft.Edge.Hierarchy","com.azure.resourcemanager.workloadorchestration.models.InstallSolutionParameter":"Microsoft.Edge.InstallSolutionParameter","com.azure.resourcemanager.workloadorchestration.models.InstanceHistoryProperties":"Microsoft.Edge.InstanceHistoryProperties","com.azure.resourcemanager.workloadorchestration.models.InstanceProperties":"Microsoft.Edge.InstanceProperties","com.azure.resourcemanager.workloadorchestration.models.JobParameterBase":"Microsoft.Edge.JobParameterBase","com.azure.resourcemanager.workloadorchestration.models.JobProperties":"Microsoft.Edge.JobProperties","com.azure.resourcemanager.workloadorchestration.models.JobStatus":"Microsoft.Edge.JobStatus","com.azure.resourcemanager.workloadorchestration.models.JobStep":"Microsoft.Edge.JobStep","com.azure.resourcemanager.workloadorchestration.models.JobStepStatisticsBase":"Microsoft.Edge.JobStepStatisticsBase","com.azure.resourcemanager.workloadorchestration.models.JobType":"Microsoft.Edge.JobType","com.azure.resourcemanager.workloadorchestration.models.OrchestratorType":"Microsoft.Edge.OrchestratorType","com.azure.resourcemanager.workloadorchestration.models.ProvisioningState":"Microsoft.Edge.ProvisioningState","com.azure.resourcemanager.workloadorchestration.models.ReconciliationPolicyProperties":"Microsoft.Edge.ReconciliationPolicyProperties","com.azure.resourcemanager.workloadorchestration.models.ReconciliationState":"Microsoft.Edge.ReconciliationState","com.azure.resourcemanager.workloadorchestration.models.RemoveRevisionParameter":"Microsoft.Edge.RemoveRevisionParameter","com.azure.resourcemanager.workloadorchestration.models.ResourceState":"Microsoft.Edge.ResourceState","com.azure.resourcemanager.workloadorchestration.models.SchemaProperties":"Microsoft.Edge.SchemaProperties","com.azure.resourcemanager.workloadorchestration.models.SchemaReferenceProperties":"Microsoft.Edge.SchemaReferenceProperties","com.azure.resourcemanager.workloadorchestration.models.SchemaUpdate":"Microsoft.Edge.SchemaUpdate","com.azure.resourcemanager.workloadorchestration.models.SchemaUpdateProperties":"Microsoft.Edge.SchemaUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties":"Microsoft.Edge.SchemaVersionProperties","com.azure.resourcemanager.workloadorchestration.models.SiteReferenceProperties":"Microsoft.Edge.SiteReferenceProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionDependency":"Microsoft.Edge.SolutionDependency","com.azure.resourcemanager.workloadorchestration.models.SolutionDependencyParameter":"Microsoft.Edge.SolutionDependencyParameter","com.azure.resourcemanager.workloadorchestration.models.SolutionProperties":"Microsoft.Edge.SolutionProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateParameter":"Microsoft.Edge.SolutionTemplateParameter","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateProperties":"Microsoft.Edge.SolutionTemplateProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties":"Microsoft.Edge.SolutionTemplateVersionProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionUpdate":"Microsoft.Edge.SolutionUpdate","com.azure.resourcemanager.workloadorchestration.models.SolutionUpdateProperties":"Microsoft.Edge.SolutionUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionVersionParameter":"Microsoft.Edge.SolutionVersionParameter","com.azure.resourcemanager.workloadorchestration.models.SolutionVersionProperties":"Microsoft.Edge.SolutionVersionProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionVersionSnapshot":"Microsoft.Edge.SolutionVersionSnapshot","com.azure.resourcemanager.workloadorchestration.models.StageSpec":"Microsoft.Edge.StageSpec","com.azure.resourcemanager.workloadorchestration.models.StageStatus":"Microsoft.Edge.StageStatus","com.azure.resourcemanager.workloadorchestration.models.State":"Microsoft.Edge.State","com.azure.resourcemanager.workloadorchestration.models.TargetProperties":"Microsoft.Edge.TargetProperties","com.azure.resourcemanager.workloadorchestration.models.TargetSnapshot":"Microsoft.Edge.TargetSnapshot","com.azure.resourcemanager.workloadorchestration.models.TargetStatus":"Microsoft.Edge.TargetStatus","com.azure.resourcemanager.workloadorchestration.models.TargetUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.workloadorchestration.models.TargetUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.workloadorchestration.models.TaskOption":"Microsoft.Edge.TaskOption","com.azure.resourcemanager.workloadorchestration.models.TaskSpec":"Microsoft.Edge.TaskSpec","com.azure.resourcemanager.workloadorchestration.models.UninstallSolutionParameter":"Microsoft.Edge.UninstallSolutionParameter","com.azure.resourcemanager.workloadorchestration.models.UpdateExternalValidationStatusParameter":"Microsoft.Edge.UpdateExternalValidationStatusParameter","com.azure.resourcemanager.workloadorchestration.models.UpdateType":"Microsoft.Edge.UpdateType","com.azure.resourcemanager.workloadorchestration.models.ValidationStatus":"Microsoft.Edge.ValidationStatus","com.azure.resourcemanager.workloadorchestration.models.VersionParameter":"Microsoft.Edge.VersionParameter","com.azure.resourcemanager.workloadorchestration.models.WorkflowProperties":"Microsoft.Edge.WorkflowProperties","com.azure.resourcemanager.workloadorchestration.models.WorkflowVersionProperties":"Microsoft.Edge.WorkflowVersionProperties"},"generatedFiles":["src/main/java/com/azure/resourcemanager/workloadorchestration/WorkloadOrchestrationManager.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplatesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ContextsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/DiagnosticsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/DynamicSchemaVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/DynamicSchemasClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ExecutionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/InstanceHistoriesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/InstancesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/JobsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SchemaReferencesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SchemaVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SchemasClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SiteReferencesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionTemplateVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionTemplatesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/TargetsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/WorkflowVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/WorkflowsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/WorkloadOrchestrationManagementClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateVersionWithUpdateTypeInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ContextInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/DiagnosticInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/DynamicSchemaInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/DynamicSchemaVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ExecutionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/InstanceHistoryInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/InstanceInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/JobInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/RemoveVersionResponseInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ResolvedConfigurationInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaReferenceInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaVersionWithUpdateTypeInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SiteReferenceInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionTemplateInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionTemplateVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionTemplateVersionWithUpdateTypeInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/TargetInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/WorkflowInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/WorkflowVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/package-info.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionWithUpdateTypeImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ContextModelImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ContextsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ContextsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DiagnosticImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DiagnosticsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DiagnosticsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemaImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemaVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemaVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemaVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemasClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemasImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ExecutionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ExecutionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ExecutionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstanceHistoriesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstanceHistoriesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstanceHistoryImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstanceImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstancesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstancesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/JobImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/JobsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/JobsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/RemoveVersionResponseImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ResolvedConfigurationImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferenceImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaVersionWithUpdateTypeImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemasClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemasImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SiteReferenceImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SiteReferencesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SiteReferencesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionWithUpdateTypeImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplatesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplatesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkloadOrchestrationManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkloadOrchestrationManagementClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ContextListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/DiagnosticListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/DynamicSchemaListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/DynamicSchemaVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ExecutionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/InstanceHistoryListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/InstanceListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/JobListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SchemaListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SchemaReferenceListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SchemaVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SiteReferenceListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionTemplateListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionTemplateVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/TargetListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/WorkflowListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/WorkflowVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/package-info.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ActiveState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/AvailableSolutionTemplateVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkDeploySolutionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkDeployTargetDetails.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishSolutionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishTargetDetails.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Capability.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ComponentStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersionWithUpdateType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplates.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigurationModel.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigurationType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextModel.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Contexts.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DeployJobParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DeployJobStepStatistics.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DeploymentStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Diagnostic.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Diagnostics.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchema.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemaProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemaVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemaVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemas.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ErrorAction.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ErrorActionMode.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Execution.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ExecutionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ExecutionStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Executions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ExtendedLocation.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ExtendedLocationType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Hierarchy.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InstallSolutionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Instance.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InstanceHistories.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InstanceHistory.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InstanceHistoryProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InstanceProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Instances.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Job.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobParameterBase.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobStep.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobStepStatisticsBase.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Jobs.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/OrchestratorType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ReconciliationPolicyProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ReconciliationState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/RemoveRevisionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/RemoveVersionResponse.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ResolvedConfiguration.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ResourceState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Schema.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReference.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReferenceProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReferences.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersionWithUpdateType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Schemas.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SiteReference.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SiteReferenceProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SiteReferences.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Solution.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDependency.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDependencyParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersionWithUpdateType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplates.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersionSnapshot.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Solutions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/StageSpec.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/StageStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/State.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Target.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetSnapshot.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Targets.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TaskOption.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TaskSpec.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/UninstallSolutionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/UpdateExternalValidationStatusParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/UpdateType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ValidationStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/VersionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Workflow.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/WorkflowProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/WorkflowVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/WorkflowVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/WorkflowVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Workflows.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/package-info.java","src/main/java/com/azure/resourcemanager/workloadorchestration/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.Edge":"2026-05-01-preview"},"crossLanguagePackageId":"Microsoft.Edge","crossLanguageVersion":"45d799a6af21","crossLanguageDefinitions":{"com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient":"Microsoft.Edge.ConfigTemplateMetadatas","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient.beginCreateOrUpdate":"Microsoft.Edge.ConfigTemplateMetadatas.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient.beginDelete":"Microsoft.Edge.ConfigTemplateMetadatas.delete","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient.beginUpdate":"Microsoft.Edge.ConfigTemplateMetadatas.update","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient.createOrUpdate":"Microsoft.Edge.ConfigTemplateMetadatas.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient.delete":"Microsoft.Edge.ConfigTemplateMetadatas.delete","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient.get":"Microsoft.Edge.ConfigTemplateMetadatas.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient.getWithResponse":"Microsoft.Edge.ConfigTemplateMetadatas.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient.listByConfigTemplate":"Microsoft.Edge.ConfigTemplateMetadatas.listByConfigTemplate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateMetadatasClient.update":"Microsoft.Edge.ConfigTemplateMetadatas.update","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateSchemasClient":"Microsoft.Edge.ConfigTemplateSchemas","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateSchemasClient.get":"Microsoft.Edge.ConfigTemplateSchemas.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateSchemasClient.getWithResponse":"Microsoft.Edge.ConfigTemplateSchemas.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateSchemasClient.listByConfigTemplateVersion":"Microsoft.Edge.ConfigTemplateSchemas.listByConfigTemplateVersion","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient":"Microsoft.Edge.ConfigTemplateVersions","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.beginCreateOrUpdate":"Microsoft.Edge.ConfigTemplateVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.beginDelete":"Microsoft.Edge.ConfigTemplateVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.createOrUpdate":"Microsoft.Edge.ConfigTemplateVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.delete":"Microsoft.Edge.ConfigTemplateVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.get":"Microsoft.Edge.ConfigTemplateVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.getWithResponse":"Microsoft.Edge.ConfigTemplateVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.listByConfigTemplate":"Microsoft.Edge.ConfigTemplateVersions.listByConfigTemplate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.update":"Microsoft.Edge.ConfigTemplateVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplateVersionsClient.updateWithResponse":"Microsoft.Edge.ConfigTemplateVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient":"Microsoft.Edge.ConfigTemplates","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.beginCreateOrUpdate":"Microsoft.Edge.ConfigTemplates.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.beginCreateVersion":"Microsoft.Edge.ConfigTemplates.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.beginDelete":"Microsoft.Edge.ConfigTemplates.delete","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.beginLinkToHierarchies":"Microsoft.Edge.ConfigTemplates.linkToHierarchies","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.beginUnLinkFromHierarchies":"Microsoft.Edge.ConfigTemplates.unLinkFromHierarchies","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.createOrUpdate":"Microsoft.Edge.ConfigTemplates.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.createVersion":"Microsoft.Edge.ConfigTemplates.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.delete":"Microsoft.Edge.ConfigTemplates.delete","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.getByResourceGroup":"Microsoft.Edge.ConfigTemplates.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.getByResourceGroupWithResponse":"Microsoft.Edge.ConfigTemplates.get","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.linkToHierarchies":"Microsoft.Edge.ConfigTemplates.linkToHierarchies","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.list":"Microsoft.Edge.ConfigTemplates.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.listByResourceGroup":"Microsoft.Edge.ConfigTemplates.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.removeVersion":"Microsoft.Edge.ConfigTemplates.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.removeVersionWithResponse":"Microsoft.Edge.ConfigTemplates.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.unLinkFromHierarchies":"Microsoft.Edge.ConfigTemplates.unLinkFromHierarchies","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.update":"Microsoft.Edge.ConfigTemplates.update","com.azure.resourcemanager.workloadorchestration.fluent.ConfigTemplatesClient.updateWithResponse":"Microsoft.Edge.ConfigTemplates.update","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient":"Microsoft.Edge.Contexts","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.beginCreateOrUpdate":"Microsoft.Edge.Contexts.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.beginDelete":"Microsoft.Edge.Contexts.delete","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.beginUpdate":"Microsoft.Edge.Contexts.update","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.createOrUpdate":"Microsoft.Edge.Contexts.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.delete":"Microsoft.Edge.Contexts.delete","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.getByResourceGroup":"Microsoft.Edge.Contexts.get","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.getByResourceGroupWithResponse":"Microsoft.Edge.Contexts.get","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.list":"Microsoft.Edge.Contexts.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.listByResourceGroup":"Microsoft.Edge.Contexts.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.ContextsClient.update":"Microsoft.Edge.Contexts.update","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient":"Microsoft.Edge.Diagnostics","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.beginCreateOrUpdate":"Microsoft.Edge.Diagnostics.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.beginDelete":"Microsoft.Edge.Diagnostics.delete","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.beginUpdate":"Microsoft.Edge.Diagnostics.update","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.createOrUpdate":"Microsoft.Edge.Diagnostics.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.delete":"Microsoft.Edge.Diagnostics.delete","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.getByResourceGroup":"Microsoft.Edge.Diagnostics.get","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.getByResourceGroupWithResponse":"Microsoft.Edge.Diagnostics.get","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.list":"Microsoft.Edge.Diagnostics.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.listByResourceGroup":"Microsoft.Edge.Diagnostics.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.DiagnosticsClient.update":"Microsoft.Edge.Diagnostics.update","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient":"Microsoft.Edge.DynamicSchemaVersions","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.beginCreateOrUpdate":"Microsoft.Edge.DynamicSchemaVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.beginDelete":"Microsoft.Edge.DynamicSchemaVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.createOrUpdate":"Microsoft.Edge.DynamicSchemaVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.delete":"Microsoft.Edge.DynamicSchemaVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.get":"Microsoft.Edge.DynamicSchemaVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.getWithResponse":"Microsoft.Edge.DynamicSchemaVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.listByDynamicSchema":"Microsoft.Edge.DynamicSchemaVersions.listByDynamicSchema","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.update":"Microsoft.Edge.DynamicSchemaVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemaVersionsClient.updateWithResponse":"Microsoft.Edge.DynamicSchemaVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient":"Microsoft.Edge.DynamicSchemas","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.beginCreateOrUpdate":"Microsoft.Edge.DynamicSchemas.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.beginDelete":"Microsoft.Edge.DynamicSchemas.delete","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.createOrUpdate":"Microsoft.Edge.DynamicSchemas.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.delete":"Microsoft.Edge.DynamicSchemas.delete","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.get":"Microsoft.Edge.DynamicSchemas.get","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.getWithResponse":"Microsoft.Edge.DynamicSchemas.get","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.listBySchema":"Microsoft.Edge.DynamicSchemas.listBySchema","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.update":"Microsoft.Edge.DynamicSchemas.update","com.azure.resourcemanager.workloadorchestration.fluent.DynamicSchemasClient.updateWithResponse":"Microsoft.Edge.DynamicSchemas.update","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient":"Microsoft.Edge.Executions","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.beginCreateOrUpdate":"Microsoft.Edge.Executions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.beginDelete":"Microsoft.Edge.Executions.delete","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.beginUpdate":"Microsoft.Edge.Executions.update","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.createOrUpdate":"Microsoft.Edge.Executions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.delete":"Microsoft.Edge.Executions.delete","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.get":"Microsoft.Edge.Executions.get","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.getWithResponse":"Microsoft.Edge.Executions.get","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.listByWorkflowVersion":"Microsoft.Edge.Executions.listByWorkflowVersion","com.azure.resourcemanager.workloadorchestration.fluent.ExecutionsClient.update":"Microsoft.Edge.Executions.update","com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadataVersionsClient":"Microsoft.Edge.HierarchyConfigurationMetadataVersions","com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadataVersionsClient.get":"Microsoft.Edge.HierarchyConfigurationMetadataVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadataVersionsClient.getWithResponse":"Microsoft.Edge.HierarchyConfigurationMetadataVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadataVersionsClient.listByParent":"Microsoft.Edge.HierarchyConfigurationMetadataVersions.listByParent","com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadatasClient":"Microsoft.Edge.HierarchyConfigurationMetadatas","com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadatasClient.get":"Microsoft.Edge.HierarchyConfigurationMetadatas.get","com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadatasClient.getWithResponse":"Microsoft.Edge.HierarchyConfigurationMetadatas.get","com.azure.resourcemanager.workloadorchestration.fluent.HierarchyConfigurationMetadatasClient.listByParent":"Microsoft.Edge.HierarchyConfigurationMetadatas.listByParent","com.azure.resourcemanager.workloadorchestration.fluent.InstanceHistoriesClient":"Microsoft.Edge.InstanceHistories","com.azure.resourcemanager.workloadorchestration.fluent.InstanceHistoriesClient.get":"Microsoft.Edge.InstanceHistories.get","com.azure.resourcemanager.workloadorchestration.fluent.InstanceHistoriesClient.getWithResponse":"Microsoft.Edge.InstanceHistories.get","com.azure.resourcemanager.workloadorchestration.fluent.InstanceHistoriesClient.listByInstance":"Microsoft.Edge.InstanceHistories.listByInstance","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient":"Microsoft.Edge.Instances","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.beginCreateOrUpdate":"Microsoft.Edge.Instances.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.beginDelete":"Microsoft.Edge.Instances.delete","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.beginUpdate":"Microsoft.Edge.Instances.update","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.createOrUpdate":"Microsoft.Edge.Instances.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.delete":"Microsoft.Edge.Instances.delete","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.get":"Microsoft.Edge.Instances.get","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.getWithResponse":"Microsoft.Edge.Instances.get","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.listBySolution":"Microsoft.Edge.Instances.listBySolution","com.azure.resourcemanager.workloadorchestration.fluent.InstancesClient.update":"Microsoft.Edge.Instances.update","com.azure.resourcemanager.workloadorchestration.fluent.JobsClient":"Microsoft.Edge.Jobs","com.azure.resourcemanager.workloadorchestration.fluent.JobsClient.get":"Microsoft.Edge.Jobs.get","com.azure.resourcemanager.workloadorchestration.fluent.JobsClient.getWithResponse":"Microsoft.Edge.Jobs.get","com.azure.resourcemanager.workloadorchestration.fluent.JobsClient.listByTarget":"Microsoft.Edge.Jobs.listByTarget","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient":"Microsoft.Edge.SchemaReferences","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.beginCreateOrUpdate":"Microsoft.Edge.SchemaReferences.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.beginDelete":"Microsoft.Edge.SchemaReferences.delete","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.createOrUpdate":"Microsoft.Edge.SchemaReferences.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.delete":"Microsoft.Edge.SchemaReferences.delete","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.get":"Microsoft.Edge.SchemaReferences.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.getWithResponse":"Microsoft.Edge.SchemaReferences.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.listByResourceGroup":"Microsoft.Edge.SchemaReferences.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.update":"Microsoft.Edge.SchemaReferences.update","com.azure.resourcemanager.workloadorchestration.fluent.SchemaReferencesClient.updateWithResponse":"Microsoft.Edge.SchemaReferences.update","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient":"Microsoft.Edge.SchemaVersions","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.beginCreateOrUpdate":"Microsoft.Edge.SchemaVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.beginDelete":"Microsoft.Edge.SchemaVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.createOrUpdate":"Microsoft.Edge.SchemaVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.delete":"Microsoft.Edge.SchemaVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.get":"Microsoft.Edge.SchemaVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.getWithResponse":"Microsoft.Edge.SchemaVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.listBySchema":"Microsoft.Edge.SchemaVersions.listBySchema","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.update":"Microsoft.Edge.SchemaVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.SchemaVersionsClient.updateWithResponse":"Microsoft.Edge.SchemaVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient":"Microsoft.Edge.Schemas","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.beginCreateOrUpdate":"Microsoft.Edge.Schemas.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.beginCreateVersion":"Microsoft.Edge.Schemas.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.beginDelete":"Microsoft.Edge.Schemas.delete","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.createOrUpdate":"Microsoft.Edge.Schemas.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.createVersion":"Microsoft.Edge.Schemas.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.delete":"Microsoft.Edge.Schemas.delete","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.getByResourceGroup":"Microsoft.Edge.Schemas.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.getByResourceGroupWithResponse":"Microsoft.Edge.Schemas.get","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.list":"Microsoft.Edge.Schemas.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.listByResourceGroup":"Microsoft.Edge.Schemas.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.removeVersion":"Microsoft.Edge.Schemas.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.removeVersionWithResponse":"Microsoft.Edge.Schemas.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.update":"Microsoft.Edge.Schemas.update","com.azure.resourcemanager.workloadorchestration.fluent.SchemasClient.updateWithResponse":"Microsoft.Edge.Schemas.update","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient":"Microsoft.Edge.SiteReferences","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.beginCreateOrUpdate":"Microsoft.Edge.SiteReferences.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.beginDelete":"Microsoft.Edge.SiteReferences.delete","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.beginUpdate":"Microsoft.Edge.SiteReferences.update","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.createOrUpdate":"Microsoft.Edge.SiteReferences.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.delete":"Microsoft.Edge.SiteReferences.delete","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.get":"Microsoft.Edge.SiteReferences.get","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.getWithResponse":"Microsoft.Edge.SiteReferences.get","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.listByContext":"Microsoft.Edge.SiteReferences.listByContext","com.azure.resourcemanager.workloadorchestration.fluent.SiteReferencesClient.update":"Microsoft.Edge.SiteReferences.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient":"Microsoft.Edge.SolutionDeployments","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient.beginCreateOrUpdate":"Microsoft.Edge.SolutionDeployments.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient.beginDelete":"Microsoft.Edge.SolutionDeployments.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient.createOrUpdate":"Microsoft.Edge.SolutionDeployments.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient.delete":"Microsoft.Edge.SolutionDeployments.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient.getByResourceGroup":"Microsoft.Edge.SolutionDeployments.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient.getByResourceGroupWithResponse":"Microsoft.Edge.SolutionDeployments.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient.list":"Microsoft.Edge.SolutionDeployments.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient.listByResourceGroup":"Microsoft.Edge.SolutionDeployments.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient.update":"Microsoft.Edge.SolutionDeployments.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionDeploymentsClient.updateWithResponse":"Microsoft.Edge.SolutionDeployments.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadataVersionsClient":"Microsoft.Edge.SolutionMetadataVersions","com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadataVersionsClient.get":"Microsoft.Edge.SolutionMetadataVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadataVersionsClient.getWithResponse":"Microsoft.Edge.SolutionMetadataVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadataVersionsClient.listByParent":"Microsoft.Edge.SolutionMetadataVersions.listByParent","com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadatasClient":"Microsoft.Edge.SolutionMetadatas","com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadatasClient.get":"Microsoft.Edge.SolutionMetadatas.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadatasClient.getWithResponse":"Microsoft.Edge.SolutionMetadatas.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionMetadatasClient.listByParent":"Microsoft.Edge.SolutionMetadatas.listByParent","com.azure.resourcemanager.workloadorchestration.fluent.SolutionSchemasClient":"Microsoft.Edge.SolutionSchemas","com.azure.resourcemanager.workloadorchestration.fluent.SolutionSchemasClient.get":"Microsoft.Edge.SolutionSchemas.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionSchemasClient.getWithResponse":"Microsoft.Edge.SolutionSchemas.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionSchemasClient.listBySolutionTemplateVersion":"Microsoft.Edge.SolutionSchemas.listBySolutionTemplateVersion","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient":"Microsoft.Edge.SolutionTemplateVersions","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.beginBulkDeploySolution":"Microsoft.Edge.SolutionTemplateVersions.bulkDeploySolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.beginBulkPublishSolution":"Microsoft.Edge.SolutionTemplateVersions.bulkPublishSolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.beginBulkReviewSolution":"Microsoft.Edge.SolutionTemplateVersions.bulkReviewSolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.beginCreateOrUpdate":"Microsoft.Edge.SolutionTemplateVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.beginDelete":"Microsoft.Edge.SolutionTemplateVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.bulkDeploySolution":"Microsoft.Edge.SolutionTemplateVersions.bulkDeploySolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.bulkPublishSolution":"Microsoft.Edge.SolutionTemplateVersions.bulkPublishSolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.bulkReviewSolution":"Microsoft.Edge.SolutionTemplateVersions.bulkReviewSolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.createOrUpdate":"Microsoft.Edge.SolutionTemplateVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.delete":"Microsoft.Edge.SolutionTemplateVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.get":"Microsoft.Edge.SolutionTemplateVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.getWithResponse":"Microsoft.Edge.SolutionTemplateVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.listBySolutionTemplate":"Microsoft.Edge.SolutionTemplateVersions.listBySolutionTemplate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.update":"Microsoft.Edge.SolutionTemplateVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplateVersionsClient.updateWithResponse":"Microsoft.Edge.SolutionTemplateVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient":"Microsoft.Edge.SolutionTemplates","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.beginCreateOrUpdate":"Microsoft.Edge.SolutionTemplates.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.beginCreateVersion":"Microsoft.Edge.SolutionTemplates.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.beginDelete":"Microsoft.Edge.SolutionTemplates.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.beginRemoveVersion":"Microsoft.Edge.SolutionTemplates.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.createOrUpdate":"Microsoft.Edge.SolutionTemplates.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.createVersion":"Microsoft.Edge.SolutionTemplates.createVersion","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.delete":"Microsoft.Edge.SolutionTemplates.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.getByResourceGroup":"Microsoft.Edge.SolutionTemplates.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.getByResourceGroupWithResponse":"Microsoft.Edge.SolutionTemplates.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.list":"Microsoft.Edge.SolutionTemplates.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.listByResourceGroup":"Microsoft.Edge.SolutionTemplates.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.removeVersion":"Microsoft.Edge.SolutionTemplates.removeVersion","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.update":"Microsoft.Edge.SolutionTemplates.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionTemplatesClient.updateWithResponse":"Microsoft.Edge.SolutionTemplates.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient":"Microsoft.Edge.SolutionVersions","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.beginCreateOrUpdate":"Microsoft.Edge.SolutionVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.beginDelete":"Microsoft.Edge.SolutionVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.beginUpdate":"Microsoft.Edge.SolutionVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.createOrUpdate":"Microsoft.Edge.SolutionVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.delete":"Microsoft.Edge.SolutionVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.get":"Microsoft.Edge.SolutionVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.getWithResponse":"Microsoft.Edge.SolutionVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.listBySolution":"Microsoft.Edge.SolutionVersions.listBySolution","com.azure.resourcemanager.workloadorchestration.fluent.SolutionVersionsClient.update":"Microsoft.Edge.SolutionVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient":"Microsoft.Edge.Solutions","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.beginCreateOrUpdate":"Microsoft.Edge.Solutions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.beginDelete":"Microsoft.Edge.Solutions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.beginUpdate":"Microsoft.Edge.Solutions.update","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.createOrUpdate":"Microsoft.Edge.Solutions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.delete":"Microsoft.Edge.Solutions.delete","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.get":"Microsoft.Edge.Solutions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.getWithResponse":"Microsoft.Edge.Solutions.get","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.listByTarget":"Microsoft.Edge.Solutions.listByTarget","com.azure.resourcemanager.workloadorchestration.fluent.SolutionsClient.update":"Microsoft.Edge.Solutions.update","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient":"Microsoft.Edge.Targets","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginCreateOrUpdate":"Microsoft.Edge.Targets.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginDelete":"Microsoft.Edge.Targets.delete","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginInstallSolution":"Microsoft.Edge.Targets.installSolution","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginPublishSolutionVersion":"Microsoft.Edge.Targets.publishSolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginRemoveRevision":"Microsoft.Edge.Targets.removeRevision","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginResolveConfiguration":"Microsoft.Edge.Targets.resolveConfiguration","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginReviewSolutionVersion":"Microsoft.Edge.Targets.reviewSolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginUninstallSolution":"Microsoft.Edge.Targets.uninstallSolution","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginUnstageSolutionVersion":"Microsoft.Edge.Targets.unstageSolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginUpdate":"Microsoft.Edge.Targets.update","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.beginUpdateExternalValidationStatus":"Microsoft.Edge.Targets.updateExternalValidationStatus","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.createOrUpdate":"Microsoft.Edge.Targets.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.delete":"Microsoft.Edge.Targets.delete","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.getByResourceGroup":"Microsoft.Edge.Targets.get","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.getByResourceGroupWithResponse":"Microsoft.Edge.Targets.get","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.installSolution":"Microsoft.Edge.Targets.installSolution","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.list":"Microsoft.Edge.Targets.listBySubscription","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.listByResourceGroup":"Microsoft.Edge.Targets.listByResourceGroup","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.publishSolutionVersion":"Microsoft.Edge.Targets.publishSolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.removeRevision":"Microsoft.Edge.Targets.removeRevision","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.resolveConfiguration":"Microsoft.Edge.Targets.resolveConfiguration","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.reviewSolutionVersion":"Microsoft.Edge.Targets.reviewSolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.uninstallSolution":"Microsoft.Edge.Targets.uninstallSolution","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.unstageSolutionVersion":"Microsoft.Edge.Targets.unstageSolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.update":"Microsoft.Edge.Targets.update","com.azure.resourcemanager.workloadorchestration.fluent.TargetsClient.updateExternalValidationStatus":"Microsoft.Edge.Targets.updateExternalValidationStatus","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient":"Microsoft.Edge.WorkflowVersions","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.beginCreateOrUpdate":"Microsoft.Edge.WorkflowVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.beginDelete":"Microsoft.Edge.WorkflowVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.beginUpdate":"Microsoft.Edge.WorkflowVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.createOrUpdate":"Microsoft.Edge.WorkflowVersions.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.delete":"Microsoft.Edge.WorkflowVersions.delete","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.get":"Microsoft.Edge.WorkflowVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.getWithResponse":"Microsoft.Edge.WorkflowVersions.get","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.listByWorkflow":"Microsoft.Edge.WorkflowVersions.listByWorkflow","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowVersionsClient.update":"Microsoft.Edge.WorkflowVersions.update","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient":"Microsoft.Edge.Workflows","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.beginCreateOrUpdate":"Microsoft.Edge.Workflows.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.beginDelete":"Microsoft.Edge.Workflows.delete","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.beginUpdate":"Microsoft.Edge.Workflows.update","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.createOrUpdate":"Microsoft.Edge.Workflows.createOrUpdate","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.delete":"Microsoft.Edge.Workflows.delete","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.get":"Microsoft.Edge.Workflows.get","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.getWithResponse":"Microsoft.Edge.Workflows.get","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.listByContext":"Microsoft.Edge.Workflows.listByContext","com.azure.resourcemanager.workloadorchestration.fluent.WorkflowsClient.update":"Microsoft.Edge.Workflows.update","com.azure.resourcemanager.workloadorchestration.fluent.WorkloadOrchestrationManagementClient":"Microsoft.Edge","com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateInner":"Microsoft.Edge.ConfigTemplate","com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateMetadataInner":"Microsoft.Edge.ConfigTemplateMetadata","com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateSchemaInner":"Microsoft.Edge.ConfigTemplateSchema","com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner":"Microsoft.Edge.ConfigTemplateVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionWithUpdateTypeInner":"Microsoft.Edge.ConfigTemplateVersionWithUpdateType","com.azure.resourcemanager.workloadorchestration.fluent.models.ContextInner":"Microsoft.Edge.Context","com.azure.resourcemanager.workloadorchestration.fluent.models.DiagnosticInner":"Microsoft.Edge.Diagnostic","com.azure.resourcemanager.workloadorchestration.fluent.models.DynamicSchemaInner":"Microsoft.Edge.DynamicSchema","com.azure.resourcemanager.workloadorchestration.fluent.models.DynamicSchemaVersionInner":"Microsoft.Edge.DynamicSchemaVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.ExecutionInner":"Microsoft.Edge.Execution","com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataInner":"Microsoft.Edge.HierarchyConfigurationMetadata","com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataVersionInner":"Microsoft.Edge.HierarchyConfigurationMetadataVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.InstanceHistoryInner":"Microsoft.Edge.InstanceHistory","com.azure.resourcemanager.workloadorchestration.fluent.models.InstanceInner":"Microsoft.Edge.Instance","com.azure.resourcemanager.workloadorchestration.fluent.models.JobInner":"Microsoft.Edge.Job","com.azure.resourcemanager.workloadorchestration.fluent.models.RemoveVersionResponseInner":"Microsoft.Edge.RemoveVersionResponse","com.azure.resourcemanager.workloadorchestration.fluent.models.ResolvedConfigurationInner":"Microsoft.Edge.ResolvedConfiguration","com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaInner":"Microsoft.Edge.Schema","com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaReferenceInner":"Microsoft.Edge.SchemaReference","com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionInner":"Microsoft.Edge.SchemaVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionWithUpdateTypeInner":"Microsoft.Edge.SchemaVersionWithUpdateType","com.azure.resourcemanager.workloadorchestration.fluent.models.SiteReferenceInner":"Microsoft.Edge.SiteReference","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionDeploymentInner":"Microsoft.Edge.SolutionDeployment","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionInner":"Microsoft.Edge.Solution","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataInner":"Microsoft.Edge.SolutionMetadata","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataVersionInner":"Microsoft.Edge.SolutionMetadataVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionSchemaInner":"Microsoft.Edge.SolutionSchema","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateInner":"Microsoft.Edge.SolutionTemplate","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner":"Microsoft.Edge.SolutionTemplateVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionWithUpdateTypeInner":"Microsoft.Edge.SolutionTemplateVersionWithUpdateType","com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionVersionInner":"Microsoft.Edge.SolutionVersion","com.azure.resourcemanager.workloadorchestration.fluent.models.TargetInner":"Microsoft.Edge.Target","com.azure.resourcemanager.workloadorchestration.fluent.models.WorkflowInner":"Microsoft.Edge.Workflow","com.azure.resourcemanager.workloadorchestration.fluent.models.WorkflowVersionInner":"Microsoft.Edge.WorkflowVersion","com.azure.resourcemanager.workloadorchestration.implementation.WorkloadOrchestrationManagementClientBuilder":"Microsoft.Edge","com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateMetadataListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateSchemaListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.ContextListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.DiagnosticListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.DynamicSchemaListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.DynamicSchemaVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.ExecutionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.HierarchyConfigurationMetadataListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.HierarchyConfigurationMetadataVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.InstanceHistoryListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.InstanceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.JobListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SchemaListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SchemaReferenceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SchemaVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SiteReferenceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionDeploymentListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionMetadataListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionMetadataVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionSchemaListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionTemplateListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionTemplateVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.TargetListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.WorkflowListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.implementation.models.WorkflowVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.workloadorchestration.models.ActiveState":"Microsoft.Edge.ActiveState","com.azure.resourcemanager.workloadorchestration.models.AdditionalData":"Microsoft.Edge.AdditionalData","com.azure.resourcemanager.workloadorchestration.models.AvailableSolutionTemplateVersion":"Microsoft.Edge.AvailableSolutionTemplateVersion","com.azure.resourcemanager.workloadorchestration.models.BulkDeploySolutionParameter":"Microsoft.Edge.BulkDeploySolutionParameter","com.azure.resourcemanager.workloadorchestration.models.BulkDeployTargetDetails":"Microsoft.Edge.BulkDeployTargetDetails","com.azure.resourcemanager.workloadorchestration.models.BulkPublishSolutionParameter":"Microsoft.Edge.BulkPublishSolutionParameter","com.azure.resourcemanager.workloadorchestration.models.BulkPublishTargetDetails":"Microsoft.Edge.BulkPublishTargetDetails","com.azure.resourcemanager.workloadorchestration.models.BulkReviewSolutionParameter":"Microsoft.Edge.BulkReviewSolutionParameter","com.azure.resourcemanager.workloadorchestration.models.BulkReviewTargetDetails":"Microsoft.Edge.BulkReviewTargetDetails","com.azure.resourcemanager.workloadorchestration.models.CMStages":"Microsoft.Edge.CMStages","com.azure.resourcemanager.workloadorchestration.models.Capability":"Microsoft.Edge.Capability","com.azure.resourcemanager.workloadorchestration.models.ComponentStatus":"Microsoft.Edge.ComponentStatus","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateConfigurationState":"Microsoft.Edge.ConfigTemplateConfigurationState","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataProperties":"Microsoft.Edge.ConfigTemplateMetadataProperties","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdate":"Microsoft.Edge.ConfigTemplateMetadataUpdate","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdateProperties":"Microsoft.Edge.ConfigTemplateMetadataUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateProperties":"Microsoft.Edge.ConfigTemplateProperties","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateSchemaProperties":"Microsoft.Edge.ConfigTemplateSchemaProperties","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateUpdate":"Microsoft.Edge.ConfigTemplateUpdate","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateUpdateProperties":"Microsoft.Edge.ConfigTemplateUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties":"Microsoft.Edge.ConfigTemplateVersionProperties","com.azure.resourcemanager.workloadorchestration.models.ConfigurationModel":"Microsoft.Edge.ConfigurationModel","com.azure.resourcemanager.workloadorchestration.models.ConfigurationState":"Microsoft.Edge.ConfigurationState","com.azure.resourcemanager.workloadorchestration.models.ConfigurationType":"Microsoft.Edge.ConfigurationType","com.azure.resourcemanager.workloadorchestration.models.ContextProperties":"Microsoft.Edge.ContextProperties","com.azure.resourcemanager.workloadorchestration.models.ContextUpdate":"Microsoft.Edge.ContextUpdate","com.azure.resourcemanager.workloadorchestration.models.ContextUpdateProperties":"Microsoft.Edge.ContextUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.DeployJobParameter":"Microsoft.Edge.DeployJobParameter","com.azure.resourcemanager.workloadorchestration.models.DeployJobStepStatistics":"Microsoft.Edge.DeployJobStepStatistics","com.azure.resourcemanager.workloadorchestration.models.DeploymentStatus":"Microsoft.Edge.DeploymentStatus","com.azure.resourcemanager.workloadorchestration.models.DiagnosticProperties":"Microsoft.Edge.DiagnosticProperties","com.azure.resourcemanager.workloadorchestration.models.DiagnosticUpdate":"Microsoft.Edge.DiagnosticUpdate","com.azure.resourcemanager.workloadorchestration.models.DiagnosticUpdateProperties":"Microsoft.Edge.DiagnosticUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.DynamicSchemaProperties":"Microsoft.Edge.DynamicSchemaProperties","com.azure.resourcemanager.workloadorchestration.models.ErrorAction":"Microsoft.Edge.ErrorAction","com.azure.resourcemanager.workloadorchestration.models.ErrorActionMode":"Microsoft.Edge.ErrorActionMode","com.azure.resourcemanager.workloadorchestration.models.ExecutionProperties":"Microsoft.Edge.ExecutionProperties","com.azure.resourcemanager.workloadorchestration.models.ExecutionStatus":"Microsoft.Edge.ExecutionStatus","com.azure.resourcemanager.workloadorchestration.models.ExtendedLocation":"Azure.ResourceManager.CommonTypes.ExtendedLocation","com.azure.resourcemanager.workloadorchestration.models.ExtendedLocationType":"Azure.ResourceManager.CommonTypes.ExtendedLocationType","com.azure.resourcemanager.workloadorchestration.models.Hierarchy":"Microsoft.Edge.Hierarchy","com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataProperties":"Microsoft.Edge.HierarchyConfigurationMetadataProperties","com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataVersionProperties":"Microsoft.Edge.HierarchyConfigurationMetadataVersionProperties","com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata":"Microsoft.Edge.HierarchyMetadata","com.azure.resourcemanager.workloadorchestration.models.HierarchySelector":"Microsoft.Edge.HierarchySelector","com.azure.resourcemanager.workloadorchestration.models.InstallSolutionParameter":"Microsoft.Edge.InstallSolutionParameter","com.azure.resourcemanager.workloadorchestration.models.InstanceHistoryProperties":"Microsoft.Edge.InstanceHistoryProperties","com.azure.resourcemanager.workloadorchestration.models.InstanceProperties":"Microsoft.Edge.InstanceProperties","com.azure.resourcemanager.workloadorchestration.models.InternalState":"Microsoft.Edge.InternalState","com.azure.resourcemanager.workloadorchestration.models.JobParameterBase":"Microsoft.Edge.JobParameterBase","com.azure.resourcemanager.workloadorchestration.models.JobProperties":"Microsoft.Edge.JobProperties","com.azure.resourcemanager.workloadorchestration.models.JobStatus":"Microsoft.Edge.JobStatus","com.azure.resourcemanager.workloadorchestration.models.JobStep":"Microsoft.Edge.JobStep","com.azure.resourcemanager.workloadorchestration.models.JobStepStatisticsBase":"Microsoft.Edge.JobStepStatisticsBase","com.azure.resourcemanager.workloadorchestration.models.JobType":"Microsoft.Edge.JobType","com.azure.resourcemanager.workloadorchestration.models.OrchestratorType":"Microsoft.Edge.OrchestratorType","com.azure.resourcemanager.workloadorchestration.models.ProvisioningState":"Microsoft.Edge.ProvisioningState","com.azure.resourcemanager.workloadorchestration.models.PublishJobParameter":"Microsoft.Edge.PublishJobParameter","com.azure.resourcemanager.workloadorchestration.models.PublishJobStepStatistics":"Microsoft.Edge.PublishJobStepStatistics","com.azure.resourcemanager.workloadorchestration.models.ReconciliationPolicyProperties":"Microsoft.Edge.ReconciliationPolicyProperties","com.azure.resourcemanager.workloadorchestration.models.ReconciliationState":"Microsoft.Edge.ReconciliationState","com.azure.resourcemanager.workloadorchestration.models.RemoveRevisionParameter":"Microsoft.Edge.RemoveRevisionParameter","com.azure.resourcemanager.workloadorchestration.models.ResourceState":"Microsoft.Edge.ResourceState","com.azure.resourcemanager.workloadorchestration.models.SchemaProperties":"Microsoft.Edge.SchemaProperties","com.azure.resourcemanager.workloadorchestration.models.SchemaReferenceProperties":"Microsoft.Edge.SchemaReferenceProperties","com.azure.resourcemanager.workloadorchestration.models.SchemaUpdate":"Microsoft.Edge.SchemaUpdate","com.azure.resourcemanager.workloadorchestration.models.SchemaUpdateProperties":"Microsoft.Edge.SchemaUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties":"Microsoft.Edge.SchemaVersionProperties","com.azure.resourcemanager.workloadorchestration.models.SiteReferenceProperties":"Microsoft.Edge.SiteReferenceProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionDependency":"Microsoft.Edge.SolutionDependency","com.azure.resourcemanager.workloadorchestration.models.SolutionDependencyParameter":"Microsoft.Edge.SolutionDependencyParameter","com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentProperties":"Microsoft.Edge.SolutionDeploymentProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdate":"Microsoft.Edge.SolutionDeploymentUpdate","com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdateProperties":"Microsoft.Edge.SolutionDeploymentUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataProperties":"Microsoft.Edge.SolutionMetadataProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataVersionProperties":"Microsoft.Edge.SolutionMetadataVersionProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionProperties":"Microsoft.Edge.SolutionProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionSchemaProperties":"Microsoft.Edge.SolutionSchemaProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadata":"Microsoft.Edge.SolutionTemplateMetadata","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadataUpdate":"Microsoft.Edge.SolutionTemplateMetadataUpdate","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateParameter":"Microsoft.Edge.SolutionTemplateParameter","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateProperties":"Microsoft.Edge.SolutionTemplateProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateUpdate":"Microsoft.Edge.SolutionTemplateUpdate","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateUpdateProperties":"Microsoft.Edge.SolutionTemplateUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties":"Microsoft.Edge.SolutionTemplateVersionProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionUpdate":"Microsoft.Edge.SolutionUpdate","com.azure.resourcemanager.workloadorchestration.models.SolutionUpdateProperties":"Microsoft.Edge.SolutionUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionVersionParameter":"Microsoft.Edge.SolutionVersionParameter","com.azure.resourcemanager.workloadorchestration.models.SolutionVersionProperties":"Microsoft.Edge.SolutionVersionProperties","com.azure.resourcemanager.workloadorchestration.models.SolutionVersionSnapshot":"Microsoft.Edge.SolutionVersionSnapshot","com.azure.resourcemanager.workloadorchestration.models.StageMap":"Microsoft.Edge.StageMap","com.azure.resourcemanager.workloadorchestration.models.StageSpec":"Microsoft.Edge.StageSpec","com.azure.resourcemanager.workloadorchestration.models.StageStatus":"Microsoft.Edge.StageStatus","com.azure.resourcemanager.workloadorchestration.models.State":"Microsoft.Edge.State","com.azure.resourcemanager.workloadorchestration.models.StateCategory":"Microsoft.Edge.StateCategory","com.azure.resourcemanager.workloadorchestration.models.TargetMetadata":"Microsoft.Edge.TargetMetadata","com.azure.resourcemanager.workloadorchestration.models.TargetProperties":"Microsoft.Edge.TargetProperties","com.azure.resourcemanager.workloadorchestration.models.TargetSnapshot":"Microsoft.Edge.TargetSnapshot","com.azure.resourcemanager.workloadorchestration.models.TargetStatus":"Microsoft.Edge.TargetStatus","com.azure.resourcemanager.workloadorchestration.models.TargetUpdate":"Microsoft.Edge.TargetUpdate","com.azure.resourcemanager.workloadorchestration.models.TargetUpdateProperties":"Microsoft.Edge.TargetUpdateProperties","com.azure.resourcemanager.workloadorchestration.models.TaskOption":"Microsoft.Edge.TaskOption","com.azure.resourcemanager.workloadorchestration.models.TaskSpec":"Microsoft.Edge.TaskSpec","com.azure.resourcemanager.workloadorchestration.models.UninstallJobParameter":"Microsoft.Edge.UninstallJobParameter","com.azure.resourcemanager.workloadorchestration.models.UninstallJobStepStatistics":"Microsoft.Edge.UninstallJobStepStatistics","com.azure.resourcemanager.workloadorchestration.models.UninstallSolutionParameter":"Microsoft.Edge.UninstallSolutionParameter","com.azure.resourcemanager.workloadorchestration.models.UpdateExternalValidationStatusParameter":"Microsoft.Edge.UpdateExternalValidationStatusParameter","com.azure.resourcemanager.workloadorchestration.models.UpdateType":"Microsoft.Edge.UpdateType","com.azure.resourcemanager.workloadorchestration.models.ValidationStatus":"Microsoft.Edge.ValidationStatus","com.azure.resourcemanager.workloadorchestration.models.VersionParameter":"Microsoft.Edge.VersionParameter","com.azure.resourcemanager.workloadorchestration.models.WorkflowProperties":"Microsoft.Edge.WorkflowProperties","com.azure.resourcemanager.workloadorchestration.models.WorkflowVersionProperties":"Microsoft.Edge.WorkflowVersionProperties"},"generatedFiles":["src/main/java/com/azure/resourcemanager/workloadorchestration/WorkloadOrchestrationManager.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateMetadatasClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateSchemasClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplateVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ConfigTemplatesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ContextsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/DiagnosticsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/DynamicSchemaVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/DynamicSchemasClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/ExecutionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/HierarchyConfigurationMetadataVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/HierarchyConfigurationMetadatasClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/InstanceHistoriesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/InstancesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/JobsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SchemaReferencesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SchemaVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SchemasClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SiteReferencesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionDeploymentsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionMetadataVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionMetadatasClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionSchemasClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionTemplateVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionTemplatesClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/SolutionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/TargetsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/WorkflowVersionsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/WorkflowsClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/WorkloadOrchestrationManagementClient.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateMetadataInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateSchemaInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ConfigTemplateVersionWithUpdateTypeInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ContextInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/DiagnosticInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/DynamicSchemaInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/DynamicSchemaVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ExecutionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/HierarchyConfigurationMetadataInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/HierarchyConfigurationMetadataVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/InstanceHistoryInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/InstanceInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/JobInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/RemoveVersionResponseInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/ResolvedConfigurationInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaReferenceInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SchemaVersionWithUpdateTypeInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SiteReferenceInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionDeploymentInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionMetadataInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionMetadataVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionSchemaInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionTemplateInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionTemplateVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionTemplateVersionWithUpdateTypeInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/SolutionVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/TargetInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/WorkflowInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/WorkflowVersionInner.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/workloadorchestration/fluent/package-info.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadataImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadatasClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateMetadatasImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemaImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemasClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateSchemasImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionWithUpdateTypeImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplateVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ConfigTemplatesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ContextModelImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ContextsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ContextsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DiagnosticImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DiagnosticsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DiagnosticsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemaImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemaVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemaVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemaVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemasClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/DynamicSchemasImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ExecutionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ExecutionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ExecutionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadataVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadatasClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/HierarchyConfigurationMetadatasImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstanceHistoriesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstanceHistoriesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstanceHistoryImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstanceImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstancesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/InstancesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/JobImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/JobsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/JobsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/RemoveVersionResponseImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ResolvedConfigurationImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferenceImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaReferencesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaVersionWithUpdateTypeImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemaVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemasClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SchemasImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SiteReferenceImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SiteReferencesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SiteReferencesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionDeploymentsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadataVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadatasClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionMetadatasImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemaImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemasClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionSchemasImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionWithUpdateTypeImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplateVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplatesClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionTemplatesImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/SolutionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/TargetsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowVersionImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowVersionsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowsClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkflowsImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkloadOrchestrationManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/WorkloadOrchestrationManagementClientImpl.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateMetadataListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateSchemaListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ConfigTemplateVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ContextListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/DiagnosticListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/DynamicSchemaListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/DynamicSchemaVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/ExecutionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/HierarchyConfigurationMetadataListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/HierarchyConfigurationMetadataVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/InstanceHistoryListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/InstanceListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/JobListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SchemaListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SchemaReferenceListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SchemaVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SiteReferenceListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionDeploymentListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionMetadataListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionMetadataVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionSchemaListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionTemplateListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionTemplateVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/SolutionVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/TargetListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/WorkflowListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/models/WorkflowVersionListResult.java","src/main/java/com/azure/resourcemanager/workloadorchestration/implementation/package-info.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ActiveState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/AdditionalData.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/AvailableSolutionTemplateVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkDeploySolutionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkDeployTargetDetails.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishSolutionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkPublishTargetDetails.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkReviewSolutionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/BulkReviewTargetDetails.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/CMStages.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Capability.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ComponentStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateConfigurationState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadata.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadataUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateMetadatas.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateSchema.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateSchemaProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateSchemas.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersionWithUpdateType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplateVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigTemplates.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigurationModel.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigurationState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ConfigurationType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextModel.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ContextUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Contexts.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DeployJobParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DeployJobStepStatistics.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DeploymentStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Diagnostic.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DiagnosticUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Diagnostics.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchema.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemaProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemaVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemaVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/DynamicSchemas.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ErrorAction.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ErrorActionMode.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Execution.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ExecutionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ExecutionStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Executions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ExtendedLocation.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ExtendedLocationType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Hierarchy.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadata.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadataVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyConfigurationMetadatas.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchyMetadata.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/HierarchySelector.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InstallSolutionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Instance.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InstanceHistories.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InstanceHistory.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InstanceHistoryProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InstanceProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Instances.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/InternalState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Job.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobParameterBase.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobStep.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobStepStatisticsBase.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/JobType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Jobs.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/OrchestratorType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/PublishJobParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/PublishJobStepStatistics.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ReconciliationPolicyProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ReconciliationState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/RemoveRevisionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/RemoveVersionResponse.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ResolvedConfiguration.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ResourceState.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Schema.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReference.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReferenceProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaReferences.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersionWithUpdateType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SchemaVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Schemas.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SiteReference.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SiteReferenceProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SiteReferences.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Solution.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDependency.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDependencyParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeployment.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeploymentUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionDeployments.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadata.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadataVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionMetadatas.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchema.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchemaProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionSchemas.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateMetadata.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateMetadataUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersionWithUpdateType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplateVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionTemplates.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersionSnapshot.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/SolutionVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Solutions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/StageMap.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/StageSpec.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/StageStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/State.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/StateCategory.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Target.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetMetadata.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetSnapshot.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetUpdate.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TargetUpdateProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Targets.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TaskOption.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/TaskSpec.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/UninstallJobParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/UninstallJobStepStatistics.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/UninstallSolutionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/UpdateExternalValidationStatusParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/UpdateType.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/ValidationStatus.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/VersionParameter.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Workflow.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/WorkflowProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/WorkflowVersion.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/WorkflowVersionProperties.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/WorkflowVersions.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/Workflows.java","src/main/java/com/azure/resourcemanager/workloadorchestration/models/package-info.java","src/main/java/com/azure/resourcemanager/workloadorchestration/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-workloadorchestration/proxy-config.json b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-workloadorchestration/proxy-config.json index 49a42f25806e1..ec6b1cb72fc83 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-workloadorchestration/proxy-config.json +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-workloadorchestration/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.workloadorchestration.implementation.ConfigTemplateVersionsClientImpl$ConfigTemplateVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.ConfigTemplatesClientImpl$ConfigTemplatesService"],["com.azure.resourcemanager.workloadorchestration.implementation.ContextsClientImpl$ContextsService"],["com.azure.resourcemanager.workloadorchestration.implementation.DiagnosticsClientImpl$DiagnosticsService"],["com.azure.resourcemanager.workloadorchestration.implementation.DynamicSchemaVersionsClientImpl$DynamicSchemaVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.DynamicSchemasClientImpl$DynamicSchemasService"],["com.azure.resourcemanager.workloadorchestration.implementation.ExecutionsClientImpl$ExecutionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.InstanceHistoriesClientImpl$InstanceHistoriesService"],["com.azure.resourcemanager.workloadorchestration.implementation.InstancesClientImpl$InstancesService"],["com.azure.resourcemanager.workloadorchestration.implementation.JobsClientImpl$JobsService"],["com.azure.resourcemanager.workloadorchestration.implementation.SchemaReferencesClientImpl$SchemaReferencesService"],["com.azure.resourcemanager.workloadorchestration.implementation.SchemaVersionsClientImpl$SchemaVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.SchemasClientImpl$SchemasService"],["com.azure.resourcemanager.workloadorchestration.implementation.SiteReferencesClientImpl$SiteReferencesService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionTemplateVersionsClientImpl$SolutionTemplateVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionTemplatesClientImpl$SolutionTemplatesService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionVersionsClientImpl$SolutionVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionsClientImpl$SolutionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.TargetsClientImpl$TargetsService"],["com.azure.resourcemanager.workloadorchestration.implementation.WorkflowVersionsClientImpl$WorkflowVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.WorkflowsClientImpl$WorkflowsService"]] \ No newline at end of file +[["com.azure.resourcemanager.workloadorchestration.implementation.ConfigTemplateMetadatasClientImpl$ConfigTemplateMetadatasService"],["com.azure.resourcemanager.workloadorchestration.implementation.ConfigTemplateSchemasClientImpl$ConfigTemplateSchemasService"],["com.azure.resourcemanager.workloadorchestration.implementation.ConfigTemplateVersionsClientImpl$ConfigTemplateVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.ConfigTemplatesClientImpl$ConfigTemplatesService"],["com.azure.resourcemanager.workloadorchestration.implementation.ContextsClientImpl$ContextsService"],["com.azure.resourcemanager.workloadorchestration.implementation.DiagnosticsClientImpl$DiagnosticsService"],["com.azure.resourcemanager.workloadorchestration.implementation.DynamicSchemaVersionsClientImpl$DynamicSchemaVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.DynamicSchemasClientImpl$DynamicSchemasService"],["com.azure.resourcemanager.workloadorchestration.implementation.ExecutionsClientImpl$ExecutionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.HierarchyConfigurationMetadataVersionsClientImpl$HierarchyConfigurationMetadataVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.HierarchyConfigurationMetadatasClientImpl$HierarchyConfigurationMetadatasService"],["com.azure.resourcemanager.workloadorchestration.implementation.InstanceHistoriesClientImpl$InstanceHistoriesService"],["com.azure.resourcemanager.workloadorchestration.implementation.InstancesClientImpl$InstancesService"],["com.azure.resourcemanager.workloadorchestration.implementation.JobsClientImpl$JobsService"],["com.azure.resourcemanager.workloadorchestration.implementation.SchemaReferencesClientImpl$SchemaReferencesService"],["com.azure.resourcemanager.workloadorchestration.implementation.SchemaVersionsClientImpl$SchemaVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.SchemasClientImpl$SchemasService"],["com.azure.resourcemanager.workloadorchestration.implementation.SiteReferencesClientImpl$SiteReferencesService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionDeploymentsClientImpl$SolutionDeploymentsService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionMetadataVersionsClientImpl$SolutionMetadataVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionMetadatasClientImpl$SolutionMetadatasService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionSchemasClientImpl$SolutionSchemasService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionTemplateVersionsClientImpl$SolutionTemplateVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionTemplatesClientImpl$SolutionTemplatesService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionVersionsClientImpl$SolutionVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.SolutionsClientImpl$SolutionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.TargetsClientImpl$TargetsService"],["com.azure.resourcemanager.workloadorchestration.implementation.WorkflowVersionsClientImpl$WorkflowVersionsService"],["com.azure.resourcemanager.workloadorchestration.implementation.WorkflowsClientImpl$WorkflowsService"]] \ No newline at end of file diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..92a7d83a713d6 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasCreateOrUpdateSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataProperties; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata; +import java.util.Arrays; + +/** + * Samples for ConfigTemplateMetadatas CreateOrUpdate. + */ +public final class ConfigTemplateMetadatasCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateMetadatas_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateMetadatas_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateMetadatasCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateMetadatas() + .define("abcde") + .withExistingConfigTemplate("rgconfigurationmanager", "abcde") + .withProperties(new ConfigTemplateMetadataProperties().withContextId( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/contexts/testContext") + .withLinkedHierarchies(Arrays.asList(new HierarchyMetadata().withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("shrxop"))) + .withUnLinkedHierarchies(Arrays.asList(new HierarchyMetadata().withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("shrxop")))) + .create(); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasDeleteSamples.java new file mode 100644 index 0000000000000..04a4da62f4ab6 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for ConfigTemplateMetadatas Delete. + */ +public final class ConfigTemplateMetadatasDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateMetadatas_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateMetadatas_Delete_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateMetadatasDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateMetadatas() + .delete("rgconfigurationmanager", "abcde", "abcde", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasGetSamples.java new file mode 100644 index 0000000000000..9b69250876a5f --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for ConfigTemplateMetadatas Get. + */ +public final class ConfigTemplateMetadatasGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateMetadatas_Get_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateMetadatas_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateMetadatasGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateMetadatas() + .getWithResponse("rgconfigurationmanager", "abcde", "abcde", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasListByConfigTemplateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasListByConfigTemplateSamples.java new file mode 100644 index 0000000000000..d124fed39d88b --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasListByConfigTemplateSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for ConfigTemplateMetadatas ListByConfigTemplate. + */ +public final class ConfigTemplateMetadatasListByConfigTemplateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateMetadatas_ListByConfigTemplate_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateMetadatas_ListByConfigTemplate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateMetadatasListByConfigTemplateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateMetadatas() + .listByConfigTemplate("rgconfigurationmanager", "abcde", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasUpdateSamples.java new file mode 100644 index 0000000000000..4319d965d88cd --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasUpdateSamples.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadata; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdateProperties; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata; +import java.util.Arrays; + +/** + * Samples for ConfigTemplateMetadatas Update. + */ +public final class ConfigTemplateMetadatasUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateMetadatas_Update_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateMetadatas_Update_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateMetadatasUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + ConfigTemplateMetadata resource = manager.configTemplateMetadatas() + .getWithResponse("rgconfigurationmanager", "abcde", "abcde", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new ConfigTemplateMetadataUpdateProperties().withContextId( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/contexts/testContext") + .withLinkedHierarchies(Arrays.asList(new HierarchyMetadata().withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("uwljjosdlhmyalhrvq"))) + .withUnLinkedHierarchies(Arrays.asList(new HierarchyMetadata().withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("zuwwzwpeur")))) + .apply(); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasGetSamples.java new file mode 100644 index 0000000000000..cbcb6314a8d29 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for ConfigTemplateSchemas Get. + */ +public final class ConfigTemplateSchemasGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateSchemas_Get_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateSchemas_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateSchemasGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateSchemas() + .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", "testname", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasListByConfigTemplateVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasListByConfigTemplateVersionSamples.java new file mode 100644 index 0000000000000..13700824f0f06 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasListByConfigTemplateVersionSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for ConfigTemplateSchemas ListByConfigTemplateVersion. + */ +public final class ConfigTemplateSchemasListByConfigTemplateVersionSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateSchemas_ListByConfigTemplateVersion_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateSchemas_ListByConfigTemplateVersion_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateSchemasListByConfigTemplateVersionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateSchemas() + .listByConfigTemplateVersion("rgconfigurationmanager", "testname", "1.0.0", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..41ecb62d01be2 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsCreateOrUpdateSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; +import java.nio.charset.StandardCharsets; + +/** + * Samples for ConfigTemplateVersions CreateOrUpdate. + */ +public final class ConfigTemplateVersionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateVersions_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateVersions() + .define("1.0.0") + .withExistingConfigTemplate("rgconfigurationmanager", "testname") + .withProperties(new ConfigTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("zsapegdehodzmwjmwl".getBytes(StandardCharsets.UTF_8)))) + .create(); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsDeleteSamples.java new file mode 100644 index 0000000000000..dd58228c08362 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for ConfigTemplateVersions Delete. + */ +public final class ConfigTemplateVersionsDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateVersions_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateVersions_Delete_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateVersionsDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplateVersions() + .delete("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsGetSamples.java index f097d2115f1bb..a6a316f08f0b5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsGetSamples.java @@ -9,14 +9,14 @@ */ public final class ConfigTemplateVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplateVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplateVersions_Get_MaximumSet. + * Sample code: ConfigTemplateVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplateVersionsGetMaximumSet( + public static void configTemplateVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplateVersions() .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsListByConfigTemplateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsListByConfigTemplateSamples.java index 376ece01ba9dc..3efe34c1317ee 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsListByConfigTemplateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsListByConfigTemplateSamples.java @@ -9,14 +9,14 @@ */ public final class ConfigTemplateVersionsListByConfigTemplateSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplateVersions_ListByConfigTemplate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateVersions_ListByConfigTemplate_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplateVersions_ListByConfigTemplate_MaximumSet. + * Sample code: ConfigTemplateVersions_ListByConfigTemplate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplateVersionsListByConfigTemplateMaximumSet( + public static void configTemplateVersionsListByConfigTemplateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplateVersions() .listByConfigTemplate("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsUpdateSamples.java new file mode 100644 index 0000000000000..55624f703fd5a --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsUpdateSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersion; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; +import java.nio.charset.StandardCharsets; + +/** + * Samples for ConfigTemplateVersions Update. + */ +public final class ConfigTemplateVersionsUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplateVersions_Update_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplateVersions_Update_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplateVersionsUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + ConfigTemplateVersion resource = manager.configTemplateVersions() + .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new ConfigTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("blmbay".getBytes(StandardCharsets.UTF_8)))) + .apply(); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateOrUpdateSamples.java index 5f029e176e200..36710004457c9 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateOrUpdateSamples.java @@ -13,21 +13,21 @@ */ public final class ConfigTemplatesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_CreateOrUpdate_MaximumSet. + * Sample code: ConfigTemplates_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesCreateOrUpdateMaximumSet( + public static void configTemplatesCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates() .define("testname") - .withRegion("egqjo") + .withRegion("lltpsbfqidpuumxvdnidshkdsx") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key6936", "fakeTokenPlaceholder")) - .withProperties(new ConfigTemplateProperties().withDescription("ccdyggozwmhyvemlcwlsnhijwg")) + .withTags(mapOf()) + .withProperties(new ConfigTemplateProperties().withDescription("fvklsykvqiyosqetvdnjg")) .create(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateVersionSamples.java index 81d95dc97bc46..fa273abbc0de0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateVersionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateVersionSamples.java @@ -4,31 +4,34 @@ package com.azure.resourcemanager.workloadorchestration.generated; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionWithUpdateTypeInner; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; import com.azure.resourcemanager.workloadorchestration.models.UpdateType; +import java.nio.charset.StandardCharsets; /** * Samples for ConfigTemplates CreateVersion. */ public final class ConfigTemplatesCreateVersionSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_CreateVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_CreateVersion_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_CreateVersion_MaximumSet. + * Sample code: ConfigTemplates_CreateVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesCreateVersionMaximumSet( + public static void configTemplatesCreateVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates() .createVersion("rgconfigurationmanager", "testname", new ConfigTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) .withVersion("1.0.0") .withConfigTemplateVersion(new ConfigTemplateVersionInner() - .withProperties(new ConfigTemplateVersionProperties().withConfigurations("rgricnhvcbqykc"))), + .withProperties(new ConfigTemplateVersionProperties().withConfigurations( + BinaryData.fromBytes("zsapegdehodzmwjmwl".getBytes(StandardCharsets.UTF_8))))), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesDeleteSamples.java index c4a5714c90ce7..bed140a6aa726 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class ConfigTemplatesDeleteSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_Delete_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_Delete_MaximumSet. + * Sample code: ConfigTemplates_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesDeleteMaximumSet( + public static void configTemplatesDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates().delete("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesGetByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesGetByResourceGroupSamples.java index 4fad49674e600..e8fb66d6ab67d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesGetByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesGetByResourceGroupSamples.java @@ -9,14 +9,14 @@ */ public final class ConfigTemplatesGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_Get_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_Get_MaximumSet. + * Sample code: ConfigTemplates_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesGetMaximumSet( + public static void configTemplatesGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesLinkToHierarchiesSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesLinkToHierarchiesSamples.java new file mode 100644 index 0000000000000..cd8dfc379d20d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesLinkToHierarchiesSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.resourcemanager.workloadorchestration.models.HierarchySelector; +import java.util.Arrays; + +/** + * Samples for ConfigTemplates LinkToHierarchies. + */ +public final class ConfigTemplatesLinkToHierarchiesSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_LinkToHierarchies_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplates_LinkToHierarchies_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplatesLinkToHierarchiesMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplates() + .linkToHierarchies("rgconfigurationmanager", "testname", new HierarchySelector().withContextId( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/context/test") + .withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("jwfyiatxaecbpounw"), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListByResourceGroupSamples.java index 96d80d089304e..8e939d1e0d8b3 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListByResourceGroupSamples.java @@ -9,14 +9,27 @@ */ public final class ConfigTemplatesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_ListByResourceGroup_MaximumSet. + * Sample code: ConfigTemplates_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesListByResourceGroupMaximumSet( + public static void configTemplatesListByResourceGroupMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplates().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: ConfigTemplates_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplatesListByResourceGroupMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListSamples.java index 3709dc769ecd2..a7d8650a34542 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListSamples.java @@ -9,14 +9,27 @@ */ public final class ConfigTemplatesListSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_ListBySubscription_MaximumSet. + * Sample code: ConfigTemplates_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesListBySubscriptionMaximumSet( + public static void configTemplatesListBySubscriptionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplates().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: ConfigTemplates_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplatesListBySubscriptionMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates().list(com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesRemoveVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesRemoveVersionSamples.java index 41260c2be5330..f52e1143085b5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesRemoveVersionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesRemoveVersionSamples.java @@ -11,17 +11,17 @@ */ public final class ConfigTemplatesRemoveVersionSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_RemoveVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_RemoveVersion_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_RemoveVersion_MaximumSet. + * Sample code: ConfigTemplates_RemoveVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesRemoveVersionMaximumSet( + public static void configTemplatesRemoveVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.configTemplates() .removeVersionWithResponse("rgconfigurationmanager", "testname", - new VersionParameter().withVersion("ghtvdzgmzncaifrnuumg"), com.azure.core.util.Context.NONE); + new VersionParameter().withVersion("nipqereqmxeiv"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesUnLinkFromHierarchiesSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesUnLinkFromHierarchiesSamples.java new file mode 100644 index 0000000000000..c50eec06f56b5 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesUnLinkFromHierarchiesSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.resourcemanager.workloadorchestration.models.HierarchySelector; +import java.util.Arrays; + +/** + * Samples for ConfigTemplates UnLinkFromHierarchies. + */ +public final class ConfigTemplatesUnLinkFromHierarchiesSamples { + /* + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_UnLinkFromHierarchies_MaximumSet_Gen.json + */ + /** + * Sample code: ConfigTemplates_UnLinkFromHierarchies_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void configTemplatesUnLinkFromHierarchiesMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.configTemplates() + .unLinkFromHierarchies("rgconfigurationmanager", "testname", new HierarchySelector().withContextId( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/context/test") + .withHierarchyIds(Arrays.asList( + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testname")) + .withLevel("jwfyiatxaecbpounw"), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesUpdateSamples.java index 9592bf550318c..8c5e908e4bb17 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesUpdateSamples.java @@ -14,21 +14,21 @@ */ public final class ConfigTemplatesUpdateSamples { /* - * x-ms-original-file: 2025-06-01/ConfigTemplates_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/ConfigTemplates_Update_MaximumSet_Gen.json */ /** - * Sample code: ConfigTemplates_Update_MaximumSet. + * Sample code: ConfigTemplates_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void configTemplatesUpdateMaximumSet( + public static void configTemplatesUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { ConfigTemplate resource = manager.configTemplates() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("key7701", "fakeTokenPlaceholder")) - .withProperties(new ConfigTemplateUpdateProperties().withDescription("cavjiqnrbzsvedicrixhwnfj")) + .withTags(mapOf()) + .withProperties(new ConfigTemplateUpdateProperties().withDescription("acogkthm")) .apply(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsCreateOrUpdateSamples.java index 359941e04dd66..86d582fd62f3c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsCreateOrUpdateSamples.java @@ -17,25 +17,24 @@ */ public final class ContextsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Contexts_CreateOrUpdate_MaximumSet. + * Sample code: Contexts_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void contextsCreateOrUpdateMaximumSet( + public static void contextsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.contexts() .define("testname") - .withRegion("pkquwbplcp") + .withRegion("ctfi") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key3046", "fakeTokenPlaceholder")) + .withTags(mapOf()) .withProperties(new ContextProperties() - .withCapabilities(Arrays.asList(new Capability().withName("tpylinjcmlnycfpofpxjtqmt") - .withDescription("banbenutsngwytoqh") - .withState(ResourceState.ACTIVE))) - .withHierarchies(Arrays.asList(new Hierarchy().withName("upqe").withDescription("vg")))) + .withCapabilities(Arrays.asList( + new Capability().withName("alufbbxccup").withDescription("sin").withState(ResourceState.ACTIVE))) + .withHierarchies(Arrays.asList(new Hierarchy().withName("fz").withDescription("eg")))) .create(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsDeleteSamples.java index b05608d0d0a16..a9af9bd0ebc94 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsDeleteSamples.java @@ -9,15 +9,15 @@ */ public final class ContextsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_Delete_MaximumSet_Gen.json */ /** - * Sample code: Contexts_Delete_MaximumSet. + * Sample code: Contexts_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - contextsDeleteMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void contextsDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.contexts().delete("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsGetByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsGetByResourceGroupSamples.java index ed3577baaccd2..60a01ed0fad30 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsGetByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsGetByResourceGroupSamples.java @@ -9,15 +9,15 @@ */ public final class ContextsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_Get_MaximumSet_Gen.json */ /** - * Sample code: Contexts_Get_MaximumSet. + * Sample code: Contexts_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - contextsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void contextsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.contexts() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListByResourceGroupSamples.java index eed7cdcd2fc9e..b734463838e9b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListByResourceGroupSamples.java @@ -9,14 +9,27 @@ */ public final class ContextsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: Contexts_ListByResourceGroup_MaximumSet. + * Sample code: Contexts_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void contextsListByResourceGroupMaximumSet( + public static void contextsListByResourceGroupMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.contexts().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Contexts_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: Contexts_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void contextsListByResourceGroupMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.contexts().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListSamples.java index 7da096561b011..5868e6b53eaf2 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListSamples.java @@ -9,14 +9,27 @@ */ public final class ContextsListSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: Contexts_ListBySubscription_MaximumSet. + * Sample code: Contexts_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void contextsListBySubscriptionMaximumSet( + public static void contextsListBySubscriptionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.contexts().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Contexts_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: Contexts_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void contextsListBySubscriptionMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.contexts().list(com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsUpdateSamples.java index 99cb1f65fb5cf..2bb8bd73193c5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsUpdateSamples.java @@ -18,25 +18,25 @@ */ public final class ContextsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Contexts_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Contexts_Update_MaximumSet_Gen.json */ /** - * Sample code: Contexts_Update_MaximumSet. + * Sample code: Contexts_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - contextsUpdateMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void contextsUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { ContextModel resource = manager.contexts() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("key9545", "fakeTokenPlaceholder")) + .withTags(mapOf()) .withProperties(new ContextUpdateProperties() - .withCapabilities(Arrays.asList(new Capability().withName("tpylinjcmlnycfpofpxjtqmt") - .withDescription("banbenutsngwytoqh") + .withCapabilities(Arrays.asList(new Capability().withName("alufbbxccup") + .withDescription("hnwcxjwfecxnwsqkoac") .withState(ResourceState.ACTIVE))) - .withHierarchies(Arrays.asList(new Hierarchy().withName("upqe").withDescription("vg")))) + .withHierarchies(Arrays.asList(new Hierarchy().withName("fz").withDescription("nlrpsglqgbdmwpantk")))) .apply(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsCreateOrUpdateSamples.java index 716b48d68206a..6c3a9594de3cd 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsCreateOrUpdateSamples.java @@ -15,23 +15,23 @@ */ public final class DiagnosticsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Diagnostics_CreateOrUpdate_MaximumSet. + * Sample code: Diagnostics_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void diagnosticsCreateOrUpdateMaximumSet( + public static void diagnosticsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.diagnostics() .define("testname") - .withRegion("ouwfvnokjvivmjzqpupwrbsmls") + .withRegion("xxriixfihzwn") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key4304", "fakeTokenPlaceholder")) + .withTags(mapOf()) .withProperties(new DiagnosticProperties()) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsDeleteSamples.java index 05e3cf8f1ae96..d09abcf6a8f19 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class DiagnosticsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_Delete_MaximumSet_Gen.json */ /** - * Sample code: Diagnostics_Delete_MaximumSet. + * Sample code: Diagnostics_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void diagnosticsDeleteMaximumSet( + public static void diagnosticsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.diagnostics().delete("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsGetByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsGetByResourceGroupSamples.java index 1a95cadbdbcce..45d7d1de3b393 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsGetByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsGetByResourceGroupSamples.java @@ -9,15 +9,15 @@ */ public final class DiagnosticsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_Get_MaximumSet_Gen.json */ /** - * Sample code: Diagnostics_Get_MaximumSet. + * Sample code: Diagnostics_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - diagnosticsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void diagnosticsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.diagnostics() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListByResourceGroupSamples.java index cd9c2b4f11309..7ef35f5fba995 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListByResourceGroupSamples.java @@ -9,14 +9,27 @@ */ public final class DiagnosticsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_ListByResourceGroup_MinimumSet_Gen.json */ /** - * Sample code: Diagnostics_ListByResourceGroup_MaximumSet. + * Sample code: Diagnostics_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void diagnosticsListByResourceGroupMaximumSet( + public static void diagnosticsListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.diagnostics().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Diagnostics_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: Diagnostics_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void diagnosticsListByResourceGroupMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.diagnostics().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListSamples.java index 5d629c3945d6f..cff8cf118d2f5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListSamples.java @@ -9,14 +9,27 @@ */ public final class DiagnosticsListSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: Diagnostics_ListBySubscription_MaximumSet. + * Sample code: Diagnostics_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void diagnosticsListBySubscriptionMaximumSet( + public static void diagnosticsListBySubscriptionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.diagnostics().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Diagnostics_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: Diagnostics_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void diagnosticsListBySubscriptionMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.diagnostics().list(com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsUpdateSamples.java index c000151b1d10d..cf73a92cf77b3 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsUpdateSamples.java @@ -14,22 +14,19 @@ */ public final class DiagnosticsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Diagnostics_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Diagnostics_Update_MaximumSet_Gen.json */ /** - * Sample code: Diagnostics_Update_MaximumSet. + * Sample code: Diagnostics_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void diagnosticsUpdateMaximumSet( + public static void diagnosticsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Diagnostic resource = manager.diagnostics() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); - resource.update() - .withTags(mapOf("key1922", "fakeTokenPlaceholder")) - .withProperties(new DiagnosticUpdateProperties()) - .apply(); + resource.update().withTags(mapOf()).withProperties(new DiagnosticUpdateProperties()).apply(); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsCreateOrUpdateSamples.java index 378a07f427fa0..5290a20fac403 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsCreateOrUpdateSamples.java @@ -4,26 +4,29 @@ package com.azure.resourcemanager.workloadorchestration.generated; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; +import java.nio.charset.StandardCharsets; /** * Samples for DynamicSchemaVersions CreateOrUpdate. */ public final class DynamicSchemaVersionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemaVersions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemaVersions_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemaVersions_CreateOrUpdate_MaximumSet. + * Sample code: DynamicSchemaVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemaVersionsCreateOrUpdateMaximumSet( + public static void dynamicSchemaVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemaVersions() .define("1.0.0") .withExistingDynamicSchema("rgconfigurationmanager", "testname", "testname") - .withProperties(new SchemaVersionProperties().withValue("uiaqdwsi")) + .withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("gjohcqdzm".getBytes(StandardCharsets.UTF_8)))) .create(); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsDeleteSamples.java index 9c31a2f40d023..e25e6c2c19a30 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class DynamicSchemaVersionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemaVersions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemaVersions_Delete_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemaVersions_Delete_MaximumSet. + * Sample code: DynamicSchemaVersions_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemaVersionsDeleteMaximumSet( + public static void dynamicSchemaVersionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemaVersions() .delete("rgconfigurationmanager", "testname", "testname", "1.0.0", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsGetSamples.java index 08801869b7f84..636120904e7f4 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsGetSamples.java @@ -9,14 +9,14 @@ */ public final class DynamicSchemaVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemaVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemaVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemaVersions_Get_MaximumSet. + * Sample code: DynamicSchemaVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemaVersionsGetMaximumSet( + public static void dynamicSchemaVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemaVersions() .getWithResponse("rgconfigurationmanager", "testname", "testname", "1.0.0", diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsListByDynamicSchemaSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsListByDynamicSchemaSamples.java index 352261fc7a94e..270fd9fde7dc2 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsListByDynamicSchemaSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsListByDynamicSchemaSamples.java @@ -9,14 +9,14 @@ */ public final class DynamicSchemaVersionsListByDynamicSchemaSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemaVersions_ListByDynamicSchema_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemaVersions_ListByDynamicSchema_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemaVersions_ListByDynamicSchema_MaximumSet. + * Sample code: DynamicSchemaVersions_ListByDynamicSchema_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemaVersionsListByDynamicSchemaMaximumSet( + public static void dynamicSchemaVersionsListByDynamicSchemaMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemaVersions() .listByDynamicSchema("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsUpdateSamples.java index 0d359591c9533..68838893bc2a0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsUpdateSamples.java @@ -4,27 +4,32 @@ package com.azure.resourcemanager.workloadorchestration.generated; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.DynamicSchemaVersion; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; +import java.nio.charset.StandardCharsets; /** * Samples for DynamicSchemaVersions Update. */ public final class DynamicSchemaVersionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemaVersions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemaVersions_Update_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemaVersions_Update_MaximumSet. + * Sample code: DynamicSchemaVersions_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemaVersionsUpdateMaximumSet( + public static void dynamicSchemaVersionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { DynamicSchemaVersion resource = manager.dynamicSchemaVersions() .getWithResponse("rgconfigurationmanager", "testname", "testname", "1.0.0", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withProperties(new SchemaVersionProperties().withValue("muezi")).apply(); + resource.update() + .withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("vmzzkntnuwfgemhnlogkglitm".getBytes(StandardCharsets.UTF_8)))) + .apply(); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasCreateOrUpdateSamples.java index 9d481a5894243..5561cdf55b6d6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasCreateOrUpdateSamples.java @@ -11,14 +11,14 @@ */ public final class DynamicSchemasCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemas_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemas_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemas_CreateOrUpdate_MaximumSet. + * Sample code: DynamicSchemas_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemasCreateOrUpdateMaximumSet( + public static void dynamicSchemasCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemas() .define("testname") diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasDeleteSamples.java index 21226d12c2c5a..11f1a5702fb0b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class DynamicSchemasDeleteSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemas_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemas_Delete_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemas_Delete_MaximumSet. + * Sample code: DynamicSchemas_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemasDeleteMaximumSet( + public static void dynamicSchemasDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemas() .delete("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasGetSamples.java index cabdf7382598b..bfd4f99fe78e5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasGetSamples.java @@ -9,14 +9,14 @@ */ public final class DynamicSchemasGetSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemas_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemas_Get_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemas_Get_MaximumSet. + * Sample code: DynamicSchemas_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemasGetMaximumSet( + public static void dynamicSchemasGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemas() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasListBySchemaSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasListBySchemaSamples.java index 985aa9c0e768b..020bcdad63118 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasListBySchemaSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasListBySchemaSamples.java @@ -9,14 +9,14 @@ */ public final class DynamicSchemasListBySchemaSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemas_ListBySchema_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemas_ListBySchema_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemas_ListBySchema_MaximumSet. + * Sample code: DynamicSchemas_ListBySchema_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemasListBySchemaMaximumSet( + public static void dynamicSchemasListBySchemaMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.dynamicSchemas().listBySchema("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasUpdateSamples.java index fc82a0d8daac0..636f164086e68 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasUpdateSamples.java @@ -12,14 +12,14 @@ */ public final class DynamicSchemasUpdateSamples { /* - * x-ms-original-file: 2025-06-01/DynamicSchemas_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/DynamicSchemas_Update_MaximumSet_Gen.json */ /** - * Sample code: DynamicSchemas_Update_MaximumSet. + * Sample code: DynamicSchemas_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void dynamicSchemasUpdateMaximumSet( + public static void dynamicSchemasUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { DynamicSchema resource = manager.dynamicSchemas() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE) diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsCreateOrUpdateSamples.java index 25a0463be5771..5144e45c1ce15 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class ExecutionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Executions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Executions_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Executions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. @@ -26,10 +26,10 @@ public static void executionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.executions() .define("abcde") - .withExistingVersion("rgconfigurationmanager", "abcde", "abcde", "abcde") - .withProperties( - new ExecutionProperties().withWorkflowVersionId("souenlqwltljsojdcbpc").withSpecification(mapOf())) - .withExtendedLocation(new ExtendedLocation().withName("ugf").withType(ExtendedLocationType.EDGE_ZONE)) + .withExistingVersion("rgconfigurationmanager", "testname", "testname", "abcde") + .withProperties(new ExecutionProperties().withWorkflowVersionId("ga").withSpecification(mapOf())) + .withExtendedLocation( + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsDeleteSamples.java index f13f321262b7c..1a1020adcc2c8 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ExecutionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Executions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Executions_Delete_MaximumSet_Gen.json */ /** * Sample code: Executions_Delete_MaximumSet - generated by [MaximumSet] rule. @@ -19,6 +19,7 @@ public final class ExecutionsDeleteSamples { public static void executionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.executions() - .delete("rgconfigurationmanager", "abcde", "abcde", "abcde", "abcde", com.azure.core.util.Context.NONE); + .delete("rgconfigurationmanager", "testname", "testname", "abcde", "abcde", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsGetSamples.java index 06250325be26a..bc4d3b7afdc53 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ExecutionsGetSamples { /* - * x-ms-original-file: 2025-06-01/Executions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Executions_Get_MaximumSet_Gen.json */ /** * Sample code: Executions_Get_MaximumSet - generated by [MaximumSet] rule. @@ -19,7 +19,7 @@ public final class ExecutionsGetSamples { public static void executionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.executions() - .getWithResponse("rgconfigurationmanager", "abcde", "abcde", "abcde", "abcde", + .getWithResponse("rgconfigurationmanager", "testname", "testname", "abcde", "abcde", com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsListByWorkflowVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsListByWorkflowVersionSamples.java index 1da4431a96fcb..24b03ce00aa0a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsListByWorkflowVersionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsListByWorkflowVersionSamples.java @@ -9,7 +9,7 @@ */ public final class ExecutionsListByWorkflowVersionSamples { /* - * x-ms-original-file: 2025-06-01/Executions_ListByWorkflowVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Executions_ListByWorkflowVersion_MaximumSet_Gen.json */ /** * Sample code: Executions_ListByWorkflowVersion_MaximumSet - generated by [MaximumSet] rule. @@ -19,7 +19,7 @@ public final class ExecutionsListByWorkflowVersionSamples { public static void executionsListByWorkflowVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.executions() - .listByWorkflowVersion("rgconfigurationmanager", "abcde", "abcde", "abcde", + .listByWorkflowVersion("rgconfigurationmanager", "testname", "testname", "abcde", com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsUpdateSamples.java index 0d2bb5b09bc99..999d22de2fe50 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class ExecutionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Executions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Executions_Update_MaximumSet_Gen.json */ /** * Sample code: Executions_Update_MaximumSet - generated by [MaximumSet] rule. @@ -24,12 +24,11 @@ public final class ExecutionsUpdateSamples { public static void executionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Execution resource = manager.executions() - .getWithResponse("rgconfigurationmanager", "abcde", "abcde", "abcde", "abcde", + .getWithResponse("rgconfigurationmanager", "testname", "testname", "abcde", "abcde", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withProperties( - new ExecutionProperties().withWorkflowVersionId("xjsxzbfltzvbuvn").withSpecification(mapOf())) + .withProperties(new ExecutionProperties().withWorkflowVersionId("ihhcmejnkuto").withSpecification(mapOf())) .apply(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsGetSamples.java new file mode 100644 index 0000000000000..2e5046ef440d3 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for HierarchyConfigurationMetadataVersions Get. + */ +public final class HierarchyConfigurationMetadataVersionsGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/HierarchyConfigurationMetadataVersions_Get_MaximumSet_Gen.json + */ + /** + * Sample code: HierarchyConfigurationMetadataVersions_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void hierarchyConfigurationMetadataVersionsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.hierarchyConfigurationMetadataVersions() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "ct101", "1.0.0", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsListByParentSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsListByParentSamples.java new file mode 100644 index 0000000000000..594fba3012bfb --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsListByParentSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for HierarchyConfigurationMetadataVersions ListByParent. + */ +public final class HierarchyConfigurationMetadataVersionsListByParentSamples { + /* + * x-ms-original-file: 2026-05-01-preview/HierarchyConfigurationMetadataVersions_ListByParent_MaximumSet_Gen.json + */ + /** + * Sample code: HierarchyConfigurationMetadataVersions_ListByParent_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void hierarchyConfigurationMetadataVersionsListByParentMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.hierarchyConfigurationMetadataVersions() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "ct101", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasGetSamples.java new file mode 100644 index 0000000000000..b04cd56b6bf2d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for HierarchyConfigurationMetadatas Get. + */ +public final class HierarchyConfigurationMetadatasGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/HierarchyConfigurationMetadatas_Get_MaximumSet_Gen.json + */ + /** + * Sample code: HierarchyConfigurationMetadatas_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void hierarchyConfigurationMetadatasGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.hierarchyConfigurationMetadatas() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "ct101", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasListByParentSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasListByParentSamples.java new file mode 100644 index 0000000000000..693d8275f00f8 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasListByParentSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for HierarchyConfigurationMetadatas ListByParent. + */ +public final class HierarchyConfigurationMetadatasListByParentSamples { + /* + * x-ms-original-file: 2026-05-01-preview/HierarchyConfigurationMetadatas_ListByParent_MaximumSet_Gen.json + */ + /** + * Sample code: HierarchyConfigurationMetadatas_ListByParent_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void hierarchyConfigurationMetadatasListByParentMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.hierarchyConfigurationMetadatas() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/HierarchyConfigurationMetadatas_ListByParent_MinimumSet_Gen.json + */ + /** + * Sample code: HierarchyConfigurationMetadatas_ListByParent_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void hierarchyConfigurationMetadatasListByParentMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.hierarchyConfigurationMetadatas() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesGetSamples.java index 47573ea900e0b..644bfb6b581f0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesGetSamples.java @@ -9,14 +9,14 @@ */ public final class InstanceHistoriesGetSamples { /* - * x-ms-original-file: 2025-06-01/InstanceHistories_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/InstanceHistories_Get_MaximumSet_Gen.json */ /** - * Sample code: InstanceHistories_Get_MaximumSet. + * Sample code: InstanceHistories_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instanceHistoriesGetMaximumSet( + public static void instanceHistoriesGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instanceHistories() .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", "testname", diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesListByInstanceSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesListByInstanceSamples.java index b7f3dab5a8543..3d397291e78c5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesListByInstanceSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesListByInstanceSamples.java @@ -9,14 +9,14 @@ */ public final class InstanceHistoriesListByInstanceSamples { /* - * x-ms-original-file: 2025-06-01/InstanceHistories_ListByInstance_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/InstanceHistories_ListByInstance_MaximumSet_Gen.json */ /** - * Sample code: InstanceHistories_ListByInstance_MaximumSet. + * Sample code: InstanceHistories_ListByInstance_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instanceHistoriesListByInstanceMaximumSet( + public static void instanceHistoriesListByInstanceMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instanceHistories() .listByInstance("rgconfigurationmanager", "testname", "testname", "testname", diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesCreateOrUpdateSamples.java index 52cfbde04ca17..f0c34e1cbb629 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesCreateOrUpdateSamples.java @@ -16,26 +16,26 @@ */ public final class InstancesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Instances_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Instances_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Instances_CreateOrUpdate_MaximumSet. + * Sample code: Instances_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instancesCreateOrUpdateMaximumSet( + public static void instancesCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instances() .define("testname") .withExistingSolution("rgconfigurationmanager", "testname", "testname") - .withProperties(new InstanceProperties().withSolutionVersionId("acpddbkfclsgxg") - .withTargetId("eguutiftuxrsavvckjrv") + .withProperties(new InstanceProperties().withSolutionVersionId("nrufwrrlslbu") + .withTargetId("cxhzexpvtx") .withActiveState(ActiveState.ACTIVE) .withReconciliationPolicy(new ReconciliationPolicyProperties().withState(ReconciliationState.INACTIVE) - .withInterval("szucgzdbydcowvhprhx")) + .withInterval("sefmajhesdas")) .withSolutionScope("testname")) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesDeleteSamples.java index ec7c66a572a99..108870db02182 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class InstancesDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Instances_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Instances_Delete_MaximumSet_Gen.json */ /** - * Sample code: Instances_Delete_MaximumSet. + * Sample code: Instances_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instancesDeleteMaximumSet( + public static void instancesDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instances() .delete("rgconfigurationmanager", "testname", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesGetSamples.java index 18be8405012fa..5794f11581cd6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesGetSamples.java @@ -9,15 +9,15 @@ */ public final class InstancesGetSamples { /* - * x-ms-original-file: 2025-06-01/Instances_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Instances_Get_MaximumSet_Gen.json */ /** - * Sample code: Instances_Get_MaximumSet. + * Sample code: Instances_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - instancesGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void instancesGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instances() .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesListBySolutionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesListBySolutionSamples.java index eb6cb272a5583..6de99a0bf0e7e 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesListBySolutionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesListBySolutionSamples.java @@ -9,14 +9,14 @@ */ public final class InstancesListBySolutionSamples { /* - * x-ms-original-file: 2025-06-01/Instances_ListBySolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Instances_ListBySolution_MaximumSet_Gen.json */ /** - * Sample code: Instances_ListBySolution_MaximumSet. + * Sample code: Instances_ListBySolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instancesListBySolutionMaximumSet( + public static void instancesListBySolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.instances() .listBySolution("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesUpdateSamples.java index 50fdb5eed4f16..62e969ac78197 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesUpdateSamples.java @@ -15,25 +15,25 @@ */ public final class InstancesUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Instances_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Instances_Update_MaximumSet_Gen.json */ /** - * Sample code: Instances_Update_MaximumSet. + * Sample code: Instances_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void instancesUpdateMaximumSet( + public static void instancesUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Instance resource = manager.instances() .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withProperties(new InstanceProperties().withSolutionVersionId("vrpzlamkvanqibtjarpxit") - .withTargetId("tqkdvc") + .withProperties(new InstanceProperties().withSolutionVersionId("ttjgk") + .withTargetId("bebahvhrwsnxkxlignvhxivicdyzvc") .withActiveState(ActiveState.ACTIVE) .withReconciliationPolicy(new ReconciliationPolicyProperties().withState(ReconciliationState.INACTIVE) - .withInterval("cmzlrjwnlshnkgv")) + .withInterval("otpsmjex")) .withSolutionScope("testname")) .apply(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/JobsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/JobsGetSamples.java index 4e3792aa69a37..f46502b98774a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/JobsGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/JobsGetSamples.java @@ -9,15 +9,18 @@ */ public final class JobsGetSamples { /* - * x-ms-original-file: 2025-06-01/Jobs_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Jobs_Get_MaximumSet_Gen.json */ /** - * Sample code: Jobs_Get_MaximumSet. + * Sample code: Jobs_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - jobsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.jobs().getWithResponse("gt", "jobsName", com.azure.core.util.Context.NONE); + public static void jobsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.jobs() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "jobsName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/JobsListByTargetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/JobsListByTargetSamples.java index 0060e29b97efe..3c2c66caa7b6c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/JobsListByTargetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/JobsListByTargetSamples.java @@ -9,15 +9,34 @@ */ public final class JobsListByTargetSamples { /* - * x-ms-original-file: 2025-06-01/Jobs_ListByTarget_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Jobs_ListByTarget_MinimumSet_Gen.json */ /** - * Sample code: Jobs_ListByTarget_MaximumSet. + * Sample code: Jobs_ListByTarget_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void jobsListByTargetMaximumSet( + public static void jobsListByTargetMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.jobs().listByTarget("gt", com.azure.core.util.Context.NONE); + manager.jobs() + .listByTarget( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Jobs_ListByTarget_MaximumSet_Gen.json + */ + /** + * Sample code: Jobs_ListByTarget_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void jobsListByTargetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.jobs() + .listByTarget( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..d72948bff8671 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesCreateOrUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.resourcemanager.workloadorchestration.models.SchemaReferenceProperties; + +/** + * Samples for SchemaReferences CreateOrUpdate. + */ +public final class SchemaReferencesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: SchemaReferences_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemaReferencesCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.schemaReferences() + .define("default") + .withExistingResourceUri( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget") + .withProperties(new SchemaReferenceProperties().withSchemaId("fpztlfnz")) + .create(); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesDeleteSamples.java new file mode 100644 index 0000000000000..ea9ceadf434d3 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesDeleteSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SchemaReferences Delete. + */ +public final class SchemaReferencesDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: SchemaReferences_Delete_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemaReferencesDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.schemaReferences() + .delete( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "default", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesGetSamples.java index 79c462b2b539d..ac42330b90329 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesGetSamples.java @@ -9,15 +9,18 @@ */ public final class SchemaReferencesGetSamples { /* - * x-ms-original-file: 2025-06-01/SchemaReferences_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_Get_MaximumSet_Gen.json */ /** - * Sample code: SchemaReferences_Get_MaximumSet. + * Sample code: SchemaReferences_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaReferencesGetMaximumSet( + public static void schemaReferencesGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.schemaReferences().getWithResponse("jdvtghygpz", "testname", com.azure.core.util.Context.NONE); + manager.schemaReferences() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "default", com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesListByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesListByResourceGroupSamples.java index be27aabdd1754..b580bcb0cea5c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesListByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesListByResourceGroupSamples.java @@ -9,15 +9,35 @@ */ public final class SchemaReferencesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/SchemaReferences_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: SchemaReferences_ListByResourceGroup_MaximumSet. + * Sample code: SchemaReferences_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaReferencesListByResourceGroupMaximumSet( + public static void schemaReferencesListByResourceGroupMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { - manager.schemaReferences().listByResourceGroup("jdvtghygpz", com.azure.core.util.Context.NONE); + manager.schemaReferences() + .listByResourceGroup( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: SchemaReferences_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule - generated by + * [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemaReferencesListByResourceGroupMaximumSetGeneratedByMaximumSetRuleGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.schemaReferences() + .listByResourceGroup( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesUpdateSamples.java new file mode 100644 index 0000000000000..f0531cc722991 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.resourcemanager.workloadorchestration.models.SchemaReference; +import com.azure.resourcemanager.workloadorchestration.models.SchemaReferenceProperties; + +/** + * Samples for SchemaReferences Update. + */ +public final class SchemaReferencesUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SchemaReferences_Update_MaximumSet_Gen.json + */ + /** + * Sample code: SchemaReferences_Update_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemaReferencesUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + SchemaReference resource = manager.schemaReferences() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "default", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withProperties(new SchemaReferenceProperties().withSchemaId("uqhgbbzeyuwjdqnvfmntj")).apply(); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsCreateOrUpdateSamples.java index 4c9db5e5a07e2..bb3fa3e1e152a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsCreateOrUpdateSamples.java @@ -4,26 +4,29 @@ package com.azure.resourcemanager.workloadorchestration.generated; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; +import java.nio.charset.StandardCharsets; /** * Samples for SchemaVersions CreateOrUpdate. */ public final class SchemaVersionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SchemaVersions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaVersions_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: SchemaVersions_CreateOrUpdate_MaximumSet. + * Sample code: SchemaVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaVersionsCreateOrUpdateMaximumSet( + public static void schemaVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemaVersions() .define("1.0.0") .withExistingSchema("rgconfigurationmanager", "testname") - .withProperties(new SchemaVersionProperties().withValue("uiaqdwsi")) + .withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("gjohcqdzm".getBytes(StandardCharsets.UTF_8)))) .create(); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsDeleteSamples.java index f087054f98a68..6c6042f255696 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class SchemaVersionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/SchemaVersions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaVersions_Delete_MaximumSet_Gen.json */ /** - * Sample code: SchemaVersions_Delete_MaximumSet. + * Sample code: SchemaVersions_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaVersionsDeleteMaximumSet( + public static void schemaVersionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemaVersions() .delete("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsGetSamples.java index 1cbfa3309a878..57591c8cc6b91 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsGetSamples.java @@ -9,14 +9,14 @@ */ public final class SchemaVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/SchemaVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: SchemaVersions_Get_MaximumSet. + * Sample code: SchemaVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaVersionsGetMaximumSet( + public static void schemaVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemaVersions() .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsListBySchemaSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsListBySchemaSamples.java index 236b062fea839..292532d0f6b99 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsListBySchemaSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsListBySchemaSamples.java @@ -9,14 +9,14 @@ */ public final class SchemaVersionsListBySchemaSamples { /* - * x-ms-original-file: 2025-06-01/SchemaVersions_ListBySchema_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaVersions_ListBySchema_MaximumSet_Gen.json */ /** - * Sample code: SchemaVersions_ListBySchema_MaximumSet. + * Sample code: SchemaVersions_ListBySchema_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaVersionsListBySchemaMaximumSet( + public static void schemaVersionsListBySchemaMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemaVersions().listBySchema("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsUpdateSamples.java index e71b2d3a258a6..027884b5979d9 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsUpdateSamples.java @@ -4,26 +4,31 @@ package com.azure.resourcemanager.workloadorchestration.generated; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersion; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; +import java.nio.charset.StandardCharsets; /** * Samples for SchemaVersions Update. */ public final class SchemaVersionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SchemaVersions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SchemaVersions_Update_MaximumSet_Gen.json */ /** - * Sample code: SchemaVersions_Update_MaximumSet. + * Sample code: SchemaVersions_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemaVersionsUpdateMaximumSet( + public static void schemaVersionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { SchemaVersion resource = manager.schemaVersions() .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withProperties(new SchemaVersionProperties().withValue("muezi")).apply(); + resource.update() + .withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("vmzzkntnuwfgemhnlogkglitm".getBytes(StandardCharsets.UTF_8)))) + .apply(); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateOrUpdateSamples.java index ab19931c9b24a..22742ee498f6d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateOrUpdateSamples.java @@ -13,20 +13,20 @@ */ public final class SchemasCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Schemas_CreateOrUpdate_MaximumSet. + * Sample code: Schemas_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemasCreateOrUpdateMaximumSet( + public static void schemasCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas() .define("testname") - .withRegion("alvi") + .withRegion("shekiqtymhvonnlimmgsamnkcwjp") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key7017", "fakeTokenPlaceholder")) + .withTags(mapOf()) .withProperties(new SchemaProperties()) .create(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateVersionSamples.java index 31e01abe179bd..16394bdc29490 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateVersionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateVersionSamples.java @@ -4,31 +4,33 @@ package com.azure.resourcemanager.workloadorchestration.generated; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionInner; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionWithUpdateTypeInner; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; import com.azure.resourcemanager.workloadorchestration.models.UpdateType; +import java.nio.charset.StandardCharsets; /** * Samples for Schemas CreateVersion. */ public final class SchemasCreateVersionSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_CreateVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_CreateVersion_MaximumSet_Gen.json */ /** - * Sample code: Schemas_CreateVersion_MaximumSet. + * Sample code: Schemas_CreateVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemasCreateVersionMaximumSet( + public static void schemasCreateVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas() .createVersion("rgconfigurationmanager", "testname", new SchemaVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) .withVersion("1.0.0") - .withSchemaVersion( - new SchemaVersionInner().withProperties(new SchemaVersionProperties().withValue("uiaqdwsi"))), + .withSchemaVersion(new SchemaVersionInner().withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("gjohcqdzm".getBytes(StandardCharsets.UTF_8))))), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasDeleteSamples.java index 2d7956453456e..91917b1371995 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasDeleteSamples.java @@ -9,15 +9,15 @@ */ public final class SchemasDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_Delete_MaximumSet_Gen.json */ /** - * Sample code: Schemas_Delete_MaximumSet. + * Sample code: Schemas_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - schemasDeleteMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void schemasDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas().delete("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasGetByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasGetByResourceGroupSamples.java index 22c25d30be306..c48aaaf9c1560 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasGetByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasGetByResourceGroupSamples.java @@ -9,15 +9,15 @@ */ public final class SchemasGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_Get_MaximumSet_Gen.json */ /** - * Sample code: Schemas_Get_MaximumSet. + * Sample code: Schemas_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - schemasGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void schemasGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListByResourceGroupSamples.java index 09eae525185f8..88047679ee090 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListByResourceGroupSamples.java @@ -9,14 +9,27 @@ */ public final class SchemasListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_ListByResourceGroup_MinimumSet_Gen.json */ /** - * Sample code: Schemas_ListByResourceGroup_MaximumSet. + * Sample code: Schemas_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemasListByResourceGroupMaximumSet( + public static void schemasListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.schemas().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Schemas_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: Schemas_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemasListByResourceGroupMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListSamples.java index cd8ae69f1121a..2abb170c6c952 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListSamples.java @@ -9,14 +9,27 @@ */ public final class SchemasListSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_ListBySubscription_MinimumSet_Gen.json */ /** - * Sample code: Schemas_ListBySubscription_MaximumSet. + * Sample code: Schemas_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemasListBySubscriptionMaximumSet( + public static void schemasListBySubscriptionMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.schemas().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Schemas_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: Schemas_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void schemasListBySubscriptionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas().list(com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasRemoveVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasRemoveVersionSamples.java index 6beab617dfe38..f5b75b4b946d6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasRemoveVersionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasRemoveVersionSamples.java @@ -11,17 +11,17 @@ */ public final class SchemasRemoveVersionSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_RemoveVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_RemoveVersion_MaximumSet_Gen.json */ /** - * Sample code: Schemas_RemoveVersion_MaximumSet. + * Sample code: Schemas_RemoveVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void schemasRemoveVersionMaximumSet( + public static void schemasRemoveVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.schemas() .removeVersionWithResponse("rgconfigurationmanager", "testname", - new VersionParameter().withVersion("ghtvdzgmzncaifrnuumg"), com.azure.core.util.Context.NONE); + new VersionParameter().withVersion("nipqereqmxeiv"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasUpdateSamples.java index c3905cd6443c5..ee923fa86b81c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasUpdateSamples.java @@ -14,22 +14,19 @@ */ public final class SchemasUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Schemas_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Schemas_Update_MaximumSet_Gen.json */ /** - * Sample code: Schemas_Update_MaximumSet. + * Sample code: Schemas_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - schemasUpdateMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void schemasUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Schema resource = manager.schemas() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); - resource.update() - .withTags(mapOf("key6760", "fakeTokenPlaceholder")) - .withProperties(new SchemaUpdateProperties()) - .apply(); + resource.update().withTags(mapOf()).withProperties(new SchemaUpdateProperties()).apply(); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesCreateOrUpdateSamples.java index cccb98346706a..eef3fd1a234ce 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesCreateOrUpdateSamples.java @@ -11,19 +11,19 @@ */ public final class SiteReferencesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SiteReferences_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SiteReferences_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: SiteReferences_CreateOrUpdate_MaximumSet. + * Sample code: SiteReferences_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void siteReferencesCreateOrUpdateMaximumSet( + public static void siteReferencesCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.siteReferences() .define("testname") .withExistingContext("rgconfigurationmanager", "testname") - .withProperties(new SiteReferenceProperties().withSiteId("xxjpxdcaumewwgpbwzkcrgrcw")) + .withProperties(new SiteReferenceProperties().withSiteId("gaehctrehvyhasstg")) .create(); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesDeleteSamples.java index d793a4ff25b4f..d8c68b814f572 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class SiteReferencesDeleteSamples { /* - * x-ms-original-file: 2025-06-01/SiteReferences_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SiteReferences_Delete_MaximumSet_Gen.json */ /** - * Sample code: SiteReferences_Delete_MaximumSet. + * Sample code: SiteReferences_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void siteReferencesDeleteMaximumSet( + public static void siteReferencesDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.siteReferences() .delete("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesGetSamples.java index 311800b049135..50e79a2c9f4b3 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesGetSamples.java @@ -9,14 +9,14 @@ */ public final class SiteReferencesGetSamples { /* - * x-ms-original-file: 2025-06-01/SiteReferences_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SiteReferences_Get_MaximumSet_Gen.json */ /** - * Sample code: SiteReferences_Get_MaximumSet. + * Sample code: SiteReferences_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void siteReferencesGetMaximumSet( + public static void siteReferencesGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.siteReferences() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesListByContextSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesListByContextSamples.java index 3823d65cf5e02..68bedc9bdd78c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesListByContextSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesListByContextSamples.java @@ -9,14 +9,14 @@ */ public final class SiteReferencesListByContextSamples { /* - * x-ms-original-file: 2025-06-01/SiteReferences_ListByContext_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SiteReferences_ListByContext_MaximumSet_Gen.json */ /** - * Sample code: SiteReferences_ListByContext_MaximumSet. + * Sample code: SiteReferences_ListByContext_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void siteReferencesListByContextMaximumSet( + public static void siteReferencesListByContextMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.siteReferences().listByContext("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesUpdateSamples.java index c57122aff2796..0d71d25709b98 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesUpdateSamples.java @@ -12,18 +12,18 @@ */ public final class SiteReferencesUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SiteReferences_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SiteReferences_Update_MaximumSet_Gen.json */ /** - * Sample code: SiteReferences_Update_MaximumSet. + * Sample code: SiteReferences_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void siteReferencesUpdateMaximumSet( + public static void siteReferencesUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { SiteReference resource = manager.siteReferences() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withProperties(new SiteReferenceProperties().withSiteId("nwiuyaro")).apply(); + resource.update().withProperties(new SiteReferenceProperties().withSiteId("cifefexczjlpyn")).apply(); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..c86dfd1f9c75b --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsCreateOrUpdateSamples.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadata; +import com.azure.resourcemanager.workloadorchestration.models.TargetMetadata; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SolutionDeployments CreateOrUpdate. + */ +public final class SolutionDeploymentsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_CreateOrUpdate_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsCreateOrUpdateMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionDeployments() + .define("nhlqmzheqzagkdztldtqj") + .withRegion("igudkwioxbauvezpqnxfpzihalxw") + .withExistingResourceGroup("rgconfigurationmanager") + .withTags(mapOf("key3698", "fakeTokenPlaceholder")) + .withProperties(new SolutionDeploymentProperties() + .withSolutionTemplateProperties(new SolutionTemplateMetadata().withSubscriptionId("drkshbgxfn") + .withResourceGroupName("buqhpshsfrejqxsuurhwaim") + .withName("tbldbhhnetgrzp") + .withVersion("bamks")) + .withInput(mapOf()) + .withTargetProperties(new TargetMetadata().withCapabilities(Arrays.asList("ruaslqqdcjxbajpkutaxlkhifw")) + .withTargetIds(Arrays.asList()))) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsDeleteSamples.java new file mode 100644 index 0000000000000..afc35b9f4c541 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsDeleteSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionDeployments Delete. + */ +public final class SolutionDeploymentsDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_Delete_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsDeleteMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionDeployments().delete("rgconfigurationmanager", "abcdef", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsGetByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsGetByResourceGroupSamples.java new file mode 100644 index 0000000000000..a9db4bd8f77f2 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsGetByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionDeployments GetByResourceGroup. + */ +public final class SolutionDeploymentsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_Get_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_Get_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsGetMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionDeployments() + .getByResourceGroupWithResponse("rgconfigurationmanager", "nhlqmzheqzagkdztldtqj", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListByResourceGroupSamples.java new file mode 100644 index 0000000000000..59786e2eb07e8 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionDeployments ListByResourceGroup. + */ +public final class SolutionDeploymentsListByResourceGroupSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_ListByResourceGroup_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsListByResourceGroupMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionDeployments().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListSamples.java new file mode 100644 index 0000000000000..01d9978d58b1c --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionDeployments List. + */ +public final class SolutionDeploymentsListSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_ListBySubscription_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsListBySubscriptionMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionDeployments().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsUpdateSamples.java new file mode 100644 index 0000000000000..dc99257a274b1 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsUpdateSamples.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeployment; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdateProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadataUpdate; +import com.azure.resourcemanager.workloadorchestration.models.TargetMetadata; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SolutionDeployments Update. + */ +public final class SolutionDeploymentsUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionDeployments_Update_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionDeployments_Update_MaximumSet. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionDeploymentsUpdateMaximumSet( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + SolutionDeployment resource = manager.solutionDeployments() + .getByResourceGroupWithResponse("rgconfigurationmanager", "nhlqmzheqzagkdztldtqj", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key3704", "fakeTokenPlaceholder")) + .withProperties(new SolutionDeploymentUpdateProperties() + .withSolutionTemplateProperties( + new SolutionTemplateMetadataUpdate().withSubscriptionId("mqntqdolbjerkxxhieczxkxp") + .withResourceGroupName("gjihxpgiogcnvhgo") + .withName("zzfltgjkeptkaxaobzhao") + .withVersion("ptsxmabzqnqqlaxbsgubiia")) + .withInput(mapOf()) + .withTargetProperties(new TargetMetadata().withCapabilities(Arrays.asList("ruaslqqdcjxbajpkutaxlkhifw")) + .withTargetIds(Arrays.asList()))) + .apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsGetSamples.java new file mode 100644 index 0000000000000..d3e40c1b2a9ad --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionMetadataVersions Get. + */ +public final class SolutionMetadataVersionsGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionMetadataVersions_Get_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionMetadataVersions_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionMetadataVersionsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionMetadataVersions() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "metadataSampleName", "1.0.0", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsListByParentSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsListByParentSamples.java new file mode 100644 index 0000000000000..d0085ae6016b2 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsListByParentSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionMetadataVersions ListByParent. + */ +public final class SolutionMetadataVersionsListByParentSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionMetadataVersions_ListByParent_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionMetadataVersions_ListByParent_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionMetadataVersionsListByParentMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionMetadataVersions() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "metadataSampleName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasGetSamples.java new file mode 100644 index 0000000000000..8a4ae4dcd77e0 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionMetadatas Get. + */ +public final class SolutionMetadatasGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionMetadatas_Get_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionMetadatas_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionMetadatasGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionMetadatas() + .getWithResponse( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + "metadataSampleName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasListByParentSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasListByParentSamples.java new file mode 100644 index 0000000000000..c2766b1ab0d97 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasListByParentSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionMetadatas ListByParent. + */ +public final class SolutionMetadatasListByParentSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionMetadatas_ListByParent_MinimumSet_Gen.json + */ + /** + * Sample code: SolutionMetadatas_ListByParent_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionMetadatasListByParentMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionMetadatas() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/SolutionMetadatas_ListByParent_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionMetadatas_ListByParent_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionMetadatasListByParentMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionMetadatas() + .listByParent( + "subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasGetSamples.java new file mode 100644 index 0000000000000..71231c1a42a3c --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionSchemas Get. + */ +public final class SolutionSchemasGetSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionSchemas_Get_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionSchemas_Get_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionSchemasGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionSchemas() + .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", "testname", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasListBySolutionTemplateVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasListBySolutionTemplateVersionSamples.java new file mode 100644 index 0000000000000..d82ef138a9340 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasListBySolutionTemplateVersionSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionSchemas ListBySolutionTemplateVersion. + */ +public final class SolutionSchemasListBySolutionTemplateVersionSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionSchemas_ListBySolutionTemplateVersion_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionSchemas_ListBySolutionTemplateVersion_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionSchemasListBySolutionTemplateVersionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionSchemas() + .listBySolutionTemplateVersion("rgconfigurationmanager", "testname", "1.0.0", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkDeploySolutionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkDeploySolutionSamples.java index 77ad97b580708..652e46dd993e7 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkDeploySolutionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkDeploySolutionSamples.java @@ -13,14 +13,14 @@ */ public final class SolutionTemplateVersionsBulkDeploySolutionSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplateVersions_BulkDeploySolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_BulkDeploySolution_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplateVersions_BulkDeploySolution_MaximumSet. + * Sample code: SolutionTemplateVersions_BulkDeploySolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplateVersionsBulkDeploySolutionMaximumSet( + public static void solutionTemplateVersionsBulkDeploySolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplateVersions() .bulkDeploySolution("rgconfigurationmanager", "testname", "1.0.0", new BulkDeploySolutionParameter() diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkPublishSolutionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkPublishSolutionSamples.java index ffb4bada8d84a..6c461f28a224b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkPublishSolutionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkPublishSolutionSamples.java @@ -14,30 +14,42 @@ */ public final class SolutionTemplateVersionsBulkPublishSolutionSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplateVersions_BulkPublishSolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_BulkPublishSolution_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplateVersions_BulkPublishSolution_MaximumSet. + * Sample code: SolutionTemplateVersions_BulkPublishSolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplateVersionsBulkPublishSolutionMaximumSet( + public static void solutionTemplateVersionsBulkPublishSolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplateVersions() .bulkPublishSolution("rgconfigurationmanager", "testname", "1.0.0", new BulkPublishSolutionParameter() .withTargets(Arrays.asList(new BulkPublishTargetDetails().withTargetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") - .withSolutionInstanceName("test-instance"))) - .withSolutionInstanceName("test-instance") + .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1") + .withSolutionTemplateId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionTemplateVersion("bwji") + .withSolutionInstanceName("testname") + .withTargetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") + .withDependencies(Arrays.asList()))) + .withSolutionInstanceName("testname") + .withSolutionVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1") + .withSolutionConfiguration("mxnhusmdpoxqmbujrudeildj"))) + .withSolutionInstanceName("testname") .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1") .withSolutionTemplateId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") - .withSolutionTemplateVersion("1.0.0") - .withSolutionInstanceName("test-instance") + .withSolutionTemplateVersion("bwji") + .withSolutionInstanceName("testname") .withTargetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") - .withDependencies(Arrays.asList()))), - com.azure.core.util.Context.NONE); + .withDependencies(Arrays.asList()))) + .withSolutionConfiguration("tkkfcy"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkReviewSolutionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkReviewSolutionSamples.java new file mode 100644 index 0000000000000..302c7838ca1a9 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsBulkReviewSolutionSamples.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewSolutionParameter; +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewTargetDetails; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDependencyParameter; +import java.util.Arrays; + +/** + * Samples for SolutionTemplateVersions BulkReviewSolution. + */ +public final class SolutionTemplateVersionsBulkReviewSolutionSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_BulkReviewSolution_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionTemplateVersions_BulkReviewSolution_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplateVersionsBulkReviewSolutionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionTemplateVersions() + .bulkReviewSolution("rgconfigurationmanager", "testname", "1.0.0", new BulkReviewSolutionParameter() + .withTargets(Arrays.asList(new BulkReviewTargetDetails().withTargetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") + .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1") + .withSolutionTemplateId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionTemplateVersion("bwji") + .withSolutionInstanceName("testname") + .withTargetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") + .withDependencies(Arrays.asList()))) + .withSolutionInstanceName("testname") + .withSolutionConfiguration("hizjdicxgebxdoxvplltbemeg"))) + .withSolutionInstanceName("testname") + .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1") + .withSolutionTemplateId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionTemplateVersion("bwji") + .withSolutionInstanceName("testname") + .withTargetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target") + .withDependencies(Arrays.asList()))) + .withSolutionConfiguration("jrmogjyqtgidoxbvbztkz"), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..6553223c34cbe --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsCreateOrUpdateSamples.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.OrchestratorType; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; +import java.nio.charset.StandardCharsets; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SolutionTemplateVersions CreateOrUpdate. + */ +public final class SolutionTemplateVersionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionTemplateVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplateVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionTemplateVersions() + .define("1.0.0") + .withExistingSolutionTemplate("rgconfigurationmanager", "testname") + .withProperties(new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("zprhmcyzk".getBytes(StandardCharsets.UTF_8))) + .withSpecification(mapOf()) + .withOrchestratorType(OrchestratorType.TO)) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsDeleteSamples.java new file mode 100644 index 0000000000000..96749feae883d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +/** + * Samples for SolutionTemplateVersions Delete. + */ +public final class SolutionTemplateVersionsDeleteSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionTemplateVersions_Delete_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplateVersionsDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionTemplateVersions() + .delete("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsGetSamples.java index 7ea3eb0930479..537048ed074a9 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsGetSamples.java @@ -9,14 +9,14 @@ */ public final class SolutionTemplateVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplateVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplateVersions_Get_MaximumSet. + * Sample code: SolutionTemplateVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplateVersionsGetMaximumSet( + public static void solutionTemplateVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplateVersions() .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsListBySolutionTemplateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsListBySolutionTemplateSamples.java index 8917a0b7e557c..d2f5214e94312 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsListBySolutionTemplateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsListBySolutionTemplateSamples.java @@ -9,14 +9,14 @@ */ public final class SolutionTemplateVersionsListBySolutionTemplateSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplateVersions_ListBySolutionTemplate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_ListBySolutionTemplate_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplateVersions_ListBySolutionTemplate_MaximumSet. + * Sample code: SolutionTemplateVersions_ListBySolutionTemplate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplateVersionsListBySolutionTemplateMaximumSet( + public static void solutionTemplateVersionsListBySolutionTemplateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplateVersions() .listBySolutionTemplate("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsUpdateSamples.java new file mode 100644 index 0000000000000..cbc237d208983 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsUpdateSamples.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.OrchestratorType; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersion; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; +import java.nio.charset.StandardCharsets; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SolutionTemplateVersions Update. + */ +public final class SolutionTemplateVersionsUpdateSamples { + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplateVersions_Update_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionTemplateVersions_Update_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplateVersionsUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + SolutionTemplateVersion resource = manager.solutionTemplateVersions() + .getWithResponse("rgconfigurationmanager", "testname", "1.0.0", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("pwehvxzltujmytianbjsqgmcj".getBytes(StandardCharsets.UTF_8))) + .withSpecification(mapOf()) + .withOrchestratorType(OrchestratorType.TO)) + .apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateOrUpdateSamples.java index bc2012a9ed812..9a8a15d69cc17 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateOrUpdateSamples.java @@ -15,22 +15,22 @@ */ public final class SolutionTemplatesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_CreateOrUpdate_MaximumSet. + * Sample code: SolutionTemplates_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesCreateOrUpdateMaximumSet( + public static void solutionTemplatesCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates() .define("testname") - .withRegion("zheaaqvadewftnctxzpinrgeproqs") + .withRegion("jrsskqyliezys") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key5091", "fakeTokenPlaceholder")) - .withProperties(new SolutionTemplateProperties().withDescription("psrftehgzngcdlccivhjmwsmiz") - .withCapabilities(Arrays.asList("dfoyxbbknrhvlunhmuyyt")) + .withTags(mapOf()) + .withProperties(new SolutionTemplateProperties().withDescription("baglpvguwonbgw") + .withCapabilities(Arrays.asList("xhycgngfkknnrm")) .withState(ResourceState.ACTIVE) .withEnableExternalValidation(true)) .create(); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateVersionSamples.java index 730373a39b705..66f5834f41718 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateVersionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateVersionSamples.java @@ -4,11 +4,13 @@ package com.azure.resourcemanager.workloadorchestration.generated; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionWithUpdateTypeInner; import com.azure.resourcemanager.workloadorchestration.models.OrchestratorType; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; import com.azure.resourcemanager.workloadorchestration.models.UpdateType; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; @@ -17,21 +19,22 @@ */ public final class SolutionTemplatesCreateVersionSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_CreateVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_CreateVersion_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_CreateVersion_MaximumSet. + * Sample code: SolutionTemplates_CreateVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesCreateVersionMaximumSet( + public static void solutionTemplatesCreateVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates() .createVersion("rgconfigurationmanager", "testname", new SolutionTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) .withVersion("1.0.0") - .withSolutionTemplateVersion(new SolutionTemplateVersionInner().withProperties( - new SolutionTemplateVersionProperties().withConfigurations("ofqcsavwmeuwmvtjnqpoybtjvkmrlh") + .withSolutionTemplateVersion( + new SolutionTemplateVersionInner().withProperties(new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("zprhmcyzk".getBytes(StandardCharsets.UTF_8))) .withSpecification(mapOf()) .withOrchestratorType(OrchestratorType.TO))), com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesDeleteSamples.java index 379649b4aea8f..242f2d71597c0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class SolutionTemplatesDeleteSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_Delete_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_Delete_MaximumSet. + * Sample code: SolutionTemplates_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesDeleteMaximumSet( + public static void solutionTemplatesDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates().delete("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesGetByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesGetByResourceGroupSamples.java index 819403d3b4ee3..0c7537e30e0b6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesGetByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesGetByResourceGroupSamples.java @@ -9,14 +9,14 @@ */ public final class SolutionTemplatesGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_Get_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_Get_MaximumSet. + * Sample code: SolutionTemplates_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesGetMaximumSet( + public static void solutionTemplatesGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListByResourceGroupSamples.java index c5e72520380c6..d8d5e3f53a6f0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListByResourceGroupSamples.java @@ -9,14 +9,27 @@ */ public final class SolutionTemplatesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_ListByResourceGroup_MinimumSet_Gen.json */ /** - * Sample code: SolutionTemplates_ListByResourceGroup_MaximumSet. + * Sample code: SolutionTemplates_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesListByResourceGroupMaximumSet( + public static void solutionTemplatesListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionTemplates().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: SolutionTemplates_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplatesListByResourceGroupMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListSamples.java index cd43bdc4064bf..eed094018cd0a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListSamples.java @@ -9,14 +9,27 @@ */ public final class SolutionTemplatesListSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_ListBySubscription_MaximumSet. + * Sample code: SolutionTemplates_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesListBySubscriptionMaximumSet( + public static void solutionTemplatesListBySubscriptionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.solutionTemplates().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: SolutionTemplates_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void solutionTemplatesListBySubscriptionMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates().list(com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesRemoveVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesRemoveVersionSamples.java index e9d7cf10bc690..f4f72ae5bdea8 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesRemoveVersionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesRemoveVersionSamples.java @@ -11,17 +11,17 @@ */ public final class SolutionTemplatesRemoveVersionSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_RemoveVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_RemoveVersion_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_RemoveVersion_MaximumSet. + * Sample code: SolutionTemplates_RemoveVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesRemoveVersionMaximumSet( + public static void solutionTemplatesRemoveVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionTemplates() - .removeVersion("rgconfigurationmanager", "testname", - new VersionParameter().withVersion("ghtvdzgmzncaifrnuumg"), com.azure.core.util.Context.NONE); + .removeVersion("rgconfigurationmanager", "testname", new VersionParameter().withVersion("nipqereqmxeiv"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesUpdateSamples.java index d0412c668b8c7..1c94b274d32f5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesUpdateSamples.java @@ -16,22 +16,22 @@ */ public final class SolutionTemplatesUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SolutionTemplates_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionTemplates_Update_MaximumSet_Gen.json */ /** - * Sample code: SolutionTemplates_Update_MaximumSet. + * Sample code: SolutionTemplates_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionTemplatesUpdateMaximumSet( + public static void solutionTemplatesUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { SolutionTemplate resource = manager.solutionTemplates() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("key8772", "fakeTokenPlaceholder")) - .withProperties(new SolutionTemplateUpdateProperties().withDescription("onqlteg") - .withCapabilities(Arrays.asList("relsv")) + .withTags(mapOf()) + .withProperties(new SolutionTemplateUpdateProperties().withDescription("jbsuwcclfsxtzglvk") + .withCapabilities(Arrays.asList("wjgogxhkayhrcn")) .withState(ResourceState.ACTIVE) .withEnableExternalValidation(true)) .apply(); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsCreateOrUpdateSamples.java index aa6210d50286a..57a6997c1114a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsCreateOrUpdateSamples.java @@ -15,21 +15,21 @@ */ public final class SolutionVersionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SolutionVersions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionVersions_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: SolutionVersions_CreateOrUpdate_MaximumSet. + * Sample code: SolutionVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionVersionsCreateOrUpdateMaximumSet( + public static void solutionVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionVersions() .define("testname") .withExistingSolution("rgconfigurationmanager", "testname", "testname") .withProperties(new SolutionVersionProperties().withSpecification(mapOf())) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsDeleteSamples.java index a97828d0a3312..6fdf2b4070615 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class SolutionVersionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/SolutionVersions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionVersions_Delete_MaximumSet_Gen.json */ /** - * Sample code: SolutionVersions_Delete_MaximumSet. + * Sample code: SolutionVersions_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionVersionsDeleteMaximumSet( + public static void solutionVersionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionVersions() .delete("rgconfigurationmanager", "testname", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsGetSamples.java index e8f4aac23f26e..f4de42e13f859 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsGetSamples.java @@ -9,14 +9,14 @@ */ public final class SolutionVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/SolutionVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: SolutionVersions_Get_MaximumSet. + * Sample code: SolutionVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionVersionsGetMaximumSet( + public static void solutionVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionVersions() .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsListBySolutionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsListBySolutionSamples.java index 45251257e7ba9..870a220b1b05c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsListBySolutionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsListBySolutionSamples.java @@ -9,14 +9,14 @@ */ public final class SolutionVersionsListBySolutionSamples { /* - * x-ms-original-file: 2025-06-01/SolutionVersions_ListBySolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionVersions_ListBySolution_MaximumSet_Gen.json */ /** - * Sample code: SolutionVersions_ListBySolution_MaximumSet. + * Sample code: SolutionVersions_ListBySolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionVersionsListBySolutionMaximumSet( + public static void solutionVersionsListBySolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutionVersions() .listBySolution("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsUpdateSamples.java index 9949f8d2a6331..8a81734d1313d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionsUpdateSamples.java @@ -14,14 +14,14 @@ */ public final class SolutionVersionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/SolutionVersions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/SolutionVersions_Update_MaximumSet_Gen.json */ /** - * Sample code: SolutionVersions_Update_MaximumSet. + * Sample code: SolutionVersions_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionVersionsUpdateMaximumSet( + public static void solutionVersionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { SolutionVersion resource = manager.solutionVersions() .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsCreateOrUpdateSamples.java index 08314fbad5fc3..03d773e7a73bc 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsCreateOrUpdateSamples.java @@ -13,21 +13,21 @@ */ public final class SolutionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Solutions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Solutions_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Solutions_CreateOrUpdate_MaximumSet. + * Sample code: Solutions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionsCreateOrUpdateMaximumSet( + public static void solutionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutions() .define("testname") .withExistingTarget("rgconfigurationmanager", "testname") .withProperties(new SolutionProperties()) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsDeleteSamples.java index d1d741b37ad31..2d6da0810fd75 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class SolutionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Solutions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Solutions_Delete_MaximumSet_Gen.json */ /** - * Sample code: Solutions_Delete_MaximumSet. + * Sample code: Solutions_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionsDeleteMaximumSet( + public static void solutionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutions().delete("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsGetSamples.java index b9dcfad610efa..8b761dcec62ff 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsGetSamples.java @@ -9,15 +9,15 @@ */ public final class SolutionsGetSamples { /* - * x-ms-original-file: 2025-06-01/Solutions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Solutions_Get_MaximumSet_Gen.json */ /** - * Sample code: Solutions_Get_MaximumSet. + * Sample code: Solutions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - solutionsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void solutionsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutions() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsListByTargetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsListByTargetSamples.java index 5e1c0e3bc7870..e5ba82a8fbcee 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsListByTargetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsListByTargetSamples.java @@ -9,14 +9,14 @@ */ public final class SolutionsListByTargetSamples { /* - * x-ms-original-file: 2025-06-01/Solutions_ListByTarget_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Solutions_ListByTarget_MaximumSet_Gen.json */ /** - * Sample code: Solutions_ListByTarget_MaximumSet. + * Sample code: Solutions_ListByTarget_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionsListByTargetMaximumSet( + public static void solutionsListByTargetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.solutions().listByTarget("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsUpdateSamples.java index ed0fef21d57db..6c98ef3622842 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsUpdateSamples.java @@ -12,14 +12,14 @@ */ public final class SolutionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Solutions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Solutions_Update_MaximumSet_Gen.json */ /** - * Sample code: Solutions_Update_MaximumSet. + * Sample code: Solutions_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void solutionsUpdateMaximumSet( + public static void solutionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Solution resource = manager.solutions() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE) diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsCreateOrUpdateSamples.java index 7562bfe152bff..441493fe8b7e3 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsCreateOrUpdateSamples.java @@ -17,31 +17,31 @@ */ public final class TargetsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Targets_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Targets_CreateOrUpdate_MaximumSet. + * Sample code: Targets_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsCreateOrUpdateMaximumSet( + public static void targetsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .define("testname") - .withRegion("kckloegmwsjgwtcl") + .withRegion("yimw") .withExistingResourceGroup("rgconfigurationmanager") - .withTags(mapOf("key612", "fakeTokenPlaceholder")) - .withProperties(new TargetProperties().withDescription("riabrxtvhlmizyhffdpjeyhvw") - .withDisplayName("qjlbshhqzfmwxvvynibkoi") + .withTags(mapOf()) + .withProperties(new TargetProperties().withDescription("tprpzngmtoweelhwwilawu") + .withDisplayName("uqslbtoqsdhxuzhjyxxhh") .withContextId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/contexts/testContext") .withTargetSpecification(mapOf()) - .withCapabilities(Arrays.asList("grjapghdidoao")) - .withHierarchyLevel("octqptfirejhjfavlnfqeiikqx") + .withCapabilities(Arrays.asList("jo")) + .withHierarchyLevel("gfeixwakwerayliymdejq") .withSolutionScope("testname") .withState(ResourceState.ACTIVE)) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsDeleteSamples.java index 659161fd502a1..5b658ce2e5020 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsDeleteSamples.java @@ -9,15 +9,15 @@ */ public final class TargetsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Targets_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_Delete_MaximumSet_Gen.json */ /** - * Sample code: Targets_Delete_MaximumSet. + * Sample code: Targets_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - targetsDeleteMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void targetsDeleteMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets().delete("rgconfigurationmanager", "testname", true, com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsGetByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsGetByResourceGroupSamples.java index c6764b24972ca..a0fdbd798c207 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsGetByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsGetByResourceGroupSamples.java @@ -9,15 +9,15 @@ */ public final class TargetsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Targets_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_Get_MaximumSet_Gen.json */ /** - * Sample code: Targets_Get_MaximumSet. + * Sample code: Targets_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - targetsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void targetsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsInstallSolutionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsInstallSolutionSamples.java index 03f4656f9eedf..666829bc068df 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsInstallSolutionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsInstallSolutionSamples.java @@ -11,18 +11,18 @@ */ public final class TargetsInstallSolutionSamples { /* - * x-ms-original-file: 2025-06-01/Targets_InstallSolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_InstallSolution_MaximumSet_Gen.json */ /** - * Sample code: Targets_InstallSolution_MaximumSet. + * Sample code: Targets_InstallSolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsInstallSolutionMaximumSet( + public static void targetsInstallSolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .installSolution("rgconfigurationmanager", "testname", new InstallSolutionParameter().withSolutionVersionId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListByResourceGroupSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListByResourceGroupSamples.java index f1c5d229ee86d..b9b6ba8459c78 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListByResourceGroupSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListByResourceGroupSamples.java @@ -9,14 +9,27 @@ */ public final class TargetsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01/Targets_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: Targets_ListByResourceGroup_MaximumSet. + * Sample code: Targets_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsListByResourceGroupMaximumSet( + public static void targetsListByResourceGroupMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.targets().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Targets_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: Targets_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void targetsListByResourceGroupMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets().listByResourceGroup("rgconfigurationmanager", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListSamples.java index 92b00ed7e0a5a..f2947027b55b3 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListSamples.java @@ -9,14 +9,27 @@ */ public final class TargetsListSamples { /* - * x-ms-original-file: 2025-06-01/Targets_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: Targets_ListBySubscription_MaximumSet. + * Sample code: Targets_ListBySubscription_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsListBySubscriptionMaximumSet( + public static void targetsListBySubscriptionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.targets().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01-preview/Targets_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: Targets_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void targetsListBySubscriptionMaximumSetGeneratedByMinimumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets().list(com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsPublishSolutionVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsPublishSolutionVersionSamples.java index 6d21604ac72a8..fdc4924b8d4f1 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsPublishSolutionVersionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsPublishSolutionVersionSamples.java @@ -11,19 +11,19 @@ */ public final class TargetsPublishSolutionVersionSamples { /* - * x-ms-original-file: 2025-06-01/Targets_PublishSolutionVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_PublishSolutionVersion_MaximumSet_Gen.json */ /** - * Sample code: Targets_PublishSolutionVersion_MaximumSet. + * Sample code: Targets_PublishSolutionVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsPublishSolutionVersionMaximumSet( + public static void targetsPublishSolutionVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .publishSolutionVersion("rgconfigurationmanager", "testname", new SolutionVersionParameter().withSolutionVersionId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsRemoveRevisionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsRemoveRevisionSamples.java index 41b977116af62..14852a8173f4b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsRemoveRevisionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsRemoveRevisionSamples.java @@ -11,18 +11,18 @@ */ public final class TargetsRemoveRevisionSamples { /* - * x-ms-original-file: 2025-06-01/Targets_RemoveRevision_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_RemoveRevision_MaximumSet_Gen.json */ /** - * Sample code: Targets_RemoveRevision_MaximumSet. + * Sample code: Targets_RemoveRevision_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsRemoveRevisionMaximumSet( + public static void targetsRemoveRevisionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .removeRevision("rgconfigurationmanager", "testname", new RemoveRevisionParameter().withSolutionTemplateId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") - .withSolutionVersion("tomwmqybqomwkfaeukjneva"), com.azure.core.util.Context.NONE); + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionVersion("f"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsResolveConfigurationSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsResolveConfigurationSamples.java index 0dbc4b4e77d8c..130a5806549ac 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsResolveConfigurationSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsResolveConfigurationSamples.java @@ -13,27 +13,28 @@ */ public final class TargetsResolveConfigurationSamples { /* - * x-ms-original-file: 2025-06-01/Targets_ResolveConfiguration_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_ResolveConfiguration_MaximumSet_Gen.json */ /** - * Sample code: Targets_ResolveConfiguration_MaximumSet. + * Sample code: Targets_ResolveConfiguration_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsResolveConfigurationMaximumSet( + public static void targetsResolveConfigurationMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() - .resolveConfiguration("rgconfigurationmanager", "testname", - new SolutionTemplateParameter().withSolutionTemplateVersionId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/{resourceType}/{resourceName}") + .resolveConfiguration("rgconfigurationmanager", "testname", new SolutionTemplateParameter() + .withSolutionTemplateVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st/versions/1.0.0") + .withSolutionInstanceName("testname") + .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter() + .withSolutionVersionId("bqeggxlmrbyitmhbfcsumackq") + .withSolutionTemplateId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionTemplateVersion("bwji") .withSolutionInstanceName("testname") - .withSolutionDependencies( - Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId("cydzqntmjlqtksbavjwteru") - .withSolutionTemplateId("liqauthxnscodbiwktwfwrrsg") - .withSolutionTemplateVersion("gordjasyxxrj") - .withSolutionInstanceName("testname") - .withTargetId("steadvphxtyhjokqicrtg") - .withDependencies(Arrays.asList()))), + .withTargetId("vpzvkhtgzwtrnbktyvsltfcel") + .withDependencies(Arrays.asList()))), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsReviewSolutionVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsReviewSolutionVersionSamples.java index bf9c82c057190..6802b5268fbd6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsReviewSolutionVersionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsReviewSolutionVersionSamples.java @@ -13,27 +13,28 @@ */ public final class TargetsReviewSolutionVersionSamples { /* - * x-ms-original-file: 2025-06-01/Targets_ReviewSolutionVersion_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_ReviewSolutionVersion_MaximumSet_Gen.json */ /** - * Sample code: Targets_ReviewSolutionVersion_MaximumSet. + * Sample code: Targets_ReviewSolutionVersion_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsReviewSolutionVersionMaximumSet( + public static void targetsReviewSolutionVersionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() - .reviewSolutionVersion("rgconfigurationmanager", "testname", - new SolutionTemplateParameter().withSolutionTemplateVersionId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/{resourceType}/{resourceName}") + .reviewSolutionVersion("rgconfigurationmanager", "testname", new SolutionTemplateParameter() + .withSolutionTemplateVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st/versions/1.0.0") + .withSolutionInstanceName("testname") + .withSolutionDependencies(Arrays.asList(new SolutionDependencyParameter() + .withSolutionVersionId("bqeggxlmrbyitmhbfcsumackq") + .withSolutionTemplateId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionTemplateVersion("bwji") .withSolutionInstanceName("testname") - .withSolutionDependencies( - Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId("cydzqntmjlqtksbavjwteru") - .withSolutionTemplateId("liqauthxnscodbiwktwfwrrsg") - .withSolutionTemplateVersion("gordjasyxxrj") - .withSolutionInstanceName("testname") - .withTargetId("steadvphxtyhjokqicrtg") - .withDependencies(Arrays.asList()))), + .withTargetId("vpzvkhtgzwtrnbktyvsltfcel") + .withDependencies(Arrays.asList()))), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUninstallSolutionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUninstallSolutionSamples.java index 47f3b1665b700..49be56a74f20c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUninstallSolutionSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUninstallSolutionSamples.java @@ -11,20 +11,20 @@ */ public final class TargetsUninstallSolutionSamples { /* - * x-ms-original-file: 2025-06-01/Targets_UninstallSolution_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_UninstallSolution_MaximumSet_Gen.json */ /** - * Sample code: Targets_UninstallSolution_MaximumSet. + * Sample code: Targets_UninstallSolution_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsUninstallSolutionMaximumSet( + public static void targetsUninstallSolutionMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .uninstallSolution("rgconfigurationmanager", "testname", new UninstallSolutionParameter().withSolutionTemplateId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") - .withSolutionInstanceName("lzihiumrcxbolmkqktvtuqyhg"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/SolutionTemplates/st") + .withSolutionInstanceName("yedwbsm"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUnstageSolutionVersionSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUnstageSolutionVersionSamples.java new file mode 100644 index 0000000000000..2fce279908233 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUnstageSolutionVersionSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.resourcemanager.workloadorchestration.models.SolutionVersionParameter; + +/** + * Samples for Targets UnstageSolutionVersion. + */ +public final class TargetsUnstageSolutionVersionSamples { + /* + * x-ms-original-file: 2026-05-01-preview/Targets_UnstageSolutionVersion_MaximumSet_Gen.json + */ + /** + * Sample code: Targets_UnstageSolutionVersion_MaximumSet - generated by [MaximumSet] rule. + * + * @param manager Entry point to WorkloadOrchestrationManager. + */ + public static void targetsUnstageSolutionVersionMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + manager.targets() + .unstageSolutionVersion("rgconfigurationmanager", "testname", + new SolutionVersionParameter().withSolutionVersionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Edge/Targets/target/Solutions/solution/Versions/solution-1.0.0.1"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUpdateExternalValidationStatusSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUpdateExternalValidationStatusSamples.java index e7031f36cff08..a23aa085f0a7b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUpdateExternalValidationStatusSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUpdateExternalValidationStatusSamples.java @@ -13,20 +13,20 @@ */ public final class TargetsUpdateExternalValidationStatusSamples { /* - * x-ms-original-file: 2025-06-01/Targets_UpdateExternalValidationStatus_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_UpdateExternalValidationStatus_MaximumSet_Gen.json */ /** - * Sample code: Targets_UpdateExternalValidationStatus_MaximumSet. + * Sample code: Targets_UpdateExternalValidationStatus_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void targetsUpdateExternalValidationStatusMaximumSet( + public static void targetsUpdateExternalValidationStatusMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.targets() .updateExternalValidationStatus("rgconfigurationmanager", "testname", - new UpdateExternalValidationStatusParameter().withSolutionVersionId("shntcsuwlmpehmuqkrbf") + new UpdateExternalValidationStatusParameter().withSolutionVersionId("foxslnpcddxwvbatisyxhbsusmnqk") .withErrorDetails(new ManagementError()) - .withExternalValidationId("ivsjzwy") + .withExternalValidationId("cds") .withValidationStatus(ValidationStatus.VALID), com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUpdateSamples.java index 3dbf430f047b3..10c7f2271b9d1 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsUpdateSamples.java @@ -16,27 +16,27 @@ */ public final class TargetsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Targets_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Targets_Update_MaximumSet_Gen.json */ /** - * Sample code: Targets_Update_MaximumSet. + * Sample code: Targets_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - targetsUpdateMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void targetsUpdateMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Target resource = manager.targets() .getByResourceGroupWithResponse("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("key8026", "fakeTokenPlaceholder")) - .withProperties(new TargetUpdateProperties().withDescription("yhnhdpznncdvncmnvoeohqjx") - .withDisplayName("pguujtzjjvixgjitugybrefp") + .withTags(mapOf()) + .withProperties(new TargetUpdateProperties().withDescription("gvtsccujzvogbzzccu") + .withDisplayName("zkcgsktvpwlsxtnuowajfmu") .withContextId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/contexts/testContext") .withTargetSpecification(mapOf()) - .withCapabilities(Arrays.asList("dasqhyxfakivfzqb")) - .withHierarchyLevel("hfyntwxetgsmnucbjvvphtyxu") + .withCapabilities(Arrays.asList("nbizsvnhtvhposoccvfwaf")) + .withHierarchyLevel("zwsfzqtsyswpbbakmorrzepb") .withSolutionScope("testname") .withState(ResourceState.ACTIVE)) .apply(); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsCreateOrUpdateSamples.java index 68ae9fcd00bf4..5c436a1911a42 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsCreateOrUpdateSamples.java @@ -21,32 +21,32 @@ */ public final class WorkflowVersionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/WorkflowVersions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/WorkflowVersions_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: WorkflowVersions_CreateOrUpdate_MaximumSet. + * Sample code: WorkflowVersions_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowVersionsCreateOrUpdateMaximumSet( + public static void workflowVersionsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflowVersions() - .define("testname") + .define("abcde") .withExistingWorkflow("rgconfigurationmanager", "testname", "testname") .withProperties(new WorkflowVersionProperties().withStageSpec(Arrays.asList(new StageSpec() - .withName("amrbjd") + .withName("jgldxxbuucvqlpstdbbql") .withSpecification(mapOf()) - .withTasks(Arrays.asList(new TaskSpec().withName("xxmeyvmgydbcwxqwjhadjxjod") + .withTasks(Arrays.asList(new TaskSpec().withName("hozvidsilycopddjfuebjglcourar") .withTargetId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget") .withSpecification(mapOf()))) .withTaskOption( - new TaskOption().withConcurrency(3) + new TaskOption().withConcurrency(2) .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE) .withMaxToleratedFailures(0))))) .withSpecification(mapOf())) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsDeleteSamples.java index 17aa0a1a4a2e0..5887388c0c7c7 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsDeleteSamples.java @@ -9,16 +9,16 @@ */ public final class WorkflowVersionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/WorkflowVersions_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/WorkflowVersions_Delete_MaximumSet_Gen.json */ /** - * Sample code: WorkflowVersions_Delete_MaximumSet. + * Sample code: WorkflowVersions_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowVersionsDeleteMaximumSet( + public static void workflowVersionsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflowVersions() - .delete("rgconfigurationmanager", "testname", "testname", "testname", com.azure.core.util.Context.NONE); + .delete("rgconfigurationmanager", "testname", "testname", "abcde", com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsGetSamples.java index b324091f8bd50..cd62c20bb7f1c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsGetSamples.java @@ -9,17 +9,17 @@ */ public final class WorkflowVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01/WorkflowVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/WorkflowVersions_Get_MaximumSet_Gen.json */ /** - * Sample code: WorkflowVersions_Get_MaximumSet. + * Sample code: WorkflowVersions_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowVersionsGetMaximumSet( + public static void workflowVersionsGetMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflowVersions() - .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", + .getWithResponse("rgconfigurationmanager", "testname", "testname", "abcde", com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsListByWorkflowSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsListByWorkflowSamples.java index d4f79594740e9..1e54b7762e129 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsListByWorkflowSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsListByWorkflowSamples.java @@ -9,14 +9,14 @@ */ public final class WorkflowVersionsListByWorkflowSamples { /* - * x-ms-original-file: 2025-06-01/WorkflowVersions_ListByWorkflow_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/WorkflowVersions_ListByWorkflow_MaximumSet_Gen.json */ /** - * Sample code: WorkflowVersions_ListByWorkflow_MaximumSet. + * Sample code: WorkflowVersions_ListByWorkflow_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowVersionsListByWorkflowMaximumSet( + public static void workflowVersionsListByWorkflowMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflowVersions() .listByWorkflow("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsUpdateSamples.java index f6e9b3ce50c58..8fb03535d068a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsUpdateSamples.java @@ -20,29 +20,29 @@ */ public final class WorkflowVersionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/WorkflowVersions_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/WorkflowVersions_Update_MaximumSet_Gen.json */ /** - * Sample code: WorkflowVersions_Update_MaximumSet. + * Sample code: WorkflowVersions_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowVersionsUpdateMaximumSet( + public static void workflowVersionsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { WorkflowVersion resource = manager.workflowVersions() - .getWithResponse("rgconfigurationmanager", "testname", "testname", "testname", + .getWithResponse("rgconfigurationmanager", "testname", "testname", "abcde", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withProperties(new WorkflowVersionProperties().withStageSpec(Arrays.asList(new StageSpec() - .withName("amrbjd") + .withName("jgldxxbuucvqlpstdbbql") .withSpecification(mapOf()) - .withTasks(Arrays.asList(new TaskSpec().withName("xxmeyvmgydbcwxqwjhadjxjod") + .withTasks(Arrays.asList(new TaskSpec().withName("hozvidsilycopddjfuebjglcourar") .withTargetId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") + "/subscriptions/612CB927-8AC8-42DD-B74E-C676C3960BA5/resourceGroups/rgconfigurationmanager/providers/Microsoft.Edge/targets/testTarget") .withSpecification(mapOf()))) .withTaskOption( - new TaskOption().withConcurrency(3) + new TaskOption().withConcurrency(2) .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE) .withMaxToleratedFailures(0))))) .withSpecification(mapOf())) diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsCreateOrUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsCreateOrUpdateSamples.java index b4ee64fcdbe5f..51396e7ba455d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsCreateOrUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsCreateOrUpdateSamples.java @@ -13,21 +13,21 @@ */ public final class WorkflowsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Workflows_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Workflows_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Workflows_CreateOrUpdate_MaximumSet. + * Sample code: Workflows_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowsCreateOrUpdateMaximumSet( + public static void workflowsCreateOrUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflows() .define("testname") .withExistingContext("rgconfigurationmanager", "testname") .withProperties(new WorkflowProperties()) .withExtendedLocation( - new ExtendedLocation().withName("szjrwimeqyiue").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("ggfwkwklvvkrmlysvvhcj").withType(ExtendedLocationType.EDGE_ZONE)) .create(); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsDeleteSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsDeleteSamples.java index 582afaf54ccc9..784d2cc75d85a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsDeleteSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class WorkflowsDeleteSamples { /* - * x-ms-original-file: 2025-06-01/Workflows_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Workflows_Delete_MaximumSet_Gen.json */ /** - * Sample code: Workflows_Delete_MaximumSet. + * Sample code: Workflows_Delete_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowsDeleteMaximumSet( + public static void workflowsDeleteMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflows().delete("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsGetSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsGetSamples.java index 156401bdb548d..5fd9f32e5699a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsGetSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsGetSamples.java @@ -9,15 +9,15 @@ */ public final class WorkflowsGetSamples { /* - * x-ms-original-file: 2025-06-01/Workflows_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Workflows_Get_MaximumSet_Gen.json */ /** - * Sample code: Workflows_Get_MaximumSet. + * Sample code: Workflows_Get_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void - workflowsGetMaximumSet(com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { + public static void workflowsGetMaximumSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflows() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsListByContextSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsListByContextSamples.java index 3f42fc7aeb69a..741a2d4dc89f1 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsListByContextSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsListByContextSamples.java @@ -9,14 +9,14 @@ */ public final class WorkflowsListByContextSamples { /* - * x-ms-original-file: 2025-06-01/Workflows_ListByContext_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Workflows_ListByContext_MaximumSet_Gen.json */ /** - * Sample code: Workflows_ListByContext_MaximumSet. + * Sample code: Workflows_ListByContext_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowsListByContextMaximumSet( + public static void workflowsListByContextMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { manager.workflows().listByContext("rgconfigurationmanager", "testname", com.azure.core.util.Context.NONE); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsUpdateSamples.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsUpdateSamples.java index 432e8df1ba8d6..3d27f30950791 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsUpdateSamples.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/samples/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsUpdateSamples.java @@ -12,14 +12,14 @@ */ public final class WorkflowsUpdateSamples { /* - * x-ms-original-file: 2025-06-01/Workflows_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-05-01-preview/Workflows_Update_MaximumSet_Gen.json */ /** - * Sample code: Workflows_Update_MaximumSet. + * Sample code: Workflows_Update_MaximumSet - generated by [MaximumSet] rule. * * @param manager Entry point to WorkloadOrchestrationManager. */ - public static void workflowsUpdateMaximumSet( + public static void workflowsUpdateMaximumSetGeneratedByMaximumSetRule( com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager manager) { Workflow resource = manager.workflows() .getWithResponse("rgconfigurationmanager", "testname", "testname", com.azure.core.util.Context.NONE) diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/AdditionalDataTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/AdditionalDataTests.java new file mode 100644 index 0000000000000..dfbe04b0239fd --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/AdditionalDataTests.java @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.AdditionalData; +import org.junit.jupiter.api.Assertions; + +public final class AdditionalDataTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + AdditionalData model + = BinaryData.fromString("{\"workflowId\":\"sdtclusiypbs\"}").toObject(AdditionalData.class); + Assertions.assertEquals("sdtclusiypbs", model.workflowId()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/AvailableSolutionTemplateVersionTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/AvailableSolutionTemplateVersionTests.java index f828ad1733a19..d5ec61b85c744 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/AvailableSolutionTemplateVersionTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/AvailableSolutionTemplateVersionTests.java @@ -11,11 +11,11 @@ public final class AvailableSolutionTemplateVersionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AvailableSolutionTemplateVersion model = BinaryData.fromString( - "{\"solutionTemplateVersion\":\"ifrvtpu\",\"latestConfigRevision\":\"ujmqlgkfbtndoa\",\"isConfigured\":false}") + AvailableSolutionTemplateVersion model = BinaryData + .fromString("{\"solutionTemplateVersion\":\"a\",\"latestConfigRevision\":\"wgck\",\"isConfigured\":true}") .toObject(AvailableSolutionTemplateVersion.class); - Assertions.assertEquals("ifrvtpu", model.solutionTemplateVersion()); - Assertions.assertEquals("ujmqlgkfbtndoa", model.latestConfigRevision()); - Assertions.assertFalse(model.isConfigured()); + Assertions.assertEquals("a", model.solutionTemplateVersion()); + Assertions.assertEquals("wgck", model.latestConfigRevision()); + Assertions.assertTrue(model.isConfigured()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkDeploySolutionParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkDeploySolutionParameterTests.java index 1d2e602c3400d..f2d59282bfaf7 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkDeploySolutionParameterTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkDeploySolutionParameterTests.java @@ -13,16 +13,16 @@ public final class BulkDeploySolutionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BulkDeploySolutionParameter model = BinaryData.fromString("{\"targets\":[{\"solutionVersionId\":\"q\"}]}") + BulkDeploySolutionParameter model = BinaryData.fromString("{\"targets\":[{\"solutionVersionId\":\"ijpxtx\"}]}") .toObject(BulkDeploySolutionParameter.class); - Assertions.assertEquals("q", model.targets().get(0).solutionVersionId()); + Assertions.assertEquals("ijpxtx", model.targets().get(0).solutionVersionId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { BulkDeploySolutionParameter model = new BulkDeploySolutionParameter() - .withTargets(Arrays.asList(new BulkDeployTargetDetails().withSolutionVersionId("q"))); + .withTargets(Arrays.asList(new BulkDeployTargetDetails().withSolutionVersionId("ijpxtx"))); model = BinaryData.fromObject(model).toObject(BulkDeploySolutionParameter.class); - Assertions.assertEquals("q", model.targets().get(0).solutionVersionId()); + Assertions.assertEquals("ijpxtx", model.targets().get(0).solutionVersionId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkDeployTargetDetailsTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkDeployTargetDetailsTests.java index 8e3f2545d986c..63b16089e80f7 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkDeployTargetDetailsTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkDeployTargetDetailsTests.java @@ -12,14 +12,14 @@ public final class BulkDeployTargetDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BulkDeployTargetDetails model - = BinaryData.fromString("{\"solutionVersionId\":\"hkr\"}").toObject(BulkDeployTargetDetails.class); - Assertions.assertEquals("hkr", model.solutionVersionId()); + = BinaryData.fromString("{\"solutionVersionId\":\"uwprtujwsawd\"}").toObject(BulkDeployTargetDetails.class); + Assertions.assertEquals("uwprtujwsawd", model.solutionVersionId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BulkDeployTargetDetails model = new BulkDeployTargetDetails().withSolutionVersionId("hkr"); + BulkDeployTargetDetails model = new BulkDeployTargetDetails().withSolutionVersionId("uwprtujwsawd"); model = BinaryData.fromObject(model).toObject(BulkDeployTargetDetails.class); - Assertions.assertEquals("hkr", model.solutionVersionId()); + Assertions.assertEquals("uwprtujwsawd", model.solutionVersionId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkPublishSolutionParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkPublishSolutionParameterTests.java index 6ffbf0fc90636..5cbb13eb84f1b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkPublishSolutionParameterTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkPublishSolutionParameterTests.java @@ -15,113 +15,263 @@ public final class BulkPublishSolutionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BulkPublishSolutionParameter model = BinaryData.fromString( - "{\"targets\":[{\"targetId\":\"bdeibqipqk\",\"solutionInstanceName\":\"vxndz\"},{\"targetId\":\"mkrefajpjorwkq\",\"solutionInstanceName\":\"hgbijt\"}],\"solutionInstanceName\":\"vfxzsjab\",\"solutionDependencies\":[{\"solutionVersionId\":\"stawfsdjpvkv\",\"solutionTemplateId\":\"jxbkzbzkdvn\",\"solutionTemplateVersion\":\"abudurgk\",\"solutionInstanceName\":\"mokzhjjklf\",\"targetId\":\"mouwqlgzrfzeey\",\"dependencies\":[{\"solutionVersionId\":\"ikayuhqlbjbsybb\",\"solutionTemplateId\":\"r\",\"solutionTemplateVersion\":\"ldgmfpgvmpip\",\"solutionInstanceName\":\"ltha\",\"targetId\":\"x\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"u\",\"solutionTemplateId\":\"bdsrez\",\"solutionTemplateVersion\":\"rhneuyowq\",\"solutionInstanceName\":\"wyt\",\"targetId\":\"ib\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"pikpz\",\"solutionTemplateId\":\"ejzanlfz\",\"solutionTemplateVersion\":\"av\",\"solutionInstanceName\":\"bzonok\",\"targetId\":\"rjqc\",\"dependencies\":[{},{}]}]},{\"solutionVersionId\":\"pfrlazsz\",\"solutionTemplateId\":\"woiindf\",\"solutionTemplateVersion\":\"pj\",\"solutionInstanceName\":\"wbtlhflsjcdh\",\"targetId\":\"fjvfbgofeljagr\",\"dependencies\":[{\"solutionVersionId\":\"ldvriiiojnalghfk\",\"solutionTemplateId\":\"vsexsowuelu\",\"solutionTemplateVersion\":\"hahhxvrhmzkwpj\",\"solutionInstanceName\":\"wspughftqsxhqx\",\"targetId\":\"xukndxdigr\",\"dependencies\":[{},{},{},{}]}]},{\"solutionVersionId\":\"fzdm\",\"solutionTemplateId\":\"qtfihwhbotzinga\",\"solutionTemplateVersion\":\"pph\",\"solutionInstanceName\":\"zqzudph\",\"targetId\":\"mvdk\",\"dependencies\":[{\"solutionVersionId\":\"wcvtbvkayhmtnvyq\",\"solutionTemplateId\":\"tkzwpcnpwzc\",\"solutionTemplateVersion\":\"esgvvsccyaj\",\"solutionInstanceName\":\"qfhwyg\",\"targetId\":\"vdnkfxusem\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"muhapfcqdpsqxqv\",\"solutionTemplateId\":\"vuoy\",\"solutionTemplateVersion\":\"ccelve\",\"solutionInstanceName\":\"ypql\",\"targetId\":\"eokerqwkyhkobopg\",\"dependencies\":[{}]}]}]}") + "{\"targets\":[{\"targetId\":\"ibabxvititvtzeex\",\"solutionDependencies\":[{\"solutionVersionId\":\"tfgle\",\"solutionTemplateId\":\"m\",\"solutionTemplateVersion\":\"bwpypqtgsfjacb\",\"solutionInstanceName\":\"hhxud\",\"targetId\":\"vodhtn\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"dhzmmesckdlp\",\"solutionTemplateId\":\"zrcxfailcfxwmdbo\",\"solutionTemplateVersion\":\"fgsftufqob\",\"solutionInstanceName\":\"lnacgcc\",\"targetId\":\"nhxk\",\"dependencies\":[{}]},{\"solutionVersionId\":\"tnrzvuljra\",\"solutionTemplateId\":\"rano\",\"solutionTemplateVersion\":\"gukkjqnvbroy\",\"solutionInstanceName\":\"xxulcdi\",\"targetId\":\"osfjbjsv\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"hryvy\",\"solutionTemplateId\":\"t\",\"solutionTemplateVersion\":\"lxgccknfnwmbtm\",\"solutionInstanceName\":\"dvjdhttza\",\"targetId\":\"edxihchrphkmcrj\",\"dependencies\":[{},{},{}]}],\"solutionInstanceName\":\"dfzpbgtgkylkdg\",\"solutionVersionId\":\"jeuut\",\"solutionConfiguration\":\"xezw\"},{\"targetId\":\"hokvbwnh\",\"solutionDependencies\":[{\"solutionVersionId\":\"gehgppi\",\"solutionTemplateId\":\"fhpfeoajvgcxtx\",\"solutionTemplateVersion\":\"sheafid\",\"solutionInstanceName\":\"ugsresmkssjhoi\",\"targetId\":\"xfkfwegprhptill\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"qtgdqohmcwsl\",\"solutionTemplateId\":\"izetpw\",\"solutionTemplateVersion\":\"a\",\"solutionInstanceName\":\"libph\",\"targetId\":\"zmizakakan\",\"dependencies\":[{}]}],\"solutionInstanceName\":\"n\",\"solutionVersionId\":\"ha\",\"solutionConfiguration\":\"ylhjlm\"},{\"targetId\":\"oyxprimr\",\"solutionDependencies\":[{\"solutionVersionId\":\"eecjmeis\",\"solutionTemplateId\":\"tvasy\",\"solutionTemplateVersion\":\"xdza\",\"solutionInstanceName\":\"weoohguufuzboyj\",\"targetId\":\"hwtzolb\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"m\",\"solutionTemplateId\":\"mebwjscjpah\",\"solutionTemplateVersion\":\"veabfqxnmwmqtib\",\"solutionInstanceName\":\"ijddtvqc\",\"targetId\":\"adijaeukmrsie\",\"dependencies\":[{},{},{},{}]}],\"solutionInstanceName\":\"dzaapmudqme\",\"solutionVersionId\":\"igpibud\",\"solutionConfiguration\":\"yxeb\"},{\"targetId\":\"ybpmzznrtffyaq\",\"solutionDependencies\":[{\"solutionVersionId\":\"heioqa\",\"solutionTemplateId\":\"v\",\"solutionTemplateVersion\":\"ufuqyrx\",\"solutionInstanceName\":\"lcgqlsismj\",\"targetId\":\"rddga\",\"dependencies\":[{},{},{}]}],\"solutionInstanceName\":\"iosrsjuivfcdis\",\"solutionVersionId\":\"rnxzh\",\"solutionConfiguration\":\"exrxzbujrtrhq\"}],\"solutionInstanceName\":\"revkhgnlnzo\",\"solutionDependencies\":[{\"solutionVersionId\":\"piqywnc\",\"solutionTemplateId\":\"tszcofizehtdhgb\",\"solutionTemplateVersion\":\"vreljea\",\"solutionInstanceName\":\"rvzmlovuana\",\"targetId\":\"cxlpmjerb\",\"dependencies\":[{\"solutionVersionId\":\"vidizozsdb\",\"solutionTemplateId\":\"xjmonf\",\"solutionTemplateVersion\":\"nwncypuuw\",\"solutionInstanceName\":\"tvuqjctzenkeifzz\",\"targetId\":\"kdasvflyhbxcudch\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"boldforobwj\",\"solutionTemplateId\":\"izbfhfovvacq\",\"solutionTemplateVersion\":\"tuodxeszabbelaw\",\"solutionInstanceName\":\"ua\",\"targetId\":\"zkwrrwoyc\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"yhahnomdrkyw\",\"solutionTemplateId\":\"psvfuurutlwexxwl\",\"solutionTemplateVersion\":\"niexzsrzpgepq\",\"solutionInstanceName\":\"bb\",\"targetId\":\"pgdakchzyvli\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"kcxk\",\"solutionTemplateId\":\"bn\",\"solutionTemplateVersion\":\"ysux\",\"solutionInstanceName\":\"qrntv\",\"targetId\":\"ijpstte\",\"dependencies\":[{},{},{}]}]},{\"solutionVersionId\":\"pwcyyufmhr\",\"solutionTemplateId\":\"cuwmqsp\",\"solutionTemplateVersion\":\"dqzh\",\"solutionInstanceName\":\"tddunqnd\",\"targetId\":\"pchrqbn\",\"dependencies\":[{\"solutionVersionId\":\"gegydcwboxjum\",\"solutionTemplateId\":\"qoli\",\"solutionTemplateVersion\":\"raiouaubrjtl\",\"solutionInstanceName\":\"xfuojrn\",\"targetId\":\"flrzpas\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"uimzdlyjd\",\"solutionTemplateId\":\"wmkyoqufdvruzsl\",\"solutionTemplateVersion\":\"j\",\"solutionInstanceName\":\"ctfnmdxotng\",\"targetId\":\"gugey\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"rkyui\",\"solutionTemplateId\":\"bsnmfpph\",\"solutionTemplateVersion\":\"eevy\",\"solutionInstanceName\":\"hsgz\",\"targetId\":\"zbgomfgbeg\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"eohibet\",\"solutionTemplateId\":\"uankrrfxeeeb\",\"solutionTemplateVersion\":\"j\",\"solutionInstanceName\":\"cvbmqzb\",\"targetId\":\"xl\",\"dependencies\":[{},{},{},{}]}]},{\"solutionVersionId\":\"wxacevehj\",\"solutionTemplateId\":\"yxoaf\",\"solutionTemplateVersion\":\"oqltfae\",\"solutionInstanceName\":\"inmfgvxirp\",\"targetId\":\"riypoqeyhlqhyk\",\"dependencies\":[{\"solutionVersionId\":\"yznuciqd\",\"solutionTemplateId\":\"ex\",\"solutionTemplateVersion\":\"tdfuxt\",\"solutionInstanceName\":\"siibmiybnnustgn\",\"targetId\":\"hnmgixhcm\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"foudor\",\"solutionTemplateId\":\"gyyprotwy\",\"solutionTemplateVersion\":\"ndm\",\"solutionInstanceName\":\"hu\",\"targetId\":\"mjkavlgorbmft\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"zfjltfvnzcyjto\",\"solutionTemplateId\":\"vopvp\",\"solutionTemplateVersion\":\"bzqgqqi\",\"solutionInstanceName\":\"dsvqwt\",\"targetId\":\"ky\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"sihsgqcwdhohsd\",\"solutionTemplateId\":\"cdzsu\",\"solutionTemplateVersion\":\"ohdxbzlmcmu\",\"solutionInstanceName\":\"cvhd\",\"targetId\":\"v\",\"dependencies\":[{},{}]}]}],\"solutionConfiguration\":\"ey\"}") .toObject(BulkPublishSolutionParameter.class); - Assertions.assertEquals("bdeibqipqk", model.targets().get(0).targetId()); - Assertions.assertEquals("vxndz", model.targets().get(0).solutionInstanceName()); - Assertions.assertEquals("vfxzsjab", model.solutionInstanceName()); - Assertions.assertEquals("stawfsdjpvkv", model.solutionDependencies().get(0).solutionVersionId()); - Assertions.assertEquals("jxbkzbzkdvn", model.solutionDependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("abudurgk", model.solutionDependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("mokzhjjklf", model.solutionDependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("mouwqlgzrfzeey", model.solutionDependencies().get(0).targetId()); - Assertions.assertEquals("ikayuhqlbjbsybb", + Assertions.assertEquals("ibabxvititvtzeex", model.targets().get(0).targetId()); + Assertions.assertEquals("tfgle", model.targets().get(0).solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("m", model.targets().get(0).solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("bwpypqtgsfjacb", + model.targets().get(0).solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("hhxud", model.targets().get(0).solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("vodhtn", model.targets().get(0).solutionDependencies().get(0).targetId()); + Assertions.assertEquals("dfzpbgtgkylkdg", model.targets().get(0).solutionInstanceName()); + Assertions.assertEquals("jeuut", model.targets().get(0).solutionVersionId()); + Assertions.assertEquals("xezw", model.targets().get(0).solutionConfiguration()); + Assertions.assertEquals("revkhgnlnzo", model.solutionInstanceName()); + Assertions.assertEquals("piqywnc", model.solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("tszcofizehtdhgb", model.solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("vreljea", model.solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("rvzmlovuana", model.solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("cxlpmjerb", model.solutionDependencies().get(0).targetId()); + Assertions.assertEquals("vidizozsdb", model.solutionDependencies().get(0).dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("r", model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("ldgmfpgvmpip", + Assertions.assertEquals("xjmonf", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("nwncypuuw", model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("ltha", + Assertions.assertEquals("tvuqjctzenkeifzz", model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("x", model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("kdasvflyhbxcudch", + model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("ey", model.solutionConfiguration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BulkPublishSolutionParameter model = new BulkPublishSolutionParameter() - .withTargets(Arrays.asList( - new BulkPublishTargetDetails().withTargetId("bdeibqipqk").withSolutionInstanceName("vxndz"), - new BulkPublishTargetDetails().withTargetId("mkrefajpjorwkq").withSolutionInstanceName("hgbijt"))) - .withSolutionInstanceName("vfxzsjab") - .withSolutionDependencies( - Arrays - .asList( - new SolutionDependencyParameter().withSolutionVersionId("stawfsdjpvkv") - .withSolutionTemplateId("jxbkzbzkdvn") - .withSolutionTemplateVersion("abudurgk") - .withSolutionInstanceName("mokzhjjklf") - .withTargetId("mouwqlgzrfzeey") + BulkPublishSolutionParameter model + = new BulkPublishSolutionParameter() + .withTargets( + Arrays.asList( + new BulkPublishTargetDetails().withTargetId("ibabxvititvtzeex") + .withSolutionDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("tfgle") + .withSolutionTemplateId("m") + .withSolutionTemplateVersion("bwpypqtgsfjacb") + .withSolutionInstanceName("hhxud") + .withTargetId("vodhtn") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("dhzmmesckdlp") + .withSolutionTemplateId("zrcxfailcfxwmdbo") + .withSolutionTemplateVersion("fgsftufqob") + .withSolutionInstanceName("lnacgcc") + .withTargetId("nhxk") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("tnrzvuljra") + .withSolutionTemplateId("rano") + .withSolutionTemplateVersion("gukkjqnvbroy") + .withSolutionInstanceName("xxulcdi") + .withTargetId("osfjbjsv") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("hryvy") + .withSolutionTemplateId("t") + .withSolutionTemplateVersion("lxgccknfnwmbtm") + .withSolutionInstanceName("dvjdhttza") + .withTargetId("edxihchrphkmcrj") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())))) + .withSolutionInstanceName("dfzpbgtgkylkdg") + .withSolutionVersionId("jeuut") + .withSolutionConfiguration("xezw"), + new BulkPublishTargetDetails().withTargetId("hokvbwnh") + .withSolutionDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("gehgppi") + .withSolutionTemplateId("fhpfeoajvgcxtx") + .withSolutionTemplateVersion("sheafid") + .withSolutionInstanceName("ugsresmkssjhoi") + .withTargetId("xfkfwegprhptill") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("qtgdqohmcwsl") + .withSolutionTemplateId("izetpw") + .withSolutionTemplateVersion("a") + .withSolutionInstanceName("libph") + .withTargetId("zmizakakan") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())))) + .withSolutionInstanceName("n") + .withSolutionVersionId("ha") + .withSolutionConfiguration("ylhjlm"), + new BulkPublishTargetDetails().withTargetId("oyxprimr") + .withSolutionDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("eecjmeis") + .withSolutionTemplateId("tvasy") + .withSolutionTemplateVersion("xdza") + .withSolutionInstanceName("weoohguufuzboyj") + .withTargetId("hwtzolb") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("m") + .withSolutionTemplateId("mebwjscjpah") + .withSolutionTemplateVersion("veabfqxnmwmqtib") + .withSolutionInstanceName("ijddtvqc") + .withTargetId("adijaeukmrsie") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())))) + .withSolutionInstanceName("dzaapmudqme") + .withSolutionVersionId("igpibud") + .withSolutionConfiguration("yxeb"), + new BulkPublishTargetDetails().withTargetId("ybpmzznrtffyaq") + .withSolutionDependencies( + Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId("heioqa") + .withSolutionTemplateId("v") + .withSolutionTemplateVersion("ufuqyrx") + .withSolutionInstanceName("lcgqlsismj") + .withTargetId("rddga") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())))) + .withSolutionInstanceName("iosrsjuivfcdis") + .withSolutionVersionId("rnxzh") + .withSolutionConfiguration("exrxzbujrtrhq"))) + .withSolutionInstanceName("revkhgnlnzo") + .withSolutionDependencies( + Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("piqywnc") + .withSolutionTemplateId("tszcofizehtdhgb") + .withSolutionTemplateVersion("vreljea") + .withSolutionInstanceName("rvzmlovuana") + .withTargetId("cxlpmjerb") .withDependencies(Arrays.asList( - new SolutionDependencyParameter().withSolutionVersionId("ikayuhqlbjbsybb") - .withSolutionTemplateId("r") - .withSolutionTemplateVersion("ldgmfpgvmpip") - .withSolutionInstanceName("ltha") - .withTargetId("x") + new SolutionDependencyParameter().withSolutionVersionId("vidizozsdb") + .withSolutionTemplateId("xjmonf") + .withSolutionTemplateVersion("nwncypuuw") + .withSolutionInstanceName("tvuqjctzenkeifzz") + .withTargetId("kdasvflyhbxcudch") .withDependencies(Arrays.asList(new SolutionDependencyParameter(), new SolutionDependencyParameter(), new SolutionDependencyParameter())), - new SolutionDependencyParameter().withSolutionVersionId("u") - .withSolutionTemplateId("bdsrez") - .withSolutionTemplateVersion("rhneuyowq") - .withSolutionInstanceName("wyt") - .withTargetId("ib") + new SolutionDependencyParameter().withSolutionVersionId("boldforobwj") + .withSolutionTemplateId("izbfhfovvacq") + .withSolutionTemplateVersion("tuodxeszabbelaw") + .withSolutionInstanceName("ua") + .withTargetId("zkwrrwoyc") .withDependencies(Arrays.asList(new SolutionDependencyParameter(), new SolutionDependencyParameter())), - new SolutionDependencyParameter().withSolutionVersionId("pikpz") - .withSolutionTemplateId("ejzanlfz") - .withSolutionTemplateVersion("av") - .withSolutionInstanceName("bzonok") - .withTargetId("rjqc") + new SolutionDependencyParameter().withSolutionVersionId("yhahnomdrkyw") + .withSolutionTemplateId("psvfuurutlwexxwl") + .withSolutionTemplateVersion("niexzsrzpgepq") + .withSolutionInstanceName("bb") + .withTargetId("pgdakchzyvli") .withDependencies(Arrays.asList(new SolutionDependencyParameter(), - new SolutionDependencyParameter())))), - new SolutionDependencyParameter().withSolutionVersionId("pfrlazsz") - .withSolutionTemplateId("woiindf") - .withSolutionTemplateVersion("pj") - .withSolutionInstanceName("wbtlhflsjcdh") - .withTargetId("fjvfbgofeljagr") + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("kcxk") + .withSolutionTemplateId("bn") + .withSolutionTemplateVersion("ysux") + .withSolutionInstanceName("qrntv") + .withTargetId("ijpstte") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())))), + new SolutionDependencyParameter().withSolutionVersionId("pwcyyufmhr") + .withSolutionTemplateId("cuwmqsp") + .withSolutionTemplateVersion("dqzh") + .withSolutionInstanceName("tddunqnd") + .withTargetId("pchrqbn") .withDependencies(Arrays.asList( - new SolutionDependencyParameter().withSolutionVersionId("ldvriiiojnalghfk") - .withSolutionTemplateId("vsexsowuelu") - .withSolutionTemplateVersion("hahhxvrhmzkwpj") - .withSolutionInstanceName("wspughftqsxhqx") - .withTargetId("xukndxdigr") - .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("gegydcwboxjum") + .withSolutionTemplateId("qoli") + .withSolutionTemplateVersion("raiouaubrjtl") + .withSolutionInstanceName("xfuojrn") + .withTargetId("flrzpas") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), new SolutionDependencyParameter(), new SolutionDependencyParameter(), - new SolutionDependencyParameter(), new SolutionDependencyParameter())))), - new SolutionDependencyParameter().withSolutionVersionId("fzdm") - .withSolutionTemplateId("qtfihwhbotzinga") - .withSolutionTemplateVersion("pph") - .withSolutionInstanceName("zqzudph") - .withTargetId("mvdk") + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("uimzdlyjd") + .withSolutionTemplateId("wmkyoqufdvruzsl") + .withSolutionTemplateVersion("j") + .withSolutionInstanceName("ctfnmdxotng") + .withTargetId("gugey") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("rkyui") + .withSolutionTemplateId("bsnmfpph") + .withSolutionTemplateVersion("eevy") + .withSolutionInstanceName("hsgz") + .withTargetId("zbgomfgbeg") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("eohibet") + .withSolutionTemplateId("uankrrfxeeeb") + .withSolutionTemplateVersion("j") + .withSolutionInstanceName("cvbmqzb") + .withTargetId("xl") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())))), + new SolutionDependencyParameter().withSolutionVersionId("wxacevehj") + .withSolutionTemplateId("yxoaf") + .withSolutionTemplateVersion("oqltfae") + .withSolutionInstanceName("inmfgvxirp") + .withTargetId("riypoqeyhlqhyk") .withDependencies(Arrays.asList( - new SolutionDependencyParameter().withSolutionVersionId("wcvtbvkayhmtnvyq") - .withSolutionTemplateId("tkzwpcnpwzc") - .withSolutionTemplateVersion("esgvvsccyaj") - .withSolutionInstanceName("qfhwyg") - .withTargetId("vdnkfxusem") + new SolutionDependencyParameter().withSolutionVersionId("yznuciqd") + .withSolutionTemplateId("ex") + .withSolutionTemplateVersion("tdfuxt") + .withSolutionInstanceName("siibmiybnnustgn") + .withTargetId("hnmgixhcm") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("foudor") + .withSolutionTemplateId("gyyprotwy") + .withSolutionTemplateVersion("ndm") + .withSolutionInstanceName("hu") + .withTargetId("mjkavlgorbmft") .withDependencies(Arrays.asList(new SolutionDependencyParameter(), new SolutionDependencyParameter(), new SolutionDependencyParameter(), new SolutionDependencyParameter())), - new SolutionDependencyParameter().withSolutionVersionId("muhapfcqdpsqxqv") - .withSolutionTemplateId("vuoy") - .withSolutionTemplateVersion("ccelve") - .withSolutionInstanceName("ypql") - .withTargetId("eokerqwkyhkobopg") - .withDependencies(Arrays.asList(new SolutionDependencyParameter())))))); + new SolutionDependencyParameter().withSolutionVersionId("zfjltfvnzcyjto") + .withSolutionTemplateId("vopvp") + .withSolutionTemplateVersion("bzqgqqi") + .withSolutionInstanceName("dsvqwt") + .withTargetId("ky") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("sihsgqcwdhohsd") + .withSolutionTemplateId("cdzsu") + .withSolutionTemplateVersion("ohdxbzlmcmu") + .withSolutionInstanceName("cvhd") + .withTargetId("v") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())))))) + .withSolutionConfiguration("ey"); model = BinaryData.fromObject(model).toObject(BulkPublishSolutionParameter.class); - Assertions.assertEquals("bdeibqipqk", model.targets().get(0).targetId()); - Assertions.assertEquals("vxndz", model.targets().get(0).solutionInstanceName()); - Assertions.assertEquals("vfxzsjab", model.solutionInstanceName()); - Assertions.assertEquals("stawfsdjpvkv", model.solutionDependencies().get(0).solutionVersionId()); - Assertions.assertEquals("jxbkzbzkdvn", model.solutionDependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("abudurgk", model.solutionDependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("mokzhjjklf", model.solutionDependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("mouwqlgzrfzeey", model.solutionDependencies().get(0).targetId()); - Assertions.assertEquals("ikayuhqlbjbsybb", + Assertions.assertEquals("ibabxvititvtzeex", model.targets().get(0).targetId()); + Assertions.assertEquals("tfgle", model.targets().get(0).solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("m", model.targets().get(0).solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("bwpypqtgsfjacb", + model.targets().get(0).solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("hhxud", model.targets().get(0).solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("vodhtn", model.targets().get(0).solutionDependencies().get(0).targetId()); + Assertions.assertEquals("dfzpbgtgkylkdg", model.targets().get(0).solutionInstanceName()); + Assertions.assertEquals("jeuut", model.targets().get(0).solutionVersionId()); + Assertions.assertEquals("xezw", model.targets().get(0).solutionConfiguration()); + Assertions.assertEquals("revkhgnlnzo", model.solutionInstanceName()); + Assertions.assertEquals("piqywnc", model.solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("tszcofizehtdhgb", model.solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("vreljea", model.solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("rvzmlovuana", model.solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("cxlpmjerb", model.solutionDependencies().get(0).targetId()); + Assertions.assertEquals("vidizozsdb", model.solutionDependencies().get(0).dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("r", model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("ldgmfpgvmpip", + Assertions.assertEquals("xjmonf", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("nwncypuuw", model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("ltha", + Assertions.assertEquals("tvuqjctzenkeifzz", model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("x", model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("kdasvflyhbxcudch", + model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("ey", model.solutionConfiguration()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkPublishTargetDetailsTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkPublishTargetDetailsTests.java index 52d7438296c00..ad04ed920d8e2 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkPublishTargetDetailsTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkPublishTargetDetailsTests.java @@ -6,24 +6,172 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.BulkPublishTargetDetails; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDependencyParameter; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class BulkPublishTargetDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BulkPublishTargetDetails model - = BinaryData.fromString("{\"targetId\":\"k\",\"solutionInstanceName\":\"epbqpcrfkbw\"}") - .toObject(BulkPublishTargetDetails.class); - Assertions.assertEquals("k", model.targetId()); - Assertions.assertEquals("epbqpcrfkbw", model.solutionInstanceName()); + BulkPublishTargetDetails model = BinaryData.fromString( + "{\"targetId\":\"ko\",\"solutionDependencies\":[{\"solutionVersionId\":\"nkfkbgbzb\",\"solutionTemplateId\":\"xeqoc\",\"solutionTemplateVersion\":\"mygvkzqkj\",\"solutionInstanceName\":\"okbzef\",\"targetId\":\"rx\",\"dependencies\":[{\"solutionVersionId\":\"rtle\",\"solutionTemplateId\":\"q\",\"solutionTemplateVersion\":\"kwv\",\"solutionInstanceName\":\"nzvdfbzdixzmq\",\"targetId\":\"odawopqhewjptmcg\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"t\",\"solutionTemplateId\":\"lnd\",\"solutionTemplateVersion\":\"tutmzl\",\"solutionInstanceName\":\"ojlvfhrbbpneqvc\",\"targetId\":\"yyurmochpprprsnm\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"zejnhl\",\"solutionTemplateId\":\"pbzpcpiljhahz\",\"solutionTemplateVersion\":\"chndbnwie\",\"solutionInstanceName\":\"lewjwiuubwef\",\"targetId\":\"fapaqtfer\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"x\",\"solutionTemplateId\":\"mfxapjwogqqno\",\"solutionTemplateVersion\":\"udcdabtqwpwyawb\",\"solutionInstanceName\":\"sqbuc\",\"targetId\":\"gkyexaoguy\",\"dependencies\":[{}]}]},{\"solutionVersionId\":\"dsdaultxijjumf\",\"solutionTemplateId\":\"azlnqnmcjngzqdqx\",\"solutionTemplateVersion\":\"jw\",\"solutionInstanceName\":\"yfu\",\"targetId\":\"zsvtuikzhajqgl\",\"dependencies\":[{\"solutionVersionId\":\"l\",\"solutionTemplateId\":\"ryxynqnzrd\",\"solutionTemplateVersion\":\"ovw\",\"solutionInstanceName\":\"nptgoeiybba\",\"targetId\":\"fhvfsl\",\"dependencies\":[{},{}]}]},{\"solutionVersionId\":\"jlrigjkskyrioovz\",\"solutionTemplateId\":\"sxwaabzm\",\"solutionTemplateVersion\":\"rygznmmaxriz\",\"solutionInstanceName\":\"obgop\",\"targetId\":\"hsln\",\"dependencies\":[{\"solutionVersionId\":\"eixynllxecwcroj\",\"solutionTemplateId\":\"slhcawjutifd\",\"solutionTemplateVersion\":\"mvi\",\"solutionInstanceName\":\"rqjb\",\"targetId\":\"zhraglkafh\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"ujeickp\",\"solutionTemplateId\":\"cpopmxel\",\"solutionTemplateVersion\":\"clt\",\"solutionInstanceName\":\"edexxmlfm\",\"targetId\":\"scazuawxtzxpu\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"bzxrvxcushsphai\",\"solutionTemplateId\":\"xyasflvgsgzw\",\"solutionTemplateVersion\":\"akoi\",\"solutionInstanceName\":\"nsmjbl\",\"targetId\":\"jhlnymzotqyryu\",\"dependencies\":[{},{},{}]}]},{\"solutionVersionId\":\"qqvxmvwfgtayxons\",\"solutionTemplateId\":\"e\",\"solutionTemplateVersion\":\"lzqnhcvs\",\"solutionInstanceName\":\"tnzoibgsxgnxfy\",\"targetId\":\"nmpqoxwdofdb\",\"dependencies\":[{\"solutionVersionId\":\"eiiqbim\",\"solutionTemplateId\":\"mwwinhehfqpofv\",\"solutionTemplateVersion\":\"cblembnkbwv\",\"solutionInstanceName\":\"xk\",\"targetId\":\"vqihebwtswbzuwf\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"agegiz\",\"solutionTemplateId\":\"jfelisdjubggbqig\",\"solutionTemplateVersion\":\"kbsazgak\",\"solutionInstanceName\":\"cyrcmjdmspo\",\"targetId\":\"pv\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"lniofrzgbzje\",\"solutionTemplateId\":\"st\",\"solutionTemplateVersion\":\"nlvxbcuii\",\"solutionInstanceName\":\"ktwfa\",\"targetId\":\"nv\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"mik\",\"solutionTemplateId\":\"tbzbkiwbuqnyophz\",\"solutionTemplateVersion\":\"l\",\"solutionInstanceName\":\"crpfbcunez\",\"targetId\":\"e\",\"dependencies\":[{},{},{},{}]}]}],\"solutionInstanceName\":\"w\",\"solutionVersionId\":\"wl\",\"solutionConfiguration\":\"jwetnpsihcla\"}") + .toObject(BulkPublishTargetDetails.class); + Assertions.assertEquals("ko", model.targetId()); + Assertions.assertEquals("nkfkbgbzb", model.solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("xeqoc", model.solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("mygvkzqkj", model.solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("okbzef", model.solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("rx", model.solutionDependencies().get(0).targetId()); + Assertions.assertEquals("rtle", model.solutionDependencies().get(0).dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("q", model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("kwv", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("nzvdfbzdixzmq", + model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("odawopqhewjptmcg", + model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("w", model.solutionInstanceName()); + Assertions.assertEquals("wl", model.solutionVersionId()); + Assertions.assertEquals("jwetnpsihcla", model.solutionConfiguration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { BulkPublishTargetDetails model - = new BulkPublishTargetDetails().withTargetId("k").withSolutionInstanceName("epbqpcrfkbw"); + = new BulkPublishTargetDetails().withTargetId("ko") + .withSolutionDependencies( + Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("nkfkbgbzb") + .withSolutionTemplateId("xeqoc") + .withSolutionTemplateVersion("mygvkzqkj") + .withSolutionInstanceName("okbzef") + .withTargetId("rx") + .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("rtle") + .withSolutionTemplateId("q") + .withSolutionTemplateVersion("kwv") + .withSolutionInstanceName("nzvdfbzdixzmq") + .withTargetId("odawopqhewjptmcg") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("t") + .withSolutionTemplateId("lnd") + .withSolutionTemplateVersion("tutmzl") + .withSolutionInstanceName("ojlvfhrbbpneqvc") + .withTargetId("yyurmochpprprsnm") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("zejnhl") + .withSolutionTemplateId("pbzpcpiljhahz") + .withSolutionTemplateVersion("chndbnwie") + .withSolutionInstanceName("lewjwiuubwef") + .withTargetId("fapaqtfer") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("x") + .withSolutionTemplateId("mfxapjwogqqno") + .withSolutionTemplateVersion("udcdabtqwpwyawb") + .withSolutionInstanceName("sqbuc") + .withTargetId("gkyexaoguy") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())))), + new SolutionDependencyParameter().withSolutionVersionId("dsdaultxijjumf") + .withSolutionTemplateId("azlnqnmcjngzqdqx") + .withSolutionTemplateVersion("jw") + .withSolutionInstanceName("yfu") + .withTargetId("zsvtuikzhajqgl") + .withDependencies(Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId("l") + .withSolutionTemplateId("ryxynqnzrd") + .withSolutionTemplateVersion("ovw") + .withSolutionInstanceName("nptgoeiybba") + .withTargetId("fhvfsl") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())))), + new SolutionDependencyParameter().withSolutionVersionId("jlrigjkskyrioovz") + .withSolutionTemplateId("sxwaabzm") + .withSolutionTemplateVersion("rygznmmaxriz") + .withSolutionInstanceName("obgop") + .withTargetId("hsln") + .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("eixynllxecwcroj") + .withSolutionTemplateId("slhcawjutifd") + .withSolutionTemplateVersion("mvi") + .withSolutionInstanceName("rqjb") + .withTargetId("zhraglkafh") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("ujeickp") + .withSolutionTemplateId("cpopmxel") + .withSolutionTemplateVersion("clt") + .withSolutionInstanceName("edexxmlfm") + .withTargetId("scazuawxtzxpu") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("bzxrvxcushsphai") + .withSolutionTemplateId("xyasflvgsgzw") + .withSolutionTemplateVersion("akoi") + .withSolutionInstanceName("nsmjbl") + .withTargetId("jhlnymzotqyryu") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())))), + new SolutionDependencyParameter().withSolutionVersionId("qqvxmvwfgtayxons") + .withSolutionTemplateId("e") + .withSolutionTemplateVersion("lzqnhcvs") + .withSolutionInstanceName("tnzoibgsxgnxfy") + .withTargetId("nmpqoxwdofdb") + .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("eiiqbim") + .withSolutionTemplateId("mwwinhehfqpofv") + .withSolutionTemplateVersion("cblembnkbwv") + .withSolutionInstanceName("xk") + .withTargetId("vqihebwtswbzuwf") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("agegiz") + .withSolutionTemplateId("jfelisdjubggbqig") + .withSolutionTemplateVersion("kbsazgak") + .withSolutionInstanceName("cyrcmjdmspo") + .withTargetId("pv") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("lniofrzgbzje") + .withSolutionTemplateId("st") + .withSolutionTemplateVersion("nlvxbcuii") + .withSolutionInstanceName("ktwfa") + .withTargetId("nv") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("mik") + .withSolutionTemplateId("tbzbkiwbuqnyophz") + .withSolutionTemplateVersion("l") + .withSolutionInstanceName("crpfbcunez") + .withTargetId("e") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())))))) + .withSolutionInstanceName("w") + .withSolutionVersionId("wl") + .withSolutionConfiguration("jwetnpsihcla"); model = BinaryData.fromObject(model).toObject(BulkPublishTargetDetails.class); - Assertions.assertEquals("k", model.targetId()); - Assertions.assertEquals("epbqpcrfkbw", model.solutionInstanceName()); + Assertions.assertEquals("ko", model.targetId()); + Assertions.assertEquals("nkfkbgbzb", model.solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("xeqoc", model.solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("mygvkzqkj", model.solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("okbzef", model.solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("rx", model.solutionDependencies().get(0).targetId()); + Assertions.assertEquals("rtle", model.solutionDependencies().get(0).dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("q", model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("kwv", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("nzvdfbzdixzmq", + model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("odawopqhewjptmcg", + model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("w", model.solutionInstanceName()); + Assertions.assertEquals("wl", model.solutionVersionId()); + Assertions.assertEquals("jwetnpsihcla", model.solutionConfiguration()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkReviewSolutionParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkReviewSolutionParameterTests.java new file mode 100644 index 0000000000000..42295030be5d9 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkReviewSolutionParameterTests.java @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewSolutionParameter; +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewTargetDetails; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDependencyParameter; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class BulkReviewSolutionParameterTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + BulkReviewSolutionParameter model = BinaryData.fromString( + "{\"targets\":[{\"targetId\":\"va\",\"solutionDependencies\":[{\"solutionVersionId\":\"rsqqwztcm\",\"solutionTemplateId\":\"kchcxwa\",\"solutionTemplateVersion\":\"ewzjkjexfd\",\"solutionInstanceName\":\"vhpsylkkshkbffmb\",\"targetId\":\"zjrgyww\",\"dependencies\":[{}]}],\"solutionInstanceName\":\"snptfujgicgaao\",\"solutionConfiguration\":\"ttaqutdew\"},{\"targetId\":\"mxswvruunzz\",\"solutionDependencies\":[{\"solutionVersionId\":\"kfkimrtixok\",\"solutionTemplateId\":\"qyinl\",\"solutionTemplateVersion\":\"epqw\",\"solutionInstanceName\":\"xmonstshi\",\"targetId\":\"gvelfc\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"cb\",\"solutionTemplateId\":\"ds\",\"solutionTemplateVersion\":\"wcobie\",\"solutionInstanceName\":\"tmninw\",\"targetId\":\"zcilnghg\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"jtbxqmuluxlx\",\"solutionTemplateId\":\"vnersbycucrw\",\"solutionTemplateVersion\":\"mikzeb\",\"solutionInstanceName\":\"bsmswziqgf\",\"targetId\":\"okzrus\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"czznvfbycjsxj\",\"solutionTemplateId\":\"i\",\"solutionTemplateVersion\":\"vumwmxqh\",\"solutionInstanceName\":\"vnoamldseha\",\"targetId\":\"djh\",\"dependencies\":[{}]}],\"solutionInstanceName\":\"okxcoxp\",\"solutionConfiguration\":\"nje\"},{\"targetId\":\"agltsxoa\",\"solutionDependencies\":[{\"solutionVersionId\":\"zpnpbswv\",\"solutionTemplateId\":\"loccsrmozihm\",\"solutionTemplateVersion\":\"g\",\"solutionInstanceName\":\"txx\",\"targetId\":\"y\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"jxgrytfmp\",\"solutionTemplateId\":\"cil\",\"solutionTemplateVersion\":\"caykggnoxuz\",\"solutionInstanceName\":\"ksxwpnd\",\"targetId\":\"pfnznthjtwkj\",\"dependencies\":[{},{},{}]}],\"solutionInstanceName\":\"xuzvoamktcqi\",\"solutionConfiguration\":\"mgbzahgxqdlyrtl\"}],\"solutionInstanceName\":\"ap\",\"solutionDependencies\":[{\"solutionVersionId\":\"katbhjm\",\"solutionTemplateId\":\"nbsoqeqalarv\",\"solutionTemplateVersion\":\"gunbtgfebwlnbm\",\"solutionInstanceName\":\"reeudzqavb\",\"targetId\":\"qmjxlyyzglgouwtl\",\"dependencies\":[{\"solutionVersionId\":\"uojqt\",\"solutionTemplateId\":\"axkjeytunlbfjk\",\"solutionTemplateVersion\":\"u\",\"solutionInstanceName\":\"kqbh\",\"targetId\":\"rqunjq\",\"dependencies\":[{}]},{\"solutionVersionId\":\"xaulkpakdkifmjnn\",\"solutionTemplateId\":\"tqabpxuckpgg\",\"solutionTemplateVersion\":\"wey\",\"solutionInstanceName\":\"dhlisngwflqqmpi\",\"targetId\":\"uwnpqxpxiwfcng\",\"dependencies\":[{}]},{\"solutionVersionId\":\"sii\",\"solutionTemplateId\":\"mkzjvkviir\",\"solutionTemplateVersion\":\"fgrwsdpgratzvz\",\"solutionInstanceName\":\"lbyvictctbrxkjzw\",\"targetId\":\"xff\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"wfbkgozxwo\",\"solutionTemplateId\":\"bydpizqaclnapxb\",\"solutionTemplateVersion\":\"gn\",\"solutionInstanceName\":\"j\",\"targetId\":\"fsmfcttuxuuyi\",\"dependencies\":[{}]}]}],\"solutionConfiguration\":\"oiquvrehmrnjhvs\"}") + .toObject(BulkReviewSolutionParameter.class); + Assertions.assertEquals("va", model.targets().get(0).targetId()); + Assertions.assertEquals("rsqqwztcm", model.targets().get(0).solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("kchcxwa", model.targets().get(0).solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("ewzjkjexfd", + model.targets().get(0).solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("vhpsylkkshkbffmb", + model.targets().get(0).solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("zjrgyww", model.targets().get(0).solutionDependencies().get(0).targetId()); + Assertions.assertEquals("snptfujgicgaao", model.targets().get(0).solutionInstanceName()); + Assertions.assertEquals("ttaqutdew", model.targets().get(0).solutionConfiguration()); + Assertions.assertEquals("ap", model.solutionInstanceName()); + Assertions.assertEquals("katbhjm", model.solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("nbsoqeqalarv", model.solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("gunbtgfebwlnbm", model.solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("reeudzqavb", model.solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("qmjxlyyzglgouwtl", model.solutionDependencies().get(0).targetId()); + Assertions.assertEquals("uojqt", model.solutionDependencies().get(0).dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("axkjeytunlbfjk", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("u", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("kqbh", + model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("rqunjq", model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("oiquvrehmrnjhvs", model.solutionConfiguration()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + BulkReviewSolutionParameter model + = new BulkReviewSolutionParameter() + .withTargets( + Arrays.asList( + new BulkReviewTargetDetails().withTargetId("va") + .withSolutionDependencies( + Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId("rsqqwztcm") + .withSolutionTemplateId("kchcxwa") + .withSolutionTemplateVersion("ewzjkjexfd") + .withSolutionInstanceName("vhpsylkkshkbffmb") + .withTargetId("zjrgyww") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())))) + .withSolutionInstanceName("snptfujgicgaao") + .withSolutionConfiguration("ttaqutdew"), + new BulkReviewTargetDetails().withTargetId("mxswvruunzz") + .withSolutionDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("kfkimrtixok") + .withSolutionTemplateId("qyinl") + .withSolutionTemplateVersion("epqw") + .withSolutionInstanceName("xmonstshi") + .withTargetId("gvelfc") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("cb") + .withSolutionTemplateId("ds") + .withSolutionTemplateVersion("wcobie") + .withSolutionInstanceName("tmninw") + .withTargetId("zcilnghg") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("jtbxqmuluxlx") + .withSolutionTemplateId("vnersbycucrw") + .withSolutionTemplateVersion("mikzeb") + .withSolutionInstanceName("bsmswziqgf") + .withTargetId("okzrus") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("czznvfbycjsxj") + .withSolutionTemplateId("i") + .withSolutionTemplateVersion("vumwmxqh") + .withSolutionInstanceName("vnoamldseha") + .withTargetId("djh") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())))) + .withSolutionInstanceName("okxcoxp") + .withSolutionConfiguration("nje"), + new BulkReviewTargetDetails().withTargetId("agltsxoa") + .withSolutionDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("zpnpbswv") + .withSolutionTemplateId("loccsrmozihm") + .withSolutionTemplateVersion("g") + .withSolutionInstanceName("txx") + .withTargetId("y") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("jxgrytfmp") + .withSolutionTemplateId("cil") + .withSolutionTemplateVersion("caykggnoxuz") + .withSolutionInstanceName("ksxwpnd") + .withTargetId("pfnznthjtwkj") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())))) + .withSolutionInstanceName("xuzvoamktcqi") + .withSolutionConfiguration("mgbzahgxqdlyrtl"))) + .withSolutionInstanceName("ap") + .withSolutionDependencies( + Arrays + .asList(new SolutionDependencyParameter().withSolutionVersionId("katbhjm") + .withSolutionTemplateId("nbsoqeqalarv") + .withSolutionTemplateVersion("gunbtgfebwlnbm") + .withSolutionInstanceName("reeudzqavb") + .withTargetId("qmjxlyyzglgouwtl") + .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("uojqt") + .withSolutionTemplateId("axkjeytunlbfjk") + .withSolutionTemplateVersion("u") + .withSolutionInstanceName("kqbh") + .withTargetId("rqunjq") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("xaulkpakdkifmjnn") + .withSolutionTemplateId("tqabpxuckpgg") + .withSolutionTemplateVersion("wey") + .withSolutionInstanceName("dhlisngwflqqmpi") + .withTargetId("uwnpqxpxiwfcng") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("sii") + .withSolutionTemplateId("mkzjvkviir") + .withSolutionTemplateVersion("fgrwsdpgratzvz") + .withSolutionInstanceName("lbyvictctbrxkjzw") + .withTargetId("xff") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("wfbkgozxwo") + .withSolutionTemplateId("bydpizqaclnapxb") + .withSolutionTemplateVersion("gn") + .withSolutionInstanceName("j") + .withTargetId("fsmfcttuxuuyi") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())))))) + .withSolutionConfiguration("oiquvrehmrnjhvs"); + model = BinaryData.fromObject(model).toObject(BulkReviewSolutionParameter.class); + Assertions.assertEquals("va", model.targets().get(0).targetId()); + Assertions.assertEquals("rsqqwztcm", model.targets().get(0).solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("kchcxwa", model.targets().get(0).solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("ewzjkjexfd", + model.targets().get(0).solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("vhpsylkkshkbffmb", + model.targets().get(0).solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("zjrgyww", model.targets().get(0).solutionDependencies().get(0).targetId()); + Assertions.assertEquals("snptfujgicgaao", model.targets().get(0).solutionInstanceName()); + Assertions.assertEquals("ttaqutdew", model.targets().get(0).solutionConfiguration()); + Assertions.assertEquals("ap", model.solutionInstanceName()); + Assertions.assertEquals("katbhjm", model.solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("nbsoqeqalarv", model.solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("gunbtgfebwlnbm", model.solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("reeudzqavb", model.solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("qmjxlyyzglgouwtl", model.solutionDependencies().get(0).targetId()); + Assertions.assertEquals("uojqt", model.solutionDependencies().get(0).dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("axkjeytunlbfjk", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("u", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("kqbh", + model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("rqunjq", model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("oiquvrehmrnjhvs", model.solutionConfiguration()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkReviewTargetDetailsTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkReviewTargetDetailsTests.java new file mode 100644 index 0000000000000..3119088ee4036 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/BulkReviewTargetDetailsTests.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.BulkReviewTargetDetails; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDependencyParameter; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class BulkReviewTargetDetailsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + BulkReviewTargetDetails model = BinaryData.fromString( + "{\"targetId\":\"jztczytqj\",\"solutionDependencies\":[{\"solutionVersionId\":\"uunfprnjletlxsm\",\"solutionTemplateId\":\"ddoui\",\"solutionTemplateVersion\":\"mowaziynknlqwzdv\",\"solutionInstanceName\":\"w\",\"targetId\":\"qszdtmaajquhuxyl\",\"dependencies\":[{\"solutionVersionId\":\"ty\",\"solutionTemplateId\":\"bmzyospsps\",\"solutionTemplateVersion\":\"kfkyjp\",\"solutionInstanceName\":\"pbpssdfpp\",\"targetId\":\"gt\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"jtvczkcnyxrxmun\",\"solutionTemplateId\":\"xvglnkvxlxp\",\"solutionTemplateVersion\":\"lqivbgkcv\",\"solutionInstanceName\":\"pzvuqdflvo\",\"targetId\":\"yp\",\"dependencies\":[{},{},{}]}]}],\"solutionInstanceName\":\"cpzgpxtiv\",\"solutionConfiguration\":\"knidib\"}") + .toObject(BulkReviewTargetDetails.class); + Assertions.assertEquals("jztczytqj", model.targetId()); + Assertions.assertEquals("uunfprnjletlxsm", model.solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("ddoui", model.solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("mowaziynknlqwzdv", model.solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("w", model.solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("qszdtmaajquhuxyl", model.solutionDependencies().get(0).targetId()); + Assertions.assertEquals("ty", model.solutionDependencies().get(0).dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("bmzyospsps", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("kfkyjp", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("pbpssdfpp", + model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("gt", model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("cpzgpxtiv", model.solutionInstanceName()); + Assertions.assertEquals("knidib", model.solutionConfiguration()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + BulkReviewTargetDetails model = new BulkReviewTargetDetails().withTargetId("jztczytqj") + .withSolutionDependencies( + Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId("uunfprnjletlxsm") + .withSolutionTemplateId("ddoui") + .withSolutionTemplateVersion("mowaziynknlqwzdv") + .withSolutionInstanceName("w") + .withTargetId("qszdtmaajquhuxyl") + .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("ty") + .withSolutionTemplateId("bmzyospsps") + .withSolutionTemplateVersion("kfkyjp") + .withSolutionInstanceName("pbpssdfpp") + .withTargetId("gt") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("jtvczkcnyxrxmun") + .withSolutionTemplateId("xvglnkvxlxp") + .withSolutionTemplateVersion("lqivbgkcv") + .withSolutionInstanceName("pzvuqdflvo") + .withTargetId("yp") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())))))) + .withSolutionInstanceName("cpzgpxtiv") + .withSolutionConfiguration("knidib"); + model = BinaryData.fromObject(model).toObject(BulkReviewTargetDetails.class); + Assertions.assertEquals("jztczytqj", model.targetId()); + Assertions.assertEquals("uunfprnjletlxsm", model.solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("ddoui", model.solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("mowaziynknlqwzdv", model.solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("w", model.solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("qszdtmaajquhuxyl", model.solutionDependencies().get(0).targetId()); + Assertions.assertEquals("ty", model.solutionDependencies().get(0).dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("bmzyospsps", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("kfkyjp", + model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("pbpssdfpp", + model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("gt", model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("cpzgpxtiv", model.solutionInstanceName()); + Assertions.assertEquals("knidib", model.solutionConfiguration()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/CapabilityTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/CapabilityTests.java index 86eb2ed46c49e..58c4a7ab07272 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/CapabilityTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/CapabilityTests.java @@ -13,20 +13,20 @@ public final class CapabilityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Capability model - = BinaryData.fromString("{\"name\":\"asi\",\"description\":\"xtmkzjvkviir\",\"state\":\"inactive\"}") + = BinaryData.fromString("{\"name\":\"ekxgn\",\"description\":\"ykmxcpwzvm\",\"state\":\"active\"}") .toObject(Capability.class); - Assertions.assertEquals("asi", model.name()); - Assertions.assertEquals("xtmkzjvkviir", model.description()); - Assertions.assertEquals(ResourceState.INACTIVE, model.state()); + Assertions.assertEquals("ekxgn", model.name()); + Assertions.assertEquals("ykmxcpwzvm", model.description()); + Assertions.assertEquals(ResourceState.ACTIVE, model.state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { Capability model - = new Capability().withName("asi").withDescription("xtmkzjvkviir").withState(ResourceState.INACTIVE); + = new Capability().withName("ekxgn").withDescription("ykmxcpwzvm").withState(ResourceState.ACTIVE); model = BinaryData.fromObject(model).toObject(Capability.class); - Assertions.assertEquals("asi", model.name()); - Assertions.assertEquals("xtmkzjvkviir", model.description()); - Assertions.assertEquals(ResourceState.INACTIVE, model.state()); + Assertions.assertEquals("ekxgn", model.name()); + Assertions.assertEquals("ykmxcpwzvm", model.description()); + Assertions.assertEquals(ResourceState.ACTIVE, model.state()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ComponentStatusTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ComponentStatusTests.java index 9f9cfd5a93ab7..31bf14ee02cc5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ComponentStatusTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ComponentStatusTests.java @@ -11,9 +11,9 @@ public final class ComponentStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ComponentStatus model - = BinaryData.fromString("{\"name\":\"pp\",\"status\":\"lcxog\"}").toObject(ComponentStatus.class); - Assertions.assertEquals("pp", model.name()); - Assertions.assertEquals("lcxog", model.status()); + ComponentStatus model = BinaryData.fromString("{\"name\":\"wiithtywub\",\"status\":\"bihwqknfdnt\"}") + .toObject(ComponentStatus.class); + Assertions.assertEquals("wiithtywub", model.name()); + Assertions.assertEquals("bihwqknfdnt", model.status()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateInnerTests.java index b73a1d93c0df6..dce3f38da9b22 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateInnerTests.java @@ -15,22 +15,22 @@ public final class ConfigTemplateInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConfigTemplateInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"n\",\"latestVersion\":\"zudhcxg\",\"provisioningState\":\"Canceled\"},\"eTag\":\"xcdyuibhmfdnb\",\"location\":\"dvfvfcjnaeoi\",\"tags\":{\"mzhwplefaxvxi\":\"hmgorffukiscv\",\"yqxtjjfzql\":\"cbtgnhnz\",\"dggxdbeesmi\":\"hycav\"},\"id\":\"knlrariaawiuagy\",\"name\":\"wqfbylyrfgiagt\",\"type\":\"ojocqwogf\"}") + "{\"properties\":{\"uniqueIdentifier\":\"k\",\"description\":\"hltnjadhqoawjq\",\"latestVersion\":\"ueayfbpcmsplb\",\"provisioningState\":\"Deleting\"},\"eTag\":\"eqthwmg\",\"location\":\"b\",\"tags\":{\"edbw\":\"bxigdhxiidlo\"},\"id\":\"pyqy\",\"name\":\"bxubmdna\",\"type\":\"cbq\"}") .toObject(ConfigTemplateInner.class); - Assertions.assertEquals("dvfvfcjnaeoi", model.location()); - Assertions.assertEquals("hmgorffukiscv", model.tags().get("mzhwplefaxvxi")); - Assertions.assertEquals("n", model.properties().description()); + Assertions.assertEquals("b", model.location()); + Assertions.assertEquals("bxigdhxiidlo", model.tags().get("edbw")); + Assertions.assertEquals("hltnjadhqoawjq", model.properties().description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConfigTemplateInner model = new ConfigTemplateInner().withLocation("dvfvfcjnaeoi") - .withTags(mapOf("mzhwplefaxvxi", "hmgorffukiscv", "yqxtjjfzql", "cbtgnhnz", "dggxdbeesmi", "hycav")) - .withProperties(new ConfigTemplateProperties().withDescription("n")); + ConfigTemplateInner model = new ConfigTemplateInner().withLocation("b") + .withTags(mapOf("edbw", "bxigdhxiidlo")) + .withProperties(new ConfigTemplateProperties().withDescription("hltnjadhqoawjq")); model = BinaryData.fromObject(model).toObject(ConfigTemplateInner.class); - Assertions.assertEquals("dvfvfcjnaeoi", model.location()); - Assertions.assertEquals("hmgorffukiscv", model.tags().get("mzhwplefaxvxi")); - Assertions.assertEquals("n", model.properties().description()); + Assertions.assertEquals("b", model.location()); + Assertions.assertEquals("bxigdhxiidlo", model.tags().get("edbw")); + Assertions.assertEquals("hltnjadhqoawjq", model.properties().description()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateListResultTests.java index 83c1fab87d960..5fee66374fbf4 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateListResultTests.java @@ -12,11 +12,11 @@ public final class ConfigTemplateListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConfigTemplateListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"xiutcx\",\"latestVersion\":\"zhyrpeto\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"oxslh\",\"location\":\"hlabrq\",\"tags\":{\"aehvvibrxjjstoq\":\"zjcjbtr\",\"bklftidgfcwqmpim\":\"eitpkxztmo\",\"yhohujswtwkozzwc\":\"qxzhem\"},\"id\":\"lkb\",\"name\":\"wpfaj\",\"type\":\"jwltlwtjjgu\"},{\"properties\":{\"description\":\"alhsnvkc\",\"latestVersion\":\"xzrpo\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"nwiaaomyl\",\"location\":\"azul\",\"tags\":{\"jhlfzswpchwahf\":\"thwwn\",\"wlyxgncxyk\":\"ousnfepgfewe\",\"h\":\"hdjhlimmbcx\"},\"id\":\"cporxvxcjz\",\"name\":\"qizxfpxtgqscjavf\",\"type\":\"juhdqazkmtgguwpi\"},{\"properties\":{\"description\":\"ajc\",\"latestVersion\":\"m\",\"provisioningState\":\"Canceled\"},\"eTag\":\"cf\",\"location\":\"rxgkne\",\"tags\":{\"oxgsgbpfgzdjtx\":\"inzqodfvpgs\",\"qvlgafcqusrdvetn\":\"zflbqvg\",\"uzhyrmewipmvekdx\":\"sdtutnwlduyc\"},\"id\":\"kuqgsjjxundxgket\",\"name\":\"zhhzjhfjmhvvmu\",\"type\":\"gpmuneqsxvmhfbuz\"}],\"nextLink\":\"ihsasb\"}") + "{\"value\":[{\"properties\":{\"uniqueIdentifier\":\"eksgbuxantuygd\",\"description\":\"gaqi\",\"latestVersion\":\"rpiwrqofulo\",\"provisioningState\":\"Canceled\"},\"eTag\":\"lexwhcbjp\",\"location\":\"k\",\"tags\":{\"oyin\":\"uuuercta\"},\"id\":\"qpbrlc\",\"name\":\"rduczkgofxyfs\",\"type\":\"uc\"},{\"properties\":{\"uniqueIdentifier\":\"rpcjttbstvjeaqnr\",\"description\":\"vvf\",\"latestVersion\":\"xmlghkt\",\"provisioningState\":\"Canceled\"},\"eTag\":\"r\",\"location\":\"zlpdwwex\",\"tags\":{\"uuzivensrpmeyyvp\":\"vlazipbhpwvqsgny\",\"gsksrfhf\":\"patlbijp\",\"bnxwc\":\"olmk\",\"fgbrtt\":\"ommpvfqaw\"},\"id\":\"iac\",\"name\":\"kiexhajlfnthiq\",\"type\":\"yuttdiygbpvnwswm\"}],\"nextLink\":\"k\"}") .toObject(ConfigTemplateListResult.class); - Assertions.assertEquals("hlabrq", model.value().get(0).location()); - Assertions.assertEquals("zjcjbtr", model.value().get(0).tags().get("aehvvibrxjjstoq")); - Assertions.assertEquals("xiutcx", model.value().get(0).properties().description()); - Assertions.assertEquals("ihsasb", model.nextLink()); + Assertions.assertEquals("k", model.value().get(0).location()); + Assertions.assertEquals("uuuercta", model.value().get(0).tags().get("oyin")); + Assertions.assertEquals("gaqi", model.value().get(0).properties().description()); + Assertions.assertEquals("k", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataInnerTests.java new file mode 100644 index 0000000000000..8fd31ef1e3ff5 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataInnerTests.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateMetadataInner; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataProperties; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ConfigTemplateMetadataInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConfigTemplateMetadataInner model = BinaryData.fromString( + "{\"properties\":{\"contextId\":\"efxexlf\",\"linkedHierarchies\":[{\"hierarchyIds\":[\"tjrrlkmds\",\"jhhxdlajf\"],\"level\":\"cxscvslxlh\"},{\"hierarchyIds\":[\"krmukmyjmkxett\",\"slojfkqidnqt\",\"qxjhqxcsqhtkbtnq\"],\"level\":\"ngldmbiipsn\"},{\"hierarchyIds\":[\"lqkznxhhllxricct\"],\"level\":\"muqqoajxei\"},{\"hierarchyIds\":[\"esrw\",\"aexhdctrceqnk\"],\"level\":\"upobehdmljz\"}],\"unLinkedHierarchies\":[{\"hierarchyIds\":[\"epj\"],\"level\":\"ibnzp\"}],\"templateUniqueIdentifier\":\"epifexleqirccjc\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"gxvrpjl\",\"id\":\"zuodacpun\",\"name\":\"ttepdjxqe\",\"type\":\"koynuiylpckae\"}") + .toObject(ConfigTemplateMetadataInner.class); + Assertions.assertEquals("efxexlf", model.properties().contextId()); + Assertions.assertEquals("tjrrlkmds", model.properties().linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("cxscvslxlh", model.properties().linkedHierarchies().get(0).level()); + Assertions.assertEquals("epj", model.properties().unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("ibnzp", model.properties().unLinkedHierarchies().get(0).level()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ConfigTemplateMetadataInner model = new ConfigTemplateMetadataInner() + .withProperties(new ConfigTemplateMetadataProperties().withContextId("efxexlf") + .withLinkedHierarchies(Arrays.asList( + new HierarchyMetadata().withHierarchyIds(Arrays.asList("tjrrlkmds", "jhhxdlajf")) + .withLevel("cxscvslxlh"), + new HierarchyMetadata() + .withHierarchyIds(Arrays.asList("krmukmyjmkxett", "slojfkqidnqt", "qxjhqxcsqhtkbtnq")) + .withLevel("ngldmbiipsn"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("lqkznxhhllxricct")).withLevel("muqqoajxei"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("esrw", "aexhdctrceqnk")) + .withLevel("upobehdmljz"))) + .withUnLinkedHierarchies( + Arrays.asList(new HierarchyMetadata().withHierarchyIds(Arrays.asList("epj")).withLevel("ibnzp")))); + model = BinaryData.fromObject(model).toObject(ConfigTemplateMetadataInner.class); + Assertions.assertEquals("efxexlf", model.properties().contextId()); + Assertions.assertEquals("tjrrlkmds", model.properties().linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("cxscvslxlh", model.properties().linkedHierarchies().get(0).level()); + Assertions.assertEquals("epj", model.properties().unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("ibnzp", model.properties().unLinkedHierarchies().get(0).level()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataListResultTests.java new file mode 100644 index 0000000000000..7fd053d913334 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataListResultTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateMetadataListResult; +import org.junit.jupiter.api.Assertions; + +public final class ConfigTemplateMetadataListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConfigTemplateMetadataListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"contextId\":\"okbavlyttaak\",\"linkedHierarchies\":[{\"hierarchyIds\":[\"ebsmhpdujdigato\"],\"level\":\"ksc\"},{\"hierarchyIds\":[\"nanqimwbzxpdcldp\",\"awnsnlaimou\",\"w\"],\"level\":\"qmudmfcoibic\"},{\"hierarchyIds\":[\"swswjrkbq\",\"jhbtqq\",\"yfscyrfwbivqvo\",\"fuy\"],\"level\":\"vbhlimbyqecro\"}],\"unLinkedHierarchies\":[{\"hierarchyIds\":[\"cdrdaasaxxo\",\"sm\",\"kwiy\",\"v\"],\"level\":\"ko\"},{\"hierarchyIds\":[\"awn\",\"zm\"],\"level\":\"k\"}],\"templateUniqueIdentifier\":\"wsxvjab\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"xuyvymcn\",\"id\":\"ndoabhjxwxqweuip\",\"name\":\"pvksmit\",\"type\":\"sqxtltclkrdpq\"},{\"properties\":{\"contextId\":\"yrfrak\",\"linkedHierarchies\":[{\"hierarchyIds\":[\"c\",\"fcmfcn\",\"jajqmatxjt\",\"elnzqgxxgfbbmt\"],\"level\":\"qagynoipr\"}],\"unLinkedHierarchies\":[{\"hierarchyIds\":[\"incryqxzx\"],\"level\":\"zi\"},{\"hierarchyIds\":[\"imiymqruqgu\",\"fupetasvv\"],\"level\":\"sbpkf\"},{\"hierarchyIds\":[\"fkg\",\"syaowuzowp\",\"ohdkcprgukx\",\"ztiochluti\"],\"level\":\"qrudjizcbfzmcr\"}],\"templateUniqueIdentifier\":\"fhi\",\"provisioningState\":\"InProgress\"},\"eTag\":\"fbcpaqktkrumzu\",\"id\":\"kyzbfvxovqkxiux\",\"name\":\"ggvqrnhyhlwcjs\",\"type\":\"ggjh\"}],\"nextLink\":\"bxrqrkijp\"}") + .toObject(ConfigTemplateMetadataListResult.class); + Assertions.assertEquals("okbavlyttaak", model.value().get(0).properties().contextId()); + Assertions.assertEquals("ebsmhpdujdigato", + model.value().get(0).properties().linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("ksc", model.value().get(0).properties().linkedHierarchies().get(0).level()); + Assertions.assertEquals("cdrdaasaxxo", + model.value().get(0).properties().unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("ko", model.value().get(0).properties().unLinkedHierarchies().get(0).level()); + Assertions.assertEquals("bxrqrkijp", model.nextLink()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataPropertiesTests.java new file mode 100644 index 0000000000000..2840e159d717a --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataPropertiesTests.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataProperties; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ConfigTemplateMetadataPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConfigTemplateMetadataProperties model = BinaryData.fromString( + "{\"contextId\":\"edveskwxegqp\",\"linkedHierarchies\":[{\"hierarchyIds\":[\"zhctm\",\"tsghpbcbcp\",\"arpzeqacdldtzm\"],\"level\":\"pefcpcz\"},{\"hierarchyIds\":[\"uqndaizupfkhuy\",\"uszxh\",\"tvtv\"],\"level\":\"w\"}],\"unLinkedHierarchies\":[{\"hierarchyIds\":[\"zwydwtth\",\"okgkskjivbs\",\"hajqfuk\",\"eexpgeumi\"],\"level\":\"wuit\"},{\"hierarchyIds\":[\"xyio\",\"ofninbdbz\",\"xcwqqrsmpc\",\"bprt\"],\"level\":\"av\"},{\"hierarchyIds\":[\"cyksivmfo\",\"dr\",\"bfcmkrfts\"],\"level\":\"wjjxsgm\"}],\"templateUniqueIdentifier\":\"wvif\",\"provisioningState\":\"Failed\"}") + .toObject(ConfigTemplateMetadataProperties.class); + Assertions.assertEquals("edveskwxegqp", model.contextId()); + Assertions.assertEquals("zhctm", model.linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("pefcpcz", model.linkedHierarchies().get(0).level()); + Assertions.assertEquals("zwydwtth", model.unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("wuit", model.unLinkedHierarchies().get(0).level()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ConfigTemplateMetadataProperties model = new ConfigTemplateMetadataProperties().withContextId("edveskwxegqp") + .withLinkedHierarchies(Arrays.asList( + new HierarchyMetadata().withHierarchyIds(Arrays.asList("zhctm", "tsghpbcbcp", "arpzeqacdldtzm")) + .withLevel("pefcpcz"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("uqndaizupfkhuy", "uszxh", "tvtv")) + .withLevel("w"))) + .withUnLinkedHierarchies(Arrays.asList( + new HierarchyMetadata() + .withHierarchyIds(Arrays.asList("zwydwtth", "okgkskjivbs", "hajqfuk", "eexpgeumi")) + .withLevel("wuit"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("xyio", "ofninbdbz", "xcwqqrsmpc", "bprt")) + .withLevel("av"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("cyksivmfo", "dr", "bfcmkrfts")) + .withLevel("wjjxsgm"))); + model = BinaryData.fromObject(model).toObject(ConfigTemplateMetadataProperties.class); + Assertions.assertEquals("edveskwxegqp", model.contextId()); + Assertions.assertEquals("zhctm", model.linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("pefcpcz", model.linkedHierarchies().get(0).level()); + Assertions.assertEquals("zwydwtth", model.unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("wuit", model.unLinkedHierarchies().get(0).level()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataUpdatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataUpdatePropertiesTests.java new file mode 100644 index 0000000000000..640f62da55925 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataUpdatePropertiesTests.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdateProperties; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ConfigTemplateMetadataUpdatePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConfigTemplateMetadataUpdateProperties model = BinaryData.fromString( + "{\"contextId\":\"lskkzpxvj\",\"linkedHierarchies\":[{\"hierarchyIds\":[\"o\",\"ojhpcnabxzfsn\"],\"level\":\"ytexvzilmhivzk\"},{\"hierarchyIds\":[\"ncknrzdajlsk\",\"ptjxulweuc\"],\"level\":\"t\"},{\"hierarchyIds\":[\"lehmcgcjeinueho\",\"am\",\"fejvqn\",\"tmbqdabzfivfok\"],\"level\":\"sthhzagjfwy\"}],\"unLinkedHierarchies\":[{\"hierarchyIds\":[\"enuzejg\"],\"level\":\"veb\"},{\"hierarchyIds\":[\"zllrz\",\"smmd\",\"gmihzpimcqr\",\"nxtminklog\"],\"level\":\"vtza\"},{\"hierarchyIds\":[\"vqnsqk\",\"cmbjwzzo\",\"lpky\",\"tglwkzpgajsqjc\"],\"level\":\"qbmfuvqarwz\"},{\"hierarchyIds\":[\"rebluimmbwxsf\",\"td\"],\"level\":\"vxekraokqkbud\"}]}") + .toObject(ConfigTemplateMetadataUpdateProperties.class); + Assertions.assertEquals("lskkzpxvj", model.contextId()); + Assertions.assertEquals("o", model.linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("ytexvzilmhivzk", model.linkedHierarchies().get(0).level()); + Assertions.assertEquals("enuzejg", model.unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("veb", model.unLinkedHierarchies().get(0).level()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ConfigTemplateMetadataUpdateProperties model = new ConfigTemplateMetadataUpdateProperties() + .withContextId("lskkzpxvj") + .withLinkedHierarchies(Arrays.asList( + new HierarchyMetadata().withHierarchyIds(Arrays.asList("o", "ojhpcnabxzfsn")) + .withLevel("ytexvzilmhivzk"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("ncknrzdajlsk", "ptjxulweuc")).withLevel("t"), + new HierarchyMetadata() + .withHierarchyIds(Arrays.asList("lehmcgcjeinueho", "am", "fejvqn", "tmbqdabzfivfok")) + .withLevel("sthhzagjfwy"))) + .withUnLinkedHierarchies(Arrays.asList( + new HierarchyMetadata().withHierarchyIds(Arrays.asList("enuzejg")).withLevel("veb"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("zllrz", "smmd", "gmihzpimcqr", "nxtminklog")) + .withLevel("vtza"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("vqnsqk", "cmbjwzzo", "lpky", "tglwkzpgajsqjc")) + .withLevel("qbmfuvqarwz"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("rebluimmbwxsf", "td")) + .withLevel("vxekraokqkbud"))); + model = BinaryData.fromObject(model).toObject(ConfigTemplateMetadataUpdateProperties.class); + Assertions.assertEquals("lskkzpxvj", model.contextId()); + Assertions.assertEquals("o", model.linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("ytexvzilmhivzk", model.linkedHierarchies().get(0).level()); + Assertions.assertEquals("enuzejg", model.unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("veb", model.unLinkedHierarchies().get(0).level()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataUpdateTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataUpdateTests.java new file mode 100644 index 0000000000000..522982b324a5a --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadataUpdateTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdate; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataUpdateProperties; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ConfigTemplateMetadataUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConfigTemplateMetadataUpdate model = BinaryData.fromString( + "{\"properties\":{\"contextId\":\"eyngjg\",\"linkedHierarchies\":[{\"hierarchyIds\":[\"pygglpmcrdc\",\"eljtiahxmfqryarv\"],\"level\":\"zqbglcjkays\"}],\"unLinkedHierarchies\":[{\"hierarchyIds\":[\"dubtlmj\",\"gblioskkfmkm\",\"djxyxgbkkqvjcteo\"],\"level\":\"l\"}]}}") + .toObject(ConfigTemplateMetadataUpdate.class); + Assertions.assertEquals("eyngjg", model.properties().contextId()); + Assertions.assertEquals("pygglpmcrdc", model.properties().linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("zqbglcjkays", model.properties().linkedHierarchies().get(0).level()); + Assertions.assertEquals("dubtlmj", model.properties().unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("l", model.properties().unLinkedHierarchies().get(0).level()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ConfigTemplateMetadataUpdate model = new ConfigTemplateMetadataUpdate() + .withProperties(new ConfigTemplateMetadataUpdateProperties().withContextId("eyngjg") + .withLinkedHierarchies(Arrays + .asList(new HierarchyMetadata().withHierarchyIds(Arrays.asList("pygglpmcrdc", "eljtiahxmfqryarv")) + .withLevel("zqbglcjkays"))) + .withUnLinkedHierarchies(Arrays.asList(new HierarchyMetadata() + .withHierarchyIds(Arrays.asList("dubtlmj", "gblioskkfmkm", "djxyxgbkkqvjcteo")) + .withLevel("l")))); + model = BinaryData.fromObject(model).toObject(ConfigTemplateMetadataUpdate.class); + Assertions.assertEquals("eyngjg", model.properties().contextId()); + Assertions.assertEquals("pygglpmcrdc", model.properties().linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("zqbglcjkays", model.properties().linkedHierarchies().get(0).level()); + Assertions.assertEquals("dubtlmj", model.properties().unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("l", model.properties().unLinkedHierarchies().get(0).level()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasCreateOrUpdateMockTests.java new file mode 100644 index 0000000000000..38a182e57487c --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasCreateOrUpdateMockTests.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadata; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadataProperties; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ConfigTemplateMetadatasCreateOrUpdateMockTests { + @Test + public void testCreateOrUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"contextId\":\"tdurmdtacntjna\",\"linkedHierarchies\":[{\"hierarchyIds\":[\"i\",\"asbtws\",\"kfkuy\",\"kmxhhqsx\"],\"level\":\"jkewriglbqtrefe\"},{\"hierarchyIds\":[\"lxcjffzwncv\",\"efx\",\"n\",\"tpcjpt\"],\"level\":\"tqrcjqp\"},{\"hierarchyIds\":[\"npjrrhpgs\"],\"level\":\"ioagwviqehmdq\"},{\"hierarchyIds\":[\"lidxdfsfvkj\",\"imbr\"],\"level\":\"xphtjn\"}],\"unLinkedHierarchies\":[{\"hierarchyIds\":[\"rkd\",\"yzhimm\",\"dtdtft\"],\"level\":\"zuzj\"}],\"templateUniqueIdentifier\":\"rgyzcslazp\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"yimxpggktteagbg\",\"id\":\"nqpjuytvudeylp\",\"name\":\"ybkisb\",\"type\":\"ifm\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ConfigTemplateMetadata response = manager.configTemplateMetadatas() + .define("zzfzdjek") + .withExistingConfigTemplate("vhzfkdnwy", "odcikgxk") + .withProperties(new ConfigTemplateMetadataProperties().withContextId("w") + .withLinkedHierarchies(Arrays.asList( + new HierarchyMetadata().withHierarchyIds(Arrays.asList("wyfixi", "gcjf")).withLevel("wulpjkakrxif"), + new HierarchyMetadata() + .withHierarchyIds(Arrays.asList("forxsqtz", "gxbsal", "wguxcmmhipbvskci", "ly")) + .withLevel("wfsaa"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("gb")).withLevel("vm"), + new HierarchyMetadata().withHierarchyIds(Arrays.asList("yliuajklnacg")).withLevel("x"))) + .withUnLinkedHierarchies(Arrays.asList( + new HierarchyMetadata().withHierarchyIds(Arrays.asList("zrjjaojp", "ngdrzigecwsadsq")) + .withLevel("ddkhwqdmohhe"), + new HierarchyMetadata() + .withHierarchyIds(Arrays.asList("unxmyevy", "gdeipnfizejwl", "iacndjzwh", "jodapqok")) + .withLevel("ync"), + new HierarchyMetadata() + .withHierarchyIds(Arrays.asList("xsewbempfap", "qnmelyksy", "ihiclmsln", "n")) + .withLevel("vzl"), + new HierarchyMetadata() + .withHierarchyIds(Arrays.asList("ajdexq", "awexizb", "zetjizwh", "nbmajvvyxtvvx")) + .withLevel("kzixbk")))) + .create(); + + Assertions.assertEquals("tdurmdtacntjna", response.properties().contextId()); + Assertions.assertEquals("i", response.properties().linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("jkewriglbqtrefe", response.properties().linkedHierarchies().get(0).level()); + Assertions.assertEquals("rkd", response.properties().unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("zuzj", response.properties().unLinkedHierarchies().get(0).level()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasGetWithResponseMockTests.java new file mode 100644 index 0000000000000..eae78fc9de88e --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasGetWithResponseMockTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadata; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ConfigTemplateMetadatasGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"contextId\":\"hujc\",\"linkedHierarchies\":[{\"hierarchyIds\":[\"mxvps\"],\"level\":\"zsyqagqllcbrvaid\"}],\"unLinkedHierarchies\":[{\"hierarchyIds\":[\"trrqwfyybptm\",\"jrnogykugdl\"],\"level\":\"sav\"},{\"hierarchyIds\":[\"kslgeuufkbz\"],\"level\":\"bxjblajybdnb\"},{\"hierarchyIds\":[\"btois\",\"zdjmofsvpzxgny\",\"xuym\"],\"level\":\"jymgwtmszcfyzqp\"}],\"templateUniqueIdentifier\":\"re\",\"provisioningState\":\"Initialized\"},\"eTag\":\"dpagk\",\"id\":\"maovrgihl\",\"name\":\"zffewvqkyc\",\"type\":\"cgeipqxxsdyaf\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ConfigTemplateMetadata response = manager.configTemplateMetadatas() + .getWithResponse("agysokl", "iksy", "vrrbnhy", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("hujc", response.properties().contextId()); + Assertions.assertEquals("mxvps", response.properties().linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("zsyqagqllcbrvaid", response.properties().linkedHierarchies().get(0).level()); + Assertions.assertEquals("trrqwfyybptm", + response.properties().unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("sav", response.properties().unLinkedHierarchies().get(0).level()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasListByConfigTemplateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasListByConfigTemplateMockTests.java new file mode 100644 index 0000000000000..d396e1b62ca28 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateMetadatasListByConfigTemplateMockTests.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateMetadata; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ConfigTemplateMetadatasListByConfigTemplateMockTests { + @Test + public void testListByConfigTemplate() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"contextId\":\"jzeu\",\"linkedHierarchies\":[{\"hierarchyIds\":[\"ogtqscj\",\"vqerqxkomwdzpzl\",\"cuex\"],\"level\":\"pwwvmbjecfw\"}],\"unLinkedHierarchies\":[{\"hierarchyIds\":[\"kfrwxohlydsnjz\",\"chiypbfhm\"],\"level\":\"iktqozewbrsrj\"},{\"hierarchyIds\":[\"brauxb\",\"ufqnnqbjxgjwsr\",\"rukbuudrizwkw\"],\"level\":\"xla\"},{\"hierarchyIds\":[\"dikqelssybz\",\"evgb\",\"rommkiqhypwt\"],\"level\":\"yjjyutomzqlna\"},{\"hierarchyIds\":[\"i\",\"j\",\"fqiywhxpsb\",\"pialezay\"],\"level\":\"uzudegefxl\"}],\"templateUniqueIdentifier\":\"ggo\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"hssfnwh\",\"id\":\"ah\",\"name\":\"ecknfm\",\"type\":\"cufthdgwuzrono\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.configTemplateMetadatas() + .listByConfigTemplate("tydsmm", "bhgclejqzhpvhxp", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("jzeu", response.iterator().next().properties().contextId()); + Assertions.assertEquals("ogtqscj", + response.iterator().next().properties().linkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("pwwvmbjecfw", + response.iterator().next().properties().linkedHierarchies().get(0).level()); + Assertions.assertEquals("kfrwxohlydsnjz", + response.iterator().next().properties().unLinkedHierarchies().get(0).hierarchyIds().get(0)); + Assertions.assertEquals("iktqozewbrsrj", + response.iterator().next().properties().unLinkedHierarchies().get(0).level()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatePropertiesTests.java index 956415eaa7c94..bc0d19307a628 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatePropertiesTests.java @@ -11,17 +11,16 @@ public final class ConfigTemplatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ConfigTemplateProperties model = BinaryData - .fromString( - "{\"description\":\"zjvusfzldmo\",\"latestVersion\":\"xylfsb\",\"provisioningState\":\"InProgress\"}") + ConfigTemplateProperties model = BinaryData.fromString( + "{\"uniqueIdentifier\":\"e\",\"description\":\"jelaqacigele\",\"latestVersion\":\"d\",\"provisioningState\":\"Failed\"}") .toObject(ConfigTemplateProperties.class); - Assertions.assertEquals("zjvusfzldmo", model.description()); + Assertions.assertEquals("jelaqacigele", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConfigTemplateProperties model = new ConfigTemplateProperties().withDescription("zjvusfzldmo"); + ConfigTemplateProperties model = new ConfigTemplateProperties().withDescription("jelaqacigele"); model = BinaryData.fromObject(model).toObject(ConfigTemplateProperties.class); - Assertions.assertEquals("zjvusfzldmo", model.description()); + Assertions.assertEquals("jelaqacigele", model.description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemaInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemaInnerTests.java new file mode 100644 index 0000000000000..67ded616312d3 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemaInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateSchemaInner; + +public final class ConfigTemplateSchemaInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConfigTemplateSchemaInner model = BinaryData.fromString( + "{\"properties\":{\"value\":\"\\\"dataictnkjjwgcw\\\"\",\"templateUniqueIdentifier\":\"hbkgfyrt\",\"provisioningState\":\"Canceled\"},\"eTag\":\"mjpjscdfpdqwty\",\"id\":\"vgwmseharxifvqnr\",\"name\":\"tmbpjp\",\"type\":\"nvwjhrsidqpxl\"}") + .toObject(ConfigTemplateSchemaInner.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemaListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemaListResultTests.java new file mode 100644 index 0000000000000..fbb894612082a --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemaListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.implementation.models.ConfigTemplateSchemaListResult; +import org.junit.jupiter.api.Assertions; + +public final class ConfigTemplateSchemaListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConfigTemplateSchemaListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"value\":\"\\\"datay\\\"\",\"templateUniqueIdentifier\":\"jqdvdwkqpldrlefg\",\"provisioningState\":\"Canceled\"},\"eTag\":\"uagntetaou\",\"id\":\"pdctuhspfefyi\",\"name\":\"duyeuyl\",\"type\":\"phm\"}],\"nextLink\":\"bkcgsuthhllnm\"}") + .toObject(ConfigTemplateSchemaListResult.class); + Assertions.assertEquals("bkcgsuthhllnm", model.nextLink()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemaPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemaPropertiesTests.java new file mode 100644 index 0000000000000..fab6bb9ff077f --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemaPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateSchemaProperties; + +public final class ConfigTemplateSchemaPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConfigTemplateSchemaProperties model = BinaryData.fromString( + "{\"value\":\"\\\"datapakftngatwm\\\"\",\"templateUniqueIdentifier\":\"yutrymd\",\"provisioningState\":\"Succeeded\"}") + .toObject(ConfigTemplateSchemaProperties.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasGetWithResponseMockTests.java new file mode 100644 index 0000000000000..f005c964d4719 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasGetWithResponseMockTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateSchema; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ConfigTemplateSchemasGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"value\":\"\\\"datawcjomipvw\\\"\",\"templateUniqueIdentifier\":\"ujttwykoxvbw\",\"provisioningState\":\"Failed\"},\"eTag\":\"d\",\"id\":\"relfkvgahcbt\",\"name\":\"xlbpxrhrfjenrazw\",\"type\":\"fiktlhqa\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ConfigTemplateSchema response = manager.configTemplateSchemas() + .getWithResponse("vulaqcwggc", "xvlqgfbrve", "icaovphirlzbipi", "nnepkwzzzku", + com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasListByConfigTemplateVersionMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasListByConfigTemplateVersionMockTests.java new file mode 100644 index 0000000000000..76cccb8d5a9f5 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateSchemasListByConfigTemplateVersionMockTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateSchema; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ConfigTemplateSchemasListByConfigTemplateVersionMockTests { + @Test + public void testListByConfigTemplateVersion() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"value\":\"\\\"datahfiwltkfysunt\\\"\",\"templateUniqueIdentifier\":\"hkl\",\"provisioningState\":\"Canceled\"},\"eTag\":\"vasyyhgqok\",\"id\":\"msrkixyxxhwrlq\",\"name\":\"maqsyilpz\",\"type\":\"brwnrzozs\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.configTemplateSchemas() + .listByConfigTemplateVersion("htostjixyzsecig", "zdwjtacfvvtdpcbp", "fomcsau", + com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateUpdatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateUpdatePropertiesTests.java index f6c6a26d2712b..9dc87c23bf6fd 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateUpdatePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateUpdatePropertiesTests.java @@ -12,14 +12,14 @@ public final class ConfigTemplateUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConfigTemplateUpdateProperties model - = BinaryData.fromString("{\"description\":\"nowc\"}").toObject(ConfigTemplateUpdateProperties.class); - Assertions.assertEquals("nowc", model.description()); + = BinaryData.fromString("{\"description\":\"pli\"}").toObject(ConfigTemplateUpdateProperties.class); + Assertions.assertEquals("pli", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConfigTemplateUpdateProperties model = new ConfigTemplateUpdateProperties().withDescription("nowc"); + ConfigTemplateUpdateProperties model = new ConfigTemplateUpdateProperties().withDescription("pli"); model = BinaryData.fromObject(model).toObject(ConfigTemplateUpdateProperties.class); - Assertions.assertEquals("nowc", model.description()); + Assertions.assertEquals("pli", model.description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateUpdateTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateUpdateTests.java index 3215f572b42d4..abe94087cb724 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateUpdateTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateUpdateTests.java @@ -15,20 +15,21 @@ public final class ConfigTemplateUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConfigTemplateUpdate model = BinaryData.fromString( - "{\"tags\":{\"jqctojcmisofie\":\"ysownbtgkbug\",\"ojyqdhcuplcplcw\":\"pe\"},\"properties\":{\"description\":\"hihlhzdsqtzbs\"}}") + "{\"tags\":{\"jopwbeonrlkwz\":\"z\",\"soqfyiaseqchkrt\":\"qybxceakxcp\",\"uem\":\"zrazisgyk\",\"klinhmdptysprq\":\"anbwzohmnrxxbso\"},\"properties\":{\"description\":\"zxojpslsv\"}}") .toObject(ConfigTemplateUpdate.class); - Assertions.assertEquals("ysownbtgkbug", model.tags().get("jqctojcmisofie")); - Assertions.assertEquals("hihlhzdsqtzbs", model.properties().description()); + Assertions.assertEquals("z", model.tags().get("jopwbeonrlkwz")); + Assertions.assertEquals("zxojpslsv", model.properties().description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConfigTemplateUpdate model - = new ConfigTemplateUpdate().withTags(mapOf("jqctojcmisofie", "ysownbtgkbug", "ojyqdhcuplcplcw", "pe")) - .withProperties(new ConfigTemplateUpdateProperties().withDescription("hihlhzdsqtzbs")); + ConfigTemplateUpdate model = new ConfigTemplateUpdate() + .withTags(mapOf("jopwbeonrlkwz", "z", "soqfyiaseqchkrt", "qybxceakxcp", "uem", "zrazisgyk", + "klinhmdptysprq", "anbwzohmnrxxbso")) + .withProperties(new ConfigTemplateUpdateProperties().withDescription("zxojpslsv")); model = BinaryData.fromObject(model).toObject(ConfigTemplateUpdate.class); - Assertions.assertEquals("ysownbtgkbug", model.tags().get("jqctojcmisofie")); - Assertions.assertEquals("hihlhzdsqtzbs", model.properties().description()); + Assertions.assertEquals("z", model.tags().get("jopwbeonrlkwz")); + Assertions.assertEquals("zxojpslsv", model.properties().description()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionInnerTests.java index 876d6f401eb2f..493ced3290c5b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionInnerTests.java @@ -7,22 +7,21 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; -import org.junit.jupiter.api.Assertions; +import java.nio.charset.StandardCharsets; public final class ConfigTemplateVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConfigTemplateVersionInner model = BinaryData.fromString( - "{\"properties\":{\"configurations\":\"zkvyklx\",\"provisioningState\":\"Failed\"},\"eTag\":\"affmmfblcqc\",\"id\":\"bgq\",\"name\":\"brta\",\"type\":\"metttwgd\"}") + "{\"properties\":{\"configurations\":\"\\\"dataasunwqrjzfrgq\\\"\",\"provisioningState\":\"InProgress\"},\"eTag\":\"cmbuocnjrohmbpy\",\"id\":\"xameblydyvkfkm\",\"name\":\"ocxnehvsmtodl\",\"type\":\"pyapucygvoav\"}") .toObject(ConfigTemplateVersionInner.class); - Assertions.assertEquals("zkvyklx", model.properties().configurations()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConfigTemplateVersionInner model = new ConfigTemplateVersionInner() - .withProperties(new ConfigTemplateVersionProperties().withConfigurations("zkvyklx")); + ConfigTemplateVersionInner model + = new ConfigTemplateVersionInner().withProperties(new ConfigTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("\"dataasunwqrjzfrgq\"".getBytes(StandardCharsets.UTF_8)))); model = BinaryData.fromObject(model).toObject(ConfigTemplateVersionInner.class); - Assertions.assertEquals("zkvyklx", model.properties().configurations()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionListResultTests.java index 41428ef6cd231..2c0bfde3b7de2 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionListResultTests.java @@ -12,9 +12,8 @@ public final class ConfigTemplateVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConfigTemplateVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"configurations\":\"ypoh\",\"provisioningState\":\"InProgress\"},\"eTag\":\"slynsqyrpfoo\",\"id\":\"lttymsjn\",\"name\":\"gqdnfwqzd\",\"type\":\"gtilax\"},{\"properties\":{\"configurations\":\"fhqlyvi\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"iv\",\"id\":\"oyzunbixxr\",\"name\":\"ikvcpwp\",\"type\":\"clrcivtsox\"},{\"properties\":{\"configurations\":\"kenx\",\"provisioningState\":\"Canceled\"},\"eTag\":\"efrp\",\"id\":\"dnqqskawaoqvmmb\",\"name\":\"pqfrtqlkz\",\"type\":\"egnitg\"}],\"nextLink\":\"xlzyqd\"}") + "{\"value\":[{\"properties\":{\"configurations\":\"\\\"datawwgzwxjlmecvog\\\"\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"vne\",\"id\":\"aifghtmoqqt\",\"name\":\"ffhzbkrkjjjavfq\",\"type\":\"vhnqo\"},{\"properties\":{\"configurations\":\"\\\"datadogiyetesyp\\\"\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"ztjhqtfbovnynkbw\",\"id\":\"njuhpsprkzya\",\"name\":\"piaccxnafb\",\"type\":\"qroohtu\"}],\"nextLink\":\"maonurj\"}") .toObject(ConfigTemplateVersionListResult.class); - Assertions.assertEquals("ypoh", model.value().get(0).properties().configurations()); - Assertions.assertEquals("xlzyqd", model.nextLink()); + Assertions.assertEquals("maonurj", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionPropertiesTests.java index 6c3be5447c161..53217a3ed7e52 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionPropertiesTests.java @@ -6,22 +6,20 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; -import org.junit.jupiter.api.Assertions; +import java.nio.charset.StandardCharsets; public final class ConfigTemplateVersionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ConfigTemplateVersionProperties model - = BinaryData.fromString("{\"configurations\":\"lqxihhrmooiz\",\"provisioningState\":\"Canceled\"}") - .toObject(ConfigTemplateVersionProperties.class); - Assertions.assertEquals("lqxihhrmooiz", model.configurations()); + ConfigTemplateVersionProperties model = BinaryData + .fromString("{\"configurations\":\"\\\"dataunssxlghieegjl\\\"\",\"provisioningState\":\"Failed\"}") + .toObject(ConfigTemplateVersionProperties.class); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConfigTemplateVersionProperties model - = new ConfigTemplateVersionProperties().withConfigurations("lqxihhrmooiz"); + ConfigTemplateVersionProperties model = new ConfigTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("\"dataunssxlghieegjl\"".getBytes(StandardCharsets.UTF_8))); model = BinaryData.fromObject(model).toObject(ConfigTemplateVersionProperties.class); - Assertions.assertEquals("lqxihhrmooiz", model.configurations()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionWithUpdateTypeInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionWithUpdateTypeInnerTests.java index 48d02454e6152..eae5140c7db52 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionWithUpdateTypeInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionWithUpdateTypeInnerTests.java @@ -9,29 +9,29 @@ import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionWithUpdateTypeInner; import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; import com.azure.resourcemanager.workloadorchestration.models.UpdateType; +import java.nio.charset.StandardCharsets; import org.junit.jupiter.api.Assertions; public final class ConfigTemplateVersionWithUpdateTypeInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConfigTemplateVersionWithUpdateTypeInner model = BinaryData.fromString( - "{\"updateType\":\"Major\",\"version\":\"mvec\",\"configTemplateVersion\":{\"properties\":{\"configurations\":\"txmwoteyow\",\"provisioningState\":\"Initialized\"},\"eTag\":\"ovekqvgqouwi\",\"id\":\"mpjw\",\"name\":\"ivqikfxcvhr\",\"type\":\"sphuagrttikteus\"}}") + "{\"updateType\":\"Patch\",\"version\":\"wetzqddtjwfljh\",\"configTemplateVersion\":{\"properties\":{\"configurations\":\"\\\"dataamtuatmzwcjjnc\\\"\",\"provisioningState\":\"Initialized\"},\"eTag\":\"mizvgbgatzuuvbx\",\"id\":\"rebwggahtt\",\"name\":\"lswva\",\"type\":\"qfutlxjo\"}}") .toObject(ConfigTemplateVersionWithUpdateTypeInner.class); - Assertions.assertEquals(UpdateType.MAJOR, model.updateType()); - Assertions.assertEquals("mvec", model.version()); - Assertions.assertEquals("txmwoteyow", model.configTemplateVersion().properties().configurations()); + Assertions.assertEquals(UpdateType.PATCH, model.updateType()); + Assertions.assertEquals("wetzqddtjwfljh", model.version()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ConfigTemplateVersionWithUpdateTypeInner model - = new ConfigTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) - .withVersion("mvec") + = new ConfigTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.PATCH) + .withVersion("wetzqddtjwfljh") .withConfigTemplateVersion(new ConfigTemplateVersionInner() - .withProperties(new ConfigTemplateVersionProperties().withConfigurations("txmwoteyow"))); + .withProperties(new ConfigTemplateVersionProperties().withConfigurations( + BinaryData.fromBytes("\"dataamtuatmzwcjjnc\"".getBytes(StandardCharsets.UTF_8))))); model = BinaryData.fromObject(model).toObject(ConfigTemplateVersionWithUpdateTypeInner.class); - Assertions.assertEquals(UpdateType.MAJOR, model.updateType()); - Assertions.assertEquals("mvec", model.version()); - Assertions.assertEquals("txmwoteyow", model.configTemplateVersion().properties().configurations()); + Assertions.assertEquals(UpdateType.PATCH, model.updateType()); + Assertions.assertEquals("wetzqddtjwfljh", model.version()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsCreateOrUpdateMockTests.java new file mode 100644 index 0000000000000..a2aabc7a2fcd0 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsCreateOrUpdateMockTests.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersion; +import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersionProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ConfigTemplateVersionsCreateOrUpdateMockTests { + @Test + public void testCreateOrUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"configurations\":\"\\\"datac\\\"\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"fnbfbq\",\"id\":\"nqnxhgkordwzej\",\"name\":\"ecwzvcmbpwdluda\",\"type\":\"prldidwm\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ConfigTemplateVersion response = manager.configTemplateVersions() + .define("kpkpkocmacc") + .withExistingConfigTemplate("lhqvbk", "rbpyhssrl") + .withProperties(new ConfigTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("\"dataxxopyi\"".getBytes(StandardCharsets.UTF_8)))) + .create(); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsGetWithResponseMockTests.java index cd28b644d323a..89b5c8b8ccf45 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsGetWithResponseMockTests.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersion; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -21,7 +20,7 @@ public final class ConfigTemplateVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"configurations\":\"j\",\"provisioningState\":\"Initialized\"},\"eTag\":\"ocrdzgczeunt\",\"id\":\"dnc\",\"name\":\"q\",\"type\":\"tiekoifuvnyttz\"}"; + = "{\"properties\":{\"configurations\":\"\\\"dataprdaqcc\\\"\",\"provisioningState\":\"Initialized\"},\"eTag\":\"nygdjccxwbpwyyk\",\"id\":\"gq\",\"name\":\"lrzndas\",\"type\":\"nidmjqmvytg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +30,8 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConfigTemplateVersion response = manager.configTemplateVersions() - .getWithResponse("lmhxdqaolfylnk", "bjpjvlyw", "tmfwobbjwhl", com.azure.core.util.Context.NONE) + .getWithResponse("n", "detawevxehue", "dxljzvdovbrble", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("j", response.properties().configurations()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsListByConfigTemplateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsListByConfigTemplateMockTests.java index 82bc6afacb69a..ac2644612d965 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsListByConfigTemplateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplateVersionsListByConfigTemplateMockTests.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.workloadorchestration.models.ConfigTemplateVersion; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -22,7 +21,7 @@ public final class ConfigTemplateVersionsListByConfigTemplateMockTests { @Test public void testListByConfigTemplate() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"configurations\":\"ehlq\",\"provisioningState\":\"Failed\"},\"eTag\":\"flkn\",\"id\":\"ndpgfjodhda\",\"name\":\"otwfhipxwgsab\",\"type\":\"c\"}]}"; + = "{\"value\":[{\"properties\":{\"configurations\":\"\\\"datazffzjwztsmp\\\"\",\"provisioningState\":\"Deleting\"},\"eTag\":\"ryelgfyatigfg\",\"id\":\"r\",\"name\":\"dknczgorywn\",\"type\":\"ojtvmdev\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +30,8 @@ public void testListByConfigTemplate() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.configTemplateVersions().listByConfigTemplate("ixgy", "ihlgm", com.azure.core.util.Context.NONE); + PagedIterable response = manager.configTemplateVersions() + .listByConfigTemplate("iqlarhqtwvcaze", "d", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ehlq", response.iterator().next().properties().configurations()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateOrUpdateMockTests.java index f9e55e26a7925..6dc5d054bb590 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateOrUpdateMockTests.java @@ -24,7 +24,7 @@ public final class ConfigTemplatesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"rbnyrukoilacidu\",\"latestVersion\":\"leipjl\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"p\",\"location\":\"uzythqkkwhbgxv\",\"tags\":{\"tmujdtvmc\":\"vulnxdmn\",\"dnyxfzuvrz\":\"yymffhmjp\",\"mzjqrbr\":\"z\",\"jpp\":\"vnmdyfoeboj\"},\"id\":\"laohoqkp\",\"name\":\"t\",\"type\":\"qjilaywkdcwmqsyr\"}"; + = "{\"properties\":{\"uniqueIdentifier\":\"uqvcmlaexbzbqufp\",\"description\":\"ezs\",\"latestVersion\":\"aymldrorhyogzms\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"tcuuwdhtqqhyhn\",\"location\":\"xtnsugisn\",\"tags\":{\"eyym\":\"nwnghojov\",\"fpcrtnuguef\":\"cjixxf\"},\"id\":\"xijtebdveywet\",\"name\":\"rhlolmcnwepfg\",\"type\":\"vbbvaqdljnpetl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,16 +34,16 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConfigTemplate response = manager.configTemplates() - .define("gqbedygi") - .withRegion("kbrfgdrwji") - .withExistingResourceGroup("eboywhczzqrhm") - .withTags(mapOf("cwv", "hfjsrwqrxetf", "dqntycnawthv", "r", "nuyeamcmhud", "ax")) - .withProperties(new ConfigTemplateProperties().withDescription("zwnykdidjchl")) + .define("xukuicjuftekio") + .withRegion("avkmvyxzerejrkpz") + .withExistingResourceGroup("oa") + .withTags(mapOf("yoptaei", "etjx", "rrabovrwwxywp", "whlbecgihzbpem")) + .withProperties(new ConfigTemplateProperties().withDescription("fjz")) .create(); - Assertions.assertEquals("uzythqkkwhbgxv", response.location()); - Assertions.assertEquals("vulnxdmn", response.tags().get("tmujdtvmc")); - Assertions.assertEquals("rbnyrukoilacidu", response.properties().description()); + Assertions.assertEquals("xtnsugisn", response.location()); + Assertions.assertEquals("nwnghojov", response.tags().get("eyym")); + Assertions.assertEquals("ezs", response.properties().description()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateVersionMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateVersionMockTests.java index c845863bc0fef..b1467998a2c1c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateVersionMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesCreateVersionMockTests.java @@ -9,6 +9,7 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.fluent.models.ConfigTemplateVersionWithUpdateTypeInner; @@ -17,7 +18,6 @@ import com.azure.resourcemanager.workloadorchestration.models.UpdateType; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -25,7 +25,7 @@ public final class ConfigTemplatesCreateVersionMockTests { @Test public void testCreateVersion() throws Exception { String responseStr - = "{\"properties\":{\"configurations\":\"lutixmq\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"izcbfzmcrunfhiuc\",\"id\":\"fbcpaqktkrumzu\",\"name\":\"dkyzbfvxov\",\"type\":\"kxiuxqggvqr\"}"; + = "{\"properties\":{\"configurations\":\"\\\"datawcspimtcvvf\\\"\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"tzfslxizhqikmgo\",\"id\":\"iqemcdiiisklbon\",\"name\":\"xu\",\"type\":\"jxvtrkfkgenjqnnp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,13 +35,13 @@ public void testCreateVersion() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConfigTemplateVersion response = manager.configTemplates() - .createVersion("agynoi", "rnzcalinc", - new ConfigTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.PATCH) - .withVersion("zxaqzibm") + .createVersion("yo", "aadcndazabundt", + new ConfigTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.MINOR) + .withVersion("aupwhlzyckrem") .withConfigTemplateVersion(new ConfigTemplateVersionInner() - .withProperties(new ConfigTemplateVersionProperties().withConfigurations("miymqruqguhfupet"))), + .withProperties(new ConfigTemplateVersionProperties().withConfigurations( + BinaryData.fromBytes("\"datalmsvdo\"".getBytes(StandardCharsets.UTF_8))))), com.azure.core.util.Context.NONE); - Assertions.assertEquals("lutixmq", response.properties().configurations()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesGetByResourceGroupWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesGetByResourceGroupWithResponseMockTests.java index 53741eb0a934f..9e7d8cc356ae2 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesGetByResourceGroupWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesGetByResourceGroupWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ConfigTemplatesGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"y\",\"latestVersion\":\"nudn\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"hjxwxq\",\"location\":\"uipmpvks\",\"tags\":{\"krdpqgfhyrfr\":\"nsqxtltc\",\"rcwfcmfcnrjajq\":\"kkld\"},\"id\":\"atxjtiel\",\"name\":\"zqgxx\",\"type\":\"fbbmtlp\"}"; + = "{\"properties\":{\"uniqueIdentifier\":\"qssgfenffdx\",\"description\":\"vwfqjch\",\"latestVersion\":\"d\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"nxndmuvardlmzjo\",\"location\":\"r\",\"tags\":{\"o\":\"hcuhtuzlxiw\",\"ctwrapcz\":\"garp\"},\"id\":\"ojqyvzes\",\"name\":\"pi\",\"type\":\"snj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConfigTemplate response = manager.configTemplates() - .getByResourceGroupWithResponse("n", "oywsxvjabjqqaxu", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("udma", "swtvd", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("uipmpvks", response.location()); - Assertions.assertEquals("nsqxtltc", response.tags().get("krdpqgfhyrfr")); - Assertions.assertEquals("y", response.properties().description()); + Assertions.assertEquals("r", response.location()); + Assertions.assertEquals("hcuhtuzlxiw", response.tags().get("o")); + Assertions.assertEquals("vwfqjch", response.properties().description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListByResourceGroupMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListByResourceGroupMockTests.java index d3a9d2d376d9c..b589feb0d0b63 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListByResourceGroupMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListByResourceGroupMockTests.java @@ -22,7 +22,7 @@ public final class ConfigTemplatesListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"cleqioulndhzyo\",\"latestVersion\":\"jhtollh\",\"provisioningState\":\"Deleting\"},\"eTag\":\"mytzln\",\"location\":\"xpno\",\"tags\":{\"wqagy\":\"anfbc\",\"tpgaeukya\":\"vtxigvjr\",\"csklhsidsjt\":\"ohpmwhqn\",\"gazlsvbz\":\"lpbnin\"},\"id\":\"cpuo\",\"name\":\"e\",\"type\":\"wjcciklhsy\"}]}"; + = "{\"value\":[{\"properties\":{\"uniqueIdentifier\":\"svjmnsvujnjk\",\"description\":\"volefcj\",\"latestVersion\":\"epkdbxot\",\"provisioningState\":\"Deleting\"},\"eTag\":\"mp\",\"location\":\"c\",\"tags\":{\"k\":\"nmxynlsuqbwzst\",\"trgjjkt\":\"gvp\",\"fhok\":\"i\",\"cru\":\"mmculwkq\"},\"id\":\"okr\",\"name\":\"flsgaoj\",\"type\":\"tqpqsdoctpzpujzf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.configTemplates().listByResourceGroup("wwa", com.azure.core.util.Context.NONE); + = manager.configTemplates().listByResourceGroup("uekdcpvu", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xpno", response.iterator().next().location()); - Assertions.assertEquals("anfbc", response.iterator().next().tags().get("wqagy")); - Assertions.assertEquals("cleqioulndhzyo", response.iterator().next().properties().description()); + Assertions.assertEquals("c", response.iterator().next().location()); + Assertions.assertEquals("nmxynlsuqbwzst", response.iterator().next().tags().get("k")); + Assertions.assertEquals("volefcj", response.iterator().next().properties().description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListMockTests.java index c4f397a6f2cec..5adb8a26a00c5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesListMockTests.java @@ -22,7 +22,7 @@ public final class ConfigTemplatesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"rdrenxo\",\"latestVersion\":\"i\",\"provisioningState\":\"InProgress\"},\"eTag\":\"beivdlhydwbdbfg\",\"location\":\"punytjl\",\"tags\":{\"ta\":\"mmpathu\",\"wllbv\":\"deani\",\"ravaq\":\"wzsfftedousnktjt\"},\"id\":\"gfkbebauzlqbtxx\",\"name\":\"pfhnjzudrt\",\"type\":\"zkg\"}]}"; + = "{\"value\":[{\"properties\":{\"uniqueIdentifier\":\"dsgxcelujiswlluu\",\"description\":\"xhfwlfxzfwuge\",\"latestVersion\":\"cknecexkgr\",\"provisioningState\":\"Failed\"},\"eTag\":\"jdmngsytqpdzfyxc\",\"location\":\"awoxcgzbe\",\"tags\":{\"xdwdrpazqjkrfm\":\"bifopf\",\"gtji\":\"wotfcuu\",\"cjjkmqenh\":\"pgayiawohfmhnnzm\",\"vs\":\"idzr\"},\"id\":\"lo\",\"name\":\"ovslvivqsuvwtenb\",\"type\":\"pijpkhc\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,8 +33,8 @@ public void testList() throws Exception { PagedIterable response = manager.configTemplates().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("punytjl", response.iterator().next().location()); - Assertions.assertEquals("mmpathu", response.iterator().next().tags().get("ta")); - Assertions.assertEquals("rdrenxo", response.iterator().next().properties().description()); + Assertions.assertEquals("awoxcgzbe", response.iterator().next().location()); + Assertions.assertEquals("bifopf", response.iterator().next().tags().get("xdwdrpazqjkrfm")); + Assertions.assertEquals("xhfwlfxzfwuge", response.iterator().next().properties().description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesRemoveVersionWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesRemoveVersionWithResponseMockTests.java index 187ce2f63adab..b38bb03beccb4 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesRemoveVersionWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ConfigTemplatesRemoveVersionWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ConfigTemplatesRemoveVersionWithResponseMockTests { @Test public void testRemoveVersionWithResponse() throws Exception { - String responseStr = "{\"status\":\"wmwwmjswen\"}"; + String responseStr = "{\"status\":\"xyxwjezbfqplo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testRemoveVersionWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RemoveVersionResponse response = manager.configTemplates() - .removeVersionWithResponse("hyhlwcjsqg", "jhffbxrqrkij", new VersionParameter().withVersion("euqlsdxeqztv"), - com.azure.core.util.Context.NONE) + .removeVersionWithResponse("wkosnyxigf", "ujjcxgdqmrlhn", + new VersionParameter().withVersion("kwopswnyinxupr"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wmwwmjswen", response.status()); + Assertions.assertEquals("xyxwjezbfqplo", response.status()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextInnerTests.java index ade9a04084f97..325981aa7a326 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextInnerTests.java @@ -19,43 +19,38 @@ public final class ContextInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ContextInner model = BinaryData.fromString( - "{\"properties\":{\"capabilities\":[{\"name\":\"ztrksxwpndf\",\"description\":\"pfnznthjtwkj\",\"state\":\"inactive\"},{\"name\":\"rxuzvoam\",\"description\":\"tcqiosmg\",\"state\":\"active\"},{\"name\":\"hgxqdlyrt\",\"description\":\"tlaprltzkatb\",\"state\":\"inactive\"},{\"name\":\"znnbsoqeqalarvl\",\"description\":\"gunbtgfebwlnbm\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"eudzqavbpd\",\"description\":\"mjxlyyzglgouw\"}],\"provisioningState\":\"Initialized\"},\"location\":\"jyuojqtobaxkjeyt\",\"tags\":{\"u\":\"bfjkw\",\"njqhdenxa\":\"nkqbhsyrq\"},\"id\":\"l\",\"name\":\"pakdkifmjnnawt\",\"type\":\"abpxuc\"}") + "{\"properties\":{\"uniqueIdentifier\":\"yuuatvlmbjwcolbm\",\"capabilities\":[{\"name\":\"b\",\"description\":\"w\",\"state\":\"inactive\"},{\"name\":\"pa\",\"description\":\"pr\",\"state\":\"inactive\"},{\"name\":\"xhmtfhocnxzc\",\"description\":\"jhngxnoq\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"isn\",\"description\":\"evhdlmydid\"},{\"name\":\"hepfwwtjfdoes\",\"description\":\"xhmw\"}],\"provisioningState\":\"Deleting\"},\"location\":\"ky\",\"tags\":{\"plvukaobrlbpg\":\"xkxhnegknjzrbhtm\",\"g\":\"nbagnchj\",\"xcgqtagdrclsso\":\"muowakywalhjy\"},\"id\":\"jomevtfycnlb\",\"name\":\"gjco\",\"type\":\"kk\"}") .toObject(ContextInner.class); - Assertions.assertEquals("jyuojqtobaxkjeyt", model.location()); - Assertions.assertEquals("bfjkw", model.tags().get("u")); - Assertions.assertEquals("ztrksxwpndf", model.properties().capabilities().get(0).name()); - Assertions.assertEquals("pfnznthjtwkj", model.properties().capabilities().get(0).description()); + Assertions.assertEquals("ky", model.location()); + Assertions.assertEquals("xkxhnegknjzrbhtm", model.tags().get("plvukaobrlbpg")); + Assertions.assertEquals("b", model.properties().capabilities().get(0).name()); + Assertions.assertEquals("w", model.properties().capabilities().get(0).description()); Assertions.assertEquals(ResourceState.INACTIVE, model.properties().capabilities().get(0).state()); - Assertions.assertEquals("eudzqavbpd", model.properties().hierarchies().get(0).name()); - Assertions.assertEquals("mjxlyyzglgouw", model.properties().hierarchies().get(0).description()); + Assertions.assertEquals("isn", model.properties().hierarchies().get(0).name()); + Assertions.assertEquals("evhdlmydid", model.properties().hierarchies().get(0).description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ContextInner model = new ContextInner().withLocation("jyuojqtobaxkjeyt") - .withTags(mapOf("u", "bfjkw", "njqhdenxa", "nkqbhsyrq")) + ContextInner model = new ContextInner().withLocation("ky") + .withTags(mapOf("plvukaobrlbpg", "xkxhnegknjzrbhtm", "g", "nbagnchj", "xcgqtagdrclsso", "muowakywalhjy")) .withProperties(new ContextProperties() - .withCapabilities(Arrays.asList( - new Capability().withName("ztrksxwpndf") - .withDescription("pfnznthjtwkj") - .withState(ResourceState.INACTIVE), - new Capability().withName("rxuzvoam").withDescription("tcqiosmg").withState(ResourceState.ACTIVE), - new Capability().withName("hgxqdlyrt") - .withDescription("tlaprltzkatb") - .withState(ResourceState.INACTIVE), - new Capability().withName("znnbsoqeqalarvl") - .withDescription("gunbtgfebwlnbm") - .withState(ResourceState.INACTIVE))) - .withHierarchies( - Arrays.asList(new Hierarchy().withName("eudzqavbpd").withDescription("mjxlyyzglgouw")))); + .withCapabilities( + Arrays.asList(new Capability().withName("b").withDescription("w").withState(ResourceState.INACTIVE), + new Capability().withName("pa").withDescription("pr").withState(ResourceState.INACTIVE), + new Capability().withName("xhmtfhocnxzc") + .withDescription("jhngxnoq") + .withState(ResourceState.INACTIVE))) + .withHierarchies(Arrays.asList(new Hierarchy().withName("isn").withDescription("evhdlmydid"), + new Hierarchy().withName("hepfwwtjfdoes").withDescription("xhmw")))); model = BinaryData.fromObject(model).toObject(ContextInner.class); - Assertions.assertEquals("jyuojqtobaxkjeyt", model.location()); - Assertions.assertEquals("bfjkw", model.tags().get("u")); - Assertions.assertEquals("ztrksxwpndf", model.properties().capabilities().get(0).name()); - Assertions.assertEquals("pfnznthjtwkj", model.properties().capabilities().get(0).description()); + Assertions.assertEquals("ky", model.location()); + Assertions.assertEquals("xkxhnegknjzrbhtm", model.tags().get("plvukaobrlbpg")); + Assertions.assertEquals("b", model.properties().capabilities().get(0).name()); + Assertions.assertEquals("w", model.properties().capabilities().get(0).description()); Assertions.assertEquals(ResourceState.INACTIVE, model.properties().capabilities().get(0).state()); - Assertions.assertEquals("eudzqavbpd", model.properties().hierarchies().get(0).name()); - Assertions.assertEquals("mjxlyyzglgouw", model.properties().hierarchies().get(0).description()); + Assertions.assertEquals("isn", model.properties().hierarchies().get(0).name()); + Assertions.assertEquals("evhdlmydid", model.properties().hierarchies().get(0).description()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextListResultTests.java index 4aa7355b809b0..c52eee729212c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextListResultTests.java @@ -13,16 +13,16 @@ public final class ContextListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ContextListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"capabilities\":[{\"name\":\"cpzgpxtiv\",\"description\":\"j\",\"state\":\"inactive\"},{\"name\":\"dibgqjxgpnrhgov\",\"description\":\"gpikqmh\",\"state\":\"inactive\"},{\"name\":\"wjrmzvuporqzd\",\"description\":\"uydzvk\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"nq\",\"description\":\"xqpswok\"},{\"name\":\"vkhlggdhbemz\",\"description\":\"kzsz\"},{\"name\":\"wiwtglxxhl\",\"description\":\"fpgpicrmnzhrgm\"}],\"provisioningState\":\"Canceled\"},\"location\":\"x\",\"tags\":{\"odth\":\"cbfrm\",\"jfrnxousxauzlwv\":\"qqgvriibakcla\",\"mmkjsvthnwpztek\":\"gmwohqfzizvu\"},\"id\":\"vmribiat\",\"name\":\"gplucfotangcfhny\",\"type\":\"zcugswvxwlmzqw\"},{\"properties\":{\"capabilities\":[{\"name\":\"xnjmxm\",\"description\":\"uqudtcvclxyn\",\"state\":\"active\"}],\"hierarchies\":[{\"name\":\"gfabuiyjibuzphdu\",\"description\":\"neiknpg\"},{\"name\":\"xgjiuqh\",\"description\":\"btozipqwje\"}],\"provisioningState\":\"Succeeded\"},\"location\":\"r\",\"tags\":{\"kmqp\":\"ewpktvqy\"},\"id\":\"o\",\"name\":\"hlfbcgwgc\",\"type\":\"oxoebqi\"},{\"properties\":{\"capabilities\":[{\"name\":\"pnwjfujq\",\"description\":\"afcba\",\"state\":\"inactive\"},{\"name\":\"zpofoiyjwpfilk\",\"description\":\"kkholvdndvia\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"huartv\",\"description\":\"iukyefchnmna\"},{\"name\":\"mnxhkxjqirwrweo\",\"description\":\"xffi\"}],\"provisioningState\":\"Deleting\"},\"location\":\"rsnewmozqvbubqma\",\"tags\":{\"o\":\"ycxhxzgaztta\",\"w\":\"dvmfqhppub\",\"tcjuahokqto\":\"epdfgkmtdherng\"},\"id\":\"kauxof\",\"name\":\"hfphwpnulaiywze\",\"type\":\"ywhslwkojpllndnp\"},{\"properties\":{\"capabilities\":[{\"name\":\"pqafgfugsnnfhy\",\"description\":\"tefypococtfjgti\",\"state\":\"active\"},{\"name\":\"vzuyturmlmu\",\"description\":\"wolba\",\"state\":\"active\"}],\"hierarchies\":[{\"name\":\"p\",\"description\":\"ons\"},{\"name\":\"onwpnga\",\"description\":\"innixjawrtmjfj\"},{\"name\":\"yccxlzhcox\",\"description\":\"vnekhenlusfnrdtj\"}],\"provisioningState\":\"Deleting\"},\"location\":\"dcqtjvidttge\",\"tags\":{\"zies\":\"lvyjtcvuwkas\",\"uhxu\":\"uughtuqfecjxeyg\",\"hwpusxj\":\"cbuewmrswnjlxuz\",\"dohzjq\":\"aqehg\"},\"id\":\"tu\",\"name\":\"o\",\"type\":\"gebx\"}],\"nextLink\":\"nwfepbnwg\"}") + "{\"value\":[{\"properties\":{\"uniqueIdentifier\":\"ykglt\",\"capabilities\":[{\"name\":\"xhqf\",\"description\":\"qkaye\",\"state\":\"inactive\"},{\"name\":\"tlgflwfgz\",\"description\":\"iucijjcea\",\"state\":\"active\"},{\"name\":\"jjj\",\"description\":\"tvamcaszknx\",\"state\":\"inactive\"},{\"name\":\"cxetyvkunmignoh\",\"description\":\"k\",\"state\":\"active\"}],\"hierarchies\":[{\"name\":\"g\",\"description\":\"wpin\"},{\"name\":\"edvabbxbhmedeilb\",\"description\":\"ywfcfxzi\"},{\"name\":\"zzihvwy\",\"description\":\"usuv\"},{\"name\":\"slczwciidjsllf\",\"description\":\"yvdmvx\"}],\"provisioningState\":\"Deleting\"},\"location\":\"cfrgnawbabgfbkt\",\"tags\":{\"xqmjeajcxn\":\"fczlfsyqkfrbzgow\",\"hlusrvxisi\":\"qg\"},\"id\":\"jceagb\",\"name\":\"qvlsumywzas\",\"type\":\"xgo\"},{\"properties\":{\"uniqueIdentifier\":\"jfqipubyznclkfk\",\"capabilities\":[{\"name\":\"bgvopemt\",\"description\":\"oqujlyegqavn\",\"state\":\"inactive\"},{\"name\":\"lqqbtnyjpylxdbfv\",\"description\":\"bmvmsxba\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"cnkottlwuhva\",\"description\":\"mailfemjj\"},{\"name\":\"akz\",\"description\":\"jiqul\"},{\"name\":\"qx\",\"description\":\"dmvr\"}],\"provisioningState\":\"Canceled\"},\"location\":\"erndbrnyeofltfnn\",\"tags\":{\"ynnfmuiii\":\"adj\",\"bcbrwjiutgnjizbe\":\"ipfohykfkx\"},\"id\":\"woiymrvz\",\"name\":\"juyrsrziuctixg\",\"type\":\"d\"}],\"nextLink\":\"ifrevk\"}") .toObject(ContextListResult.class); - Assertions.assertEquals("x", model.value().get(0).location()); - Assertions.assertEquals("cbfrm", model.value().get(0).tags().get("odth")); - Assertions.assertEquals("cpzgpxtiv", model.value().get(0).properties().capabilities().get(0).name()); - Assertions.assertEquals("j", model.value().get(0).properties().capabilities().get(0).description()); + Assertions.assertEquals("cfrgnawbabgfbkt", model.value().get(0).location()); + Assertions.assertEquals("fczlfsyqkfrbzgow", model.value().get(0).tags().get("xqmjeajcxn")); + Assertions.assertEquals("xhqf", model.value().get(0).properties().capabilities().get(0).name()); + Assertions.assertEquals("qkaye", model.value().get(0).properties().capabilities().get(0).description()); Assertions.assertEquals(ResourceState.INACTIVE, model.value().get(0).properties().capabilities().get(0).state()); - Assertions.assertEquals("nq", model.value().get(0).properties().hierarchies().get(0).name()); - Assertions.assertEquals("xqpswok", model.value().get(0).properties().hierarchies().get(0).description()); - Assertions.assertEquals("nwfepbnwg", model.nextLink()); + Assertions.assertEquals("g", model.value().get(0).properties().hierarchies().get(0).name()); + Assertions.assertEquals("wpin", model.value().get(0).properties().hierarchies().get(0).description()); + Assertions.assertEquals("ifrevk", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextPropertiesTests.java index 8db2eb7294af8..b25753e0fa57d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextPropertiesTests.java @@ -16,26 +16,26 @@ public final class ContextPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ContextProperties model = BinaryData.fromString( - "{\"capabilities\":[{\"name\":\"ggqowey\",\"description\":\"rdhlis\",\"state\":\"active\"}],\"hierarchies\":[{\"name\":\"lqqmpiz\",\"description\":\"uwnpqxpxiwfcng\"}],\"provisioningState\":\"Succeeded\"}") + "{\"uniqueIdentifier\":\"iiy\",\"capabilities\":[{\"name\":\"sik\",\"description\":\"z\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"q\",\"description\":\"vntnrgmqso\"}],\"provisioningState\":\"Failed\"}") .toObject(ContextProperties.class); - Assertions.assertEquals("ggqowey", model.capabilities().get(0).name()); - Assertions.assertEquals("rdhlis", model.capabilities().get(0).description()); - Assertions.assertEquals(ResourceState.ACTIVE, model.capabilities().get(0).state()); - Assertions.assertEquals("lqqmpiz", model.hierarchies().get(0).name()); - Assertions.assertEquals("uwnpqxpxiwfcng", model.hierarchies().get(0).description()); + Assertions.assertEquals("sik", model.capabilities().get(0).name()); + Assertions.assertEquals("z", model.capabilities().get(0).description()); + Assertions.assertEquals(ResourceState.INACTIVE, model.capabilities().get(0).state()); + Assertions.assertEquals("q", model.hierarchies().get(0).name()); + Assertions.assertEquals("vntnrgmqso", model.hierarchies().get(0).description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ContextProperties model = new ContextProperties() - .withCapabilities(Arrays - .asList(new Capability().withName("ggqowey").withDescription("rdhlis").withState(ResourceState.ACTIVE))) - .withHierarchies(Arrays.asList(new Hierarchy().withName("lqqmpiz").withDescription("uwnpqxpxiwfcng"))); + .withCapabilities( + Arrays.asList(new Capability().withName("sik").withDescription("z").withState(ResourceState.INACTIVE))) + .withHierarchies(Arrays.asList(new Hierarchy().withName("q").withDescription("vntnrgmqso"))); model = BinaryData.fromObject(model).toObject(ContextProperties.class); - Assertions.assertEquals("ggqowey", model.capabilities().get(0).name()); - Assertions.assertEquals("rdhlis", model.capabilities().get(0).description()); - Assertions.assertEquals(ResourceState.ACTIVE, model.capabilities().get(0).state()); - Assertions.assertEquals("lqqmpiz", model.hierarchies().get(0).name()); - Assertions.assertEquals("uwnpqxpxiwfcng", model.hierarchies().get(0).description()); + Assertions.assertEquals("sik", model.capabilities().get(0).name()); + Assertions.assertEquals("z", model.capabilities().get(0).description()); + Assertions.assertEquals(ResourceState.INACTIVE, model.capabilities().get(0).state()); + Assertions.assertEquals("q", model.hierarchies().get(0).name()); + Assertions.assertEquals("vntnrgmqso", model.hierarchies().get(0).description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextUpdatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextUpdatePropertiesTests.java index 5caab7bea015d..3fcdba4f8567a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextUpdatePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextUpdatePropertiesTests.java @@ -16,29 +16,30 @@ public final class ContextUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ContextUpdateProperties model = BinaryData.fromString( - "{\"capabilities\":[{\"name\":\"dtmaa\",\"description\":\"quhuxylrj\",\"state\":\"active\"},{\"name\":\"ygjbmzyospspsh\",\"description\":\"kfkyjp\",\"state\":\"inactive\"},{\"name\":\"bpssdfp\",\"description\":\"yogtieyujtvczkcn\",\"state\":\"inactive\"},{\"name\":\"x\",\"description\":\"unjdx\",\"state\":\"active\"}],\"hierarchies\":[{\"name\":\"vxlx\",\"description\":\"aglqivbgkcvkh\"},{\"name\":\"zvuqdflvon\",\"description\":\"yp\"}]}") + "{\"capabilities\":[{\"name\":\"fg\",\"description\":\"xsaetg\",\"state\":\"inactive\"},{\"name\":\"vpyigdaqq\",\"description\":\"lzdcduwjoedxng\",\"state\":\"inactive\"},{\"name\":\"i\",\"description\":\"pa\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"ilfjqqacdmk\",\"description\":\"wxdcvjwcyz\"},{\"name\":\"akeciqchx\",\"description\":\"tuicds\"},{\"name\":\"wdfmmpzhzzwvywr\",\"description\":\"yngydgrpxncaki\"},{\"name\":\"aondjrkclamgg\",\"description\":\"vlmfej\"}]}") .toObject(ContextUpdateProperties.class); - Assertions.assertEquals("dtmaa", model.capabilities().get(0).name()); - Assertions.assertEquals("quhuxylrj", model.capabilities().get(0).description()); - Assertions.assertEquals(ResourceState.ACTIVE, model.capabilities().get(0).state()); - Assertions.assertEquals("vxlx", model.hierarchies().get(0).name()); - Assertions.assertEquals("aglqivbgkcvkh", model.hierarchies().get(0).description()); + Assertions.assertEquals("fg", model.capabilities().get(0).name()); + Assertions.assertEquals("xsaetg", model.capabilities().get(0).description()); + Assertions.assertEquals(ResourceState.INACTIVE, model.capabilities().get(0).state()); + Assertions.assertEquals("ilfjqqacdmk", model.hierarchies().get(0).name()); + Assertions.assertEquals("wxdcvjwcyz", model.hierarchies().get(0).description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ContextUpdateProperties model = new ContextUpdateProperties().withCapabilities(Arrays.asList( - new Capability().withName("dtmaa").withDescription("quhuxylrj").withState(ResourceState.ACTIVE), - new Capability().withName("ygjbmzyospspsh").withDescription("kfkyjp").withState(ResourceState.INACTIVE), - new Capability().withName("bpssdfp").withDescription("yogtieyujtvczkcn").withState(ResourceState.INACTIVE), - new Capability().withName("x").withDescription("unjdx").withState(ResourceState.ACTIVE))) - .withHierarchies(Arrays.asList(new Hierarchy().withName("vxlx").withDescription("aglqivbgkcvkh"), - new Hierarchy().withName("zvuqdflvon").withDescription("yp"))); + new Capability().withName("fg").withDescription("xsaetg").withState(ResourceState.INACTIVE), + new Capability().withName("vpyigdaqq").withDescription("lzdcduwjoedxng").withState(ResourceState.INACTIVE), + new Capability().withName("i").withDescription("pa").withState(ResourceState.INACTIVE))) + .withHierarchies(Arrays.asList(new Hierarchy().withName("ilfjqqacdmk").withDescription("wxdcvjwcyz"), + new Hierarchy().withName("akeciqchx").withDescription("tuicds"), + new Hierarchy().withName("wdfmmpzhzzwvywr").withDescription("yngydgrpxncaki"), + new Hierarchy().withName("aondjrkclamgg").withDescription("vlmfej"))); model = BinaryData.fromObject(model).toObject(ContextUpdateProperties.class); - Assertions.assertEquals("dtmaa", model.capabilities().get(0).name()); - Assertions.assertEquals("quhuxylrj", model.capabilities().get(0).description()); - Assertions.assertEquals(ResourceState.ACTIVE, model.capabilities().get(0).state()); - Assertions.assertEquals("vxlx", model.hierarchies().get(0).name()); - Assertions.assertEquals("aglqivbgkcvkh", model.hierarchies().get(0).description()); + Assertions.assertEquals("fg", model.capabilities().get(0).name()); + Assertions.assertEquals("xsaetg", model.capabilities().get(0).description()); + Assertions.assertEquals(ResourceState.INACTIVE, model.capabilities().get(0).state()); + Assertions.assertEquals("ilfjqqacdmk", model.hierarchies().get(0).name()); + Assertions.assertEquals("wxdcvjwcyz", model.hierarchies().get(0).description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextUpdateTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextUpdateTests.java index e0c45f65c3326..d96226ff98ea1 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextUpdateTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextUpdateTests.java @@ -19,33 +19,35 @@ public final class ContextUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ContextUpdate model = BinaryData.fromString( - "{\"tags\":{\"lbyvictctbrxkjzw\":\"zb\",\"kgozxwop\":\"gxffmshkwf\",\"yg\":\"bydpizqaclnapxb\"},\"properties\":{\"capabilities\":[{\"name\":\"knfsmfcttuxuuyil\",\"description\":\"lq\",\"state\":\"active\"}],\"hierarchies\":[{\"name\":\"rehmr\",\"description\":\"jhvsujztczyt\"},{\"name\":\"jtwhauunf\",\"description\":\"rnjlet\"},{\"name\":\"xsmrpddouifamow\",\"description\":\"z\"},{\"name\":\"yn\",\"description\":\"nlqwzdvpiwhx\"}]}}") + "{\"tags\":{\"ubdpkxyqvgxi\":\"cqchygtvxbyjane\",\"tvo\":\"od\",\"s\":\"kxdxuwsaifmcwn\"},\"properties\":{\"capabilities\":[{\"name\":\"hg\",\"description\":\"vkbcknjolgjyyxp\",\"state\":\"inactive\"},{\"name\":\"szerqzevxoqei\",\"description\":\"txwaljglzo\",\"state\":\"inactive\"},{\"name\":\"waafrqulh\",\"description\":\"zyqbhd\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"qpjiyrqjcr\",\"description\":\"a\"},{\"name\":\"wmzwdfkbnrzorpdl\",\"description\":\"bqc\"}]}}") .toObject(ContextUpdate.class); - Assertions.assertEquals("zb", model.tags().get("lbyvictctbrxkjzw")); - Assertions.assertEquals("knfsmfcttuxuuyil", model.properties().capabilities().get(0).name()); - Assertions.assertEquals("lq", model.properties().capabilities().get(0).description()); - Assertions.assertEquals(ResourceState.ACTIVE, model.properties().capabilities().get(0).state()); - Assertions.assertEquals("rehmr", model.properties().hierarchies().get(0).name()); - Assertions.assertEquals("jhvsujztczyt", model.properties().hierarchies().get(0).description()); + Assertions.assertEquals("cqchygtvxbyjane", model.tags().get("ubdpkxyqvgxi")); + Assertions.assertEquals("hg", model.properties().capabilities().get(0).name()); + Assertions.assertEquals("vkbcknjolgjyyxp", model.properties().capabilities().get(0).description()); + Assertions.assertEquals(ResourceState.INACTIVE, model.properties().capabilities().get(0).state()); + Assertions.assertEquals("qpjiyrqjcr", model.properties().hierarchies().get(0).name()); + Assertions.assertEquals("a", model.properties().hierarchies().get(0).description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ContextUpdate model = new ContextUpdate() - .withTags(mapOf("lbyvictctbrxkjzw", "zb", "kgozxwop", "gxffmshkwf", "yg", "bydpizqaclnapxb")) + .withTags(mapOf("ubdpkxyqvgxi", "cqchygtvxbyjane", "tvo", "od", "s", "kxdxuwsaifmcwn")) .withProperties(new ContextUpdateProperties().withCapabilities(Arrays.asList( - new Capability().withName("knfsmfcttuxuuyil").withDescription("lq").withState(ResourceState.ACTIVE))) - .withHierarchies(Arrays.asList(new Hierarchy().withName("rehmr").withDescription("jhvsujztczyt"), - new Hierarchy().withName("jtwhauunf").withDescription("rnjlet"), - new Hierarchy().withName("xsmrpddouifamow").withDescription("z"), - new Hierarchy().withName("yn").withDescription("nlqwzdvpiwhx")))); + new Capability().withName("hg").withDescription("vkbcknjolgjyyxp").withState(ResourceState.INACTIVE), + new Capability().withName("szerqzevxoqei") + .withDescription("txwaljglzo") + .withState(ResourceState.INACTIVE), + new Capability().withName("waafrqulh").withDescription("zyqbhd").withState(ResourceState.INACTIVE))) + .withHierarchies(Arrays.asList(new Hierarchy().withName("qpjiyrqjcr").withDescription("a"), + new Hierarchy().withName("wmzwdfkbnrzorpdl").withDescription("bqc")))); model = BinaryData.fromObject(model).toObject(ContextUpdate.class); - Assertions.assertEquals("zb", model.tags().get("lbyvictctbrxkjzw")); - Assertions.assertEquals("knfsmfcttuxuuyil", model.properties().capabilities().get(0).name()); - Assertions.assertEquals("lq", model.properties().capabilities().get(0).description()); - Assertions.assertEquals(ResourceState.ACTIVE, model.properties().capabilities().get(0).state()); - Assertions.assertEquals("rehmr", model.properties().hierarchies().get(0).name()); - Assertions.assertEquals("jhvsujztczyt", model.properties().hierarchies().get(0).description()); + Assertions.assertEquals("cqchygtvxbyjane", model.tags().get("ubdpkxyqvgxi")); + Assertions.assertEquals("hg", model.properties().capabilities().get(0).name()); + Assertions.assertEquals("vkbcknjolgjyyxp", model.properties().capabilities().get(0).description()); + Assertions.assertEquals(ResourceState.INACTIVE, model.properties().capabilities().get(0).state()); + Assertions.assertEquals("qpjiyrqjcr", model.properties().hierarchies().get(0).name()); + Assertions.assertEquals("a", model.properties().hierarchies().get(0).description()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsCreateOrUpdateMockTests.java index da72acb3dce96..666ce84f0feb3 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsCreateOrUpdateMockTests.java @@ -28,7 +28,7 @@ public final class ContextsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"capabilities\":[{\"name\":\"rgdtpeqnacyheqw\",\"description\":\"pqqncju\",\"state\":\"active\"},{\"name\":\"jozfym\",\"description\":\"wmbupyvqyvliq\",\"state\":\"inactive\"},{\"name\":\"sejb\",\"description\":\"vsi\",\"state\":\"active\"}],\"hierarchies\":[{\"name\":\"whddzydisnuepyw\",\"description\":\"jlnldpxottdiiaoc\"},{\"name\":\"ibz\",\"description\":\"ihweeb\"},{\"name\":\"ph\",\"description\":\"yv\"},{\"name\":\"jw\",\"description\":\"w\"}],\"provisioningState\":\"Succeeded\"},\"location\":\"atjhdhzybspijhf\",\"tags\":{\"rfmzhwilz\":\"dkkagvwukhsusmm\",\"lrcxivcbkut\":\"hnijmriprlkdneyt\",\"ynbpvzlqywauy\":\"umltwjflu\"},\"id\":\"njc\",\"name\":\"hmocgjshg\",\"type\":\"u\"}"; + = "{\"properties\":{\"uniqueIdentifier\":\"l\",\"capabilities\":[{\"name\":\"mnbzkopai\",\"description\":\"ldcpudkhquxsyj\",\"state\":\"active\"},{\"name\":\"gvedrobujnjg\",\"description\":\"buxmqxigidull\",\"state\":\"active\"}],\"hierarchies\":[{\"name\":\"pskgrhn\",\"description\":\"tslgsazuqznghx\"},{\"name\":\"kyqzjsdkpvnr\",\"description\":\"zwpf\"},{\"name\":\"xsfybntmveho\",\"description\":\"flyuvbgtz\"}],\"provisioningState\":\"Succeeded\"},\"location\":\"euydybnairvhpq\",\"tags\":{\"nqnvnc\":\"zeogeatr\",\"vjnkoiz\":\"rfcs\"},\"id\":\"zsqbibaaugicovj\",\"name\":\"mvwrmjxyvuodnx\",\"type\":\"zbassqfyy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,28 +37,27 @@ public void testCreateOrUpdate() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - ContextModel response = manager.contexts() - .define("obektmbozo") - .withRegion("xweyslandkdcdjh") - .withExistingResourceGroup("hxjxjoezlqxrkdkn") - .withTags(mapOf("xsotir", "ghcgawnrrnqu", "xstcyilbvzm", "imseobf", "okjxebjvb", "xcjzlquze", "v", - "inzabwmvoglj")) - .withProperties(new ContextProperties().withCapabilities(Arrays.asList( - new Capability().withName("amicbigwcdgz").withDescription("eznuxkeu").withState(ResourceState.INACTIVE), - new Capability().withName("aabmdlqjb").withDescription("dp").withState(ResourceState.INACTIVE))) - .withHierarchies(Arrays.asList(new Hierarchy().withName("hupmomihzbd").withDescription("p"), - new Hierarchy().withName("pkcdpreyxely").withDescription("cghf"), - new Hierarchy().withName("rufssjyg").withDescription("sfxrkbhammgm"), - new Hierarchy().withName("fm").withDescription("fgvqcpdw")))) - .create(); + ContextModel response + = manager.contexts() + .define("pwxslaj") + .withRegion("jziuucrlnewnuwk") + .withExistingResourceGroup("b") + .withTags(mapOf("zlvwyw", "zetlvhdy", "lgqpwwlzpd", "v", "knmstbdoprwkamp", "arcbcdwhslxebaja")) + .withProperties(new ContextProperties().withCapabilities(Arrays.asList( + new Capability().withName("dwiu").withDescription("nicupdyt").withState(ResourceState.INACTIVE))) + .withHierarchies(Arrays.asList(new Hierarchy().withName("u").withDescription("jplosebmh"), + new Hierarchy().withName("tuqmtxynoflqob").withDescription("ixngxebihexhnkin"), + new Hierarchy().withName("iqcdolrpg").withDescription("psjlbsm"), + new Hierarchy().withName("dafbncuy").withDescription("eykcnhpplzh")))) + .create(); - Assertions.assertEquals("atjhdhzybspijhf", response.location()); - Assertions.assertEquals("dkkagvwukhsusmm", response.tags().get("rfmzhwilz")); - Assertions.assertEquals("rgdtpeqnacyheqw", response.properties().capabilities().get(0).name()); - Assertions.assertEquals("pqqncju", response.properties().capabilities().get(0).description()); + Assertions.assertEquals("euydybnairvhpq", response.location()); + Assertions.assertEquals("zeogeatr", response.tags().get("nqnvnc")); + Assertions.assertEquals("mnbzkopai", response.properties().capabilities().get(0).name()); + Assertions.assertEquals("ldcpudkhquxsyj", response.properties().capabilities().get(0).description()); Assertions.assertEquals(ResourceState.ACTIVE, response.properties().capabilities().get(0).state()); - Assertions.assertEquals("whddzydisnuepyw", response.properties().hierarchies().get(0).name()); - Assertions.assertEquals("jlnldpxottdiiaoc", response.properties().hierarchies().get(0).description()); + Assertions.assertEquals("pskgrhn", response.properties().hierarchies().get(0).name()); + Assertions.assertEquals("tslgsazuqznghx", response.properties().hierarchies().get(0).description()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsGetByResourceGroupWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsGetByResourceGroupWithResponseMockTests.java index f25b2d13c225f..b5d3025db58ab 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsGetByResourceGroupWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsGetByResourceGroupWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ContextsGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"capabilities\":[{\"name\":\"ifkwdvbtbrekqhs\",\"description\":\"htfpwpqb\",\"state\":\"active\"}],\"hierarchies\":[{\"name\":\"wy\",\"description\":\"wdqi\"},{\"name\":\"mghg\",\"description\":\"nztxlujkh\"}],\"provisioningState\":\"Failed\"},\"location\":\"rnkfmk\",\"tags\":{\"e\":\"twmlmhjnqtqeah\",\"jhhkv\":\"vragpokddx\",\"tbkewkqynspg\":\"uavt\",\"qokmyrljial\":\"voffbkkwvdxae\"},\"id\":\"bn\",\"name\":\"brqlpbcjtrpz\",\"type\":\"yudivbxnhsqeaeo\"}"; + = "{\"properties\":{\"uniqueIdentifier\":\"pogplbjuvlnhxn\",\"capabilities\":[{\"name\":\"jhinaegesbx\",\"description\":\"epqmjmoplukfykk\",\"state\":\"active\"},{\"name\":\"ovadkrmjx\",\"description\":\"wqpdke\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"zkqmx\",\"description\":\"poriwbwggijtspzj\"},{\"name\":\"rrh\",\"description\":\"kwsbzrhdugquh\"}],\"provisioningState\":\"Failed\"},\"location\":\"frunj\",\"tags\":{\"ihvtuwyjsqw\":\"jhiycbauseqnczk\",\"oszjgz\":\"s\",\"czavoj\":\"nkfnyskwwunq\",\"ukvbljpxpr\":\"slhip\"},\"id\":\"vchyluqalpcufj\",\"name\":\"f\",\"type\":\"tiztqds\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,15 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ContextModel response = manager.contexts() - .getByResourceGroupWithResponse("cvstclgqrvwerf", "xbsmtbljje", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("gp", "meyobqajejirvavr", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("rnkfmk", response.location()); - Assertions.assertEquals("twmlmhjnqtqeah", response.tags().get("e")); - Assertions.assertEquals("ifkwdvbtbrekqhs", response.properties().capabilities().get(0).name()); - Assertions.assertEquals("htfpwpqb", response.properties().capabilities().get(0).description()); + Assertions.assertEquals("frunj", response.location()); + Assertions.assertEquals("jhiycbauseqnczk", response.tags().get("ihvtuwyjsqw")); + Assertions.assertEquals("jhinaegesbx", response.properties().capabilities().get(0).name()); + Assertions.assertEquals("epqmjmoplukfykk", response.properties().capabilities().get(0).description()); Assertions.assertEquals(ResourceState.ACTIVE, response.properties().capabilities().get(0).state()); - Assertions.assertEquals("wy", response.properties().hierarchies().get(0).name()); - Assertions.assertEquals("wdqi", response.properties().hierarchies().get(0).description()); + Assertions.assertEquals("zkqmx", response.properties().hierarchies().get(0).name()); + Assertions.assertEquals("poriwbwggijtspzj", response.properties().hierarchies().get(0).description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListByResourceGroupMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListByResourceGroupMockTests.java index cdfa1c571f77f..37d49668173a5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListByResourceGroupMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListByResourceGroupMockTests.java @@ -23,7 +23,7 @@ public final class ContextsListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"capabilities\":[{\"name\":\"atmoljiywmpinmzv\",\"description\":\"kneerzztrknsj\",\"state\":\"inactive\"},{\"name\":\"gdy\",\"description\":\"nhrxlel\",\"state\":\"active\"},{\"name\":\"k\",\"description\":\"izcpihtdmiw\",\"state\":\"active\"}],\"hierarchies\":[{\"name\":\"tycaydbjzcqyml\",\"description\":\"fnzhmhsurlgw\"}],\"provisioningState\":\"Canceled\"},\"location\":\"m\",\"tags\":{\"gvvjhvvlr\":\"tauolawiubmom\",\"ajnkdflqionswae\":\"ohewjj\",\"totryegpkhxrme\":\"kzfzqxjosho\"},\"id\":\"znlw\",\"name\":\"bfokxkhu\",\"type\":\"ze\"}]}"; + = "{\"value\":[{\"properties\":{\"uniqueIdentifier\":\"aaesyyefmxwoqot\",\"capabilities\":[{\"name\":\"qb\",\"description\":\"pasrvrmt\",\"state\":\"inactive\"},{\"name\":\"yikjho\",\"description\":\"lxkpypk\",\"state\":\"active\"},{\"name\":\"ycntrqxxwtdmb\",\"description\":\"jtsuhqh\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"dyqavfxbqmz\",\"description\":\"syaksinpaamih\"},{\"name\":\"bgh\",\"description\":\"wt\"}],\"provisioningState\":\"Failed\"},\"location\":\"chcgsfz\",\"tags\":{\"qbjsdjpgxeysgw\":\"kiy\",\"ivoveomkhfeqcoop\":\"cfferznzc\",\"nbz\":\"fpohimgckycjpeeb\"},\"id\":\"xsuloutnpb\",\"name\":\"xooqohgpncdmwkh\",\"type\":\"pfhsldqdza\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,17 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.contexts().listByResourceGroup("qelwgdhuruzytza", com.azure.core.util.Context.NONE); + = manager.contexts().listByResourceGroup("ahhhsaaxxsritr", com.azure.core.util.Context.NONE); - Assertions.assertEquals("m", response.iterator().next().location()); - Assertions.assertEquals("tauolawiubmom", response.iterator().next().tags().get("gvvjhvvlr")); - Assertions.assertEquals("atmoljiywmpinmzv", - response.iterator().next().properties().capabilities().get(0).name()); - Assertions.assertEquals("kneerzztrknsj", + Assertions.assertEquals("chcgsfz", response.iterator().next().location()); + Assertions.assertEquals("kiy", response.iterator().next().tags().get("qbjsdjpgxeysgw")); + Assertions.assertEquals("qb", response.iterator().next().properties().capabilities().get(0).name()); + Assertions.assertEquals("pasrvrmt", response.iterator().next().properties().capabilities().get(0).description()); Assertions.assertEquals(ResourceState.INACTIVE, response.iterator().next().properties().capabilities().get(0).state()); - Assertions.assertEquals("tycaydbjzcqyml", response.iterator().next().properties().hierarchies().get(0).name()); - Assertions.assertEquals("fnzhmhsurlgw", + Assertions.assertEquals("dyqavfxbqmz", response.iterator().next().properties().hierarchies().get(0).name()); + Assertions.assertEquals("syaksinpaamih", response.iterator().next().properties().hierarchies().get(0).description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListMockTests.java index b62a7b1f38089..5a9efe8755d60 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ContextsListMockTests.java @@ -23,7 +23,7 @@ public final class ContextsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"capabilities\":[{\"name\":\"g\",\"description\":\"blcdrmyf\",\"state\":\"active\"},{\"name\":\"ftzgy\",\"description\":\"kya\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"kd\",\"description\":\"qnhttwdowrczfj\"},{\"name\":\"nnuxxrkkmhm\",\"description\":\"ulwempdc\"},{\"name\":\"frhjulrsulwzp\",\"description\":\"lusnawmhhgzotfr\"}],\"provisioningState\":\"Canceled\"},\"location\":\"koekvzwxx\",\"tags\":{\"pcqydeykvsk\":\"ighctxbxmo\",\"frjeizikgqaboohx\":\"cz\",\"rmdvewuyqaeohpj\":\"msgycqs\"},\"id\":\"gejkbvhh\",\"name\":\"aurghooxa\",\"type\":\"xb\"}]}"; + = "{\"value\":[{\"properties\":{\"uniqueIdentifier\":\"nyevdyzdsytciks\",\"capabilities\":[{\"name\":\"camwuynfxkcgs\",\"description\":\"cm\",\"state\":\"active\"},{\"name\":\"drp\",\"description\":\"atvyrkljqkqws\",\"state\":\"inactive\"}],\"hierarchies\":[{\"name\":\"j\",\"description\":\"owggx\"},{\"name\":\"wwdmbyp\",\"description\":\"kteiidlbovwbclpr\"},{\"name\":\"eganihk\",\"description\":\"cnerekyjul\"},{\"name\":\"kwwnq\",\"description\":\"qlq\"}],\"provisioningState\":\"Initialized\"},\"location\":\"tvceba\",\"tags\":{\"enlrjcsmwevgu\":\"vxwve\",\"wwezhyfkdilb\":\"flnxelrjkfzcdet\",\"fqbir\":\"qlqac\",\"zfaxskdvu\":\"ybcelfjnxodnjy\"},\"id\":\"lumodpegqxsorc\",\"name\":\"azrqoxz\",\"type\":\"hlbeqvhs\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,15 +34,13 @@ public void testList() throws Exception { PagedIterable response = manager.contexts().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("koekvzwxx", response.iterator().next().location()); - Assertions.assertEquals("ighctxbxmo", response.iterator().next().tags().get("pcqydeykvsk")); - Assertions.assertEquals("g", response.iterator().next().properties().capabilities().get(0).name()); - Assertions.assertEquals("blcdrmyf", - response.iterator().next().properties().capabilities().get(0).description()); + Assertions.assertEquals("tvceba", response.iterator().next().location()); + Assertions.assertEquals("vxwve", response.iterator().next().tags().get("enlrjcsmwevgu")); + Assertions.assertEquals("camwuynfxkcgs", response.iterator().next().properties().capabilities().get(0).name()); + Assertions.assertEquals("cm", response.iterator().next().properties().capabilities().get(0).description()); Assertions.assertEquals(ResourceState.ACTIVE, response.iterator().next().properties().capabilities().get(0).state()); - Assertions.assertEquals("kd", response.iterator().next().properties().hierarchies().get(0).name()); - Assertions.assertEquals("qnhttwdowrczfj", - response.iterator().next().properties().hierarchies().get(0).description()); + Assertions.assertEquals("j", response.iterator().next().properties().hierarchies().get(0).name()); + Assertions.assertEquals("owggx", response.iterator().next().properties().hierarchies().get(0).description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeployJobParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeployJobParameterTests.java index b8343761abbdf..87ff579153958 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeployJobParameterTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeployJobParameterTests.java @@ -11,9 +11,9 @@ public final class DeployJobParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DeployJobParameter model = BinaryData - .fromString("{\"jobType\":\"deploy\",\"parameter\":{\"solutionVersionId\":\"fkuwbcrnwbmehhse\"}}") - .toObject(DeployJobParameter.class); - Assertions.assertEquals("fkuwbcrnwbmehhse", model.parameter().solutionVersionId()); + DeployJobParameter model + = BinaryData.fromString("{\"jobType\":\"deploy\",\"parameter\":{\"solutionVersionId\":\"imerqfobwyznk\"}}") + .toObject(DeployJobParameter.class); + Assertions.assertEquals("imerqfobwyznk", model.parameter().solutionVersionId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeployJobStepStatisticsTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeployJobStepStatisticsTests.java index 29b157dc9748c..926988db3817e 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeployJobStepStatisticsTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeployJobStepStatisticsTests.java @@ -12,10 +12,10 @@ public final class DeployJobStepStatisticsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeployJobStepStatistics model = BinaryData.fromString( - "{\"statisticsType\":\"deploy\",\"totalCount\":1405822792,\"successCount\":224847160,\"failedCount\":38783234}") + "{\"statisticsType\":\"deploy\",\"totalCount\":721394724,\"successCount\":735026566,\"failedCount\":1473747911}") .toObject(DeployJobStepStatistics.class); - Assertions.assertEquals(1405822792, model.totalCount()); - Assertions.assertEquals(224847160, model.successCount()); - Assertions.assertEquals(38783234, model.failedCount()); + Assertions.assertEquals(721394724, model.totalCount()); + Assertions.assertEquals(735026566, model.successCount()); + Assertions.assertEquals(1473747911, model.failedCount()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeploymentStatusTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeploymentStatusTests.java index ece43ef342fce..0b8703b20c622 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeploymentStatusTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DeploymentStatusTests.java @@ -13,18 +13,18 @@ public final class DeploymentStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeploymentStatus model = BinaryData.fromString( - "{\"lastModified\":\"2021-07-07T21:20Z\",\"deployed\":412409909,\"expectedRunningJobId\":1627840881,\"runningJobId\":1448466618,\"status\":\"zdnds\",\"statusDetails\":\"nayqi\",\"generation\":1427716289,\"targetStatuses\":[{\"name\":\"avhqlkth\",\"status\":\"aqolbgycduiertg\",\"componentStatuses\":[{\"name\":\"vaolpsslqlf\",\"status\":\"dnbbglzps\"}]},{\"name\":\"ydmcwyhzdxssa\",\"status\":\"zmnvdfznudaod\",\"componentStatuses\":[{\"name\":\"ncblylpst\",\"status\":\"hh\"}]}]}") + "{\"lastModified\":\"2021-07-10T07:09:22Z\",\"deployed\":490713776,\"expectedRunningJobId\":703556051,\"runningJobId\":808609813,\"status\":\"ejjoqkagfhsxtta\",\"statusDetails\":\"zxnfaaz\",\"generation\":2103578354,\"targetStatuses\":[{\"name\":\"dm\",\"status\":\"j\",\"componentStatuses\":[{\"name\":\"envrkpyouaibrebq\",\"status\":\"ysjkixqtnqttez\"},{\"name\":\"fffiak\",\"status\":\"pqqmted\"}]}]}") .toObject(DeploymentStatus.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-07T21:20Z"), model.lastModified()); - Assertions.assertEquals(412409909, model.deployed()); - Assertions.assertEquals(1627840881, model.expectedRunningJobId()); - Assertions.assertEquals(1448466618, model.runningJobId()); - Assertions.assertEquals("zdnds", model.status()); - Assertions.assertEquals("nayqi", model.statusDetails()); - Assertions.assertEquals(1427716289, model.generation()); - Assertions.assertEquals("avhqlkth", model.targetStatuses().get(0).name()); - Assertions.assertEquals("aqolbgycduiertg", model.targetStatuses().get(0).status()); - Assertions.assertEquals("vaolpsslqlf", model.targetStatuses().get(0).componentStatuses().get(0).name()); - Assertions.assertEquals("dnbbglzps", model.targetStatuses().get(0).componentStatuses().get(0).status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-10T07:09:22Z"), model.lastModified()); + Assertions.assertEquals(490713776, model.deployed()); + Assertions.assertEquals(703556051, model.expectedRunningJobId()); + Assertions.assertEquals(808609813, model.runningJobId()); + Assertions.assertEquals("ejjoqkagfhsxtta", model.status()); + Assertions.assertEquals("zxnfaaz", model.statusDetails()); + Assertions.assertEquals(2103578354, model.generation()); + Assertions.assertEquals("dm", model.targetStatuses().get(0).name()); + Assertions.assertEquals("j", model.targetStatuses().get(0).status()); + Assertions.assertEquals("envrkpyouaibrebq", model.targetStatuses().get(0).componentStatuses().get(0).name()); + Assertions.assertEquals("ysjkixqtnqttez", model.targetStatuses().get(0).componentStatuses().get(0).status()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticInnerTests.java index c37dbdfb94180..142c35be29c08 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticInnerTests.java @@ -17,27 +17,25 @@ public final class DiagnosticInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DiagnosticInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"uwfmduragegizvc\",\"type\":\"CustomLocation\"},\"eTag\":\"lisdjubggbq\",\"location\":\"kxkbsazgakgacyr\",\"tags\":{\"pv\":\"dmspof\",\"iofrzgbzjedmstk\":\"hryl\",\"nktwfansnvpdibmi\":\"nlvxbcuii\",\"qnyophzfyls\":\"ostbzbkiwb\"},\"id\":\"crpfbcunez\",\"name\":\"cez\",\"type\":\"lfwyfwlwxjwetn\"}") + "{\"properties\":{\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"bqerzwx\",\"type\":\"EdgeZone\"},\"eTag\":\"x\",\"location\":\"gukvlbpkt\",\"tags\":{\"gmmuteyxey\":\"tyouambewreswmow\",\"ijiitns\":\"uqi\"},\"id\":\"xlzdesygrijwa\",\"name\":\"ufanray\",\"type\":\"fueqfrojs\"}") .toObject(DiagnosticInner.class); - Assertions.assertEquals("kxkbsazgakgacyr", model.location()); - Assertions.assertEquals("dmspof", model.tags().get("pv")); - Assertions.assertEquals("uwfmduragegizvc", model.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); + Assertions.assertEquals("gukvlbpkt", model.location()); + Assertions.assertEquals("tyouambewreswmow", model.tags().get("gmmuteyxey")); + Assertions.assertEquals("bqerzwx", model.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DiagnosticInner model = new DiagnosticInner().withLocation("kxkbsazgakgacyr") - .withTags(mapOf("pv", "dmspof", "iofrzgbzjedmstk", "hryl", "nktwfansnvpdibmi", "nlvxbcuii", "qnyophzfyls", - "ostbzbkiwb")) + DiagnosticInner model = new DiagnosticInner().withLocation("gukvlbpkt") + .withTags(mapOf("gmmuteyxey", "tyouambewreswmow", "ijiitns", "uqi")) .withProperties(new DiagnosticProperties()) - .withExtendedLocation( - new ExtendedLocation().withName("uwfmduragegizvc").withType(ExtendedLocationType.CUSTOM_LOCATION)); + .withExtendedLocation(new ExtendedLocation().withName("bqerzwx").withType(ExtendedLocationType.EDGE_ZONE)); model = BinaryData.fromObject(model).toObject(DiagnosticInner.class); - Assertions.assertEquals("kxkbsazgakgacyr", model.location()); - Assertions.assertEquals("dmspof", model.tags().get("pv")); - Assertions.assertEquals("uwfmduragegizvc", model.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); + Assertions.assertEquals("gukvlbpkt", model.location()); + Assertions.assertEquals("tyouambewreswmow", model.tags().get("gmmuteyxey")); + Assertions.assertEquals("bqerzwx", model.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticListResultTests.java index c7bc59ec62b16..b19d9bdfc87c1 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticListResultTests.java @@ -13,12 +13,12 @@ public final class DiagnosticListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DiagnosticListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"ptfujgicgaaoept\",\"type\":\"CustomLocation\"},\"eTag\":\"utdewemxs\",\"location\":\"ruunzzjgehkf\",\"tags\":{\"yinljqe\":\"rtixokff\"},\"id\":\"qwhix\",\"name\":\"onsts\",\"type\":\"i\"},{\"properties\":{\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"lfcldu\",\"type\":\"EdgeZone\"},\"eTag\":\"irdsvuwcob\",\"location\":\"gstmninwjizciln\",\"tags\":{\"luxlxqzvnersby\":\"shejjtbxqm\",\"ze\":\"ucrwnami\",\"fuhok\":\"rqbsmswziq\",\"czznvfbycjsxj\":\"ruswhv\"},\"id\":\"wix\",\"name\":\"vumwmxqh\",\"type\":\"dvnoamldsehaohdj\"},{\"properties\":{\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"okxcoxp\",\"type\":\"CustomLocation\"},\"eTag\":\"jetagltsxoatft\",\"location\":\"pnpbswveflocc\",\"tags\":{\"xp\":\"ozihmipgawt\"},\"id\":\"y\",\"name\":\"cxcjxgry\",\"type\":\"fmpcycilrmca\"}],\"nextLink\":\"ggn\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"qv\",\"type\":\"CustomLocation\"},\"eTag\":\"a\",\"location\":\"ixqcahyhxalybxaw\",\"tags\":{\"kkwjdjodq\":\"podtblx\",\"izhceumoqodkadp\":\"ykincnremehl\"},\"id\":\"yibngqladywrxwh\",\"name\":\"dtluvvadswzsn\",\"type\":\"yemlowuowhlxln\"},{\"properties\":{\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"uvblg\",\"type\":\"EdgeZone\"},\"eTag\":\"zkltrfowtdvrfmv\",\"location\":\"hcvjdrqc\",\"tags\":{\"jbfqzdk\":\"dhftukvhdxlwy\",\"fratqxmbjroumzz\":\"njyixh\"},\"id\":\"valqjrhuzgfxo\",\"name\":\"jtpusllywpvtiotz\",\"type\":\"pdbollg\"},{\"properties\":{\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"uasigr\",\"type\":\"CustomLocation\"},\"eTag\":\"ocnequygdjboqgrm\",\"location\":\"jkqev\",\"tags\":{\"xiid\":\"mmwiuawvcmjz\",\"koswoqiqazugamxz\":\"scz\",\"sbamnppcc\":\"rrcoi\"},\"id\":\"kuztdsbezaxyfu\",\"name\":\"zxuizhyhnepkpe\",\"type\":\"iarxqiubxdukec\"},{\"properties\":{\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"v\",\"type\":\"CustomLocation\"},\"eTag\":\"tmmkosz\",\"location\":\"blnsntrpcaqk\",\"tags\":{\"fmhklbnld\":\"kb\"},\"id\":\"vcb\",\"name\":\"hez\",\"type\":\"quwusq\"}],\"nextLink\":\"trpb\"}") .toObject(DiagnosticListResult.class); - Assertions.assertEquals("ruunzzjgehkf", model.value().get(0).location()); - Assertions.assertEquals("rtixokff", model.value().get(0).tags().get("yinljqe")); - Assertions.assertEquals("ptfujgicgaaoept", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("ixqcahyhxalybxaw", model.value().get(0).location()); + Assertions.assertEquals("podtblx", model.value().get(0).tags().get("kkwjdjodq")); + Assertions.assertEquals("qv", model.value().get(0).extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("ggn", model.nextLink()); + Assertions.assertEquals("trpb", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticPropertiesTests.java index 832436053eca5..2df35d6af0f1d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticPropertiesTests.java @@ -11,7 +11,7 @@ public final class DiagnosticPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DiagnosticProperties model - = BinaryData.fromString("{\"provisioningState\":\"Succeeded\"}").toObject(DiagnosticProperties.class); + = BinaryData.fromString("{\"provisioningState\":\"Failed\"}").toObject(DiagnosticProperties.class); } @org.junit.jupiter.api.Test diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticUpdatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticUpdatePropertiesTests.java index b8582169eae9f..f827f088d9930 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticUpdatePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticUpdatePropertiesTests.java @@ -10,7 +10,8 @@ public final class DiagnosticUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DiagnosticUpdateProperties model = BinaryData.fromString("{}").toObject(DiagnosticUpdateProperties.class); + DiagnosticUpdateProperties model = BinaryData.fromString("{\"provisioningState\":\"InProgress\"}") + .toObject(DiagnosticUpdateProperties.class); } @org.junit.jupiter.api.Test diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticUpdateTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticUpdateTests.java index 3229da0fc235a..d09a26d743868 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticUpdateTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticUpdateTests.java @@ -14,18 +14,18 @@ public final class DiagnosticUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DiagnosticUpdate model = BinaryData.fromString( - "{\"properties\":{},\"tags\":{\"qwztcmwqkc\":\"afzvaylptrs\",\"kjexfdeqvhp\":\"cxwaxfewz\",\"zjrgyww\":\"ylkkshkbffmbm\"}}") + DiagnosticUpdate model = BinaryData + .fromString("{\"properties\":{\"provisioningState\":\"Failed\"},\"tags\":{\"skieca\":\"ygywe\"}}") .toObject(DiagnosticUpdate.class); - Assertions.assertEquals("afzvaylptrs", model.tags().get("qwztcmwqkc")); + Assertions.assertEquals("ygywe", model.tags().get("skieca")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DiagnosticUpdate model = new DiagnosticUpdate().withProperties(new DiagnosticUpdateProperties()) - .withTags(mapOf("qwztcmwqkc", "afzvaylptrs", "kjexfdeqvhp", "cxwaxfewz", "zjrgyww", "ylkkshkbffmbm")); + .withTags(mapOf("skieca", "ygywe")); model = BinaryData.fromObject(model).toObject(DiagnosticUpdate.class); - Assertions.assertEquals("afzvaylptrs", model.tags().get("qwztcmwqkc")); + Assertions.assertEquals("ygywe", model.tags().get("skieca")); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsCreateOrUpdateMockTests.java index 58d7e39662856..c56865805e576 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsCreateOrUpdateMockTests.java @@ -26,7 +26,7 @@ public final class DiagnosticsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"psimioy\",\"type\":\"CustomLocation\"},\"eTag\":\"l\",\"location\":\"iqwnnraclibbfq\",\"tags\":{\"hautw\":\"kladydg\"},\"id\":\"kexzgpmnmabeddqi\",\"name\":\"wg\",\"type\":\"fpfqf\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"qubotbvuf\",\"type\":\"CustomLocation\"},\"eTag\":\"jiemimdtnpo\",\"location\":\"wjskr\",\"tags\":{\"fquulpclhs\":\"dddrf\",\"qyxfed\":\"igeeuwbr\"},\"id\":\"netdqw\",\"name\":\"nxoqgv\",\"type\":\"zp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,17 +36,17 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Diagnostic response = manager.diagnostics() - .define("gpkrie") - .withRegion("wnwpiwxeii") - .withExistingResourceGroup("nfee") - .withTags(mapOf("pk", "p", "xxij", "dm", "yacwrasekwefc", "skwsdgkj", "nwoqartwy", "o")) + .define("gwahcrxo") + .withRegion("hzghhhkvn") + .withExistingResourceGroup("zkdiuvflgzhcw") + .withTags(mapOf("mzs", "tujqzvhnjvpmxnh")) .withProperties(new DiagnosticProperties()) - .withExtendedLocation(new ExtendedLocation().withName("xx").withType(ExtendedLocationType.EDGE_ZONE)) + .withExtendedLocation(new ExtendedLocation().withName("vnpcc").withType(ExtendedLocationType.EDGE_ZONE)) .create(); - Assertions.assertEquals("iqwnnraclibbfq", response.location()); - Assertions.assertEquals("kladydg", response.tags().get("hautw")); - Assertions.assertEquals("psimioy", response.extendedLocation().name()); + Assertions.assertEquals("wjskr", response.location()); + Assertions.assertEquals("dddrf", response.tags().get("fquulpclhs")); + Assertions.assertEquals("qubotbvuf", response.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsGetByResourceGroupWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsGetByResourceGroupWithResponseMockTests.java index 1045d99a5e9b9..c04cc8575aa22 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsGetByResourceGroupWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsGetByResourceGroupWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class DiagnosticsGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"qduqgixexkydf\",\"type\":\"CustomLocation\"},\"eTag\":\"javh\",\"location\":\"rkjd\",\"tags\":{\"ksdwgdnk\":\"gliegftcvbiif\"},\"id\":\"fgmwd\",\"name\":\"c\",\"type\":\"buvczldbglzoutb\"}"; + = "{\"properties\":{\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"oyutehlk\",\"type\":\"CustomLocation\"},\"eTag\":\"tipquks\",\"location\":\"kn\",\"tags\":{\"swhpcek\":\"fu\",\"nnbbxngdfkke\":\"gvm\",\"i\":\"eetxtpwcv\",\"qdonbzzs\":\"wsunjzijaciwmmpd\"},\"id\":\"fzyviiwsua\",\"name\":\"zhw\",\"type\":\"yui\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,12 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Diagnostic response = manager.diagnostics() - .getByResourceGroupWithResponse("qvfqepdxc", "tuubwyvpjb", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("taftazgcx", "vqlcqufylamxo", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("rkjd", response.location()); - Assertions.assertEquals("gliegftcvbiif", response.tags().get("ksdwgdnk")); - Assertions.assertEquals("qduqgixexkydf", response.extendedLocation().name()); + Assertions.assertEquals("kn", response.location()); + Assertions.assertEquals("fu", response.tags().get("swhpcek")); + Assertions.assertEquals("oyutehlk", response.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListByResourceGroupMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListByResourceGroupMockTests.java index ad50887544644..b74762ee439e5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListByResourceGroupMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListByResourceGroupMockTests.java @@ -23,7 +23,7 @@ public final class DiagnosticsListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"gmnzjotvmrx\",\"type\":\"CustomLocation\"},\"eTag\":\"obvvjbhvh\",\"location\":\"qayfl\",\"tags\":{\"elvhyibdrqrswh\":\"uosnuud\"},\"id\":\"uubpyrow\",\"name\":\"joxztfwfqchvczev\",\"type\":\"nnctagfyvrt\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"pjpngvyvuo\",\"type\":\"CustomLocation\"},\"eTag\":\"l\",\"location\":\"xntugfwim\",\"tags\":{\"ifqhdx\":\"yclocfmvswxvjel\",\"byjecrq\":\"wwulkrybpaevy\"},\"id\":\"wakkchsfo\",\"name\":\"lb\",\"type\":\"rcxuibsdqbdyblp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,11 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.diagnostics().listByResourceGroup("aqgzekajclyzgs", com.azure.core.util.Context.NONE); + = manager.diagnostics().listByResourceGroup("kzqqhbtfloilmkf", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qayfl", response.iterator().next().location()); - Assertions.assertEquals("uosnuud", response.iterator().next().tags().get("elvhyibdrqrswh")); - Assertions.assertEquals("gmnzjotvmrx", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("xntugfwim", response.iterator().next().location()); + Assertions.assertEquals("yclocfmvswxvjel", response.iterator().next().tags().get("ifqhdx")); + Assertions.assertEquals("pjpngvyvuo", response.iterator().next().extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.iterator().next().extendedLocation().type()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListMockTests.java index a6e9d4e8ce845..229a621b396c9 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DiagnosticsListMockTests.java @@ -23,7 +23,7 @@ public final class DiagnosticsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"hzcgkrepdqhqyhwq\",\"type\":\"EdgeZone\"},\"eTag\":\"vx\",\"location\":\"bckmzeoxinhgr\",\"tags\":{\"znzangprbfaxy\":\"twhlpuzjpce\"},\"id\":\"zlbciphmse\",\"name\":\"roqr\",\"type\":\"dktxfv\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"wpgweoqhbj\",\"type\":\"EdgeZone\"},\"eTag\":\"fblerufol\",\"location\":\"shjucihbymjjvt\",\"tags\":{\"myi\":\"rxvjeazrahelhb\"},\"id\":\"eqa\",\"name\":\"cthtpq\",\"type\":\"fzdos\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,9 +34,9 @@ public void testList() throws Exception { PagedIterable response = manager.diagnostics().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("bckmzeoxinhgr", response.iterator().next().location()); - Assertions.assertEquals("twhlpuzjpce", response.iterator().next().tags().get("znzangprbfaxy")); - Assertions.assertEquals("hzcgkrepdqhqyhwq", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("shjucihbymjjvt", response.iterator().next().location()); + Assertions.assertEquals("rxvjeazrahelhb", response.iterator().next().tags().get("myi")); + Assertions.assertEquals("wpgweoqhbj", response.iterator().next().extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.iterator().next().extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaInnerTests.java index bffca79b59ac1..a8fdfe7616e3e 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaInnerTests.java @@ -12,7 +12,7 @@ public final class DynamicSchemaInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DynamicSchemaInner model = BinaryData.fromString( - "{\"properties\":{\"configurationType\":\"Shared\",\"configurationModel\":\"Application\",\"provisioningState\":\"Initialized\"},\"eTag\":\"xpyb\",\"id\":\"m\",\"name\":\"hmtzopbsphrup\",\"type\":\"dgs\"}") + "{\"properties\":{\"displayName\":\"hq\",\"configurationType\":\"Hierarchy\",\"configurationModel\":\"Application\",\"provisioningState\":\"Initialized\"},\"eTag\":\"czmehmtzopbsp\",\"id\":\"upi\",\"name\":\"gsybbejhp\",\"type\":\"oycmsxaobhdxbmt\"}") .toObject(DynamicSchemaInner.class); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaListResultTests.java index d8fd5285702c4..13a8fef51f00e 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaListResultTests.java @@ -12,8 +12,8 @@ public final class DynamicSchemaListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DynamicSchemaListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"configurationType\":\"Hierarchy\",\"configurationModel\":\"Application\",\"provisioningState\":\"Deleting\"},\"eTag\":\"bhdxbm\",\"id\":\"ioq\",\"name\":\"zehtbmu\",\"type\":\"p\"},{\"properties\":{\"configurationType\":\"Shared\",\"configurationModel\":\"Application\",\"provisioningState\":\"Deleting\"},\"eTag\":\"rxybqsoq\",\"id\":\"gkdmb\",\"name\":\"azlobcufpdznrbt\",\"type\":\"qqjnqgl\"}],\"nextLink\":\"gnufoooj\"}") + "{\"value\":[{\"properties\":{\"displayName\":\"soqijg\",\"configurationType\":\"Hierarchy\",\"configurationModel\":\"Common\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"obcu\",\"id\":\"dznrbtcqq\",\"name\":\"nq\",\"type\":\"lhqgnufooojy\"},{\"properties\":{\"displayName\":\"sqe\",\"configurationType\":\"Hierarchy\",\"configurationModel\":\"Common\",\"provisioningState\":\"Failed\"},\"eTag\":\"lzl\",\"id\":\"xrifkwmrvkts\",\"name\":\"zntocipaouajps\",\"type\":\"ucmpoyfd\"},{\"properties\":{\"displayName\":\"gknygjofjddeqs\",\"configurationType\":\"Hierarchy\",\"configurationModel\":\"Application\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"wreitj\",\"id\":\"flusarhmof\",\"name\":\"qhsmyurkdtml\",\"type\":\"he\"}],\"nextLink\":\"k\"}") .toObject(DynamicSchemaListResult.class); - Assertions.assertEquals("gnufoooj", model.nextLink()); + Assertions.assertEquals("k", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaPropertiesTests.java index dfd0179c94eaf..c78e83b8b6337 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaPropertiesTests.java @@ -11,7 +11,7 @@ public final class DynamicSchemaPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DynamicSchemaProperties model = BinaryData.fromString( - "{\"configurationType\":\"Hierarchy\",\"configurationModel\":\"Application\",\"provisioningState\":\"Failed\"}") + "{\"displayName\":\"oqjzehtbmufpowno\",\"configurationType\":\"Shared\",\"configurationModel\":\"Common\",\"provisioningState\":\"Deleting\"}") .toObject(DynamicSchemaProperties.class); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionInnerTests.java index fa1174b6122f4..65e4f9af96c1b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionInnerTests.java @@ -7,22 +7,20 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.fluent.models.DynamicSchemaVersionInner; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; -import org.junit.jupiter.api.Assertions; +import java.nio.charset.StandardCharsets; public final class DynamicSchemaVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DynamicSchemaVersionInner model = BinaryData.fromString( - "{\"properties\":{\"value\":\"kgymareqnajxqug\",\"provisioningState\":\"Initialized\"},\"eTag\":\"cubeddgssofw\",\"id\":\"zqalkrmnjijpx\",\"name\":\"cqqudf\",\"type\":\"byxbaaabjy\"}") + "{\"properties\":{\"value\":\"\\\"dataabwidfcxsspuun\\\"\",\"provisioningState\":\"Canceled\"},\"eTag\":\"hkx\",\"id\":\"ddrihpf\",\"name\":\"oqcaaewdaomdj\",\"type\":\"l\"}") .toObject(DynamicSchemaVersionInner.class); - Assertions.assertEquals("kgymareqnajxqug", model.properties().value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DynamicSchemaVersionInner model = new DynamicSchemaVersionInner() - .withProperties(new SchemaVersionProperties().withValue("kgymareqnajxqug")); + DynamicSchemaVersionInner model = new DynamicSchemaVersionInner().withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("\"dataabwidfcxsspuun\"".getBytes(StandardCharsets.UTF_8)))); model = BinaryData.fromObject(model).toObject(DynamicSchemaVersionInner.class); - Assertions.assertEquals("kgymareqnajxqug", model.properties().value()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionListResultTests.java index 162a35f772f51..ab8d125b163b2 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionListResultTests.java @@ -12,9 +12,8 @@ public final class DynamicSchemaVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DynamicSchemaVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"value\":\"ffimrzrtuzqogsex\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"dnw\",\"id\":\"mewzsyyc\",\"name\":\"uzsoi\",\"type\":\"judpfrxt\"},{\"properties\":{\"value\":\"hzv\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"wkqbrqu\",\"id\":\"axhexiilivp\",\"name\":\"tiirqtdqoa\",\"type\":\"oruzfgsquyfxrxx\"}],\"nextLink\":\"ptramxj\"}") + "{\"value\":[{\"properties\":{\"value\":\"\\\"dataxkzb\\\"\",\"provisioningState\":\"Canceled\"},\"eTag\":\"eivsiykzkdnc\",\"id\":\"xonbzoggculapz\",\"name\":\"y\",\"type\":\"pgogtqxepny\"},{\"properties\":{\"value\":\"\\\"datafuajly\\\"\",\"provisioningState\":\"Deleting\"},\"eTag\":\"of\",\"id\":\"hvfcibyfmow\",\"name\":\"xrkjpvdw\",\"type\":\"fzwiivwzjbhyz\"},{\"properties\":{\"value\":\"\\\"datajrkambtrnegvmnv\\\"\",\"provisioningState\":\"Canceled\"},\"eTag\":\"vldspa\",\"id\":\"jbkkdmflvestmjl\",\"name\":\"rriloz\",\"type\":\"peewchpxlkt\"}],\"nextLink\":\"uziycsl\"}") .toObject(DynamicSchemaVersionListResult.class); - Assertions.assertEquals("ffimrzrtuzqogsex", model.value().get(0).properties().value()); - Assertions.assertEquals("ptramxj", model.nextLink()); + Assertions.assertEquals("uziycsl", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsCreateOrUpdateMockTests.java index ad79db0cb39e4..1a3e95a8f61a8 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsCreateOrUpdateMockTests.java @@ -9,12 +9,12 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; import com.azure.resourcemanager.workloadorchestration.models.DynamicSchemaVersion; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -22,7 +22,7 @@ public final class DynamicSchemaVersionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"value\":\"bewreswmowegmmut\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"yguqigijiitns\",\"id\":\"lz\",\"name\":\"es\",\"type\":\"grijwaiufanrayb\"}"; + = "{\"properties\":{\"value\":\"\\\"dataoamfmxtllfltymqc\\\"\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"ijhggabqbg\",\"id\":\"klilirwdv\",\"name\":\"fhsdpzouhkt\",\"type\":\"rxqwqnjxrd\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DynamicSchemaVersion response = manager.dynamicSchemaVersions() - .define("fwbeqrkuorh") - .withExistingDynamicSchema("saeuzanhsfnhsenw", "hpzfngqj", "lidftujwjj") - .withProperties(new SchemaVersionProperties().withValue("sruqnmdvha")) + .define("pjyyqmkwlhvc") + .withExistingDynamicSchema("qumjdjxhzghgod", "ynrceqavfdbdf", "mxjdnaju") + .withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("\"dataoqdejkluxxr\"".getBytes(StandardCharsets.UTF_8)))) .create(); - Assertions.assertEquals("bewreswmowegmmut", response.properties().value()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsGetWithResponseMockTests.java index 0d90c32b1f74d..04a9763c037d7 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsGetWithResponseMockTests.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.workloadorchestration.models.DynamicSchemaVersion; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -21,7 +20,7 @@ public final class DynamicSchemaVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"value\":\"ymvqdbpbhfckdvez\",\"provisioningState\":\"Initialized\"},\"eTag\":\"sbzhd\",\"id\":\"b\",\"name\":\"nqfblhkalehpava\",\"type\":\"ugiqjtiogqg\"}"; + = "{\"properties\":{\"value\":\"\\\"dataqpdwad\\\"\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"tldsvczdjiahuq\",\"id\":\"jzucwwm\",\"name\":\"jjqhddwvm\",\"type\":\"xiy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +30,8 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DynamicSchemaVersion response = manager.dynamicSchemaVersions() - .getWithResponse("iryky", "ndzfqivjreuyk", "bmnwa", "ltbxoeeonqlnfw", com.azure.core.util.Context.NONE) + .getWithResponse("ppwooaj", "yyjmjjxiz", "pxhn", "lslekcttgzkj", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ymvqdbpbhfckdvez", response.properties().value()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsListByDynamicSchemaMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsListByDynamicSchemaMockTests.java index e86c9a074aeda..5de59dd7fd123 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsListByDynamicSchemaMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemaVersionsListByDynamicSchemaMockTests.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.workloadorchestration.models.DynamicSchemaVersion; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -22,7 +21,7 @@ public final class DynamicSchemaVersionsListByDynamicSchemaMockTests { @Test public void testListByDynamicSchema() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"value\":\"mktp\",\"provisioningState\":\"InProgress\"},\"eTag\":\"csehchkhufm\",\"id\":\"umqy\",\"name\":\"gy\",\"type\":\"zulo\"}]}"; + = "{\"value\":[{\"properties\":{\"value\":\"\\\"datapfqpgaixw\\\"\",\"provisioningState\":\"InProgress\"},\"eTag\":\"kderf\",\"id\":\"wqikwepwogggic\",\"name\":\"nxhtf\",\"type\":\"cqbsudzpgchzpg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +31,7 @@ public void testListByDynamicSchema() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.dynamicSchemaVersions() - .listByDynamicSchema("minict", "eajohiyg", "pnbonhpcz", com.azure.core.util.Context.NONE); + .listByDynamicSchema("okyfoz", "bn", "x", com.azure.core.util.Context.NONE); - Assertions.assertEquals("mktp", response.iterator().next().properties().value()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasCreateOrUpdateMockTests.java index 153bc734a1281..66c043f13a980 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasCreateOrUpdateMockTests.java @@ -21,7 +21,7 @@ public final class DynamicSchemasCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"configurationType\":\"Shared\",\"configurationModel\":\"Application\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"acgxmfcsse\",\"id\":\"htvs\",\"name\":\"xhlw\",\"type\":\"tsjgqrsx\"}"; + = "{\"properties\":{\"displayName\":\"quwzp\",\"configurationType\":\"Hierarchy\",\"configurationModel\":\"Common\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"erwk\",\"id\":\"pjxljtxb\",\"name\":\"sqtbxxniu\",\"type\":\"sdzhgbdgzpagsec\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,8 +31,8 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DynamicSchema response = manager.dynamicSchemas() - .define("ttvwkpqh") - .withExistingSchema("xfz", "j") + .define("rsnrhp") + .withExistingSchema("d", "absr") .withProperties(new DynamicSchemaProperties()) .create(); diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasGetWithResponseMockTests.java index 2aa2f393ec7c1..871ee26aa9513 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class DynamicSchemasGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"configurationType\":\"Shared\",\"configurationModel\":\"Application\",\"provisioningState\":\"Failed\"},\"eTag\":\"vcjkgd\",\"id\":\"azftxejwabmdujtm\",\"name\":\"cope\",\"type\":\"c\"}"; + = "{\"properties\":{\"displayName\":\"mv\",\"configurationType\":\"Hierarchy\",\"configurationModel\":\"Common\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"ujxcxxqn\",\"id\":\"qjkedwqurc\",\"name\":\"ojmrvvxwjongzse\",\"type\":\"qqrsil\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DynamicSchema response = manager.dynamicSchemas() - .getWithResponse("tg", "eiookjbsah", "tdtpdelqacslmo", com.azure.core.util.Context.NONE) + .getWithResponse("ccnaov", "owazhpabacom", "yotgkwsxnsrqorc", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasListBySchemaMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasListBySchemaMockTests.java index 14396a67ca511..5f2cc3b6e7528 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasListBySchemaMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/DynamicSchemasListBySchemaMockTests.java @@ -21,7 +21,7 @@ public final class DynamicSchemasListBySchemaMockTests { @Test public void testListBySchema() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"configurationType\":\"Shared\",\"configurationModel\":\"Common\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"fvcl\",\"id\":\"xnfuijtkbusqogs\",\"name\":\"ikayiansharuj\",\"type\":\"ji\"}]}"; + = "{\"value\":[{\"properties\":{\"displayName\":\"gv\",\"configurationType\":\"Hierarchy\",\"configurationModel\":\"Common\",\"provisioningState\":\"Initialized\"},\"eTag\":\"ctejrthcfjzhxly\",\"id\":\"qjros\",\"name\":\"vrjeqmtzzbeqrztr\",\"type\":\"alx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testListBySchema() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.dynamicSchemas().listBySchema("jurbuhhlkyqltqsr", "gtuwkff", com.azure.core.util.Context.NONE); + = manager.dynamicSchemas().listBySchema("chskxxka", "sbvr", com.azure.core.util.Context.NONE); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ErrorActionTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ErrorActionTests.java index f7e67b0101d3f..716e6931c507a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ErrorActionTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ErrorActionTests.java @@ -12,18 +12,18 @@ public final class ErrorActionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ErrorAction model = BinaryData.fromString("{\"mode\":\"stopOnAnyFailure\",\"maxToleratedFailures\":648313696}") + ErrorAction model = BinaryData.fromString("{\"mode\":\"stopOnNFailures\",\"maxToleratedFailures\":632851650}") .toObject(ErrorAction.class); - Assertions.assertEquals(ErrorActionMode.STOP_ON_ANY_FAILURE, model.mode()); - Assertions.assertEquals(648313696, model.maxToleratedFailures()); + Assertions.assertEquals(ErrorActionMode.STOP_ON_NFAILURES, model.mode()); + Assertions.assertEquals(632851650, model.maxToleratedFailures()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ErrorAction model - = new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE).withMaxToleratedFailures(648313696); + = new ErrorAction().withMode(ErrorActionMode.STOP_ON_NFAILURES).withMaxToleratedFailures(632851650); model = BinaryData.fromObject(model).toObject(ErrorAction.class); - Assertions.assertEquals(ErrorActionMode.STOP_ON_ANY_FAILURE, model.mode()); - Assertions.assertEquals(648313696, model.maxToleratedFailures()); + Assertions.assertEquals(ErrorActionMode.STOP_ON_NFAILURES, model.mode()); + Assertions.assertEquals(632851650, model.maxToleratedFailures()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionInnerTests.java index db05039cccc22..c95894b2bd2f2 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionInnerTests.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.workloadorchestration.models.ExecutionProperties; import com.azure.resourcemanager.workloadorchestration.models.ExtendedLocation; import com.azure.resourcemanager.workloadorchestration.models.ExtendedLocationType; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; @@ -17,23 +18,26 @@ public final class ExecutionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExecutionInner model = BinaryData.fromString( - "{\"properties\":{\"workflowVersionId\":\"foudor\",\"specification\":{},\"status\":{\"updateTime\":\"2021-03-21T18:39:32Z\",\"status\":307968762,\"statusMessage\":\"wy\",\"stageHistory\":[{\"status\":915134983,\"statusMessage\":\"xhugcm\",\"stage\":\"avlg\",\"nextstage\":\"bmftpmdt\",\"errorMessage\":\"jltfvnzcyjtotpv\",\"isActive\":\"inactive\",\"inputs\":{},\"outputs\":{}}]},\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"qqihedsvqwthmk\",\"type\":\"CustomLocation\"},\"eTag\":\"cysihs\",\"id\":\"cw\",\"name\":\"hohsd\",\"type\":\"mcdzsufcohdxbz\"}") + "{\"properties\":{\"workflowVersionId\":\"bjb\",\"specification\":{\"gmuwdchozfnkf\":\"\\\"dataybvitvqkjyaznumt\\\"\",\"oaiknaqlnuwig\":\"\\\"dataxlvxnoakiz\\\"\"},\"status\":{\"updateTime\":\"2021-02-22T21:39:11Z\",\"status\":1039817424,\"statusMessage\":\"phvxz\",\"stageHistory\":[{\"status\":624092419,\"statusMessage\":\"ejtlk\",\"stage\":\"aonwivkcqhrxh\",\"nextstage\":\"nlccrm\",\"errorMessage\":\"yupiju\",\"isActive\":\"inactive\",\"inputs\":{\"em\":\"\\\"datakakfqfr\\\"\"},\"outputs\":{\"dxphlk\":\"\\\"datadudxjascowvfdjk\\\"\",\"dkz\":\"\\\"datasnmgzvyfi\\\"\",\"uqwqulsutrjbhxyk\":\"\\\"dataqnwsithuqolyah\\\"\"}},{\"status\":248961091,\"statusMessage\":\"ezvqq\",\"stage\":\"drftbcvexreuquo\",\"nextstage\":\"ljvfwhreagk\",\"errorMessage\":\"xv\",\"isActive\":\"inactive\",\"inputs\":{\"epjpfs\":\"\\\"dataczsulmdggl\\\"\",\"fpgylkve\":\"\\\"dataykgsangpszng\\\"\",\"edmzrgjfoknub\":\"\\\"datajujcngoad\\\"\",\"coqra\":\"\\\"dataoitpkpztrgdgx\\\"\"},\"outputs\":{\"eialwvskb\":\"\\\"datagyxpqit\\\"\",\"cujp\":\"\\\"datahzacaqtyltco\\\"\"}},{\"status\":982712312,\"statusMessage\":\"akuejk\",\"stage\":\"bizt\",\"nextstage\":\"fqcvovj\",\"errorMessage\":\"ycsjmlbem\",\"isActive\":\"active\",\"inputs\":{\"rtudawlpjfel\":\"\\\"dataiuxegth\\\"\",\"bgqnz\":\"\\\"dataerppt\\\"\",\"ialwc\":\"\\\"datanhii\\\"\",\"ccgzpraoxnyu\":\"\\\"datagckbb\\\"\"},\"outputs\":{\"qdx\":\"\\\"datatsgftipwcxbyubh\\\"\"}}]},\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"pnuhzafccnu\",\"type\":\"EdgeZone\"},\"eTag\":\"gbylbuig\",\"id\":\"vatvcrkd\",\"name\":\"b\",\"type\":\"bqxvhcsyhzlwxae\"}") .toObject(ExecutionInner.class); - Assertions.assertEquals("foudor", model.properties().workflowVersionId()); - Assertions.assertEquals("qqihedsvqwthmk", model.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); + Assertions.assertEquals("bjb", model.properties().workflowVersionId()); + Assertions.assertEquals("pnuhzafccnu", model.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ExecutionInner model = new ExecutionInner() - .withProperties(new ExecutionProperties().withWorkflowVersionId("foudor").withSpecification(mapOf())) + .withProperties(new ExecutionProperties().withWorkflowVersionId("bjb") + .withSpecification(mapOf("gmuwdchozfnkf", + BinaryData.fromBytes("\"dataybvitvqkjyaznumt\"".getBytes(StandardCharsets.UTF_8)), "oaiknaqlnuwig", + BinaryData.fromBytes("\"dataxlvxnoakiz\"".getBytes(StandardCharsets.UTF_8))))) .withExtendedLocation( - new ExtendedLocation().withName("qqihedsvqwthmk").withType(ExtendedLocationType.CUSTOM_LOCATION)); + new ExtendedLocation().withName("pnuhzafccnu").withType(ExtendedLocationType.EDGE_ZONE)); model = BinaryData.fromObject(model).toObject(ExecutionInner.class); - Assertions.assertEquals("foudor", model.properties().workflowVersionId()); - Assertions.assertEquals("qqihedsvqwthmk", model.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); + Assertions.assertEquals("bjb", model.properties().workflowVersionId()); + Assertions.assertEquals("pnuhzafccnu", model.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionListResultTests.java index 1bd830428365d..deb72aaf79aa0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionListResultTests.java @@ -13,11 +13,11 @@ public final class ExecutionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExecutionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"workflowVersionId\":\"ybbabpfhvfsl\",\"specification\":{},\"status\":{\"updateTime\":\"2021-08-17T19:10:03Z\",\"status\":446437119,\"statusMessage\":\"jkskyr\",\"stageHistory\":[{},{}]},\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"dsxwaab\",\"type\":\"CustomLocation\"},\"eTag\":\"frygznmmax\",\"id\":\"zkzobgopxlhslnel\",\"name\":\"ieixynllxe\",\"type\":\"wcrojphslhcaw\"},{\"properties\":{\"workflowVersionId\":\"tifdwfmvi\",\"specification\":{},\"status\":{\"updateTime\":\"2021-03-14T00:51:27Z\",\"status\":744779451,\"statusMessage\":\"h\",\"stageHistory\":[{}]},\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"fhonqjujeickpzvc\",\"type\":\"EdgeZone\"},\"eTag\":\"mxelnwcltyjed\",\"id\":\"xm\",\"name\":\"f\",\"type\":\"kqscazuawxtzx\"},{\"properties\":{\"workflowVersionId\":\"amwabzxrvxcushsp\",\"specification\":{},\"status\":{\"updateTime\":\"2021-08-02T22:27:38Z\",\"status\":1448410077,\"statusMessage\":\"flv\",\"stageHistory\":[{},{}]},\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"wakoihkn\",\"type\":\"CustomLocation\"},\"eTag\":\"blmljh\",\"id\":\"ymzotqyryuzcbmq\",\"name\":\"vxmvw\",\"type\":\"gtayxonsupeujlz\"},{\"properties\":{\"workflowVersionId\":\"hcvsqltnzoi\",\"specification\":{},\"status\":{\"updateTime\":\"2021-06-16T04:05:06Z\",\"status\":554896310,\"statusMessage\":\"qonmpqoxwdof\",\"stageHistory\":[{},{},{}]},\"provisioningState\":\"InProgress\"},\"extendedLocation\":{\"name\":\"eiiqbim\",\"type\":\"EdgeZone\"},\"eTag\":\"wwinhehf\",\"id\":\"ofvwbcb\",\"name\":\"embnkbw\",\"type\":\"qvxkd\"}],\"nextLink\":\"qihebw\"}") + "{\"value\":[{\"properties\":{\"workflowVersionId\":\"alehpav\",\"specification\":{\"dminic\":\"\\\"datagiqjtiogq\\\"\",\"pnbonhpcz\":\"\\\"datateajohiyg\\\"\",\"hkhufm\":\"\\\"datakmktpvwxqcseh\\\"\"},\"status\":{\"updateTime\":\"2021-03-02T23:54:10Z\",\"status\":1273546436,\"statusMessage\":\"gy\",\"stageHistory\":[{},{},{},{}]},\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"saeuzanhsfnhsenw\",\"type\":\"EdgeZone\"},\"eTag\":\"zf\",\"id\":\"qjcli\",\"name\":\"ftujwjjufw\",\"type\":\"eqrkuorhtss\"}],\"nextLink\":\"qnmdvhazcvjy\"}") .toObject(ExecutionListResult.class); - Assertions.assertEquals("ybbabpfhvfsl", model.value().get(0).properties().workflowVersionId()); - Assertions.assertEquals("dsxwaab", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("qihebw", model.nextLink()); + Assertions.assertEquals("alehpav", model.value().get(0).properties().workflowVersionId()); + Assertions.assertEquals("saeuzanhsfnhsenw", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.value().get(0).extendedLocation().type()); + Assertions.assertEquals("qnmdvhazcvjy", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionPropertiesTests.java index 0c5715d3aeebc..b98702fcfb26c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionPropertiesTests.java @@ -6,6 +6,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.ExecutionProperties; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; @@ -14,17 +15,19 @@ public final class ExecutionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExecutionProperties model = BinaryData.fromString( - "{\"workflowVersionId\":\"mcmuapc\",\"specification\":{},\"status\":{\"updateTime\":\"2021-12-02T23:21:10Z\",\"status\":15684677,\"statusMessage\":\"xeyskonqzinkfkbg\",\"stageHistory\":[{\"status\":1881387928,\"statusMessage\":\"eqocljmygvk\",\"stage\":\"kjjeokbz\",\"nextstage\":\"ezrxcczurtleipqx\",\"errorMessage\":\"wvz\",\"isActive\":\"active\",\"inputs\":{},\"outputs\":{}},{\"status\":202407711,\"statusMessage\":\"xzmqpnodawop\",\"stage\":\"ewjptmcg\",\"nextstage\":\"ostzelndlatu\",\"errorMessage\":\"zlbiojlvfhrbbpn\",\"isActive\":\"inactive\",\"inputs\":{},\"outputs\":{}}]},\"provisioningState\":\"InProgress\"}") + "{\"workflowVersionId\":\"ov\",\"specification\":{\"ntopa\":\"\\\"dataxdndsbdweaderzm\\\"\",\"jiuazjc\":\"\\\"datattmvmmagoaqylkjz\\\"\"},\"status\":{\"updateTime\":\"2021-11-26T20:43:17Z\",\"status\":1509778207,\"statusMessage\":\"inzcpdltkrlgj\",\"stageHistory\":[{\"status\":1780203290,\"statusMessage\":\"cqguef\",\"stage\":\"ompheqdur\",\"nextstage\":\"yujlfyoumpckyecl\",\"errorMessage\":\"igptajbrzmqxucyc\",\"isActive\":\"active\",\"inputs\":{\"nrqjbtxjea\":\"\\\"dataxiutgjcyzyzj\\\"\",\"yh\":\"\\\"dataqaqbz\\\"\",\"v\":\"\\\"dataw\\\"\",\"e\":\"\\\"dataatbwbqam\\\"\"},\"outputs\":{\"auxxepmyw\":\"\\\"datayslpkcvmw\\\"\",\"ijqpkzfbojxjmcs\":\"\\\"dataormcqmic\\\"\",\"falickduoiqtamty\":\"\\\"datayqwixvcpwnkwywzw\\\"\",\"zagxnvhycvdi\":\"\\\"datasknxrwzawnvsbcf\\\"\"}}]},\"provisioningState\":\"Succeeded\"}") .toObject(ExecutionProperties.class); - Assertions.assertEquals("mcmuapc", model.workflowVersionId()); + Assertions.assertEquals("ov", model.workflowVersionId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExecutionProperties model - = new ExecutionProperties().withWorkflowVersionId("mcmuapc").withSpecification(mapOf()); + ExecutionProperties model = new ExecutionProperties().withWorkflowVersionId("ov") + .withSpecification( + mapOf("ntopa", BinaryData.fromBytes("\"dataxdndsbdweaderzm\"".getBytes(StandardCharsets.UTF_8)), + "jiuazjc", BinaryData.fromBytes("\"datattmvmmagoaqylkjz\"".getBytes(StandardCharsets.UTF_8)))); model = BinaryData.fromObject(model).toObject(ExecutionProperties.class); - Assertions.assertEquals("mcmuapc", model.workflowVersionId()); + Assertions.assertEquals("ov", model.workflowVersionId()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionStatusTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionStatusTests.java index cb7a6b3b8363c..92bf019ca904c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionStatusTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionStatusTests.java @@ -14,16 +14,16 @@ public final class ExecutionStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExecutionStatus model = BinaryData.fromString( - "{\"updateTime\":\"2021-11-03T00:17:43Z\",\"status\":996816888,\"statusMessage\":\"ppr\",\"stageHistory\":[{\"status\":512330391,\"statusMessage\":\"k\",\"stage\":\"zejnhl\",\"nextstage\":\"pbzpcpiljhahz\",\"errorMessage\":\"chndbnwie\",\"isActive\":\"inactive\",\"inputs\":{},\"outputs\":{}},{\"status\":848413713,\"statusMessage\":\"bwefqsfapaqtfer\",\"stage\":\"wexjkmfxapjwogq\",\"nextstage\":\"o\",\"errorMessage\":\"udcdabtqwpwyawb\",\"isActive\":\"active\",\"inputs\":{},\"outputs\":{}},{\"status\":302291519,\"statusMessage\":\"kyexaoguyaipi\",\"stage\":\"daultxijjumfq\",\"nextstage\":\"z\",\"errorMessage\":\"qnmcjngzqdqx\",\"isActive\":\"active\",\"inputs\":{},\"outputs\":{}}]}") + "{\"updateTime\":\"2021-08-19T02:46:59Z\",\"status\":900964540,\"statusMessage\":\"gy\",\"stageHistory\":[{\"status\":395000982,\"statusMessage\":\"pweryekzk\",\"stage\":\"meottawj\",\"nextstage\":\"sxwwhnhjtf\",\"errorMessage\":\"n\",\"isActive\":\"inactive\",\"inputs\":{\"zsauzp\":\"\\\"datajpnwynudql\\\"\",\"zlrayme\":\"\\\"datalxeehuxiq\\\"\",\"ihmxrfdsajredn\":\"\\\"dataxls\\\"\"},\"outputs\":{\"vuafpwzyifr\":\"\\\"datashtuwgm\\\"\",\"gzdyimsfayorp\":\"\\\"datagwltxeqip\\\"\",\"sl\":\"\\\"dataavkjog\\\"\"}},{\"status\":1686367778,\"statusMessage\":\"mjkwynq\",\"stage\":\"ekqsykvwjtqpkev\",\"nextstage\":\"ltjcrspxk\",\"errorMessage\":\"r\",\"isActive\":\"active\",\"inputs\":{\"n\":\"\\\"dataxa\\\"\",\"xigpxvkqmaupxvpi\":\"\\\"dataoytzpose\\\"\",\"ds\":\"\\\"datadfaifyzyzeyuube\\\"\",\"ytoithgygvfl\":\"\\\"datal\\\"\"},\"outputs\":{\"rxwe\":\"\\\"datadihoyn\\\"\",\"cy\":\"\\\"datawkd\\\"\",\"dnaienhqhskndnel\":\"\\\"dataucpcunnuzdqumoen\\\"\"}},{\"status\":1060795028,\"statusMessage\":\"dlknwfoanniyop\",\"stage\":\"xivcnrlyxnu\",\"nextstage\":\"ephblkwqpatvbqs\",\"errorMessage\":\"cjbctviv\",\"isActive\":\"inactive\",\"inputs\":{\"vbrzcdb\":\"\\\"datatuowogtgitsqh\\\"\",\"db\":\"\\\"datanfzndscxmxeat\\\"\",\"jrmkuhmaxljalf\":\"\\\"datawnrdjyibqbnaom\\\"\",\"cancd\":\"\\\"datahcjmo\\\"\"},\"outputs\":{\"jjzr\":\"\\\"dataqcwgaxfgvaknokz\\\"\",\"x\":\"\\\"datatixldzyyfytpqs\\\"\"}}]}") .toObject(ExecutionStatus.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-03T00:17:43Z"), model.updateTime()); - Assertions.assertEquals(996816888, model.status()); - Assertions.assertEquals("ppr", model.statusMessage()); - Assertions.assertEquals(512330391, model.stageHistory().get(0).status()); - Assertions.assertEquals("k", model.stageHistory().get(0).statusMessage()); - Assertions.assertEquals("zejnhl", model.stageHistory().get(0).stage()); - Assertions.assertEquals("pbzpcpiljhahz", model.stageHistory().get(0).nextstage()); - Assertions.assertEquals("chndbnwie", model.stageHistory().get(0).errorMessage()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-19T02:46:59Z"), model.updateTime()); + Assertions.assertEquals(900964540, model.status()); + Assertions.assertEquals("gy", model.statusMessage()); + Assertions.assertEquals(395000982, model.stageHistory().get(0).status()); + Assertions.assertEquals("pweryekzk", model.stageHistory().get(0).statusMessage()); + Assertions.assertEquals("meottawj", model.stageHistory().get(0).stage()); + Assertions.assertEquals("sxwwhnhjtf", model.stageHistory().get(0).nextstage()); + Assertions.assertEquals("n", model.stageHistory().get(0).errorMessage()); Assertions.assertEquals(ActiveState.INACTIVE, model.stageHistory().get(0).isActive()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsCreateOrUpdateMockTests.java index 2b72fbedfbc31..d1b3b5cfc05fd 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsCreateOrUpdateMockTests.java @@ -9,6 +9,7 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; import com.azure.resourcemanager.workloadorchestration.models.Execution; import com.azure.resourcemanager.workloadorchestration.models.ExecutionProperties; @@ -26,7 +27,7 @@ public final class ExecutionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"workflowVersionId\":\"hskxx\",\"specification\":{},\"status\":{\"updateTime\":\"2021-12-04T06:38:55Z\",\"status\":435024183,\"statusMessage\":\"qgvtojrulfu\",\"stageHistory\":[{\"status\":1905255839,\"statusMessage\":\"hcfjzhxlyubqjro\",\"stage\":\"vrjeqmtzzbeqrztr\",\"nextstage\":\"lxrdhabsrwrsn\",\"errorMessage\":\"pqatiwkkvyanxkv\",\"isActive\":\"active\",\"inputs\":{},\"outputs\":{}},{\"status\":84399472,\"statusMessage\":\"jkqxetqmmli\",\"stage\":\"jjxnwxdchpoj\",\"nextstage\":\"ehzl\",\"errorMessage\":\"gfquwz\",\"isActive\":\"inactive\",\"inputs\":{},\"outputs\":{}},{\"status\":1998740765,\"statusMessage\":\"rwkwbpjxljtxbus\",\"stage\":\"bxxn\",\"nextstage\":\"i\",\"errorMessage\":\"zhgbdgzpagsecn\",\"isActive\":\"active\",\"inputs\":{},\"outputs\":{}},{\"status\":159804724,\"statusMessage\":\"llmqiyne\",\"stage\":\"ellnkkii\",\"nextstage\":\"mtum\",\"errorMessage\":\"ymdjfua\",\"isActive\":\"active\",\"inputs\":{},\"outputs\":{}}]},\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"guncan\",\"type\":\"CustomLocation\"},\"eTag\":\"wzor\",\"id\":\"bm\",\"name\":\"aqklxy\",\"type\":\"x\"}"; + = "{\"properties\":{\"workflowVersionId\":\"oiyygkts\",\"specification\":{\"cnxfxphs\":\"\\\"dataxxoxwfzbkv\\\"\"},\"status\":{\"updateTime\":\"2021-11-24T22:43:45Z\",\"status\":659291131,\"statusMessage\":\"bw\",\"stageHistory\":[{\"status\":1167734194,\"statusMessage\":\"msumustihtgrafj\",\"stage\":\"vkyxmmjc\",\"nextstage\":\"ogtder\",\"errorMessage\":\"nnmkvae\",\"isActive\":\"inactive\",\"inputs\":{\"nrpdhewoky\":\"\\\"dataxhhlbmyphf\\\"\",\"xfsyw\":\"\\\"datasf\\\"\",\"fyxbvkvwzdmvd\":\"\\\"dataihqbtod\\\"\"},\"outputs\":{\"g\":\"\\\"datacr\\\"\",\"lrhocr\":\"\\\"dataozzzawnjdv\\\"\",\"ndqzbvbpsuv\":\"\\\"datakvx\\\"\"}},{\"status\":77149606,\"statusMessage\":\"ozf\",\"stage\":\"kwb\",\"nextstage\":\"rklpiigfuzk\",\"errorMessage\":\"tuipjclzjwaqdzq\",\"isActive\":\"inactive\",\"inputs\":{\"lzzzevtz\":\"\\\"datawxy\\\"\",\"ekmuynfpkyvnhiy\":\"\\\"datawczochw\\\"\",\"kslhr\":\"\\\"datadho\\\"\",\"lwkffl\":\"\\\"dataqki\\\"\"},\"outputs\":{\"zjxnjtqbgysibt\":\"\\\"datamwqoguflteatnege\\\"\",\"kxunsaujqgbb\":\"\\\"datanvxwtdqtcbjdbtqy\\\"\",\"hgjsmbcsloy\":\"\\\"datavovoa\\\"\"}},{\"status\":985080577,\"statusMessage\":\"d\",\"stage\":\"he\",\"nextstage\":\"nsdunrkzvzua\",\"errorMessage\":\"hgzuyxtrvf\",\"isActive\":\"active\",\"inputs\":{\"vitp\":\"\\\"datagqj\\\"\",\"wkgjwb\":\"\\\"datapvsffavdhpiwrm\\\"\",\"dqtmggcpdrmeg\":\"\\\"datafdwfbwxy\\\"\",\"kwqkkgeseiph\":\"\\\"datajrzctwymz\\\"\"},\"outputs\":{\"qcomjiqiince\":\"\\\"dataupqscoobkjlcax\\\"\",\"iizm\":\"\\\"dataxxkdevpxim\\\"\",\"p\":\"\\\"dataqmduvtvodqx\\\"\"}}]},\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"qibtblmc\",\"type\":\"CustomLocation\"},\"eTag\":\"azn\",\"id\":\"d\",\"name\":\"fqvpbqsdqkpsbqsb\",\"type\":\"m\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,15 +37,19 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Execution response = manager.executions() - .define("chgjtnhtukfacih") - .withExistingVersion("hthdklmvetatlakf", "oixwgiksb", "vtooxrpo", "wp") - .withProperties(new ExecutionProperties().withWorkflowVersionId("fntumeezbxvqx").withSpecification(mapOf())) + .define("hgcydijnmcvj") + .withExistingVersion("ixepbntqqwwg", "gsqxilefej", "ewrznequqynttw", "nhajksbsyogjmq") + .withProperties(new ExecutionProperties().withWorkflowVersionId("sfcriqxzix") + .withSpecification(mapOf("frwrgorogeuvmkr", + BinaryData.fromBytes("\"dataxwmvcdkucpxpy\"".getBytes(StandardCharsets.UTF_8)), "jseml", + BinaryData.fromBytes("\"datapnr\"".getBytes(StandardCharsets.UTF_8)), "ljpetexutikelpmw", + BinaryData.fromBytes("\"dataofrsnq\"".getBytes(StandardCharsets.UTF_8))))) .withExtendedLocation( - new ExtendedLocation().withName("srqorcgenmvceb").withType(ExtendedLocationType.CUSTOM_LOCATION)) + new ExtendedLocation().withName("tjlxsgcemegdzdvy").withType(ExtendedLocationType.CUSTOM_LOCATION)) .create(); - Assertions.assertEquals("hskxx", response.properties().workflowVersionId()); - Assertions.assertEquals("guncan", response.extendedLocation().name()); + Assertions.assertEquals("oiyygkts", response.properties().workflowVersionId()); + Assertions.assertEquals("qibtblmc", response.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsGetWithResponseMockTests.java index feadc2a6b5996..40530ec17e6f6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ExecutionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"workflowVersionId\":\"clctzey\",\"specification\":{},\"status\":{\"updateTime\":\"2021-04-17T02:25:11Z\",\"status\":221950277,\"statusMessage\":\"wzqauxzanhmkvf\",\"stageHistory\":[{\"status\":1650089892,\"statusMessage\":\"rbcp\",\"stage\":\"xudqyemebunaucmc\",\"nextstage\":\"tneemmjauwcgxef\",\"errorMessage\":\"haitranize\",\"isActive\":\"inactive\",\"inputs\":{},\"outputs\":{}},{\"status\":1177263124,\"statusMessage\":\"bvfbngfcocefhpri\",\"stage\":\"fmpztraudsvh\",\"nextstage\":\"dculregp\",\"errorMessage\":\"moj\",\"isActive\":\"active\",\"inputs\":{},\"outputs\":{}},{\"status\":776813116,\"statusMessage\":\"hqrdgrtwmewjzlpy\",\"stage\":\"fa\",\"nextstage\":\"wjcayerzrr\",\"errorMessage\":\"syb\",\"isActive\":\"inactive\",\"inputs\":{},\"outputs\":{}}]},\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"srleinkfscjfn\",\"type\":\"EdgeZone\"},\"eTag\":\"vuagfqwtl\",\"id\":\"gvmreuptrklzmi\",\"name\":\"ajwolxfs\",\"type\":\"aghm\"}"; + = "{\"properties\":{\"workflowVersionId\":\"nrzpghlrdtbg\",\"specification\":{\"aflv\":\"\\\"databuibrvjz\\\"\"},\"status\":{\"updateTime\":\"2021-09-09T13:19:33Z\",\"status\":984371248,\"statusMessage\":\"fjcqrtt\",\"stageHistory\":[{\"status\":1498678201,\"statusMessage\":\"fjewfeqbavdo\",\"stage\":\"wy\",\"nextstage\":\"fm\",\"errorMessage\":\"lvxgwzz\",\"isActive\":\"inactive\",\"inputs\":{\"gw\":\"\\\"datacjgpvcqzvzrb\\\"\",\"mxvmdrwynbgovazo\":\"\\\"datahlx\\\"\",\"qmgkcswzeyxryea\":\"\\\"datamdvhhplkhwwdkatv\\\"\",\"smfasgtlv\":\"\\\"datamhpwbukl\\\"\"},\"outputs\":{\"hllpokjyghzt\":\"\\\"dataoilosjaemcezevft\\\"\"}},{\"status\":570111945,\"statusMessage\":\"wtpcflcezswwvw\",\"stage\":\"tdjtvbfpfhru\",\"nextstage\":\"syqcjnqswxdowum\",\"errorMessage\":\"ukrcdiohcl\",\"isActive\":\"inactive\",\"inputs\":{\"nyzcwyjsmk\":\"\\\"datafknebwedd\\\"\",\"vpaqbqxfb\":\"\\\"dataqldqabn\\\"\"},\"outputs\":{\"jyyrqaedw\":\"\\\"datacfddofxnfb\\\"\",\"mihwpadhedb\":\"\\\"datavocytjgoeayokrw\\\"\",\"dczvothmkh\":\"\\\"datao\\\"\"}},{\"status\":1669880005,\"statusMessage\":\"vbwfcnjhbpoe\",\"stage\":\"scmyhrhjvszf\",\"nextstage\":\"okndwpppqwojoevz\",\"errorMessage\":\"fytdxmly\",\"isActive\":\"inactive\",\"inputs\":{\"lcuhaizi\":\"\\\"dataapbkrbuoggtdl\\\"\",\"ohlpsftqkr\":\"\\\"datavaylz\\\"\",\"vbvvcpwtqsu\":\"\\\"datam\\\"\",\"ffetevrnt\":\"\\\"datapnhmzy\\\"\"},\"outputs\":{\"fsatvcsx\":\"\\\"datawacycsyotctkhf\\\"\",\"ublehhkplobz\":\"\\\"datamhnmizhvprhqqw\\\"\"}},{\"status\":876973425,\"statusMessage\":\"aksadzighmmtbt\",\"stage\":\"u\",\"nextstage\":\"vvraabeurdeewlsu\",\"errorMessage\":\"cbwkdwjyj\",\"isActive\":\"inactive\",\"inputs\":{\"m\":\"\\\"dataroo\\\"\"},\"outputs\":{\"inuwqxungrob\":\"\\\"dataspmcreihuftrnigh\\\"\"}}]},\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"sxjwdy\",\"type\":\"EdgeZone\"},\"eTag\":\"m\",\"id\":\"jowz\",\"name\":\"geerclbl\",\"type\":\"bhpwachyeur\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Execution response = manager.executions() - .getWithResponse("ewfopazdazg", "sqgpewqcfu", "mdpv", "zgl", "jbkn", com.azure.core.util.Context.NONE) + .getWithResponse("tnylqu", "vqmvyumgmmu", "bsnznwgsqufm", "xcyoseqcazisvb", "qgcyjpgawepk", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("clctzey", response.properties().workflowVersionId()); - Assertions.assertEquals("srleinkfscjfn", response.extendedLocation().name()); + Assertions.assertEquals("nrzpghlrdtbg", response.properties().workflowVersionId()); + Assertions.assertEquals("sxjwdy", response.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsListByWorkflowVersionMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsListByWorkflowVersionMockTests.java index 44a6293194f9c..30260470dbe8b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsListByWorkflowVersionMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExecutionsListByWorkflowVersionMockTests.java @@ -23,7 +23,7 @@ public final class ExecutionsListByWorkflowVersionMockTests { @Test public void testListByWorkflowVersion() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"workflowVersionId\":\"ev\",\"specification\":{},\"status\":{\"updateTime\":\"2021-03-02T22:20:35Z\",\"status\":1201304569,\"statusMessage\":\"slpuxgcbdsva\",\"stageHistory\":[{\"status\":763116826,\"statusMessage\":\"trkxgpazwu\",\"stage\":\"yqvnjobfe\",\"nextstage\":\"ldiuhzzgqlm\",\"errorMessage\":\"ewzgiud\",\"isActive\":\"active\",\"inputs\":{},\"outputs\":{}}]},\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"nmhkrezsd\",\"type\":\"EdgeZone\"},\"eTag\":\"heqdgcru\",\"id\":\"pinymmqgwokmikp\",\"name\":\"zfbmjxuv\",\"type\":\"ipfdvhaxdvwzaehp\"}]}"; + = "{\"value\":[{\"properties\":{\"workflowVersionId\":\"qjywi\",\"specification\":{\"ndiloqkajwjuria\":\"\\\"dataycfjnc\\\"\",\"llanhzc\":\"\\\"datasb\\\"\",\"ygzkztxfexwacyy\":\"\\\"datanjxizbax\\\"\"},\"status\":{\"updateTime\":\"2021-04-28T19:14:01Z\",\"status\":83665170,\"statusMessage\":\"ndzkfevuiiui\",\"stageHistory\":[{\"status\":680356373,\"statusMessage\":\"ytqdcizeqqfop\",\"stage\":\"opmotdsf\",\"nextstage\":\"xqlyoazyfbkmvl\",\"errorMessage\":\"mxojzsvmaigbqk\",\"isActive\":\"inactive\",\"inputs\":{\"eecbpergwlc\":\"\\\"datath\\\"\",\"yqsokknpugzjwdiz\":\"\\\"dataihba\\\"\",\"rswksykk\":\"\\\"datarjixiujzkcsexg\\\"\"},\"outputs\":{\"vuqddlgg\":\"\\\"datatxbbwlmnwzok\\\"\",\"olgzubakdlkv\":\"\\\"dataq\\\"\",\"w\":\"\\\"datagcmfnsffetpkmixw\\\"\"}},{\"status\":35622882,\"statusMessage\":\"gsmepnqvxgvoh\",\"stage\":\"thhx\",\"nextstage\":\"ev\",\"errorMessage\":\"deepfhgan\",\"isActive\":\"inactive\",\"inputs\":{\"bvrhh\":\"\\\"datahpjhubohxvzga\\\"\",\"v\":\"\\\"datagalgxnwfm\\\"\",\"sanybzzghvdfeumy\":\"\\\"datatauebpamqxfc\\\"\",\"okj\":\"\\\"datasvcdhlywkh\\\"\"},\"outputs\":{\"oewapcqksaaapxjh\":\"\\\"dataxezriw\\\"\",\"vdaahlfrcqklpmvz\":\"\\\"dataitibenwsdf\\\"\",\"mlbmfggeokfe\":\"\\\"dataireszyaqg\\\"\"}},{\"status\":788601585,\"statusMessage\":\"lwkyeahhh\",\"stage\":\"pulnrfcqufmcihp\",\"nextstage\":\"owrer\",\"errorMessage\":\"xptch\",\"isActive\":\"inactive\",\"inputs\":{\"dgjvxl\":\"\\\"dataidqimlgbbfj\\\"\"},\"outputs\":{\"snlow\":\"\\\"datamheftyaphqeofyt\\\"\"}},{\"status\":1396952472,\"statusMessage\":\"qixuancc\",\"stage\":\"jfdgfqp\",\"nextstage\":\"u\",\"errorMessage\":\"jhcfaa\",\"isActive\":\"active\",\"inputs\":{\"blwal\":\"\\\"dataovmufzgug\\\"\",\"baot\":\"\\\"dataossnq\\\"\",\"mdqecv\":\"\\\"dataptgcsmanxxrwq\\\"\",\"bfewwpsibxo\":\"\\\"dataamqwzmn\\\"\"},\"outputs\":{\"clwgycv\":\"\\\"dataoqjrkblnd\\\"\",\"embtbwnalb\":\"\\\"dataqnzjcyqqz\\\"\",\"ajvmvvlooubsfxip\":\"\\\"datadpisjdl\\\"\"}}]},\"provisioningState\":\"InProgress\"},\"extendedLocation\":{\"name\":\"skgocjomlupfaz\",\"type\":\"EdgeZone\"},\"eTag\":\"cdhus\",\"id\":\"dwzrgdqyxajc\",\"name\":\"grcavqc\",\"type\":\"yzoqzkmqcwwsjnk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ public void testListByWorkflowVersion() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.executions() - .listByWorkflowVersion("ynwlslrcigtzjcv", "xqlaps", "ssov", "xpavid", com.azure.core.util.Context.NONE); + .listByWorkflowVersion("wmvwryvdi", "kiikgpruccwmecbt", "syt", "texegw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ev", response.iterator().next().properties().workflowVersionId()); - Assertions.assertEquals("nmhkrezsd", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("qjywi", response.iterator().next().properties().workflowVersionId()); + Assertions.assertEquals("skgocjomlupfaz", response.iterator().next().extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.iterator().next().extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExtendedLocationTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExtendedLocationTests.java index 82f7d7b7e140e..3683de398a9ee 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExtendedLocationTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ExtendedLocationTests.java @@ -13,16 +13,16 @@ public final class ExtendedLocationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExtendedLocation model - = BinaryData.fromString("{\"name\":\"kix\",\"type\":\"EdgeZone\"}").toObject(ExtendedLocation.class); - Assertions.assertEquals("kix", model.name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.type()); + = BinaryData.fromString("{\"name\":\"vpa\",\"type\":\"CustomLocation\"}").toObject(ExtendedLocation.class); + Assertions.assertEquals("vpa", model.name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExtendedLocation model = new ExtendedLocation().withName("kix").withType(ExtendedLocationType.EDGE_ZONE); + ExtendedLocation model = new ExtendedLocation().withName("vpa").withType(ExtendedLocationType.CUSTOM_LOCATION); model = BinaryData.fromObject(model).toObject(ExtendedLocation.class); - Assertions.assertEquals("kix", model.name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.type()); + Assertions.assertEquals("vpa", model.name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataInnerTests.java new file mode 100644 index 0000000000000..00e760b73d51f --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataInner; + +public final class HierarchyConfigurationMetadataInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + HierarchyConfigurationMetadataInner model = BinaryData.fromString( + "{\"properties\":{\"displayName\":\"lsdxeqztvxwmw\",\"configTemplateId\":\"jswenaw\"},\"id\":\"me\",\"name\":\"leqioulndh\",\"type\":\"yoeojhtollhs\"}") + .toObject(HierarchyConfigurationMetadataInner.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataListResultTests.java new file mode 100644 index 0000000000000..a9ae51815098e --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.implementation.models.HierarchyConfigurationMetadataListResult; +import org.junit.jupiter.api.Assertions; + +public final class HierarchyConfigurationMetadataListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + HierarchyConfigurationMetadataListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"displayName\":\"novyoanfbcs\",\"configTemplateId\":\"agyw\"},\"id\":\"xigvjrktpgaeuk\",\"name\":\"awohpmw\",\"type\":\"qnucs\"},{\"properties\":{\"displayName\":\"sidsjtd\",\"configTemplateId\":\"bninjgazlsvbzfc\"},\"id\":\"o\",\"name\":\"e\",\"type\":\"wjcciklhsy\"},{\"properties\":{\"displayName\":\"drenxol\",\"configTemplateId\":\"yehqbeivdlhydwb\"},\"id\":\"fgrlpun\",\"name\":\"tjlkesmmpathub\",\"type\":\"ah\"}],\"nextLink\":\"an\"}") + .toObject(HierarchyConfigurationMetadataListResult.class); + Assertions.assertEquals("an", model.nextLink()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataPropertiesTests.java new file mode 100644 index 0000000000000..ce1666e918266 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataProperties; + +public final class HierarchyConfigurationMetadataPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + HierarchyConfigurationMetadataProperties model + = BinaryData.fromString("{\"displayName\":\"dm\",\"configTemplateId\":\"zln\"}") + .toObject(HierarchyConfigurationMetadataProperties.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionInnerTests.java new file mode 100644 index 0000000000000..80247f199c142 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.HierarchyConfigurationMetadataVersionInner; + +public final class HierarchyConfigurationMetadataVersionInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + HierarchyConfigurationMetadataVersionInner model = BinaryData.fromString( + "{\"properties\":{\"parentDisplayName\":\"llbvgwzsfftedous\",\"configTemplateVersionId\":\"tjtgravaqogfkb\",\"schemaId\":\"auzlqbtxxw\",\"dynamicConfigurationVersionId\":\"h\",\"configurationStatus\":\"ConfigurationCompleted\"},\"id\":\"drtpzkgme\",\"name\":\"oywhczzqrhmngqbe\",\"type\":\"ygisrz\"}") + .toObject(HierarchyConfigurationMetadataVersionInner.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionListResultTests.java new file mode 100644 index 0000000000000..933190ace1ba3 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.implementation.models.HierarchyConfigurationMetadataVersionListResult; +import org.junit.jupiter.api.Assertions; + +public final class HierarchyConfigurationMetadataVersionListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + HierarchyConfigurationMetadataVersionListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"parentDisplayName\":\"rwq\",\"configTemplateVersionId\":\"etfgcwvrrmdqntyc\",\"schemaId\":\"wthv\",\"dynamicConfigurationVersionId\":\"xgnuyeamcmhu\",\"configurationStatus\":\"ConfigurationPending\"},\"id\":\"cehokw\",\"name\":\"pqtwloesqrggvrb\",\"type\":\"yrukoi\"}],\"nextLink\":\"ciduwjle\"}") + .toObject(HierarchyConfigurationMetadataVersionListResult.class); + Assertions.assertEquals("ciduwjle", model.nextLink()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionPropertiesTests.java new file mode 100644 index 0000000000000..3abf5b111868d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataVersionProperties; + +public final class HierarchyConfigurationMetadataVersionPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + HierarchyConfigurationMetadataVersionProperties model = BinaryData.fromString( + "{\"parentDisplayName\":\"ykdidj\",\"configTemplateVersionId\":\"lrmpwctofldse\",\"schemaId\":\"dhztxkbr\",\"dynamicConfigurationVersionId\":\"drwjiy\",\"configurationStatus\":\"ConfigurationPending\"}") + .toObject(HierarchyConfigurationMetadataVersionProperties.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..5631f510fe168 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsGetWithResponseMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataVersion; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class HierarchyConfigurationMetadataVersionsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"parentDisplayName\":\"bwggxzss\",\"configTemplateVersionId\":\"liqmsckwhfmdo\",\"schemaId\":\"yobqzwjalwrsofxc\",\"dynamicConfigurationVersionId\":\"rmvjfmrsuyd\",\"configurationStatus\":\"ConfigurationCompleted\"},\"id\":\"elsxfkzr\",\"name\":\"tirjvqxvwkiocxo\",\"type\":\"rjwbuocqflm\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + HierarchyConfigurationMetadataVersion response = manager.hierarchyConfigurationMetadataVersions() + .getWithResponse("erwycuhytjwgetfi", "wneqjxzizebjr", "hgd", com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsListByParentMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsListByParentMockTests.java new file mode 100644 index 0000000000000..aba28e01897d6 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadataVersionsListByParentMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadataVersion; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class HierarchyConfigurationMetadataVersionsListByParentMockTests { + @Test + public void testListByParent() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"parentDisplayName\":\"odmrahjjidodn\",\"configTemplateVersionId\":\"t\",\"schemaId\":\"mahpuwku\",\"dynamicConfigurationVersionId\":\"bnhi\",\"configurationStatus\":\"ConfigurationPending\"},\"id\":\"zhrcqdfwbif\",\"name\":\"nhlsforsimtfcqm\",\"type\":\"ynb\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.hierarchyConfigurationMetadataVersions() + .listByParent("lrlqxbctatezyozd", "cqqnlsjxcsc", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasGetWithResponseMockTests.java new file mode 100644 index 0000000000000..95acec94f4485 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasGetWithResponseMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadata; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class HierarchyConfigurationMetadatasGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"displayName\":\"tuhaaaxxdcdjmdk\",\"configTemplateId\":\"xfrmbecxstowag\"},\"id\":\"xuihwesr\",\"name\":\"jaqgblkkn\",\"type\":\"ypmte\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + HierarchyConfigurationMetadata response = manager.hierarchyConfigurationMetadatas() + .getWithResponse("glpwdjr", "urfshzn", com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasListByParentMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasListByParentMockTests.java new file mode 100644 index 0000000000000..03eb26c45d8af --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyConfigurationMetadatasListByParentMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyConfigurationMetadata; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class HierarchyConfigurationMetadatasListByParentMockTests { + @Test + public void testListByParent() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"displayName\":\"fbrjokjwqdmraqni\",\"configTemplateId\":\"pqcaigazwfwlrfd\"},\"id\":\"lzs\",\"name\":\"odt\",\"type\":\"fdrslzymqx\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.hierarchyConfigurationMetadatas() + .listByParent("spsaneyvaerpiob", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyMetadataTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyMetadataTests.java new file mode 100644 index 0000000000000..788621996f0cf --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyMetadataTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.HierarchyMetadata; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class HierarchyMetadataTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + HierarchyMetadata model + = BinaryData.fromString("{\"hierarchyIds\":[\"if\",\"ocjxw\",\"loozrvt\"],\"level\":\"cmufunlcpxxv\"}") + .toObject(HierarchyMetadata.class); + Assertions.assertEquals("if", model.hierarchyIds().get(0)); + Assertions.assertEquals("cmufunlcpxxv", model.level()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + HierarchyMetadata model = new HierarchyMetadata().withHierarchyIds(Arrays.asList("if", "ocjxw", "loozrvt")) + .withLevel("cmufunlcpxxv"); + model = BinaryData.fromObject(model).toObject(HierarchyMetadata.class); + Assertions.assertEquals("if", model.hierarchyIds().get(0)); + Assertions.assertEquals("cmufunlcpxxv", model.level()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchySelectorTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchySelectorTests.java new file mode 100644 index 0000000000000..34fc1a3d3fa5c --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchySelectorTests.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.HierarchySelector; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class HierarchySelectorTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + HierarchySelector model = BinaryData + .fromString( + "{\"contextId\":\"fiqwoy\",\"hierarchyIds\":[\"apcohhouc\",\"pqojxcx\"],\"level\":\"zdcgdzbenr\"}") + .toObject(HierarchySelector.class); + Assertions.assertEquals("fiqwoy", model.contextId()); + Assertions.assertEquals("apcohhouc", model.hierarchyIds().get(0)); + Assertions.assertEquals("zdcgdzbenr", model.level()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + HierarchySelector model = new HierarchySelector().withContextId("fiqwoy") + .withHierarchyIds(Arrays.asList("apcohhouc", "pqojxcx")) + .withLevel("zdcgdzbenr"); + model = BinaryData.fromObject(model).toObject(HierarchySelector.class); + Assertions.assertEquals("fiqwoy", model.contextId()); + Assertions.assertEquals("apcohhouc", model.hierarchyIds().get(0)); + Assertions.assertEquals("zdcgdzbenr", model.level()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyTests.java index 5f31a5289a49e..fe3f48f848cd2 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/HierarchyTests.java @@ -12,16 +12,16 @@ public final class HierarchyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Hierarchy model - = BinaryData.fromString("{\"name\":\"grwsdp\",\"description\":\"ra\"}").toObject(Hierarchy.class); - Assertions.assertEquals("grwsdp", model.name()); - Assertions.assertEquals("ra", model.description()); + = BinaryData.fromString("{\"name\":\"sqdtiwlwxlbon\",\"description\":\"qba\"}").toObject(Hierarchy.class); + Assertions.assertEquals("sqdtiwlwxlbon", model.name()); + Assertions.assertEquals("qba", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Hierarchy model = new Hierarchy().withName("grwsdp").withDescription("ra"); + Hierarchy model = new Hierarchy().withName("sqdtiwlwxlbon").withDescription("qba"); model = BinaryData.fromObject(model).toObject(Hierarchy.class); - Assertions.assertEquals("grwsdp", model.name()); - Assertions.assertEquals("ra", model.description()); + Assertions.assertEquals("sqdtiwlwxlbon", model.name()); + Assertions.assertEquals("qba", model.description()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstallSolutionParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstallSolutionParameterTests.java index 4425483e273f2..e3bfc41040842 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstallSolutionParameterTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstallSolutionParameterTests.java @@ -12,14 +12,14 @@ public final class InstallSolutionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InstallSolutionParameter model - = BinaryData.fromString("{\"solutionVersionId\":\"v\"}").toObject(InstallSolutionParameter.class); - Assertions.assertEquals("v", model.solutionVersionId()); + = BinaryData.fromString("{\"solutionVersionId\":\"ykutwpf\"}").toObject(InstallSolutionParameter.class); + Assertions.assertEquals("ykutwpf", model.solutionVersionId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - InstallSolutionParameter model = new InstallSolutionParameter().withSolutionVersionId("v"); + InstallSolutionParameter model = new InstallSolutionParameter().withSolutionVersionId("ykutwpf"); model = BinaryData.fromObject(model).toObject(InstallSolutionParameter.class); - Assertions.assertEquals("v", model.solutionVersionId()); + Assertions.assertEquals("ykutwpf", model.solutionVersionId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesGetWithResponseMockTests.java index 0d0bf3da98df5..790a40aa87868 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class InstanceHistoriesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"kkfmkmfdjxyxgb\",\"specification\":{}},\"target\":{\"targetId\":\"jcteoedlrsl\",\"targetSpecification\":{},\"solutionScope\":\"pxvjnzd\"},\"solutionScope\":\"o\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"cnabxzf\"},\"status\":{\"lastModified\":\"2021-12-04T05:54:44Z\",\"deployed\":1093614468,\"expectedRunningJobId\":293937341,\"runningJobId\":794895367,\"status\":\"lmhivzkwwwnc\",\"statusDetails\":\"rzd\",\"generation\":273437626,\"targetStatuses\":[{\"name\":\"ptjxulweuc\",\"status\":\"t\",\"componentStatuses\":[{},{},{},{}]},{\"name\":\"ehmcgcje\",\"status\":\"ue\",\"componentStatuses\":[{},{}]},{\"name\":\"mvfejvqnttmbqd\",\"status\":\"zfivfokpysthhzag\",\"componentStatuses\":[{}]}]},\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"lhgenuzejgvkv\",\"type\":\"CustomLocation\"},\"eTag\":\"qszllrz\",\"id\":\"mmdqgmihzpimc\",\"name\":\"rh\",\"type\":\"xtminklogxsvtzar\"}"; + = "{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"vulb\",\"specification\":{\"rhfcaeooifqdyw\":\"\\\"datatuxy\\\"\"}},\"target\":{\"targetId\":\"lobha\",\"targetSpecification\":{\"gbmxldjmz\":\"\\\"dataomfecorkfro\\\"\",\"qfygpny\":\"\\\"datazbjesylslur\\\"\",\"qscag\":\"\\\"datagdz\\\"\",\"ss\":\"\\\"datayvouprsytq\\\"\"},\"solutionScope\":\"mgw\"},\"solutionScope\":\"ivrxpfduiol\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"pbfjpoqzucfzl\"},\"status\":{\"lastModified\":\"2021-06-21T15:54:33Z\",\"deployed\":1475019917,\"expectedRunningJobId\":715322521,\"runningJobId\":1082076426,\"status\":\"mvhvz\",\"statusDetails\":\"l\",\"generation\":700264246,\"targetStatuses\":[{\"name\":\"jywzcqyg\",\"status\":\"nwsvhbngqiwye\",\"componentStatuses\":[{}]}]},\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"rpnrehkunsbfjh\",\"type\":\"EdgeZone\"},\"eTag\":\"tpkvegeattbzkgtz\",\"id\":\"wqsttewuvcys\",\"name\":\"eufjxflpditfno\",\"type\":\"p\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,12 +33,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); InstanceHistory response = manager.instanceHistories() - .getWithResponse("ygg", "pmcrdcuelj", "iahxmfqryarvs", "zqbglcjkays", "thzodubtlmjtgbl", + .getWithResponse("wbyorjplbchych", "kvy", "fbqvumkxqj", "iuepmaxfnzlpqmp", "t", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ActiveState.ACTIVE, response.properties().activeState()); - Assertions.assertEquals("lhgenuzejgvkv", response.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); + Assertions.assertEquals(ActiveState.INACTIVE, response.properties().activeState()); + Assertions.assertEquals("rpnrehkunsbfjh", response.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesListByInstanceMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesListByInstanceMockTests.java index 359b9b1b9c048..35f2452fb0eda 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesListByInstanceMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoriesListByInstanceMockTests.java @@ -24,7 +24,7 @@ public final class InstanceHistoriesListByInstanceMockTests { @Test public void testListByInstance() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"rebluimmbwxsf\",\"specification\":{}},\"target\":{\"targetId\":\"b\",\"targetSpecification\":{},\"solutionScope\":\"raokqkbudb\"},\"solutionScope\":\"aokbavlyttaaknwf\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"mhpdu\"},\"status\":{\"lastModified\":\"2021-09-23T19:09Z\",\"deployed\":1707350997,\"expectedRunningJobId\":1236887032,\"runningJobId\":545387189,\"status\":\"cbctnanqimwbzx\",\"statusDetails\":\"cldpkawn\",\"generation\":73625606,\"targetStatuses\":[{\"name\":\"o\",\"status\":\"w\",\"componentStatuses\":[{},{},{}]},{\"name\":\"udmfcoibiczius\",\"status\":\"wjrkb\",\"componentStatuses\":[{},{}]},{\"name\":\"btqqvyfs\",\"status\":\"rfwb\",\"componentStatuses\":[{},{}]},{\"name\":\"ogfuyzwvbhlim\",\"status\":\"qecroodl\",\"componentStatuses\":[{},{},{}]}]},\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"aasaxx\",\"type\":\"CustomLocation\"},\"eTag\":\"mfkwiyjvzuk\",\"id\":\"r\",\"name\":\"awn\",\"type\":\"zm\"}]}"; + = "{\"value\":[{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"tlnrj\",\"specification\":{\"newuhwfw\":\"\\\"datadbuziciqppoqvg\\\"\",\"oxtfn\":\"\\\"datanox\\\"\"}},\"target\":{\"targetId\":\"ssf\",\"targetSpecification\":{\"fmjymjnh\":\"\\\"datackncjmgvsnvbtqd\\\"\",\"x\":\"\\\"dataluqllbsupub\\\"\"},\"solutionScope\":\"dlhzwhcu\"},\"solutionScope\":\"bosjjfd\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"qfy\"},\"status\":{\"lastModified\":\"2021-09-01T03:17:49Z\",\"deployed\":381440577,\"expectedRunningJobId\":1189124637,\"runningJobId\":2517837,\"status\":\"niuarlcjiwgsxfai\",\"statusDetails\":\"wd\",\"generation\":1717537733,\"targetStatuses\":[{\"name\":\"fgrzx\",\"status\":\"rcb\",\"componentStatuses\":[{}]}]},\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"sym\",\"type\":\"EdgeZone\"},\"eTag\":\"njcytesmfucrtfod\",\"id\":\"uauzmz\",\"name\":\"vrtrfz\",\"type\":\"hezvhjudxdyy\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,12 +34,10 @@ public void testListByInstance() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.instanceHistories() - .listByInstance("zvqnsqktcmbjwzzo", "lpky", "tglwkzpgajsqjc", "mqbmfuvqarwz", - com.azure.core.util.Context.NONE); + .listByInstance("yuxlvrhprrv", "wonleqflvtlr", "bs", "phuykun", com.azure.core.util.Context.NONE); Assertions.assertEquals(ActiveState.INACTIVE, response.iterator().next().properties().activeState()); - Assertions.assertEquals("aasaxx", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, - response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("sym", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.iterator().next().extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryInnerTests.java index f86bc3c27c663..0655389072260 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryInnerTests.java @@ -14,10 +14,10 @@ public final class InstanceHistoryInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InstanceHistoryInner model = BinaryData.fromString( - "{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"id\",\"specification\":{}},\"target\":{\"targetId\":\"kuvscxkdm\",\"targetSpecification\":{},\"solutionScope\":\"vibrxkpmloazuruo\"},\"solutionScope\":\"goorbteo\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"xakvvjgslor\"},\"status\":{\"lastModified\":\"2021-12-03T21:15:41Z\",\"deployed\":1094227624,\"expectedRunningJobId\":229675569,\"runningJobId\":525599305,\"status\":\"xnyed\",\"statusDetails\":\"gyvudtjuewbc\",\"generation\":1871891438,\"targetStatuses\":[{\"name\":\"hcjyxc\",\"status\":\"bvpa\",\"componentStatuses\":[{},{}]},{\"name\":\"udzpxgwjplmagstc\",\"status\":\"hpfkyrkdbdgi\",\"componentStatuses\":[{},{}]},{\"name\":\"kmnwqjnobaiyhddv\",\"status\":\"cegfnmntfp\",\"componentStatuses\":[{},{},{},{}]}]},\"provisioningState\":\"InProgress\"},\"extendedLocation\":{\"name\":\"nczdwvv\",\"type\":\"CustomLocation\"},\"eTag\":\"xlllchp\",\"id\":\"bzevwrd\",\"name\":\"hfuk\",\"type\":\"vsjcswsmystuluqy\"}") + "{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"nbldxeaclgschori\",\"specification\":{\"ucsofldpuviyf\":\"\\\"datasrrm\\\"\",\"bsxtkcudfbsfarfs\":\"\\\"dataaabeolhbhlvbmxuq\\\"\",\"gf\":\"\\\"dataowlkjxnqpv\\\"\",\"d\":\"\\\"datatmhqykiz\\\"\"}},\"target\":{\"targetId\":\"aoaf\",\"targetSpecification\":{\"mr\":\"\\\"dataqvoxmycj\\\"\",\"wwpbmzgwesyd\":\"\\\"datavwg\\\"\",\"leallklm\":\"\\\"dataxwefohecbvopwndy\\\"\",\"rdfjmzsyzfhotl\":\"\\\"datakhlowkxxpv\\\"\"},\"solutionScope\":\"k\"},\"solutionScope\":\"ychunsjlpjrtwszh\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"phvtrrmhwrb\"},\"status\":{\"lastModified\":\"2021-05-26T00:13:29Z\",\"deployed\":1699127103,\"expectedRunningJobId\":1633319157,\"runningJobId\":2023214586,\"status\":\"glrocuy\",\"statusDetails\":\"whhmemhooc\",\"generation\":769753365,\"targetStatuses\":[{\"name\":\"memczjkmmyk\",\"status\":\"jxsglhsr\",\"componentStatuses\":[{},{},{},{}]},{\"name\":\"jylmbkzudnigr\",\"status\":\"hotj\",\"componentStatuses\":[{},{},{},{}]}]},\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"zzjgnr\",\"type\":\"EdgeZone\"},\"eTag\":\"yhqotoihiqakydi\",\"id\":\"brkwpzdqt\",\"name\":\"hcspo\",\"type\":\"aqa\"}") .toObject(InstanceHistoryInner.class); - Assertions.assertEquals(ActiveState.INACTIVE, model.properties().activeState()); - Assertions.assertEquals("nczdwvv", model.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); + Assertions.assertEquals(ActiveState.ACTIVE, model.properties().activeState()); + Assertions.assertEquals("zzjgnr", model.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryListResultTests.java index a2a7967210913..5d6a3d8b00d06 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryListResultTests.java @@ -14,11 +14,11 @@ public final class InstanceHistoryListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InstanceHistoryListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"jlxr\",\"specification\":{}},\"target\":{\"targetId\":\"zapeewchpx\",\"targetSpecification\":{},\"solutionScope\":\"kuziycsle\"},\"solutionScope\":\"f\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"tyh\"},\"status\":{\"lastModified\":\"2021-09-05T20:22:18Z\",\"deployed\":1336110134,\"expectedRunningJobId\":1297480953,\"runningJobId\":923449348,\"status\":\"mmrqz\",\"statusDetails\":\"rjvpglydzgkrvqee\",\"generation\":1251506139,\"targetStatuses\":[{}]},\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"t\",\"type\":\"CustomLocation\"},\"eTag\":\"tpzdmovzvfvaawzq\",\"id\":\"f\",\"name\":\"gzuriglaecxndt\",\"type\":\"cokpv\"},{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"qtmldgxo\",\"specification\":{}},\"target\":{\"targetId\":\"clnpkci\",\"targetSpecification\":{},\"solutionScope\":\"iykhy\"},\"solutionScope\":\"fvjlboxqvkjlmx\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"nhdwdigumbnra\"},\"status\":{\"lastModified\":\"2021-08-24T07:32:43Z\",\"deployed\":399028426,\"expectedRunningJobId\":194924410,\"runningJobId\":1799745167,\"status\":\"dz\",\"statusDetails\":\"zwwva\",\"generation\":129407729,\"targetStatuses\":[{}]},\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"nk\",\"type\":\"EdgeZone\"},\"eTag\":\"qyikvy\",\"id\":\"uyav\",\"name\":\"uwmncs\",\"type\":\"tijfybvp\"},{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"rsg\",\"specification\":{}},\"target\":{\"targetId\":\"huzqgn\",\"targetSpecification\":{},\"solutionScope\":\"ynscl\"},\"solutionScope\":\"hzvhxnkomtkubo\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"dxzxhi\"},\"status\":{\"lastModified\":\"2021-11-04T19:27:05Z\",\"deployed\":589968603,\"expectedRunningJobId\":725466961,\"runningJobId\":1145117333,\"status\":\"tltdhlfkqojpy\",\"statusDetails\":\"gtrd\",\"generation\":1625047918,\"targetStatuses\":[{}]},\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"dymbrny\",\"type\":\"EdgeZone\"},\"eTag\":\"m\",\"id\":\"a\",\"name\":\"wgck\",\"type\":\"ocxvdfffwafqr\"}],\"nextLink\":\"daspavehhrvk\"}") + "{\"value\":[{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"mflrytswfpfmdgyc\",\"specification\":{\"qjjyslurl\":\"\\\"dataskw\\\"\",\"slsrhmpq\":\"\\\"datashhkvpedw\\\"\",\"dcbrwimuvq\":\"\\\"datawwsko\\\"\"}},\"target\":{\"targetId\":\"osovyrrleaesin\",\"targetSpecification\":{\"rqbrjbbmpxdlvyk\":\"\\\"dataljqobbpihehcecyb\\\"\",\"gzhxog\":\"\\\"datarexcrseqwjksghu\\\"\",\"rkmdyom\":\"\\\"dataggsvoujkxibdaf\\\"\"},\"solutionScope\":\"fbvfbhdy\"},\"solutionScope\":\"hpwpgddeimawzovg\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"ikjcjcazt\"},\"status\":{\"lastModified\":\"2021-11-13T12:27:46Z\",\"deployed\":1966996705,\"expectedRunningJobId\":2137351817,\"runningJobId\":1289499687,\"status\":\"omlik\",\"statusDetails\":\"wvczcswkacve\",\"generation\":789888473,\"targetStatuses\":[{},{},{},{}]},\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"b\",\"type\":\"CustomLocation\"},\"eTag\":\"f\",\"id\":\"gddpq\",\"name\":\"hehnmnaoya\",\"type\":\"kcoeqswank\"},{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"tmhdroznnhdr\",\"specification\":{\"gguxhemlwyw\":\"\\\"datagjc\\\"\",\"klelssxb\":\"\\\"dataeeczgfbu\\\"\",\"ksrl\":\"\\\"dataycsxzu\\\"\",\"pvmjcdoewbid\":\"\\\"datamdesqp\\\"\"}},\"target\":{\"targetId\":\"t\",\"targetSpecification\":{\"gfsxzec\":\"\\\"dataxvgpiude\\\"\",\"fykhvuhxepmru\":\"\\\"dataaxwk\\\"\",\"ujdjltymkmvg\":\"\\\"dataznabaobns\\\"\",\"ixkykxd\":\"\\\"dataihywartspph\\\"\"},\"solutionScope\":\"j\"},\"solutionScope\":\"mmuc\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"kflrmymy\"},\"status\":{\"lastModified\":\"2021-01-29T03:33:52Z\",\"deployed\":521943782,\"expectedRunningJobId\":1071436894,\"runningJobId\":1146517696,\"status\":\"lmiiiovg\",\"statusDetails\":\"gxuugqkctotio\",\"generation\":1289691310,\"targetStatuses\":[{}]},\"provisioningState\":\"InProgress\"},\"extendedLocation\":{\"name\":\"tjgwdtguk\",\"type\":\"CustomLocation\"},\"eTag\":\"b\",\"id\":\"phqlkccuz\",\"name\":\"ygqwahoiu\",\"type\":\"wgniipr\"},{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"awuwzdufypivls\",\"specification\":{\"phavpmhbrb\":\"\\\"datapmcubkmifoxxkub\\\"\",\"nssqyzqed\":\"\\\"datagvgovpbbttefjo\\\"\"}},\"target\":{\"targetId\":\"dfrdbi\",\"targetSpecification\":{\"zcxmjpbyep\":\"\\\"datajgeihfqlggwfi\\\"\",\"rc\":\"\\\"datamgtvlj\\\"\"},\"solutionScope\":\"fqip\"},\"solutionScope\":\"hnp\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"cabvnuil\"},\"status\":{\"lastModified\":\"2021-11-05T00:31:12Z\",\"deployed\":1969142096,\"expectedRunningJobId\":1444798782,\"runningJobId\":1591261256,\"status\":\"mrmfjl\",\"statusDetails\":\"wtoaukhfk\",\"generation\":1188109369,\"targetStatuses\":[{},{}]},\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"a\",\"type\":\"CustomLocation\"},\"eTag\":\"xjw\",\"id\":\"vedwcgyeewx\",\"name\":\"iqbps\",\"type\":\"g\"},{\"properties\":{\"solutionVersion\":{\"solutionVersionId\":\"u\",\"specification\":{\"hhvnewgnxkymp\":\"\\\"datajdlrgmsplzgaufc\\\"\",\"ixt\":\"\\\"dataanxrj\\\"\",\"ypnyghshxc\":\"\\\"databta\\\"\"}},\"target\":{\"targetId\":\"hkgmnsg\",\"targetSpecification\":{\"ac\":\"\\\"dataycphdrwjjkhvyo\\\"\",\"vxnqmhrpqpd\":\"\\\"datau\\\"\",\"ssffxuifmc\":\"\\\"datawmkoisq\\\"\"},\"solutionScope\":\"p\"},\"solutionScope\":\"kdqzrdzsylo\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"czzydmxzjij\"},\"status\":{\"lastModified\":\"2021-07-02T03:38:34Z\",\"deployed\":254323124,\"expectedRunningJobId\":153071773,\"runningJobId\":497731118,\"status\":\"rldefxrdcox\",\"statusDetails\":\"kkjanurnnqbnqbp\",\"generation\":1872065986,\"targetStatuses\":[{},{},{},{}]},\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"dogypxrxvbfi\",\"type\":\"EdgeZone\"},\"eTag\":\"hvcta\",\"id\":\"rbxrblmliowxihsp\",\"name\":\"xwqagnepzw\",\"type\":\"klsbsbqqqagw\"}],\"nextLink\":\"xaomzisglrrc\"}") .toObject(InstanceHistoryListResult.class); - Assertions.assertEquals(ActiveState.INACTIVE, model.value().get(0).properties().activeState()); - Assertions.assertEquals("t", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals(ActiveState.ACTIVE, model.value().get(0).properties().activeState()); + Assertions.assertEquals("b", model.value().get(0).extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("daspavehhrvk", model.nextLink()); + Assertions.assertEquals("xaomzisglrrc", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryPropertiesTests.java index b37bd30868494..6ee472c374301 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceHistoryPropertiesTests.java @@ -13,8 +13,8 @@ public final class InstanceHistoryPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InstanceHistoryProperties model = BinaryData.fromString( - "{\"solutionVersion\":{\"solutionVersionId\":\"cvlerchpqbmfpjba\",\"specification\":{}},\"target\":{\"targetId\":\"fcxsspuunnoxy\",\"targetSpecification\":{},\"solutionScope\":\"qddrihpfhoqcaae\"},\"solutionScope\":\"aomdjvlpjxx\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"sgeivsiy\"},\"status\":{\"lastModified\":\"2021-04-08T09:21:16Z\",\"deployed\":841709051,\"expectedRunningJobId\":1418036822,\"runningJobId\":1690186599,\"status\":\"bzo\",\"statusDetails\":\"culapzwyrpgogtq\",\"generation\":1190019177,\"targetStatuses\":[{\"name\":\"b\",\"status\":\"ajlyjtlvofqzhv\",\"componentStatuses\":[{\"name\":\"yfm\",\"status\":\"uxrkjp\"},{\"name\":\"w\",\"status\":\"zwiivwzjbhyzs\"}]}]},\"provisioningState\":\"Deleting\"}") + "{\"solutionVersion\":{\"solutionVersionId\":\"ipietgbe\",\"specification\":{\"fpubntnbatz\":\"\\\"dataulbmoichdlp\\\"\",\"ttcjuhplrvkmjc\":\"\\\"dataiqsowsaaelc\\\"\",\"vkyylizrzbjpsf\":\"\\\"datamjvlgfgg\\\"\"}},\"target\":{\"targetId\":\"fuzt\",\"targetSpecification\":{\"eofiz\":\"\\\"datamvagbwidqlvhuko\\\"\",\"jmvl\":\"\\\"datavjfn\\\"\"},\"solutionScope\":\"z\"},\"solutionScope\":\"blkujrllfojuidjp\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"c\"},\"status\":{\"lastModified\":\"2021-10-25T06:21:32Z\",\"deployed\":585656811,\"expectedRunningJobId\":1161612021,\"runningJobId\":1081937239,\"status\":\"zejet\",\"statusDetails\":\"ln\",\"generation\":61866964,\"targetStatuses\":[{\"name\":\"zkdbqzolx\",\"status\":\"vhqjwtrhtgvg\",\"componentStatuses\":[{\"name\":\"rkolawjm\",\"status\":\"mwrokcdxfzzzwyja\"}]},{\"name\":\"tlhguynuchl\",\"status\":\"ltxdwhmozu\",\"componentStatuses\":[{\"name\":\"ln\",\"status\":\"nj\"},{\"name\":\"pafolp\",\"status\":\"wamxqzrag\"},{\"name\":\"dphtv\",\"status\":\"lajv\"}]}]},\"provisioningState\":\"Succeeded\"}") .toObject(InstanceHistoryProperties.class); - Assertions.assertEquals(ActiveState.ACTIVE, model.activeState()); + Assertions.assertEquals(ActiveState.INACTIVE, model.activeState()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceInnerTests.java index 4c8998bc2dd3c..1dd8bc6c22247 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceInnerTests.java @@ -18,38 +18,37 @@ public final class InstanceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InstanceInner model = BinaryData.fromString( - "{\"properties\":{\"solutionVersionId\":\"wdsh\",\"targetId\":\"ssnrbgye\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"gaojf\"},\"solutionScope\":\"nc\",\"status\":{\"lastModified\":\"2021-05-09T10:35:28Z\",\"deployed\":2043797639,\"expectedRunningJobId\":1147624677,\"runningJobId\":37194957,\"status\":\"moxoftpi\",\"statusDetails\":\"wycz\",\"generation\":1967043899,\"targetStatuses\":[{\"name\":\"qjlihhyuspska\",\"status\":\"vlmfwdgzxulucv\",\"componentStatuses\":[{},{},{},{}]},{\"name\":\"sreuzvxurisjnh\",\"status\":\"txifqj\",\"componentStatuses\":[{},{}]},{\"name\":\"rhublwpcesutrg\",\"status\":\"pauutpw\",\"componentStatuses\":[{},{},{},{}]}]},\"deploymentTimestampEpoch\":2623463508515246746,\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"w\",\"type\":\"CustomLocation\"},\"eTag\":\"fqntcyp\",\"id\":\"jv\",\"name\":\"oimwkslirc\",\"type\":\"zjxvydfcea\"}") + "{\"properties\":{\"solutionVersionId\":\"plrohkpigq\",\"targetId\":\"usuckzmkwklsno\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"e\"},\"solutionScope\":\"lhhjnh\",\"status\":{\"lastModified\":\"2021-08-06T00:28:20Z\",\"deployed\":1413290916,\"expectedRunningJobId\":1952545143,\"runningJobId\":661810692,\"status\":\"hgbvqtan\",\"statusDetails\":\"fdlpukhpyr\",\"generation\":2066244136,\"targetStatuses\":[{\"name\":\"pe\",\"status\":\"khnmgbrou\",\"componentStatuses\":[{},{}]},{\"name\":\"hfhpfp\",\"status\":\"jzoywjxhp\",\"componentStatuses\":[{},{},{}]},{\"name\":\"ntacn\",\"status\":\"w\",\"componentStatuses\":[{},{},{}]}]},\"deploymentTimestampEpoch\":8528081454609920825,\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"rljyoogwxhnsdu\",\"type\":\"CustomLocation\"},\"eTag\":\"bsre\",\"id\":\"fqkfuarenl\",\"name\":\"hhtklnvnafvvkyfe\",\"type\":\"ev\"}") .toObject(InstanceInner.class); - Assertions.assertEquals("wdsh", model.properties().solutionVersionId()); - Assertions.assertEquals("ssnrbgye", model.properties().targetId()); - Assertions.assertEquals(ActiveState.INACTIVE, model.properties().activeState()); - Assertions.assertEquals(ReconciliationState.ACTIVE, model.properties().reconciliationPolicy().state()); - Assertions.assertEquals("gaojf", model.properties().reconciliationPolicy().interval()); - Assertions.assertEquals("nc", model.properties().solutionScope()); - Assertions.assertEquals("w", model.extendedLocation().name()); + Assertions.assertEquals("plrohkpigq", model.properties().solutionVersionId()); + Assertions.assertEquals("usuckzmkwklsno", model.properties().targetId()); + Assertions.assertEquals(ActiveState.ACTIVE, model.properties().activeState()); + Assertions.assertEquals(ReconciliationState.INACTIVE, model.properties().reconciliationPolicy().state()); + Assertions.assertEquals("e", model.properties().reconciliationPolicy().interval()); + Assertions.assertEquals("lhhjnh", model.properties().solutionScope()); + Assertions.assertEquals("rljyoogwxhnsdu", model.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - InstanceInner model - = new InstanceInner() - .withProperties(new InstanceProperties().withSolutionVersionId("wdsh") - .withTargetId("ssnrbgye") - .withActiveState(ActiveState.INACTIVE) - .withReconciliationPolicy(new ReconciliationPolicyProperties().withState(ReconciliationState.ACTIVE) - .withInterval("gaojf")) - .withSolutionScope("nc")) - .withExtendedLocation( - new ExtendedLocation().withName("w").withType(ExtendedLocationType.CUSTOM_LOCATION)); + InstanceInner model = new InstanceInner() + .withProperties(new InstanceProperties().withSolutionVersionId("plrohkpigq") + .withTargetId("usuckzmkwklsno") + .withActiveState(ActiveState.ACTIVE) + .withReconciliationPolicy( + new ReconciliationPolicyProperties().withState(ReconciliationState.INACTIVE).withInterval("e")) + .withSolutionScope("lhhjnh")) + .withExtendedLocation( + new ExtendedLocation().withName("rljyoogwxhnsdu").withType(ExtendedLocationType.CUSTOM_LOCATION)); model = BinaryData.fromObject(model).toObject(InstanceInner.class); - Assertions.assertEquals("wdsh", model.properties().solutionVersionId()); - Assertions.assertEquals("ssnrbgye", model.properties().targetId()); - Assertions.assertEquals(ActiveState.INACTIVE, model.properties().activeState()); - Assertions.assertEquals(ReconciliationState.ACTIVE, model.properties().reconciliationPolicy().state()); - Assertions.assertEquals("gaojf", model.properties().reconciliationPolicy().interval()); - Assertions.assertEquals("nc", model.properties().solutionScope()); - Assertions.assertEquals("w", model.extendedLocation().name()); + Assertions.assertEquals("plrohkpigq", model.properties().solutionVersionId()); + Assertions.assertEquals("usuckzmkwklsno", model.properties().targetId()); + Assertions.assertEquals(ActiveState.ACTIVE, model.properties().activeState()); + Assertions.assertEquals(ReconciliationState.INACTIVE, model.properties().reconciliationPolicy().state()); + Assertions.assertEquals("e", model.properties().reconciliationPolicy().interval()); + Assertions.assertEquals("lhhjnh", model.properties().solutionScope()); + Assertions.assertEquals("rljyoogwxhnsdu", model.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceListResultTests.java index 3fd81d0eb304f..7a66353e0afd6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstanceListResultTests.java @@ -15,17 +15,17 @@ public final class InstanceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InstanceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"solutionVersionId\":\"luiqtqzfavyvnqq\",\"targetId\":\"bar\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"jkqa\"},\"solutionScope\":\"gzslesjcbhernnti\",\"status\":{\"lastModified\":\"2021-06-13T19:06:49Z\",\"deployed\":1433935156,\"expectedRunningJobId\":284273475,\"runningJobId\":440184617,\"status\":\"behwagohb\",\"statusDetails\":\"fkmr\",\"generation\":1538670364,\"targetStatuses\":[{},{},{}]},\"deploymentTimestampEpoch\":3870915769928862637,\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"jfutacoebj\",\"type\":\"CustomLocation\"},\"eTag\":\"zcjznmwcpmgua\",\"id\":\"raufactkahzova\",\"name\":\"j\",\"type\":\"iuxxpshneekulfg\"},{\"properties\":{\"solutionVersionId\":\"qubkw\",\"targetId\":\"lenrd\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"bazpjuohmi\"},\"solutionScope\":\"flnorwmduvwp\",\"status\":{\"lastModified\":\"2021-02-12T11:01:27Z\",\"deployed\":689066944,\"expectedRunningJobId\":1194335789,\"runningJobId\":1138704794,\"status\":\"gpqch\",\"statusDetails\":\"zepn\",\"generation\":1448184483,\"targetStatuses\":[{},{}]},\"deploymentTimestampEpoch\":8305188180696356392,\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"axconfozauo\",\"type\":\"CustomLocation\"},\"eTag\":\"kokwbqplhlvnu\",\"id\":\"pzlrphw\",\"name\":\"soldweyuqdunv\",\"type\":\"nnrwrbiork\"},{\"properties\":{\"solutionVersionId\":\"lywjhh\",\"targetId\":\"dnhxmsi\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"loxggdufiqn\"},\"solutionScope\":\"euzaof\",\"status\":{\"lastModified\":\"2021-08-18T10:11:41Z\",\"deployed\":1087376816,\"expectedRunningJobId\":315622888,\"runningJobId\":915050797,\"status\":\"dotcubiipuip\",\"statusDetails\":\"qonmacj\",\"generation\":476153181,\"targetStatuses\":[{}]},\"deploymentTimestampEpoch\":7389265614859693619,\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"m\",\"type\":\"EdgeZone\"},\"eTag\":\"fgmblrrilbywdxsm\",\"id\":\"cwrwfs\",\"name\":\"jfnynszqujizdvoq\",\"type\":\"tiby\"},{\"properties\":{\"solutionVersionId\":\"bblgyavut\",\"targetId\":\"thjoxoism\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"iml\"},\"solutionScope\":\"ljxkcgxxlx\",\"status\":{\"lastModified\":\"2021-08-31T17:12:19Z\",\"deployed\":2075346576,\"expectedRunningJobId\":1128961825,\"runningJobId\":1820797792,\"status\":\"wlvwlyoupf\",\"statusDetails\":\"bkjubdyhgkfmins\",\"generation\":760014296,\"targetStatuses\":[{},{}]},\"deploymentTimestampEpoch\":3309941778234907018,\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"tlahbq\",\"type\":\"CustomLocation\"},\"eTag\":\"xtgzukxitmmqtgqq\",\"id\":\"hrnxrxc\",\"name\":\"juisavokqdzf\",\"type\":\"azivjlfrqttbajl\"}],\"nextLink\":\"tnwxy\"}") + "{\"value\":[{\"properties\":{\"solutionVersionId\":\"bwwg\",\"targetId\":\"d\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"mhmwffpl\"},\"solutionScope\":\"u\",\"status\":{\"lastModified\":\"2021-03-20T18:52:11Z\",\"deployed\":1350768012,\"expectedRunningJobId\":1400103281,\"runningJobId\":643996998,\"status\":\"eyoxoyyukphai\",\"statusDetails\":\"oir\",\"generation\":2128302185,\"targetStatuses\":[{},{}]},\"deploymentTimestampEpoch\":2359319620666804686,\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"pyyrmfs\",\"type\":\"EdgeZone\"},\"eTag\":\"avbopfp\",\"id\":\"bwnupgahxkumas\",\"name\":\"caac\",\"type\":\"dmmcpugmehqep\"}],\"nextLink\":\"fhbzehewhoqhn\"}") .toObject(InstanceListResult.class); - Assertions.assertEquals("luiqtqzfavyvnqq", model.value().get(0).properties().solutionVersionId()); - Assertions.assertEquals("bar", model.value().get(0).properties().targetId()); + Assertions.assertEquals("bwwg", model.value().get(0).properties().solutionVersionId()); + Assertions.assertEquals("d", model.value().get(0).properties().targetId()); Assertions.assertEquals(ActiveState.ACTIVE, model.value().get(0).properties().activeState()); - Assertions.assertEquals(ReconciliationState.ACTIVE, + Assertions.assertEquals(ReconciliationState.INACTIVE, model.value().get(0).properties().reconciliationPolicy().state()); - Assertions.assertEquals("jkqa", model.value().get(0).properties().reconciliationPolicy().interval()); - Assertions.assertEquals("gzslesjcbhernnti", model.value().get(0).properties().solutionScope()); - Assertions.assertEquals("jfutacoebj", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("tnwxy", model.nextLink()); + Assertions.assertEquals("mhmwffpl", model.value().get(0).properties().reconciliationPolicy().interval()); + Assertions.assertEquals("u", model.value().get(0).properties().solutionScope()); + Assertions.assertEquals("pyyrmfs", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.value().get(0).extendedLocation().type()); + Assertions.assertEquals("fhbzehewhoqhn", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancePropertiesTests.java index 6289e77affe15..e0e58e9b2874c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancePropertiesTests.java @@ -15,30 +15,30 @@ public final class InstancePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InstanceProperties model = BinaryData.fromString( - "{\"solutionVersionId\":\"vlhv\",\"targetId\":\"gdyftumrtwna\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"iw\"},\"solutionScope\":\"jgcyztsfmznba\",\"status\":{\"lastModified\":\"2021-03-23T01:57:59Z\",\"deployed\":1138539224,\"expectedRunningJobId\":1311384548,\"runningJobId\":1941100702,\"status\":\"pxehuwrykqga\",\"statusDetails\":\"mvikl\",\"generation\":703238637,\"targetStatuses\":[{\"name\":\"bejdznxcv\",\"status\":\"rhnj\",\"componentStatuses\":[{\"name\":\"v\",\"status\":\"ovqfzge\"},{\"name\":\"dftuljltduce\",\"status\":\"tmczuomejwcwwqi\"},{\"name\":\"nssxmojmsvpk\",\"status\":\"rvkwc\"}]},{\"name\":\"ql\",\"status\":\"x\",\"componentStatuses\":[{\"name\":\"heyd\",\"status\":\"dshmkxmaehvbbx\"},{\"name\":\"iplt\",\"status\":\"htba\"}]},{\"name\":\"gx\",\"status\":\"rc\",\"componentStatuses\":[{\"name\":\"lyhpluodpvruud\",\"status\":\"zibt\"},{\"name\":\"stgktst\",\"status\":\"xeclzedqbcvhzlhp\"},{\"name\":\"dqkdlwwqfbu\",\"status\":\"kxtrq\"},{\"name\":\"smlmbtxhwgfwsrta\",\"status\":\"oezbrhubsk\"}]}]},\"deploymentTimestampEpoch\":2353090484810813231,\"provisioningState\":\"Succeeded\"}") + "{\"solutionVersionId\":\"bo\",\"targetId\":\"lcqxypokk\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"cymczngn\"},\"solutionScope\":\"xxewu\",\"status\":{\"lastModified\":\"2021-01-13T22:28:19Z\",\"deployed\":290904524,\"expectedRunningJobId\":314847187,\"runningJobId\":2102301127,\"status\":\"dtvqe\",\"statusDetails\":\"qct\",\"generation\":1857605955,\"targetStatuses\":[{\"name\":\"dmflhuytx\",\"status\":\"tznapxbannovv\",\"componentStatuses\":[{\"name\":\"ytprwnwvroev\",\"status\":\"lyokrrrou\"},{\"name\":\"vnsasbcrymodi\",\"status\":\"xkl\"}]},{\"name\":\"d\",\"status\":\"azpmkmlmv\",\"componentStatuses\":[{\"name\":\"zopjhbzxliohr\",\"status\":\"dtfgxqbawpcbb\"}]}]},\"deploymentTimestampEpoch\":2776880760546842080,\"provisioningState\":\"Canceled\"}") .toObject(InstanceProperties.class); - Assertions.assertEquals("vlhv", model.solutionVersionId()); - Assertions.assertEquals("gdyftumrtwna", model.targetId()); - Assertions.assertEquals(ActiveState.ACTIVE, model.activeState()); - Assertions.assertEquals(ReconciliationState.ACTIVE, model.reconciliationPolicy().state()); - Assertions.assertEquals("iw", model.reconciliationPolicy().interval()); - Assertions.assertEquals("jgcyztsfmznba", model.solutionScope()); + Assertions.assertEquals("bo", model.solutionVersionId()); + Assertions.assertEquals("lcqxypokk", model.targetId()); + Assertions.assertEquals(ActiveState.INACTIVE, model.activeState()); + Assertions.assertEquals(ReconciliationState.INACTIVE, model.reconciliationPolicy().state()); + Assertions.assertEquals("cymczngn", model.reconciliationPolicy().interval()); + Assertions.assertEquals("xxewu", model.solutionScope()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - InstanceProperties model = new InstanceProperties().withSolutionVersionId("vlhv") - .withTargetId("gdyftumrtwna") - .withActiveState(ActiveState.ACTIVE) + InstanceProperties model = new InstanceProperties().withSolutionVersionId("bo") + .withTargetId("lcqxypokk") + .withActiveState(ActiveState.INACTIVE) .withReconciliationPolicy( - new ReconciliationPolicyProperties().withState(ReconciliationState.ACTIVE).withInterval("iw")) - .withSolutionScope("jgcyztsfmznba"); + new ReconciliationPolicyProperties().withState(ReconciliationState.INACTIVE).withInterval("cymczngn")) + .withSolutionScope("xxewu"); model = BinaryData.fromObject(model).toObject(InstanceProperties.class); - Assertions.assertEquals("vlhv", model.solutionVersionId()); - Assertions.assertEquals("gdyftumrtwna", model.targetId()); - Assertions.assertEquals(ActiveState.ACTIVE, model.activeState()); - Assertions.assertEquals(ReconciliationState.ACTIVE, model.reconciliationPolicy().state()); - Assertions.assertEquals("iw", model.reconciliationPolicy().interval()); - Assertions.assertEquals("jgcyztsfmznba", model.solutionScope()); + Assertions.assertEquals("bo", model.solutionVersionId()); + Assertions.assertEquals("lcqxypokk", model.targetId()); + Assertions.assertEquals(ActiveState.INACTIVE, model.activeState()); + Assertions.assertEquals(ReconciliationState.INACTIVE, model.reconciliationPolicy().state()); + Assertions.assertEquals("cymczngn", model.reconciliationPolicy().interval()); + Assertions.assertEquals("xxewu", model.solutionScope()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesCreateOrUpdateMockTests.java index b0c1b6c121bb1..67061a1869fea 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesCreateOrUpdateMockTests.java @@ -27,7 +27,7 @@ public final class InstancesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"solutionVersionId\":\"pefcpcz\",\"targetId\":\"hnuqndaizu\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"ytus\"},\"solutionScope\":\"hmt\",\"status\":{\"lastModified\":\"2020-12-21T03:09:55Z\",\"deployed\":239385444,\"expectedRunningJobId\":397812436,\"runningJobId\":1816525505,\"status\":\"zwydwtth\",\"statusDetails\":\"kgkskjivbsshaj\",\"generation\":121782295,\"targetStatuses\":[{\"name\":\"expgeumilhwu\",\"status\":\"rdexyio\",\"componentStatuses\":[{},{},{}]},{\"name\":\"inbd\",\"status\":\"s\",\"componentStatuses\":[{},{},{},{}]},{\"name\":\"qrs\",\"status\":\"cbbprtugav\",\"componentStatuses\":[{},{},{}]},{\"name\":\"yksivmfogdrtbfc\",\"status\":\"rftsjcwjjxs\",\"componentStatuses\":[{},{}]}]},\"deploymentTimestampEpoch\":3638056724847854965,\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"xkecifhocj\",\"type\":\"EdgeZone\"},\"eTag\":\"loozrvt\",\"id\":\"cmufunlcpxxv\",\"name\":\"ryeyngjgv\",\"type\":\"quv\"}"; + = "{\"properties\":{\"solutionVersionId\":\"qayrehjuqwva\",\"targetId\":\"xrlzhpziha\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"zlxnqzubf\"},\"solutionScope\":\"fdbgmkfwm\",\"status\":{\"lastModified\":\"2021-05-04T08:43:20Z\",\"deployed\":649568800,\"expectedRunningJobId\":1816529038,\"runningJobId\":1974680731,\"status\":\"rk\",\"statusDetails\":\"ehzlry\",\"generation\":933457686,\"targetStatuses\":[{\"name\":\"mkaeplrajubow\",\"status\":\"wevtjrieikmwla\",\"componentStatuses\":[{},{}]}]},\"deploymentTimestampEpoch\":1652669514825376098,\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"gucbmt\",\"type\":\"EdgeZone\"},\"eTag\":\"scnnst\",\"id\":\"yyuvtzrxzhclec\",\"name\":\"wtzqzcloyhy\",\"type\":\"pgidhzgyresgzsdt\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,25 +37,25 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Instance response = manager.instances() - .define("ajfoxc") - .withExistingSolution("x", "fciatxtjrr", "kmdskjhhxd") - .withProperties(new InstanceProperties().withSolutionVersionId("cvslxlhuavkrmukm") - .withTargetId("jmkxettcslojf") + .define("uppiyxlzm") + .withExistingSolution("skwgqr", "taumd", "cjlvkrkegtyc") + .withProperties(new InstanceProperties().withSolutionVersionId("ddeeqzqvabm") + .withTargetId("vsexduetb") .withActiveState(ActiveState.ACTIVE) - .withReconciliationPolicy(new ReconciliationPolicyProperties().withState(ReconciliationState.INACTIVE) - .withInterval("qtoqxjhqxcsq")) - .withSolutionScope("kbtn")) + .withReconciliationPolicy( + new ReconciliationPolicyProperties().withState(ReconciliationState.ACTIVE).withInterval("ewxtrl")) + .withSolutionScope("pxyazk")) .withExtendedLocation( - new ExtendedLocation().withName("djxqeskoynuiylpc").withType(ExtendedLocationType.EDGE_ZONE)) + new ExtendedLocation().withName("rletndqlmf").withType(ExtendedLocationType.CUSTOM_LOCATION)) .create(); - Assertions.assertEquals("pefcpcz", response.properties().solutionVersionId()); - Assertions.assertEquals("hnuqndaizu", response.properties().targetId()); + Assertions.assertEquals("qayrehjuqwva", response.properties().solutionVersionId()); + Assertions.assertEquals("xrlzhpziha", response.properties().targetId()); Assertions.assertEquals(ActiveState.ACTIVE, response.properties().activeState()); - Assertions.assertEquals(ReconciliationState.ACTIVE, response.properties().reconciliationPolicy().state()); - Assertions.assertEquals("ytus", response.properties().reconciliationPolicy().interval()); - Assertions.assertEquals("hmt", response.properties().solutionScope()); - Assertions.assertEquals("xkecifhocj", response.extendedLocation().name()); + Assertions.assertEquals(ReconciliationState.INACTIVE, response.properties().reconciliationPolicy().state()); + Assertions.assertEquals("zlxnqzubf", response.properties().reconciliationPolicy().interval()); + Assertions.assertEquals("fdbgmkfwm", response.properties().solutionScope()); + Assertions.assertEquals("gucbmt", response.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesGetWithResponseMockTests.java index e962ef201406a..aad41ece9c7c2 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class InstancesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"solutionVersionId\":\"ddacbcbgydlqidy\",\"targetId\":\"mhmpty\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"inactive\",\"interval\":\"bnrqq\"},\"solutionScope\":\"ztpb\",\"status\":{\"lastModified\":\"2021-08-20T03:01:03Z\",\"deployed\":602199119,\"expectedRunningJobId\":462746510,\"runningJobId\":222029368,\"status\":\"lswbnf\",\"statusDetails\":\"epl\",\"generation\":571315048,\"targetStatuses\":[{\"name\":\"f\",\"status\":\"gl\",\"componentStatuses\":[{}]}]},\"deploymentTimestampEpoch\":7089584992073086055,\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"hsbrcary\",\"type\":\"CustomLocation\"},\"eTag\":\"j\",\"id\":\"voaqajuvehzptdmk\",\"name\":\"rbhmpfulubef\",\"type\":\"ybpmf\"}"; + = "{\"properties\":{\"solutionVersionId\":\"faxzsvbxxyjissk\",\"targetId\":\"bqoclflioewyhx\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"rkdpsqeqfb\"},\"solutionScope\":\"mdsesbrujbjpp\",\"status\":{\"lastModified\":\"2021-06-15T19:42:09Z\",\"deployed\":1902312754,\"expectedRunningJobId\":539846856,\"runningJobId\":1698799010,\"status\":\"hieatnejr\",\"statusDetails\":\"inzqplgtkiho\",\"generation\":1252752660,\"targetStatuses\":[{\"name\":\"zfffjilzfbpnt\",\"status\":\"kensckh\",\"componentStatuses\":[{},{}]},{\"name\":\"rmoyfxxkwykuq\",\"status\":\"dxlykhkggapvdgt\",\"componentStatuses\":[{},{},{},{}]},{\"name\":\"rscdxrnrnjrcuf\",\"status\":\"gacnrgfdtncmsp\",\"componentStatuses\":[{},{}]}]},\"deploymentTimestampEpoch\":2644136852145064072,\"provisioningState\":\"InProgress\"},\"extendedLocation\":{\"name\":\"kqiq\",\"type\":\"CustomLocation\"},\"eTag\":\"v\",\"id\":\"qcs\",\"name\":\"kqj\",\"type\":\"xptueip\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,18 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - Instance response - = manager.instances().getWithResponse("rra", "eek", "s", "eh", com.azure.core.util.Context.NONE).getValue(); + Instance response = manager.instances() + .getWithResponse("dyzoutxfptofhg", "uywezygvadg", "aqwvkgjpytpmpvdn", "gehlufbortbnu", + com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("ddacbcbgydlqidy", response.properties().solutionVersionId()); - Assertions.assertEquals("mhmpty", response.properties().targetId()); + Assertions.assertEquals("faxzsvbxxyjissk", response.properties().solutionVersionId()); + Assertions.assertEquals("bqoclflioewyhx", response.properties().targetId()); Assertions.assertEquals(ActiveState.INACTIVE, response.properties().activeState()); - Assertions.assertEquals(ReconciliationState.INACTIVE, response.properties().reconciliationPolicy().state()); - Assertions.assertEquals("bnrqq", response.properties().reconciliationPolicy().interval()); - Assertions.assertEquals("ztpb", response.properties().solutionScope()); - Assertions.assertEquals("hsbrcary", response.extendedLocation().name()); + Assertions.assertEquals(ReconciliationState.ACTIVE, response.properties().reconciliationPolicy().state()); + Assertions.assertEquals("rkdpsqeqfb", response.properties().reconciliationPolicy().interval()); + Assertions.assertEquals("mdsesbrujbjpp", response.properties().solutionScope()); + Assertions.assertEquals("kqiq", response.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesListBySolutionMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesListBySolutionMockTests.java index b5852c84c312c..1925b79e2ca35 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesListBySolutionMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/InstancesListBySolutionMockTests.java @@ -25,7 +25,7 @@ public final class InstancesListBySolutionMockTests { @Test public void testListBySolution() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"solutionVersionId\":\"hlzvfictnkjj\",\"targetId\":\"gcwn\",\"activeState\":\"inactive\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"fyrtogmhmjp\"},\"solutionScope\":\"cdf\",\"status\":{\"lastModified\":\"2021-09-25T01:25:06Z\",\"deployed\":1104557547,\"expectedRunningJobId\":495145104,\"runningJobId\":806895875,\"status\":\"mseharx\",\"statusDetails\":\"vqnrxtmbpj\",\"generation\":1341207363,\"targetStatuses\":[{\"name\":\"hrsidq\",\"status\":\"l\",\"componentStatuses\":[{},{},{}]},{\"name\":\"kft\",\"status\":\"atw\",\"componentStatuses\":[{},{},{},{}]},{\"name\":\"u\",\"status\":\"ym\",\"componentStatuses\":[{},{},{},{}]},{\"name\":\"jhp\",\"status\":\"vjqdvdwkq\",\"componentStatuses\":[{},{},{},{}]}]},\"deploymentTimestampEpoch\":5810045625940459054,\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"aavuagntetaout\",\"type\":\"CustomLocation\"},\"eTag\":\"ctuhspfefyihduye\",\"id\":\"ldphmtybkcgs\",\"name\":\"thhllnmwyne\",\"type\":\"x\"}]}"; + = "{\"value\":[{\"properties\":{\"solutionVersionId\":\"e\",\"targetId\":\"vvpxjoeg\",\"activeState\":\"active\",\"reconciliationPolicy\":{\"state\":\"active\",\"interval\":\"leuidpmton\"},\"solutionScope\":\"gnhtmeplhbpjbap\",\"status\":{\"lastModified\":\"2021-01-28T04:40:28Z\",\"deployed\":1930840208,\"expectedRunningJobId\":46117438,\"runningJobId\":293685955,\"status\":\"gjiuaiqpmnufzhrc\",\"statusDetails\":\"wwuzd\",\"generation\":1313685247,\"targetStatuses\":[{\"name\":\"ivjmxmlitqdsjipd\",\"status\":\"scotyx\",\"componentStatuses\":[{},{}]},{\"name\":\"fefndslvrqoemwsi\",\"status\":\"ailwdqmqfyd\",\"componentStatuses\":[{}]}]},\"deploymentTimestampEpoch\":4969443878930869226,\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"lgwgnamku\",\"type\":\"CustomLocation\"},\"eTag\":\"uyuafixlxicw\",\"id\":\"th\",\"name\":\"cfmfzcfasfodro\",\"type\":\"alvngtwy\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,17 +35,17 @@ public void testListBySolution() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.instances().listBySolution("fununmpzk", "vfy", "fkd", com.azure.core.util.Context.NONE); + = manager.instances().listBySolution("ugkw", "rq", "rpahuuonjkkxuk", com.azure.core.util.Context.NONE); - Assertions.assertEquals("hlzvfictnkjj", response.iterator().next().properties().solutionVersionId()); - Assertions.assertEquals("gcwn", response.iterator().next().properties().targetId()); - Assertions.assertEquals(ActiveState.INACTIVE, response.iterator().next().properties().activeState()); + Assertions.assertEquals("e", response.iterator().next().properties().solutionVersionId()); + Assertions.assertEquals("vvpxjoeg", response.iterator().next().properties().targetId()); + Assertions.assertEquals(ActiveState.ACTIVE, response.iterator().next().properties().activeState()); Assertions.assertEquals(ReconciliationState.ACTIVE, response.iterator().next().properties().reconciliationPolicy().state()); - Assertions.assertEquals("fyrtogmhmjp", + Assertions.assertEquals("leuidpmton", response.iterator().next().properties().reconciliationPolicy().interval()); - Assertions.assertEquals("cdf", response.iterator().next().properties().solutionScope()); - Assertions.assertEquals("aavuagntetaout", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("gnhtmeplhbpjbap", response.iterator().next().properties().solutionScope()); + Assertions.assertEquals("lgwgnamku", response.iterator().next().extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.iterator().next().extendedLocation().type()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/PublishJobParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/PublishJobParameterTests.java new file mode 100644 index 0000000000000..a9cbe93b66b47 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/PublishJobParameterTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.PublishJobParameter; +import org.junit.jupiter.api.Assertions; + +public final class PublishJobParameterTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PublishJobParameter model + = BinaryData.fromString("{\"jobType\":\"publish\",\"parameter\":{\"solutionVersionId\":\"a\"}}") + .toObject(PublishJobParameter.class); + Assertions.assertEquals("a", model.parameter().solutionVersionId()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/PublishJobStepStatisticsTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/PublishJobStepStatisticsTests.java new file mode 100644 index 0000000000000..cb38e89b7f289 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/PublishJobStepStatisticsTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.PublishJobStepStatistics; +import org.junit.jupiter.api.Assertions; + +public final class PublishJobStepStatisticsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PublishJobStepStatistics model = BinaryData.fromString( + "{\"statisticsType\":\"publish\",\"totalCount\":713697907,\"successCount\":1961670618,\"failedCount\":596743052}") + .toObject(PublishJobStepStatistics.class); + Assertions.assertEquals(713697907, model.totalCount()); + Assertions.assertEquals(1961670618, model.successCount()); + Assertions.assertEquals(596743052, model.failedCount()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ReconciliationPolicyPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ReconciliationPolicyPropertiesTests.java index 6e572b591dbec..b24a851e90010 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ReconciliationPolicyPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ReconciliationPolicyPropertiesTests.java @@ -13,18 +13,18 @@ public final class ReconciliationPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReconciliationPolicyProperties model - = BinaryData.fromString("{\"state\":\"inactive\",\"interval\":\"okkqfqjbvleo\"}") + = BinaryData.fromString("{\"state\":\"inactive\",\"interval\":\"apqofyuicdhz\"}") .toObject(ReconciliationPolicyProperties.class); Assertions.assertEquals(ReconciliationState.INACTIVE, model.state()); - Assertions.assertEquals("okkqfqjbvleo", model.interval()); + Assertions.assertEquals("apqofyuicdhz", model.interval()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ReconciliationPolicyProperties model - = new ReconciliationPolicyProperties().withState(ReconciliationState.INACTIVE).withInterval("okkqfqjbvleo"); + = new ReconciliationPolicyProperties().withState(ReconciliationState.INACTIVE).withInterval("apqofyuicdhz"); model = BinaryData.fromObject(model).toObject(ReconciliationPolicyProperties.class); Assertions.assertEquals(ReconciliationState.INACTIVE, model.state()); - Assertions.assertEquals("okkqfqjbvleo", model.interval()); + Assertions.assertEquals("apqofyuicdhz", model.interval()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/RemoveRevisionParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/RemoveRevisionParameterTests.java index 8eac644f40999..22f29cf177ba5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/RemoveRevisionParameterTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/RemoveRevisionParameterTests.java @@ -11,19 +11,19 @@ public final class RemoveRevisionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RemoveRevisionParameter model = BinaryData - .fromString("{\"solutionTemplateId\":\"syrsndsytgadgvra\",\"solutionVersion\":\"aeneqnzarrwl\"}") - .toObject(RemoveRevisionParameter.class); - Assertions.assertEquals("syrsndsytgadgvra", model.solutionTemplateId()); - Assertions.assertEquals("aeneqnzarrwl", model.solutionVersion()); + RemoveRevisionParameter model + = BinaryData.fromString("{\"solutionTemplateId\":\"volvtn\",\"solutionVersion\":\"v\"}") + .toObject(RemoveRevisionParameter.class); + Assertions.assertEquals("volvtn", model.solutionTemplateId()); + Assertions.assertEquals("v", model.solutionVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RemoveRevisionParameter model = new RemoveRevisionParameter().withSolutionTemplateId("syrsndsytgadgvra") - .withSolutionVersion("aeneqnzarrwl"); + RemoveRevisionParameter model + = new RemoveRevisionParameter().withSolutionTemplateId("volvtn").withSolutionVersion("v"); model = BinaryData.fromObject(model).toObject(RemoveRevisionParameter.class); - Assertions.assertEquals("syrsndsytgadgvra", model.solutionTemplateId()); - Assertions.assertEquals("aeneqnzarrwl", model.solutionVersion()); + Assertions.assertEquals("volvtn", model.solutionTemplateId()); + Assertions.assertEquals("v", model.solutionVersion()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/RemoveVersionResponseInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/RemoveVersionResponseInnerTests.java index 75fe32f972e90..c0bf192c9441f 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/RemoveVersionResponseInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/RemoveVersionResponseInnerTests.java @@ -12,7 +12,7 @@ public final class RemoveVersionResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RemoveVersionResponseInner model - = BinaryData.fromString("{\"status\":\"cnyejhkryhtnapcz\"}").toObject(RemoveVersionResponseInner.class); - Assertions.assertEquals("cnyejhkryhtnapcz", model.status()); + = BinaryData.fromString("{\"status\":\"dphlxaolt\"}").toObject(RemoveVersionResponseInner.class); + Assertions.assertEquals("dphlxaolt", model.status()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ResolvedConfigurationInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ResolvedConfigurationInnerTests.java index dda22e7d44a29..94358e0b25477 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ResolvedConfigurationInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/ResolvedConfigurationInnerTests.java @@ -12,7 +12,7 @@ public final class ResolvedConfigurationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResolvedConfigurationInner model - = BinaryData.fromString("{\"configuration\":\"dmjsjqb\"}").toObject(ResolvedConfigurationInner.class); - Assertions.assertEquals("dmjsjqb", model.configuration()); + = BinaryData.fromString("{\"configuration\":\"kuvsjcswsm\"}").toObject(ResolvedConfigurationInner.class); + Assertions.assertEquals("kuvsjcswsm", model.configuration()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaInnerTests.java index 707628c94f72f..dd10b02cd6cf3 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaInnerTests.java @@ -15,20 +15,20 @@ public final class SchemaInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SchemaInner model = BinaryData.fromString( - "{\"properties\":{\"currentVersion\":\"fsqesaagdfmglzlh\",\"provisioningState\":\"Deleting\"},\"eTag\":\"f\",\"location\":\"mrvktsizntoc\",\"tags\":{\"kfo\":\"ouajpsqucmpoyf\"},\"id\":\"knygjofjddeq\",\"name\":\"rd\",\"type\":\"upewnwreitjzy\"}") + "{\"properties\":{\"currentVersion\":\"xukcdmpar\",\"provisioningState\":\"Failed\"},\"eTag\":\"anzwuxzdxta\",\"location\":\"lhmwhfpmrqobm\",\"tags\":{\"pzvgnwzsymglzufc\":\"knryrtihfxtij\",\"hdbihan\":\"zk\",\"y\":\"fhfcb\"},\"id\":\"a\",\"name\":\"ithxqhabifpi\",\"type\":\"xwczbyscnp\"}") .toObject(SchemaInner.class); - Assertions.assertEquals("mrvktsizntoc", model.location()); - Assertions.assertEquals("ouajpsqucmpoyf", model.tags().get("kfo")); + Assertions.assertEquals("lhmwhfpmrqobm", model.location()); + Assertions.assertEquals("knryrtihfxtij", model.tags().get("pzvgnwzsymglzufc")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SchemaInner model = new SchemaInner().withLocation("mrvktsizntoc") - .withTags(mapOf("kfo", "ouajpsqucmpoyf")) + SchemaInner model = new SchemaInner().withLocation("lhmwhfpmrqobm") + .withTags(mapOf("pzvgnwzsymglzufc", "knryrtihfxtij", "hdbihan", "zk", "y", "fhfcb")) .withProperties(new SchemaProperties()); model = BinaryData.fromObject(model).toObject(SchemaInner.class); - Assertions.assertEquals("mrvktsizntoc", model.location()); - Assertions.assertEquals("ouajpsqucmpoyf", model.tags().get("kfo")); + Assertions.assertEquals("lhmwhfpmrqobm", model.location()); + Assertions.assertEquals("knryrtihfxtij", model.tags().get("pzvgnwzsymglzufc")); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaListResultTests.java index 5a27ae5a576db..90d1b13c87488 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaListResultTests.java @@ -12,10 +12,10 @@ public final class SchemaListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SchemaListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"currentVersion\":\"jye\",\"provisioningState\":\"InProgress\"},\"eTag\":\"ni\",\"location\":\"oxzjnchgejspod\",\"tags\":{\"npmqnjaqwixjspro\":\"lzydehojwyahux\",\"wmfdatscmdvpjhul\":\"vcputegj\"},\"id\":\"uuvmkjozkrwfnd\",\"name\":\"odjpslwejd\",\"type\":\"vwryoqpso\"},{\"properties\":{\"currentVersion\":\"tazak\",\"provisioningState\":\"Initialized\"},\"eTag\":\"hbcryffdfdosyge\",\"location\":\"aojakhmsbzjhcrz\",\"tags\":{\"lthqtrgqjbp\":\"phlxa\",\"jrwzox\":\"zfsinzgvf\",\"felluwfzitonpe\":\"j\"},\"id\":\"fpjkjlxofp\",\"name\":\"vhpfxxypininmay\",\"type\":\"uybbkpodep\"},{\"properties\":{\"currentVersion\":\"inuvamiheogn\",\"provisioningState\":\"Deleting\"},\"eTag\":\"xth\",\"location\":\"tusivyevcciqihn\",\"tags\":{\"gxg\":\"gbwjzrnf\",\"fublj\":\"spemvtzfk\"},\"id\":\"fxqeof\",\"name\":\"aeqjhqjbasvms\",\"type\":\"jqul\"}],\"nextLink\":\"sntnbybkzgcw\"}") + "{\"value\":[{\"properties\":{\"currentVersion\":\"gqjbpfzfsin\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"cjrwzoxxjtfellu\",\"location\":\"zitonpeqfpjkjl\",\"tags\":{\"nmayhuybb\":\"pdvhpfxxypin\",\"inuvamiheogn\":\"podepoo\",\"usivye\":\"rxzxtheo\"},\"id\":\"cciqihnhungbwjz\",\"name\":\"nfygxgispemvtz\",\"type\":\"kufubljo\"},{\"properties\":{\"currentVersion\":\"eofjaeqjh\",\"provisioningState\":\"Deleting\"},\"eTag\":\"s\",\"location\":\"smjqulngsntnbyb\",\"tags\":{\"cqvkocrcjdkwtn\":\"cwrwclxxwrljdous\"},\"id\":\"xbnjbiksq\",\"name\":\"gls\",\"type\":\"ainqpjwnzlljfm\"},{\"properties\":{\"currentVersion\":\"ebvmgxsabkyqd\",\"provisioningState\":\"InProgress\"},\"eTag\":\"tcj\",\"location\":\"dzevndhkrw\",\"tags\":{\"eusnhutj\":\"ppdsbdkvwrwj\"},\"id\":\"ltmrldh\",\"name\":\"gjzzdatqxhocdg\",\"type\":\"ablgphuticndvk\"},{\"properties\":{\"currentVersion\":\"wyiftyhxhur\",\"provisioningState\":\"Canceled\"},\"eTag\":\"yxolniwp\",\"location\":\"ukjfkgiawxklr\",\"tags\":{\"hsgcbacphejkot\":\"wckbasyypnd\",\"wyqkgfgibm\":\"nqgoulzndli\",\"qsrxybzqqed\":\"dgak\",\"iqfouflmmnkz\":\"ytb\"},\"id\":\"modmglougpb\",\"name\":\"wtmutduq\",\"type\":\"ta\"}],\"nextLink\":\"pwgcuertu\"}") .toObject(SchemaListResult.class); - Assertions.assertEquals("oxzjnchgejspod", model.value().get(0).location()); - Assertions.assertEquals("lzydehojwyahux", model.value().get(0).tags().get("npmqnjaqwixjspro")); - Assertions.assertEquals("sntnbybkzgcw", model.nextLink()); + Assertions.assertEquals("zitonpeqfpjkjl", model.value().get(0).location()); + Assertions.assertEquals("pdvhpfxxypin", model.value().get(0).tags().get("nmayhuybb")); + Assertions.assertEquals("pwgcuertu", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaPropertiesTests.java index 0bd3d471b17ea..4de54e897892f 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaPropertiesTests.java @@ -11,7 +11,7 @@ public final class SchemaPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SchemaProperties model - = BinaryData.fromString("{\"currentVersion\":\"usarhmofc\",\"provisioningState\":\"Failed\"}") + = BinaryData.fromString("{\"currentVersion\":\"uhivyqniw\",\"provisioningState\":\"Succeeded\"}") .toObject(SchemaProperties.class); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferenceInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferenceInnerTests.java index a9a79c49f24ec..e6b4505728759 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferenceInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferenceInnerTests.java @@ -6,14 +6,23 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaReferenceInner; +import com.azure.resourcemanager.workloadorchestration.models.SchemaReferenceProperties; import org.junit.jupiter.api.Assertions; public final class SchemaReferenceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SchemaReferenceInner model = BinaryData.fromString( - "{\"properties\":{\"schemaId\":\"wlwnwxuqlcv\",\"provisioningState\":\"Deleting\"},\"eTag\":\"atdooaojkniod\",\"id\":\"oebwnujhemms\",\"name\":\"vdkcrodtj\",\"type\":\"nfwjlfltkacjvefk\"}") + "{\"properties\":{\"schemaId\":\"ufuztcktyhjtq\",\"provisioningState\":\"Deleting\"},\"eTag\":\"zulwmmrqzzrrj\",\"id\":\"gl\",\"name\":\"dzgkr\",\"type\":\"qeevt\"}") .toObject(SchemaReferenceInner.class); - Assertions.assertEquals("wlwnwxuqlcv", model.properties().schemaId()); + Assertions.assertEquals("ufuztcktyhjtq", model.properties().schemaId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SchemaReferenceInner model + = new SchemaReferenceInner().withProperties(new SchemaReferenceProperties().withSchemaId("ufuztcktyhjtq")); + model = BinaryData.fromObject(model).toObject(SchemaReferenceInner.class); + Assertions.assertEquals("ufuztcktyhjtq", model.properties().schemaId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferenceListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferenceListResultTests.java index 7304c723d5698..b453ab0622bf5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferenceListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferenceListResultTests.java @@ -12,9 +12,9 @@ public final class SchemaReferenceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SchemaReferenceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"schemaId\":\"gaowpulpqblylsyx\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"sjervti\",\"id\":\"xsdszuempsb\",\"name\":\"kfzbeyvpnqicvi\",\"type\":\"v\"},{\"properties\":{\"schemaId\":\"jxdxrbuukz\",\"provisioningState\":\"Failed\"},\"eTag\":\"yhmlwpaztzp\",\"id\":\"ncckw\",\"name\":\"fz\",\"type\":\"whxxbuyqax\"}],\"nextLink\":\"eqz\"}") + "{\"value\":[{\"properties\":{\"schemaId\":\"ytp\",\"provisioningState\":\"Failed\"},\"eTag\":\"vzvfvaawzqadfl\",\"id\":\"ur\",\"name\":\"glae\",\"type\":\"xndticokpvzmlqtm\"}],\"nextLink\":\"gxobfirclnp\"}") .toObject(SchemaReferenceListResult.class); - Assertions.assertEquals("gaowpulpqblylsyx", model.value().get(0).properties().schemaId()); - Assertions.assertEquals("eqz", model.nextLink()); + Assertions.assertEquals("ytp", model.value().get(0).properties().schemaId()); + Assertions.assertEquals("gxobfirclnp", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencePropertiesTests.java index 0dc6388a2ff91..43956279d11e0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencePropertiesTests.java @@ -12,8 +12,15 @@ public final class SchemaReferencePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SchemaReferenceProperties model - = BinaryData.fromString("{\"schemaId\":\"lfoakg\",\"provisioningState\":\"InProgress\"}") + = BinaryData.fromString("{\"schemaId\":\"epr\",\"provisioningState\":\"Canceled\"}") .toObject(SchemaReferenceProperties.class); - Assertions.assertEquals("lfoakg", model.schemaId()); + Assertions.assertEquals("epr", model.schemaId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SchemaReferenceProperties model = new SchemaReferenceProperties().withSchemaId("epr"); + model = BinaryData.fromObject(model).toObject(SchemaReferenceProperties.class); + Assertions.assertEquals("epr", model.schemaId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesCreateOrUpdateMockTests.java new file mode 100644 index 0000000000000..3e9d945fe0965 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesCreateOrUpdateMockTests.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SchemaReference; +import com.azure.resourcemanager.workloadorchestration.models.SchemaReferenceProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SchemaReferencesCreateOrUpdateMockTests { + @Test + public void testCreateOrUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"schemaId\":\"vnpvvd\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"aqyqipsl\",\"id\":\"vcdsvm\",\"name\":\"bit\",\"type\":\"kdtfo\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + SchemaReference response = manager.schemaReferences() + .define("ykdnonaaxwmg") + .withExistingResourceUri("lnssw") + .withProperties(new SchemaReferenceProperties().withSchemaId("ujlqcwnynlle")) + .create(); + + Assertions.assertEquals("vnpvvd", response.properties().schemaId()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesGetWithResponseMockTests.java index 7e56c929b1963..a1211fb1f5276 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SchemaReferencesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"schemaId\":\"iecafygzmxi\",\"provisioningState\":\"InProgress\"},\"eTag\":\"smaklixqcahy\",\"id\":\"alybxawoijpo\",\"name\":\"tblxpkkwjdjodqhy\",\"type\":\"incnr\"}"; + = "{\"properties\":{\"schemaId\":\"pyfml\",\"provisioningState\":\"Deleting\"},\"eTag\":\"phraspifleim\",\"id\":\"lmdbgic\",\"name\":\"hfgsmd\",\"type\":\"juqbpx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SchemaReference response = manager.schemaReferences() - .getWithResponse("ueqfrojsyd", "rhydkygywez", com.azure.core.util.Context.NONE) + .getWithResponse("ddtullygta", "czcxdfw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("iecafygzmxi", response.properties().schemaId()); + Assertions.assertEquals("pyfml", response.properties().schemaId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesListByResourceGroupMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesListByResourceGroupMockTests.java index c5a6d2e6d6cb6..00e284c001ce6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesListByResourceGroupMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaReferencesListByResourceGroupMockTests.java @@ -22,7 +22,7 @@ public final class SchemaReferencesListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"schemaId\":\"qodkadppyibngql\",\"provisioningState\":\"Deleting\"},\"eTag\":\"rxwhydtlu\",\"id\":\"adswz\",\"name\":\"nuyemlowuo\",\"type\":\"hlxlnwyrmou\"}]}"; + = "{\"value\":[{\"properties\":{\"schemaId\":\"np\",\"provisioningState\":\"Initialized\"},\"eTag\":\"qtyyqiprcltungb\",\"id\":\"ljckmiigz\",\"name\":\"kuckgkdskswtiiq\",\"type\":\"cqikclsm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.schemaReferences().listByResourceGroup("mehllizhceu", com.azure.core.util.Context.NONE); + = manager.schemaReferences().listByResourceGroup("okljm", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qodkadppyibngql", response.iterator().next().properties().schemaId()); + Assertions.assertEquals("np", response.iterator().next().properties().schemaId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaUpdatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaUpdatePropertiesTests.java index 4c1b5b9d7b29b..4889fbfc2fcbc 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaUpdatePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaUpdatePropertiesTests.java @@ -10,7 +10,9 @@ public final class SchemaUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SchemaUpdateProperties model = BinaryData.fromString("{}").toObject(SchemaUpdateProperties.class); + SchemaUpdateProperties model + = BinaryData.fromString("{\"currentVersion\":\"apcz\",\"provisioningState\":\"Initialized\"}") + .toObject(SchemaUpdateProperties.class); } @org.junit.jupiter.api.Test diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaUpdateTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaUpdateTests.java index 70620568a4b18..b12c4a15af33d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaUpdateTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaUpdateTests.java @@ -14,19 +14,18 @@ public final class SchemaUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SchemaUpdate model = BinaryData - .fromString( - "{\"properties\":{},\"tags\":{\"kuksjtxukcdm\":\"rkdtmlxh\",\"yrlhmwhfpmrqobm\":\"arcryuanzwuxzdxt\"}}") + SchemaUpdate model = BinaryData.fromString( + "{\"properties\":{\"currentVersion\":\"xvd\",\"provisioningState\":\"Succeeded\"},\"tags\":{\"snhsjcnyejhkryh\":\"tfwvukxgaudc\"}}") .toObject(SchemaUpdate.class); - Assertions.assertEquals("rkdtmlxh", model.tags().get("kuksjtxukcdm")); + Assertions.assertEquals("tfwvukxgaudc", model.tags().get("snhsjcnyejhkryh")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SchemaUpdate model = new SchemaUpdate().withProperties(new SchemaUpdateProperties()) - .withTags(mapOf("kuksjtxukcdm", "rkdtmlxh", "yrlhmwhfpmrqobm", "arcryuanzwuxzdxt")); + .withTags(mapOf("snhsjcnyejhkryh", "tfwvukxgaudc")); model = BinaryData.fromObject(model).toObject(SchemaUpdate.class); - Assertions.assertEquals("rkdtmlxh", model.tags().get("kuksjtxukcdm")); + Assertions.assertEquals("tfwvukxgaudc", model.tags().get("snhsjcnyejhkryh")); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionInnerTests.java index 4ebd1359c1355..ed313b9db0f8a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionInnerTests.java @@ -7,22 +7,20 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionInner; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; -import org.junit.jupiter.api.Assertions; +import java.nio.charset.StandardCharsets; public final class SchemaVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SchemaVersionInner model = BinaryData.fromString( - "{\"properties\":{\"value\":\"wczbys\",\"provisioningState\":\"Deleting\"},\"eTag\":\"x\",\"id\":\"ivyqniwbybrkxvd\",\"name\":\"mjgr\",\"type\":\"fwvuk\"}") + "{\"properties\":{\"value\":\"\\\"datamfdatscmdvpj\\\"\",\"provisioningState\":\"Canceled\"},\"eTag\":\"uuvmkjozkrwfnd\",\"id\":\"djpslw\",\"name\":\"jdpvwryo\",\"type\":\"psoacctazakljl\"}") .toObject(SchemaVersionInner.class); - Assertions.assertEquals("wczbys", model.properties().value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SchemaVersionInner model - = new SchemaVersionInner().withProperties(new SchemaVersionProperties().withValue("wczbys")); + SchemaVersionInner model = new SchemaVersionInner().withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("\"datamfdatscmdvpj\"".getBytes(StandardCharsets.UTF_8)))); model = BinaryData.fromObject(model).toObject(SchemaVersionInner.class); - Assertions.assertEquals("wczbys", model.properties().value()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionListResultTests.java index b445a6f8d76d2..22bc9ab7dcb3f 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionListResultTests.java @@ -12,9 +12,8 @@ public final class SchemaVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SchemaVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"value\":\"lxxwrljdouskc\",\"provisioningState\":\"Initialized\"},\"eTag\":\"cr\",\"id\":\"dkwt\",\"name\":\"hxbnjbiksqrg\",\"type\":\"ssainqpjwnzll\"},{\"properties\":{\"value\":\"mppeebvmgxs\",\"provisioningState\":\"Deleting\"},\"eTag\":\"qduujitcjczdz\",\"id\":\"ndhkrw\",\"name\":\"d\",\"type\":\"ppdsbdkvwrwj\"}],\"nextLink\":\"usnhutje\"}") + "{\"value\":[{\"properties\":{\"value\":\"\\\"datao\\\"\",\"provisioningState\":\"Initialized\"},\"eTag\":\"hbmdgbbjfdd\",\"id\":\"bmbexppbhtqqro\",\"name\":\"fpfpsalgbquxigj\",\"type\":\"jgzjaoyfhrtx\"},{\"properties\":{\"value\":\"\\\"datan\\\"\",\"provisioningState\":\"Failed\"},\"eTag\":\"jysvl\",\"id\":\"uvfqawrlyxwj\",\"name\":\"cpr\",\"type\":\"nwbxgjvtbvpyssz\"}],\"nextLink\":\"rujqg\"}") .toObject(SchemaVersionListResult.class); - Assertions.assertEquals("lxxwrljdouskc", model.value().get(0).properties().value()); - Assertions.assertEquals("usnhutje", model.nextLink()); + Assertions.assertEquals("rujqg", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionPropertiesTests.java index 9deb909bf69d1..716ffe67334fb 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionPropertiesTests.java @@ -6,21 +6,20 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; -import org.junit.jupiter.api.Assertions; +import java.nio.charset.StandardCharsets; public final class SchemaVersionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SchemaVersionProperties model - = BinaryData.fromString("{\"value\":\"gaudcc\",\"provisioningState\":\"Initialized\"}") + = BinaryData.fromString("{\"value\":\"\\\"datahbcryffdfdosyge\\\"\",\"provisioningState\":\"Deleting\"}") .toObject(SchemaVersionProperties.class); - Assertions.assertEquals("gaudcc", model.value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SchemaVersionProperties model = new SchemaVersionProperties().withValue("gaudcc"); + SchemaVersionProperties model = new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("\"datahbcryffdfdosyge\"".getBytes(StandardCharsets.UTF_8))); model = BinaryData.fromObject(model).toObject(SchemaVersionProperties.class); - Assertions.assertEquals("gaudcc", model.value()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionWithUpdateTypeInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionWithUpdateTypeInnerTests.java index b3e63b4bb8920..203ebd0b25fc6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionWithUpdateTypeInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionWithUpdateTypeInnerTests.java @@ -9,28 +9,27 @@ import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionWithUpdateTypeInner; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; import com.azure.resourcemanager.workloadorchestration.models.UpdateType; +import java.nio.charset.StandardCharsets; import org.junit.jupiter.api.Assertions; public final class SchemaVersionWithUpdateTypeInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SchemaVersionWithUpdateTypeInner model = BinaryData.fromString( - "{\"updateType\":\"Patch\",\"version\":\"nryrtihf\",\"schemaVersion\":{\"properties\":{\"value\":\"ijbpzvgnwzsymgl\",\"provisioningState\":\"Canceled\"},\"eTag\":\"yzkohdbihanuf\",\"id\":\"cbjy\",\"name\":\"a\",\"type\":\"ithxqhabifpi\"}}") + "{\"updateType\":\"Major\",\"version\":\"emkkvnipjox\",\"schemaVersion\":{\"properties\":{\"value\":\"\\\"datanchgej\\\"\",\"provisioningState\":\"Failed\"},\"eTag\":\"mailzydehojw\",\"id\":\"huxinpmqnj\",\"name\":\"qwixjspro\",\"type\":\"vcputegj\"}}") .toObject(SchemaVersionWithUpdateTypeInner.class); - Assertions.assertEquals(UpdateType.PATCH, model.updateType()); - Assertions.assertEquals("nryrtihf", model.version()); - Assertions.assertEquals("ijbpzvgnwzsymgl", model.schemaVersion().properties().value()); + Assertions.assertEquals(UpdateType.MAJOR, model.updateType()); + Assertions.assertEquals("emkkvnipjox", model.version()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SchemaVersionWithUpdateTypeInner model = new SchemaVersionWithUpdateTypeInner().withUpdateType(UpdateType.PATCH) - .withVersion("nryrtihf") - .withSchemaVersion( - new SchemaVersionInner().withProperties(new SchemaVersionProperties().withValue("ijbpzvgnwzsymgl"))); + SchemaVersionWithUpdateTypeInner model = new SchemaVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) + .withVersion("emkkvnipjox") + .withSchemaVersion(new SchemaVersionInner().withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("\"datanchgej\"".getBytes(StandardCharsets.UTF_8))))); model = BinaryData.fromObject(model).toObject(SchemaVersionWithUpdateTypeInner.class); - Assertions.assertEquals(UpdateType.PATCH, model.updateType()); - Assertions.assertEquals("nryrtihf", model.version()); - Assertions.assertEquals("ijbpzvgnwzsymgl", model.schemaVersion().properties().value()); + Assertions.assertEquals(UpdateType.MAJOR, model.updateType()); + Assertions.assertEquals("emkkvnipjox", model.version()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsCreateOrUpdateMockTests.java index 42b878b687897..fa63333e9ef0f 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsCreateOrUpdateMockTests.java @@ -9,12 +9,12 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersion; import com.azure.resourcemanager.workloadorchestration.models.SchemaVersionProperties; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -22,7 +22,7 @@ public final class SchemaVersionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"value\":\"i\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"f\",\"id\":\"jmvl\",\"name\":\"yzgib\",\"type\":\"kujrllfojui\"}"; + = "{\"properties\":{\"value\":\"\\\"datakya\\\"\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"kd\",\"id\":\"nht\",\"name\":\"wdowrczfjjn\",\"type\":\"uxxrkkmhmnulwemp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SchemaVersion response = manager.schemaVersions() - .define("sowsaael") - .withExistingSchema("dlpnfpubn", "nbatzvi") - .withProperties(new SchemaVersionProperties().withValue("ttcjuhplrvkmjc")) + .define("kzfzqxjosho") + .withExistingSchema("ohewjj", "ajnkdflqionswae") + .withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("\"dataotryegp\"".getBytes(StandardCharsets.UTF_8)))) .create(); - Assertions.assertEquals("i", response.properties().value()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsGetWithResponseMockTests.java index ec3b9cd985f3c..b6682e0f106ec 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsGetWithResponseMockTests.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.workloadorchestration.models.SchemaVersion; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -21,7 +20,7 @@ public final class SchemaVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"value\":\"r\",\"provisioningState\":\"InProgress\"},\"eTag\":\"zlwhhmemhooclu\",\"id\":\"pqmem\",\"name\":\"zjkmmykyujxs\",\"type\":\"lhsrrry\"}"; + = "{\"properties\":{\"value\":\"\\\"datansjulugdybnh\\\"\",\"provisioningState\":\"Failed\"},\"eTag\":\"l\",\"id\":\"hkeizcp\",\"name\":\"htdm\",\"type\":\"wjekptycaydbj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +30,8 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SchemaVersion response = manager.schemaVersions() - .getWithResponse("uic", "hvtrrmhwrbfdpyf", "ubhvj", com.azure.core.util.Context.NONE) + .getWithResponse("qelwgdhuruzytza", "ogatmoljiy", "mpinmzvfkneerzzt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("r", response.properties().value()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsListBySchemaMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsListBySchemaMockTests.java index 27d4841c5e249..d4a3f51a94c84 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsListBySchemaMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemaVersionsListBySchemaMockTests.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.workloadorchestration.models.SchemaVersion; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -22,7 +21,7 @@ public final class SchemaVersionsListBySchemaMockTests { @Test public void testListBySchema() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"value\":\"efqyhqotoihiqaky\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"brkwpzdqt\",\"id\":\"cspodaqax\",\"name\":\"ipietgbe\",\"type\":\"jfulbmoic\"}]}"; + = "{\"value\":[{\"properties\":{\"value\":\"\\\"datakpmmz\\\"\",\"provisioningState\":\"InProgress\"},\"eTag\":\"u\",\"id\":\"awi\",\"name\":\"bmom\",\"type\":\"gvvjhvvlr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +30,8 @@ public void testListBySchema() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.schemaVersions() - .listBySchema("jylmbkzudnigr", "ihotjewlpxuzzjg", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.schemaVersions().listBySchema("c", "ymlcfnzhmhsurlg", com.azure.core.util.Context.NONE); - Assertions.assertEquals("efqyhqotoihiqaky", response.iterator().next().properties().value()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateOrUpdateMockTests.java index c4c3523bfc816..195929ee0087e 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateOrUpdateMockTests.java @@ -24,7 +24,7 @@ public final class SchemasCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"currentVersion\":\"saoafcluqvox\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"im\",\"location\":\"vwg\",\"tags\":{\"w\":\"pbmz\",\"bvopwndyqle\":\"sydsxwefohe\",\"lowkxxpvb\":\"llklmtk\",\"k\":\"dfjmzsyzfhotlh\"},\"id\":\"yych\",\"name\":\"nsjlpjrtws\",\"type\":\"hv\"}"; + = "{\"properties\":{\"currentVersion\":\"wmlmh\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"qe\",\"location\":\"j\",\"tags\":{\"gpokddxejhhkvgu\":\"r\",\"wkqyns\":\"vtptbk\",\"vdxaexqokmyrljia\":\"gbvoffbkk\"},\"id\":\"zbnobr\",\"name\":\"lpbcjtrpz\",\"type\":\"yudivbxnhsqeaeo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,16 +34,15 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Schema response = manager.schemas() - .define("phaimmoi") - .withRegion("ahxku") - .withExistingResourceGroup("ccrrvweyoxoyyu") - .withTags(mapOf("hqepvufhbzehewh", "jcaacfdmmcpugm", "eaclgschorimk", "qhnlbqnbld", "ucsofldpuviyf", "srrm", - "bsxtkcudfbsfarfs", "aabeolhbhlvbmxuq")) + .define("vwerfwxbsmtb") + .withRegion("tfpwpqbyejuw") + .withExistingResourceGroup("gq") + .withTags(mapOf("ginz", "dqigmg")) .withProperties(new SchemaProperties()) .create(); - Assertions.assertEquals("vwg", response.location()); - Assertions.assertEquals("pbmz", response.tags().get("w")); + Assertions.assertEquals("j", response.location()); + Assertions.assertEquals("r", response.tags().get("gpokddxejhhkvgu")); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateVersionMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateVersionMockTests.java index 3a729f714c648..905e2b68bc3f3 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateVersionMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasCreateVersionMockTests.java @@ -9,6 +9,7 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionInner; import com.azure.resourcemanager.workloadorchestration.fluent.models.SchemaVersionWithUpdateTypeInner; @@ -17,7 +18,6 @@ import com.azure.resourcemanager.workloadorchestration.models.UpdateType; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -25,7 +25,7 @@ public final class SchemasCreateVersionMockTests { @Test public void testCreateVersion() throws Exception { String responseStr - = "{\"properties\":{\"value\":\"lvhhtklnvn\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"kyfede\",\"id\":\"bo\",\"name\":\"lcqxypokk\",\"type\":\"minqcym\"}"; + = "{\"properties\":{\"value\":\"\\\"datayfluiyuosnuudte\\\"\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"ibdrqrswhbuubpyr\",\"id\":\"tjoxztfw\",\"name\":\"qchvczevjn\",\"type\":\"cta\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,13 +35,12 @@ public void testCreateVersion() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SchemaVersion response = manager.schemas() - .createVersion("xddbhfhpfpaz", "zoyw", - new SchemaVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) - .withVersion("dulontacn") - .withSchemaVersion( - new SchemaVersionInner().withProperties(new SchemaVersionProperties().withValue("w"))), + .createVersion("tcvbiiftk", "dwgdn", + new SchemaVersionWithUpdateTypeInner().withUpdateType(UpdateType.MINOR) + .withVersion("mwdhcebuvczldbg") + .withSchemaVersion(new SchemaVersionInner().withProperties(new SchemaVersionProperties() + .withValue(BinaryData.fromBytes("\"dataoutbaaqgzeka\"".getBytes(StandardCharsets.UTF_8))))), com.azure.core.util.Context.NONE); - Assertions.assertEquals("lvhhtklnvn", response.properties().value()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasGetByResourceGroupWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasGetByResourceGroupWithResponseMockTests.java index 0866110cd3bcd..94baafd1b2bce 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasGetByResourceGroupWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasGetByResourceGroupWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SchemasGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"currentVersion\":\"elyetndnbf\",\"provisioningState\":\"Canceled\"},\"eTag\":\"agfl\",\"location\":\"gm\",\"tags\":{\"r\":\"ahzjmucftb\",\"fusuckzmkwklsno\":\"lrohkpig\",\"hjnhgwydyynfsvk\":\"axmqeqal\",\"ta\":\"gbv\"},\"id\":\"arfdlpukhpyrnei\",\"name\":\"jcpeogkhnmg\",\"type\":\"ro\"}"; + = "{\"properties\":{\"currentVersion\":\"iiwv\",\"provisioningState\":\"Initialized\"},\"eTag\":\"xpymdjfuaxro\",\"location\":\"qpilrgu\",\"tags\":{\"aqklxy\":\"nlduwzorxsbm\",\"qvfqepdxc\":\"x\",\"wcpjqduqgi\":\"tuubwyvpjb\"},\"id\":\"exkydfb\",\"name\":\"lj\",\"type\":\"vhuerkjddvrglieg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Schema response = manager.schemas() - .getByResourceGroupWithResponse("p", "uuuybnchrsziz", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("adbuwqrgxfllmqiy", "ezoell", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("gm", response.location()); - Assertions.assertEquals("ahzjmucftb", response.tags().get("r")); + Assertions.assertEquals("qpilrgu", response.location()); + Assertions.assertEquals("nlduwzorxsbm", response.tags().get("aqklxy")); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListByResourceGroupMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListByResourceGroupMockTests.java index 429b2d004e20d..21e589f36d4a1 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListByResourceGroupMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListByResourceGroupMockTests.java @@ -22,7 +22,7 @@ public final class SchemasListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"currentVersion\":\"tmxxdtddmflhuy\",\"provisioningState\":\"Failed\"},\"eTag\":\"tznapxbannovv\",\"location\":\"czytprwn\",\"tags\":{\"rouuxvnsasbcry\":\"oevytlyokr\",\"izrxklob\":\"o\"},\"id\":\"xnazpmkml\",\"name\":\"vevfxz\",\"type\":\"pj\"}]}"; + = "{\"value\":[{\"properties\":{\"currentVersion\":\"whlpuzjpceezn\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"prbfaxyxzlbciph\",\"location\":\"exroqrndkt\",\"tags\":{\"rietbg\":\"onfeeqgp\",\"wwzkyf\":\"ixx\",\"e\":\"nwpiwxeiicrm\"},\"id\":\"kldmaxxijv\",\"name\":\"kwsdgkj\",\"type\":\"yacwrasekwefc\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,10 @@ public void testListByResourceGroup() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.schemas().listByResourceGroup("ec", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.schemas().listByResourceGroup("abckmzeoxinhgre", com.azure.core.util.Context.NONE); - Assertions.assertEquals("czytprwn", response.iterator().next().location()); - Assertions.assertEquals("oevytlyokr", response.iterator().next().tags().get("rouuxvnsasbcry")); + Assertions.assertEquals("exroqrndkt", response.iterator().next().location()); + Assertions.assertEquals("onfeeqgp", response.iterator().next().tags().get("rietbg")); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListMockTests.java index 1256584fbed43..3e276b1a9e215 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasListMockTests.java @@ -22,7 +22,7 @@ public final class SchemasListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"currentVersion\":\"xliohrdddt\",\"provisioningState\":\"Canceled\"},\"eTag\":\"ba\",\"location\":\"cbb\",\"tags\":{\"zb\":\"cyknapqofyuicd\"},\"id\":\"ybww\",\"name\":\"bdvibidmhmwffpl\",\"type\":\"muvapc\"}]}"; + = "{\"value\":[{\"properties\":{\"currentVersion\":\"nwoqartwy\",\"provisioningState\":\"InProgress\"},\"eTag\":\"l\",\"location\":\"vatdavuqmcbymsf\",\"tags\":{\"imioyo\":\"lquvjezcjumvp\",\"clibbfqpsp\":\"glkmiqwnnr\"},\"id\":\"ladydgnhautwu\",\"name\":\"exzgpmnmabedd\",\"type\":\"ilwgdfpfqfpcvstc\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,7 +33,7 @@ public void testList() throws Exception { PagedIterable response = manager.schemas().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("cbb", response.iterator().next().location()); - Assertions.assertEquals("cyknapqofyuicd", response.iterator().next().tags().get("zb")); + Assertions.assertEquals("vatdavuqmcbymsf", response.iterator().next().location()); + Assertions.assertEquals("lquvjezcjumvp", response.iterator().next().tags().get("imioyo")); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasRemoveVersionWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasRemoveVersionWithResponseMockTests.java index 62304c1698a60..341d21aeb4a32 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasRemoveVersionWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SchemasRemoveVersionWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SchemasRemoveVersionWithResponseMockTests { @Test public void testRemoveVersionWithResponse() throws Exception { - String responseStr = "{\"status\":\"udbchaqdtv\"}"; + String responseStr = "{\"status\":\"vx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testRemoveVersionWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RemoveVersionResponse response = manager.schemas() - .removeVersionWithResponse("zng", "bdxxe", new VersionParameter().withVersion("unin"), + .removeVersionWithResponse("fyvrtpqpemhzcgk", "epdqhqyhwq", new VersionParameter().withVersion("e"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("udbchaqdtv", response.status()); + Assertions.assertEquals("vx", response.status()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferenceInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferenceInnerTests.java index 006b2cd1ef9d9..445ed50ebc331 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferenceInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferenceInnerTests.java @@ -13,16 +13,16 @@ public final class SiteReferenceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SiteReferenceInner model = BinaryData.fromString( - "{\"properties\":{\"siteId\":\"xjg\",\"provisioningState\":\"Canceled\"},\"id\":\"bgdlfgtdysna\",\"name\":\"uflqbctq\",\"type\":\"amz\"}") + "{\"properties\":{\"siteId\":\"pezkis\",\"provisioningState\":\"Succeeded\"},\"id\":\"dghsy\",\"name\":\"arybjufptbjc\",\"type\":\"jnciui\"}") .toObject(SiteReferenceInner.class); - Assertions.assertEquals("xjg", model.properties().siteId()); + Assertions.assertEquals("pezkis", model.properties().siteId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SiteReferenceInner model - = new SiteReferenceInner().withProperties(new SiteReferenceProperties().withSiteId("xjg")); + = new SiteReferenceInner().withProperties(new SiteReferenceProperties().withSiteId("pezkis")); model = BinaryData.fromObject(model).toObject(SiteReferenceInner.class); - Assertions.assertEquals("xjg", model.properties().siteId()); + Assertions.assertEquals("pezkis", model.properties().siteId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferenceListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferenceListResultTests.java index 98ed5b51a3005..4e2eb89eb4e8c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferenceListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferenceListResultTests.java @@ -12,9 +12,9 @@ public final class SiteReferenceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SiteReferenceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"siteId\":\"yjleziunjx\",\"provisioningState\":\"Deleting\"},\"id\":\"ntkwcegy\",\"name\":\"mlbnseq\",\"type\":\"cjjvpilguooqja\"}],\"nextLink\":\"d\"}") + "{\"value\":[{\"properties\":{\"siteId\":\"zxrrfc\",\"provisioningState\":\"Canceled\"},\"id\":\"khgsnxuwwkpphefs\",\"name\":\"zxlb\",\"type\":\"xomeikjclwzacn\"},{\"properties\":{\"siteId\":\"pfsuqtaaz\",\"provisioningState\":\"Succeeded\"},\"id\":\"yxoyfp\",\"name\":\"qqi\",\"type\":\"ezxlhdjzqdca\"},{\"properties\":{\"siteId\":\"vpsozjiihjri\",\"provisioningState\":\"Initialized\"},\"id\":\"zo\",\"name\":\"pnx\",\"type\":\"dvwnjkgvfnmxa\"}],\"nextLink\":\"sqftibtyibuyvp\"}") .toObject(SiteReferenceListResult.class); - Assertions.assertEquals("yjleziunjx", model.value().get(0).properties().siteId()); - Assertions.assertEquals("d", model.nextLink()); + Assertions.assertEquals("zxrrfc", model.value().get(0).properties().siteId()); + Assertions.assertEquals("sqftibtyibuyvp", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencePropertiesTests.java index 669f83208d49d..e35e0fedc2251 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencePropertiesTests.java @@ -11,15 +11,16 @@ public final class SiteReferencePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SiteReferenceProperties model = BinaryData.fromString("{\"siteId\":\"rwd\",\"provisioningState\":\"Canceled\"}") - .toObject(SiteReferenceProperties.class); - Assertions.assertEquals("rwd", model.siteId()); + SiteReferenceProperties model + = BinaryData.fromString("{\"siteId\":\"qvldaswvppisqqzl\",\"provisioningState\":\"InProgress\"}") + .toObject(SiteReferenceProperties.class); + Assertions.assertEquals("qvldaswvppisqqzl", model.siteId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SiteReferenceProperties model = new SiteReferenceProperties().withSiteId("rwd"); + SiteReferenceProperties model = new SiteReferenceProperties().withSiteId("qvldaswvppisqqzl"); model = BinaryData.fromObject(model).toObject(SiteReferenceProperties.class); - Assertions.assertEquals("rwd", model.siteId()); + Assertions.assertEquals("qvldaswvppisqqzl", model.siteId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesCreateOrUpdateMockTests.java index 5b975ecb07061..9306943f01e24 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesCreateOrUpdateMockTests.java @@ -22,7 +22,7 @@ public final class SiteReferencesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"siteId\":\"vdpwwobtdphti\",\"provisioningState\":\"Succeeded\"},\"id\":\"ofw\",\"name\":\"nmhkscauwaz\",\"type\":\"gwd\"}"; + = "{\"properties\":{\"siteId\":\"eppjnaphifkfrp\",\"provisioningState\":\"Succeeded\"},\"id\":\"bpebrmj\",\"name\":\"nfpgh\",\"type\":\"b\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SiteReference response = manager.siteReferences() - .define("nxmlbmuoswk") - .withExistingContext("zpvpvdyly", "covqseusrfjbdxzf") - .withProperties(new SiteReferenceProperties().withSiteId("dihdcyyyzlwhb")) + .define("ahn") + .withExistingContext("v", "nwbhanzgesfhshag") + .withProperties(new SiteReferenceProperties().withSiteId("pbyfyvynpmggq")) .create(); - Assertions.assertEquals("vdpwwobtdphti", response.properties().siteId()); + Assertions.assertEquals("eppjnaphifkfrp", response.properties().siteId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesGetWithResponseMockTests.java index eb748cd920b96..8a73e976eefec 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SiteReferencesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"siteId\":\"bctbhp\",\"provisioningState\":\"Initialized\"},\"id\":\"cvrdnyeitaneqady\",\"name\":\"zjahwriuomz\",\"type\":\"zfkiceevsaaxwsp\"}"; + = "{\"properties\":{\"siteId\":\"taqgxqbfkcein\",\"provisioningState\":\"Failed\"},\"id\":\"cjbiyw\",\"name\":\"vsfgdr\",\"type\":\"nszdosmjsq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SiteReference response = manager.siteReferences() - .getWithResponse("rhwv", "xqqggljky", "sjrclrvtzq", com.azure.core.util.Context.NONE) + .getWithResponse("wppeygk", "zbloasybxhqvovd", "mhttuvsqjsrvj", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("bctbhp", response.properties().siteId()); + Assertions.assertEquals("taqgxqbfkcein", response.properties().siteId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesListByContextMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesListByContextMockTests.java index 0df5e3e94c517..9058353d31825 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesListByContextMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SiteReferencesListByContextMockTests.java @@ -22,7 +22,7 @@ public final class SiteReferencesListByContextMockTests { @Test public void testListByContext() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"siteId\":\"ysemtmesrfsvpin\",\"provisioningState\":\"Failed\"},\"id\":\"tqtdis\",\"name\":\"xspvckojazb\",\"type\":\"gspftesu\"}]}"; + = "{\"value\":[{\"properties\":{\"siteId\":\"v\",\"provisioningState\":\"Initialized\"},\"id\":\"zkilmciwuh\",\"name\":\"zekypyovljlbzd\",\"type\":\"bybpaxhpzys\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testListByContext() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.siteReferences().listByContext("axikhfjqebglcxk", "gzzromv", com.azure.core.util.Context.NONE); + PagedIterable response = manager.siteReferences() + .listByContext("vzvmxtcwghnda", "vhgsulwvgseuf", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ysemtmesrfsvpin", response.iterator().next().properties().siteId()); + Assertions.assertEquals("v", response.iterator().next().properties().siteId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDependencyParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDependencyParameterTests.java index cdc689e34dec0..6dfeb6881b868 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDependencyParameterTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDependencyParameterTests.java @@ -13,66 +13,105 @@ public final class SolutionDependencyParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionDependencyParameter model = BinaryData.fromString( - "{\"solutionVersionId\":\"fnjhfjxwmszkkfo\",\"solutionTemplateId\":\"eyfkzikfja\",\"solutionTemplateVersion\":\"eaivxwczel\",\"solutionInstanceName\":\"irels\",\"targetId\":\"aenwabf\",\"dependencies\":[{\"solutionVersionId\":\"ddxbjhwuaanoz\",\"solutionTemplateId\":\"sphyoulpjrvxa\",\"solutionTemplateVersion\":\"rvimjwosytxitcsk\",\"solutionInstanceName\":\"k\",\"targetId\":\"umiekkezzi\",\"dependencies\":[{\"solutionVersionId\":\"fjhdg\",\"solutionTemplateId\":\"gebdunygaeq\",\"solutionTemplateVersion\":\"bqfatpxllrxcyjmo\",\"solutionInstanceName\":\"su\",\"targetId\":\"r\",\"dependencies\":[{},{},{},{}]}]}]}") + "{\"solutionVersionId\":\"zshq\",\"solutionTemplateId\":\"impevf\",\"solutionTemplateVersion\":\"b\",\"solutionInstanceName\":\"rilbywdx\",\"targetId\":\"icc\",\"dependencies\":[{\"solutionVersionId\":\"scjfnyns\",\"solutionTemplateId\":\"ujiz\",\"solutionTemplateVersion\":\"oqytibyowbblgy\",\"solutionInstanceName\":\"utp\",\"targetId\":\"joxoism\",\"dependencies\":[{\"solutionVersionId\":\"pi\",\"solutionTemplateId\":\"qolj\",\"solutionTemplateVersion\":\"cgxxlxs\",\"solutionInstanceName\":\"gcvizqzdwlvwlyou\",\"targetId\":\"gfbkjubdyh\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"in\",\"solutionTemplateId\":\"owzfttsttkt\",\"solutionTemplateVersion\":\"hbq\",\"solutionInstanceName\":\"tx\",\"targetId\":\"zukxitmmqtgqq\",\"dependencies\":[{},{}]}]},{\"solutionVersionId\":\"n\",\"solutionTemplateId\":\"xcpjuisavokqdzf\",\"solutionTemplateVersion\":\"zivj\",\"solutionInstanceName\":\"rqttbajlkatnw\",\"targetId\":\"iopid\",\"dependencies\":[{\"solutionVersionId\":\"kuvscxkdm\",\"solutionTemplateId\":\"govibrxkpmloazu\",\"solutionTemplateVersion\":\"ocbgoorbteoyb\",\"solutionInstanceName\":\"jxakv\",\"targetId\":\"gslordilmyww\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"xnyed\",\"solutionTemplateId\":\"gyvudtjuewbc\",\"solutionTemplateVersion\":\"xuuwhcj\",\"solutionInstanceName\":\"ccybvp\",\"targetId\":\"akkud\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"wjplma\",\"solutionTemplateId\":\"tcyohpfkyrk\",\"solutionTemplateVersion\":\"dg\",\"solutionInstanceName\":\"gsj\",\"targetId\":\"nwqjnoba\",\"dependencies\":[{}]},{\"solutionVersionId\":\"d\",\"solutionTemplateId\":\"acegfnmntf\",\"solutionTemplateVersion\":\"vm\",\"solutionInstanceName\":\"fnczdwvvbalx\",\"targetId\":\"lchpodbzevwrdn\",\"dependencies\":[{}]}]}]}") .toObject(SolutionDependencyParameter.class); - Assertions.assertEquals("fnjhfjxwmszkkfo", model.solutionVersionId()); - Assertions.assertEquals("eyfkzikfja", model.solutionTemplateId()); - Assertions.assertEquals("eaivxwczel", model.solutionTemplateVersion()); - Assertions.assertEquals("irels", model.solutionInstanceName()); - Assertions.assertEquals("aenwabf", model.targetId()); - Assertions.assertEquals("ddxbjhwuaanoz", model.dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("sphyoulpjrvxa", model.dependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("rvimjwosytxitcsk", model.dependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("k", model.dependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("umiekkezzi", model.dependencies().get(0).targetId()); - Assertions.assertEquals("fjhdg", model.dependencies().get(0).dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("gebdunygaeq", model.dependencies().get(0).dependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("bqfatpxllrxcyjmo", - model.dependencies().get(0).dependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("su", model.dependencies().get(0).dependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("r", model.dependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("zshq", model.solutionVersionId()); + Assertions.assertEquals("impevf", model.solutionTemplateId()); + Assertions.assertEquals("b", model.solutionTemplateVersion()); + Assertions.assertEquals("rilbywdx", model.solutionInstanceName()); + Assertions.assertEquals("icc", model.targetId()); + Assertions.assertEquals("scjfnyns", model.dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("ujiz", model.dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("oqytibyowbblgy", model.dependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("utp", model.dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("joxoism", model.dependencies().get(0).targetId()); + Assertions.assertEquals("pi", model.dependencies().get(0).dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("qolj", model.dependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("cgxxlxs", model.dependencies().get(0).dependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("gcvizqzdwlvwlyou", + model.dependencies().get(0).dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("gfbkjubdyh", model.dependencies().get(0).dependencies().get(0).targetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SolutionDependencyParameter model - = new SolutionDependencyParameter().withSolutionVersionId("fnjhfjxwmszkkfo") - .withSolutionTemplateId("eyfkzikfja") - .withSolutionTemplateVersion("eaivxwczel") - .withSolutionInstanceName("irels") - .withTargetId("aenwabf") - .withDependencies( - Arrays - .asList(new SolutionDependencyParameter().withSolutionVersionId("ddxbjhwuaanoz") - .withSolutionTemplateId("sphyoulpjrvxa") - .withSolutionTemplateVersion("rvimjwosytxitcsk") - .withSolutionInstanceName("k") - .withTargetId("umiekkezzi") - .withDependencies( - Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId("fjhdg") - .withSolutionTemplateId("gebdunygaeq") - .withSolutionTemplateVersion("bqfatpxllrxcyjmo") - .withSolutionInstanceName("su") - .withTargetId("r") + = new SolutionDependencyParameter().withSolutionVersionId("zshq") + .withSolutionTemplateId("impevf") + .withSolutionTemplateVersion("b") + .withSolutionInstanceName("rilbywdx") + .withTargetId("icc") + .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("scjfnyns") + .withSolutionTemplateId("ujiz") + .withSolutionTemplateVersion("oqytibyowbblgy") + .withSolutionInstanceName("utp") + .withTargetId("joxoism") + .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("pi") + .withSolutionTemplateId("qolj") + .withSolutionTemplateVersion("cgxxlxs") + .withSolutionInstanceName("gcvizqzdwlvwlyou") + .withTargetId("gfbkjubdyh") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("in") + .withSolutionTemplateId("owzfttsttkt") + .withSolutionTemplateVersion("hbq") + .withSolutionInstanceName("tx") + .withTargetId("zukxitmmqtgqq") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())))), + new SolutionDependencyParameter().withSolutionVersionId("n") + .withSolutionTemplateId("xcpjuisavokqdzf") + .withSolutionTemplateVersion("zivj") + .withSolutionInstanceName("rqttbajlkatnw") + .withTargetId("iopid") + .withDependencies( + Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("kuvscxkdm") + .withSolutionTemplateId("govibrxkpmloazu") + .withSolutionTemplateVersion("ocbgoorbteoyb") + .withSolutionInstanceName("jxakv") + .withTargetId("gslordilmyww") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("xnyed") + .withSolutionTemplateId("gyvudtjuewbc") + .withSolutionTemplateVersion("xuuwhcj") + .withSolutionInstanceName("ccybvp") + .withTargetId("akkud") .withDependencies(Arrays.asList(new SolutionDependencyParameter(), new SolutionDependencyParameter(), new SolutionDependencyParameter(), - new SolutionDependencyParameter())))))); + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("wjplma") + .withSolutionTemplateId("tcyohpfkyrk") + .withSolutionTemplateVersion("dg") + .withSolutionInstanceName("gsj") + .withTargetId("nwqjnoba") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("d") + .withSolutionTemplateId("acegfnmntf") + .withSolutionTemplateVersion("vm") + .withSolutionInstanceName("fnczdwvvbalx") + .withTargetId("lchpodbzevwrdn") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())))))); model = BinaryData.fromObject(model).toObject(SolutionDependencyParameter.class); - Assertions.assertEquals("fnjhfjxwmszkkfo", model.solutionVersionId()); - Assertions.assertEquals("eyfkzikfja", model.solutionTemplateId()); - Assertions.assertEquals("eaivxwczel", model.solutionTemplateVersion()); - Assertions.assertEquals("irels", model.solutionInstanceName()); - Assertions.assertEquals("aenwabf", model.targetId()); - Assertions.assertEquals("ddxbjhwuaanoz", model.dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("sphyoulpjrvxa", model.dependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("rvimjwosytxitcsk", model.dependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("k", model.dependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("umiekkezzi", model.dependencies().get(0).targetId()); - Assertions.assertEquals("fjhdg", model.dependencies().get(0).dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("gebdunygaeq", model.dependencies().get(0).dependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("bqfatpxllrxcyjmo", - model.dependencies().get(0).dependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("su", model.dependencies().get(0).dependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("r", model.dependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("zshq", model.solutionVersionId()); + Assertions.assertEquals("impevf", model.solutionTemplateId()); + Assertions.assertEquals("b", model.solutionTemplateVersion()); + Assertions.assertEquals("rilbywdx", model.solutionInstanceName()); + Assertions.assertEquals("icc", model.targetId()); + Assertions.assertEquals("scjfnyns", model.dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("ujiz", model.dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("oqytibyowbblgy", model.dependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("utp", model.dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("joxoism", model.dependencies().get(0).targetId()); + Assertions.assertEquals("pi", model.dependencies().get(0).dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("qolj", model.dependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("cgxxlxs", model.dependencies().get(0).dependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("gcvizqzdwlvwlyou", + model.dependencies().get(0).dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("gfbkjubdyh", model.dependencies().get(0).dependencies().get(0).targetId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDependencyTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDependencyTests.java index 9eabab02d19fc..f3d2f5b0c33d0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDependencyTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDependencyTests.java @@ -12,27 +12,27 @@ public final class SolutionDependencyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionDependency model = BinaryData.fromString( - "{\"solutionVersionId\":\"e\",\"solutionInstanceName\":\"sonpclhocohs\",\"solutionTemplateVersionId\":\"kevle\",\"targetId\":\"gz\",\"dependencies\":[{\"solutionVersionId\":\"hfmvfaxkffe\",\"solutionInstanceName\":\"th\",\"solutionTemplateVersionId\":\"vmezy\",\"targetId\":\"shxmzsbbzoggigrx\",\"dependencies\":[{\"solutionVersionId\":\"rvjx\",\"solutionInstanceName\":\"nspydptkoenkoukn\",\"solutionTemplateVersionId\":\"udwtiukbl\",\"targetId\":\"ngkpocipazy\",\"dependencies\":[{\"solutionVersionId\":\"gukgjnpiucgygevq\",\"solutionTemplateVersionId\":\"ntypmrbpizcdrqj\",\"targetId\":\"dpydn\"},{\"solutionVersionId\":\"yhxdeoejzicwi\",\"solutionTemplateVersionId\":\"sjttgzfbish\",\"targetId\":\"bkh\"},{\"solutionVersionId\":\"jdeyeamdpha\",\"solutionTemplateVersionId\":\"alpbuxwgipwhon\",\"targetId\":\"wkgshwa\"}]}]}]}") + "{\"solutionVersionId\":\"hhcaal\",\"solutionInstanceName\":\"ixisxyawjoy\",\"solutionTemplateVersionId\":\"qcslyjpkiid\",\"targetId\":\"yexz\",\"dependencies\":[{\"solutionVersionId\":\"ixhnrztf\",\"solutionInstanceName\":\"hb\",\"solutionTemplateVersionId\":\"xknalaulppg\",\"targetId\":\"dtpnapnyiropuhp\",\"dependencies\":[{\"solutionVersionId\":\"pgylg\",\"solutionInstanceName\":\"itxmedjvcslynqww\",\"solutionTemplateVersionId\":\"cwzzhxgktr\",\"targetId\":\"gucnapkte\",\"dependencies\":[{\"solutionVersionId\":\"lwptfdy\",\"solutionTemplateVersionId\":\"pfqbuaceopzf\",\"targetId\":\"rhhuaopppcqeqx\"},{\"solutionVersionId\":\"lzdahzxctobgbkdm\",\"solutionTemplateVersionId\":\"izpost\",\"targetId\":\"grcfb\"}]},{\"solutionVersionId\":\"nrmfqjhhk\",\"solutionInstanceName\":\"pvjymjhxxjyng\",\"solutionTemplateVersionId\":\"divkrt\",\"targetId\":\"wbxqzvszjfau\",\"dependencies\":[{\"solutionVersionId\":\"dxxiv\",\"solutionTemplateVersionId\":\"tvtc\",\"targetId\":\"aqtdoqmcbx\"},{\"solutionVersionId\":\"wvxysl\",\"solutionTemplateVersionId\":\"bhsfxob\",\"targetId\":\"ytkblmpew\"},{\"solutionVersionId\":\"wfbkrvrns\",\"solutionTemplateVersionId\":\"shqjohxcrsbf\",\"targetId\":\"vasrruvwb\"},{\"solutionVersionId\":\"sqfsubcgjbirxb\",\"solutionTemplateVersionId\":\"ybsrfbjfdtwss\",\"targetId\":\"t\"}]},{\"solutionVersionId\":\"tpvjzbexilzznfqq\",\"solutionInstanceName\":\"wpmqt\",\"solutionTemplateVersionId\":\"ruoujmk\",\"targetId\":\"jhwqytjrybnw\",\"dependencies\":[{\"solutionVersionId\":\"gdrjervnaenqpe\",\"solutionTemplateVersionId\":\"indoygmifthnzd\",\"targetId\":\"dslgnayqigynduh\"},{\"solutionVersionId\":\"vhqlkthumaqo\",\"solutionTemplateVersionId\":\"bgycduiertgccym\",\"targetId\":\"aolps\"},{\"solutionVersionId\":\"lqlfm\",\"solutionTemplateVersionId\":\"dnbbglzps\",\"targetId\":\"iydmcwyhzdxs\"},{\"solutionVersionId\":\"adbzmnvdfznud\",\"solutionTemplateVersionId\":\"od\",\"targetId\":\"xzb\"}]},{\"solutionVersionId\":\"cblylpstdbhhxsr\",\"solutionInstanceName\":\"zucerscdntnev\",\"solutionTemplateVersionId\":\"iwjmygtdssls\",\"targetId\":\"tmweriofzpyq\",\"dependencies\":[{\"solutionVersionId\":\"wab\",\"solutionTemplateVersionId\":\"ets\",\"targetId\":\"hszhedplvwiwu\"},{\"solutionVersionId\":\"mwmbes\",\"solutionTemplateVersionId\":\"dnkwwtppjflcxog\",\"targetId\":\"okonzmnsikvmkqz\"},{\"solutionVersionId\":\"qqkdltfzxmhhvhgu\",\"solutionTemplateVersionId\":\"eodkwobda\",\"targetId\":\"xtibqdxbxwakbog\"},{\"solutionVersionId\":\"xndlkzgxhu\",\"solutionTemplateVersionId\":\"iplbpodxunkbebxm\",\"targetId\":\"byyntwlrbqt\"}]}]},{\"solutionVersionId\":\"oievseotgqrlltm\",\"solutionInstanceName\":\"lauwzizxbmpgcjef\",\"solutionTemplateVersionId\":\"zmuvpbttdumorppx\",\"targetId\":\"bmnzbtbhjpgl\",\"dependencies\":[{\"solutionVersionId\":\"ohdneuel\",\"solutionInstanceName\":\"hsd\",\"solutionTemplateVersionId\":\"htozfikdow\",\"targetId\":\"quuvxzxcl\",\"dependencies\":[{\"solutionVersionId\":\"hhqzonosgg\",\"solutionTemplateVersionId\":\"hcohfwdsjnk\",\"targetId\":\"ljuti\"},{\"solutionVersionId\":\"swacffgdkzz\",\"solutionTemplateVersionId\":\"wkfvhqcrailvp\",\"targetId\":\"ppfufl\"},{\"solutionVersionId\":\"wdmhdlxyjrxs\",\"solutionTemplateVersionId\":\"gafcnihgwqapnedg\",\"targetId\":\"bcvkcvqvpkeq\"},{\"solutionVersionId\":\"cvdrhvoodsot\",\"solutionTemplateVersionId\":\"obzdopcjwvnhdl\",\"targetId\":\"wmgxcxrsl\"}]},{\"solutionVersionId\":\"mutwuoe\",\"solutionInstanceName\":\"pkhjwni\",\"solutionTemplateVersionId\":\"qsluicp\",\"targetId\":\"ggkzzlvmbmpa\",\"dependencies\":[{\"solutionVersionId\":\"dfvue\",\"solutionTemplateVersionId\":\"yw\",\"targetId\":\"bpfvm\"},{\"solutionVersionId\":\"yhrfouyftaakcpw\",\"solutionTemplateVersionId\":\"yzvqt\",\"targetId\":\"nubexk\"},{\"solutionVersionId\":\"zksmondj\",\"solutionTemplateVersionId\":\"quxvypomgkop\",\"targetId\":\"whojvp\"}]},{\"solutionVersionId\":\"jqg\",\"solutionInstanceName\":\"smocmbq\",\"solutionTemplateVersionId\":\"qvmkcxo\",\"targetId\":\"apvhelxprgly\",\"dependencies\":[{\"solutionVersionId\":\"dckcbc\",\"solutionTemplateVersionId\":\"ejrjxgciqibrho\",\"targetId\":\"xsdqrhzoymibmrqy\"}]},{\"solutionVersionId\":\"bahwfl\",\"solutionInstanceName\":\"zdtmhrkwofy\",\"solutionTemplateVersionId\":\"voqacpiexpbt\",\"targetId\":\"iwbwoenwashrtdtk\",\"dependencies\":[{\"solutionVersionId\":\"xwbpokulpiuj\",\"solutionTemplateVersionId\":\"aasipqi\",\"targetId\":\"obyu\"},{\"solutionVersionId\":\"erpqlpqwcciuqg\",\"solutionTemplateVersionId\":\"dbutauvfbtkuwhh\",\"targetId\":\"hykojoxafnndlpic\"},{\"solutionVersionId\":\"koymkcd\",\"solutionTemplateVersionId\":\"h\",\"targetId\":\"pkkpw\"}]}]},{\"solutionVersionId\":\"reqnovvqfov\",\"solutionInstanceName\":\"xywsuws\",\"solutionTemplateVersionId\":\"rsndsytgadgvra\",\"targetId\":\"aeneqnzarrwl\",\"dependencies\":[{\"solutionVersionId\":\"ijfqkacewiipfp\",\"solutionInstanceName\":\"ji\",\"solutionTemplateVersionId\":\"wwiftohqkvpuv\",\"targetId\":\"sgplsakn\",\"dependencies\":[{\"solutionVersionId\":\"synljphuopxodl\",\"solutionTemplateVersionId\":\"iyntorzihle\",\"targetId\":\"sjswsrms\"},{\"solutionVersionId\":\"yzrpzbchckqqzq\",\"solutionTemplateVersionId\":\"ox\",\"targetId\":\"ysuiizynkedya\"},{\"solutionVersionId\":\"rwyhqmibzyhwitsm\",\"solutionTemplateVersionId\":\"pyy\",\"targetId\":\"pcdpumnz\"}]},{\"solutionVersionId\":\"mwzn\",\"solutionInstanceName\":\"biknsorgjhxbld\",\"solutionTemplateVersionId\":\"lwwrl\",\"targetId\":\"dmtnc\",\"dependencies\":[{\"solutionVersionId\":\"otllxdyhgsyo\",\"solutionTemplateVersionId\":\"ogjltdtbnnhad\",\"targetId\":\"ocrkvcikh\"}]}]}]}") .toObject(SolutionDependency.class); - Assertions.assertEquals("e", model.solutionVersionId()); - Assertions.assertEquals("sonpclhocohs", model.solutionInstanceName()); - Assertions.assertEquals("kevle", model.solutionTemplateVersionId()); - Assertions.assertEquals("gz", model.targetId()); - Assertions.assertEquals("hfmvfaxkffe", model.dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("th", model.dependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("vmezy", model.dependencies().get(0).solutionTemplateVersionId()); - Assertions.assertEquals("shxmzsbbzoggigrx", model.dependencies().get(0).targetId()); - Assertions.assertEquals("rvjx", model.dependencies().get(0).dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("nspydptkoenkoukn", + Assertions.assertEquals("hhcaal", model.solutionVersionId()); + Assertions.assertEquals("ixisxyawjoy", model.solutionInstanceName()); + Assertions.assertEquals("qcslyjpkiid", model.solutionTemplateVersionId()); + Assertions.assertEquals("yexz", model.targetId()); + Assertions.assertEquals("ixhnrztf", model.dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("hb", model.dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("xknalaulppg", model.dependencies().get(0).solutionTemplateVersionId()); + Assertions.assertEquals("dtpnapnyiropuhp", model.dependencies().get(0).targetId()); + Assertions.assertEquals("pgylg", model.dependencies().get(0).dependencies().get(0).solutionVersionId()); + Assertions.assertEquals("itxmedjvcslynqww", model.dependencies().get(0).dependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("udwtiukbl", + Assertions.assertEquals("cwzzhxgktr", model.dependencies().get(0).dependencies().get(0).solutionTemplateVersionId()); - Assertions.assertEquals("ngkpocipazy", model.dependencies().get(0).dependencies().get(0).targetId()); - Assertions.assertEquals("gukgjnpiucgygevq", + Assertions.assertEquals("gucnapkte", model.dependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("lwptfdy", model.dependencies().get(0).dependencies().get(0).dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("ntypmrbpizcdrqj", + Assertions.assertEquals("pfqbuaceopzf", model.dependencies().get(0).dependencies().get(0).dependencies().get(0).solutionTemplateVersionId()); - Assertions.assertEquals("dpydn", + Assertions.assertEquals("rhhuaopppcqeqx", model.dependencies().get(0).dependencies().get(0).dependencies().get(0).targetId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentInnerTests.java new file mode 100644 index 0000000000000..4985b29d66f9b --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentInnerTests.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionDeploymentInner; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadata; +import com.azure.resourcemanager.workloadorchestration.models.TargetMetadata; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class SolutionDeploymentInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionDeploymentInner model = BinaryData.fromString( + "{\"properties\":{\"solutionTemplateProperties\":{\"subscriptionId\":\"lh\",\"resourceGroupName\":\"xpzruzythqkk\",\"name\":\"hbgxvel\",\"version\":\"vulnxdmn\"},\"input\":{\"jpddn\":\"\\\"dataujdtvmclyymffh\\\"\"},\"output\":{\"qrbrpvnmdyfoeboj\":\"\\\"datazuvrzmzqmz\\\"\",\"laohoqkp\":\"\\\"datajpp\\\"\"},\"targetProperties\":{\"capabilities\":[\"qjilaywkdcwmqsyr\",\"lmhxdqaolfylnk\",\"bjpjvlyw\"],\"targetIds\":[\"fwobb\"]},\"provisioningState\":\"InProgress\"},\"eTag\":\"wyjfnqzocrdzgcze\",\"location\":\"tgxdncaqt\",\"tags\":{\"ixgy\":\"koifuvnyttz\",\"behlqtxnr\":\"ihlgm\",\"aqotwfhipxwgsabv\":\"lkndrndpgfjodh\",\"czuumljcir\":\"ipowza\"},\"id\":\"pefyc\",\"name\":\"veitit\",\"type\":\"nsxzajlns\"}") + .toObject(SolutionDeploymentInner.class); + Assertions.assertEquals("tgxdncaqt", model.location()); + Assertions.assertEquals("koifuvnyttz", model.tags().get("ixgy")); + Assertions.assertEquals("lh", model.properties().solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("xpzruzythqkk", model.properties().solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("hbgxvel", model.properties().solutionTemplateProperties().name()); + Assertions.assertEquals("vulnxdmn", model.properties().solutionTemplateProperties().version()); + Assertions.assertEquals("qjilaywkdcwmqsyr", model.properties().targetProperties().capabilities().get(0)); + Assertions.assertEquals("fwobb", model.properties().targetProperties().targetIds().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SolutionDeploymentInner model = new SolutionDeploymentInner().withLocation("tgxdncaqt") + .withTags(mapOf("ixgy", "koifuvnyttz", "behlqtxnr", "ihlgm", "aqotwfhipxwgsabv", "lkndrndpgfjodh", + "czuumljcir", "ipowza")) + .withProperties(new SolutionDeploymentProperties() + .withSolutionTemplateProperties(new SolutionTemplateMetadata().withSubscriptionId("lh") + .withResourceGroupName("xpzruzythqkk") + .withName("hbgxvel") + .withVersion("vulnxdmn")) + .withInput( + mapOf("jpddn", BinaryData.fromBytes("\"dataujdtvmclyymffh\"".getBytes(StandardCharsets.UTF_8)))) + .withTargetProperties(new TargetMetadata() + .withCapabilities(Arrays.asList("qjilaywkdcwmqsyr", "lmhxdqaolfylnk", "bjpjvlyw")) + .withTargetIds(Arrays.asList("fwobb")))); + model = BinaryData.fromObject(model).toObject(SolutionDeploymentInner.class); + Assertions.assertEquals("tgxdncaqt", model.location()); + Assertions.assertEquals("koifuvnyttz", model.tags().get("ixgy")); + Assertions.assertEquals("lh", model.properties().solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("xpzruzythqkk", model.properties().solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("hbgxvel", model.properties().solutionTemplateProperties().name()); + Assertions.assertEquals("vulnxdmn", model.properties().solutionTemplateProperties().version()); + Assertions.assertEquals("qjilaywkdcwmqsyr", model.properties().targetProperties().capabilities().get(0)); + Assertions.assertEquals("fwobb", model.properties().targetProperties().targetIds().get(0)); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentListResultTests.java new file mode 100644 index 0000000000000..00b3d6ce1f776 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentListResultTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionDeploymentListResult; +import org.junit.jupiter.api.Assertions; + +public final class SolutionDeploymentListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionDeploymentListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"solutionTemplateProperties\":{\"subscriptionId\":\"y\",\"resourceGroupName\":\"wmhkruwaedrympml\",\"name\":\"oinhzdue\",\"version\":\"ihapfjiiknjdiq\"},\"input\":{\"ivbvzi\":\"\\\"dataejhpclbiedfsbwc\\\"\"},\"output\":{\"s\":\"\\\"dataxgoooxzprad\\\"\",\"g\":\"\\\"dataxknpdgz\\\"\",\"wwnbafoctohz\":\"\\\"datasugswhgsaod\\\"\"},\"targetProperties\":{\"capabilities\":[\"uvwsxbgnvk\",\"rvqchoadhrsxqvzv\",\"pabdsrg\"],\"targetIds\":[\"glzrs\",\"bklrxh\",\"nltce\",\"jdvqy\"]},\"provisioningState\":\"Succeeded\"},\"eTag\":\"qkwaruwd\",\"location\":\"qzxoebwgjxbi\",\"tags\":{\"zvpaklozkxbzrpej\":\"baupw\"},\"id\":\"lssan\",\"name\":\"tttk\",\"type\":\"s\"},{\"properties\":{\"solutionTemplateProperties\":{\"subscriptionId\":\"nrswgkpjhboyik\",\"resourceGroupName\":\"huhkslgwlok\",\"name\":\"ue\",\"version\":\"ijyzcqypzqzufgsy\"},\"input\":{\"dwtfx\":\"\\\"datay\\\"\",\"yamkncfgybm\":\"\\\"datatpq\\\"\",\"ullojk\":\"\\\"datasnxoc\\\"\",\"g\":\"\\\"dataoy\\\"\"},\"output\":{\"xdbdljzgdyrcvu\":\"\\\"dataj\\\"\",\"qhbjnqogdxwbsfpy\":\"\\\"databsgzl\\\"\",\"jlf\":\"\\\"datax\\\"\"},\"targetProperties\":{\"capabilities\":[\"ominxojjlu\",\"xdhilz\",\"dzzqjmu\",\"za\"],\"targetIds\":[\"ribqlotokh\",\"vwta\",\"nkcqwwxwjyofgw\"]},\"provisioningState\":\"Failed\"},\"eTag\":\"tlwljssmcts\",\"location\":\"dkpwolgisub\",\"tags\":{\"fksxqce\":\"eogfgfiijrykwl\",\"qa\":\"zfpxgnmqvzvluy\",\"fppuacvfye\":\"ossscyva\"},\"id\":\"w\",\"name\":\"sfxtjd\",\"type\":\"soy\"},{\"properties\":{\"solutionTemplateProperties\":{\"subscriptionId\":\"v\",\"resourceGroupName\":\"qfttehdpboujs\",\"name\":\"kfvvdshxcde\",\"version\":\"suenyg\"},\"input\":{\"tfrnquk\":\"\\\"datag\\\"\",\"s\":\"\\\"datarf\\\"\",\"g\":\"\\\"datanlrxsmyltrwntfmt\\\"\",\"zjwhsetwwjwz\":\"\\\"datajdxwnazkurrdre\\\"\"},\"output\":{\"zuukykcyqhyqq\":\"\\\"datae\\\"\",\"opazdazgbs\":\"\\\"datazdcykeystew\\\"\"},\"targetProperties\":{\"capabilities\":[\"ewqcfu\"],\"targetIds\":[\"pvozglqjbknlzc\",\"ctzeyowmndc\",\"v\"]},\"provisioningState\":\"Canceled\"},\"eTag\":\"auxzanh\",\"location\":\"vfruwkudrbcpft\",\"tags\":{\"aucmcirtnee\":\"qyemebu\",\"fnohaitran\":\"mjauwcgx\",\"xubvf\":\"zerwgudas\",\"mpztraudsvhlc\":\"ngfcocefhpriyl\"},\"id\":\"culregpqt\",\"name\":\"ojhvrz\",\"type\":\"nvgyshqrdgrtwme\"},{\"properties\":{\"solutionTemplateProperties\":{\"subscriptionId\":\"lp\",\"resourceGroupName\":\"cf\",\"name\":\"zzwjcayerzrran\",\"version\":\"ybylpol\"},\"input\":{\"jwvuag\":\"\\\"dataghsrleinkfscjfn\\\"\",\"klzmijajw\":\"\\\"dataqwtltngvmreupt\\\"\",\"fsvagh\":\"\\\"datal\\\"\",\"xqlaps\":\"\\\"datapynwlslrcigtzjcv\\\"\"},\"output\":{\"wffcvvye\":\"\\\"dataovyxpavidnie\\\"\",\"pnptw\":\"\\\"dataslpuxgcbdsva\\\"\",\"bfe\":\"\\\"datarkxgpazwugxyqvnj\\\"\",\"aewzgiudjp\":\"\\\"datahldiuhzzgqlm\\\"\"},\"targetProperties\":{\"capabilities\":[\"httqh\",\"mhk\",\"ezsdsuxheq\"],\"targetIds\":[\"ruxspinymmqgwok\",\"ikpazf\",\"mjxuvjipfdvhaxd\"]},\"provisioningState\":\"Canceled\"},\"eTag\":\"ehpphthdklmveta\",\"location\":\"akfqoixwgiksb\",\"tags\":{\"ogwp\":\"ooxr\",\"bfntumeezbxvq\":\"chgjtnhtukfacih\"},\"id\":\"bnuvwcg\",\"name\":\"sgomtmjz\",\"type\":\"xuqgovsxpwwztj\"}],\"nextLink\":\"kkhtgfredmlscgrl\"}") + .toObject(SolutionDeploymentListResult.class); + Assertions.assertEquals("qzxoebwgjxbi", model.value().get(0).location()); + Assertions.assertEquals("baupw", model.value().get(0).tags().get("zvpaklozkxbzrpej")); + Assertions.assertEquals("y", model.value().get(0).properties().solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("wmhkruwaedrympml", + model.value().get(0).properties().solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("oinhzdue", model.value().get(0).properties().solutionTemplateProperties().name()); + Assertions.assertEquals("ihapfjiiknjdiq", + model.value().get(0).properties().solutionTemplateProperties().version()); + Assertions.assertEquals("uvwsxbgnvk", + model.value().get(0).properties().targetProperties().capabilities().get(0)); + Assertions.assertEquals("glzrs", model.value().get(0).properties().targetProperties().targetIds().get(0)); + Assertions.assertEquals("kkhtgfredmlscgrl", model.nextLink()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentPropertiesTests.java new file mode 100644 index 0000000000000..0a05896677c36 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentPropertiesTests.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadata; +import com.azure.resourcemanager.workloadorchestration.models.TargetMetadata; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class SolutionDeploymentPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionDeploymentProperties model = BinaryData.fromString( + "{\"solutionTemplateProperties\":{\"subscriptionId\":\"wjuyxx\",\"resourceGroupName\":\"qvmvuaytuadxkxe\",\"name\":\"bwpntghy\",\"version\":\"sa\"},\"input\":{\"t\":\"\\\"datarnxsluvlzlad\\\"\",\"rhwzdanojisg\":\"\\\"datakpbqhvfdqqjw\\\"\",\"ztjctibpvbkae\":\"\\\"datalmvokat\\\"\"},\"output\":{\"dfwakwseivmak\":\"\\\"datamzy\\\"\"},\"targetProperties\":{\"capabilities\":[\"so\",\"ljuxl\"],\"targetIds\":[\"ctvtf\"]},\"provisioningState\":\"Succeeded\"}") + .toObject(SolutionDeploymentProperties.class); + Assertions.assertEquals("wjuyxx", model.solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("qvmvuaytuadxkxe", model.solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("bwpntghy", model.solutionTemplateProperties().name()); + Assertions.assertEquals("sa", model.solutionTemplateProperties().version()); + Assertions.assertEquals("so", model.targetProperties().capabilities().get(0)); + Assertions.assertEquals("ctvtf", model.targetProperties().targetIds().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SolutionDeploymentProperties model = new SolutionDeploymentProperties() + .withSolutionTemplateProperties(new SolutionTemplateMetadata().withSubscriptionId("wjuyxx") + .withResourceGroupName("qvmvuaytuadxkxe") + .withName("bwpntghy") + .withVersion("sa")) + .withInput(mapOf("t", BinaryData.fromBytes("\"datarnxsluvlzlad\"".getBytes(StandardCharsets.UTF_8)), + "rhwzdanojisg", BinaryData.fromBytes("\"datakpbqhvfdqqjw\"".getBytes(StandardCharsets.UTF_8)), + "ztjctibpvbkae", BinaryData.fromBytes("\"datalmvokat\"".getBytes(StandardCharsets.UTF_8)))) + .withTargetProperties(new TargetMetadata().withCapabilities(Arrays.asList("so", "ljuxl")) + .withTargetIds(Arrays.asList("ctvtf"))); + model = BinaryData.fromObject(model).toObject(SolutionDeploymentProperties.class); + Assertions.assertEquals("wjuyxx", model.solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("qvmvuaytuadxkxe", model.solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("bwpntghy", model.solutionTemplateProperties().name()); + Assertions.assertEquals("sa", model.solutionTemplateProperties().version()); + Assertions.assertEquals("so", model.targetProperties().capabilities().get(0)); + Assertions.assertEquals("ctvtf", model.targetProperties().targetIds().get(0)); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentUpdatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentUpdatePropertiesTests.java new file mode 100644 index 0000000000000..07f66ed4264ea --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentUpdatePropertiesTests.java @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdateProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadataUpdate; +import com.azure.resourcemanager.workloadorchestration.models.TargetMetadata; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class SolutionDeploymentUpdatePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionDeploymentUpdateProperties model = BinaryData.fromString( + "{\"solutionTemplateProperties\":{\"subscriptionId\":\"grhrdic\",\"resourceGroupName\":\"wyjfowxwyovcxjs\",\"name\":\"ipcukdveks\",\"version\":\"hoduchvlscrd\"},\"input\":{\"spyszekbhwl\":\"\\\"datafdyjdu\\\"\",\"bfrnuybffljfii\":\"\\\"dataaaggkre\\\"\",\"e\":\"\\\"datareoagsqtaadus\\\"\"},\"targetProperties\":{\"capabilities\":[\"vsqw\",\"d\",\"hzilfmn\",\"ikpsimsfeypof\"],\"targetIds\":[\"bh\"]}}") + .toObject(SolutionDeploymentUpdateProperties.class); + Assertions.assertEquals("grhrdic", model.solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("wyjfowxwyovcxjs", model.solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("ipcukdveks", model.solutionTemplateProperties().name()); + Assertions.assertEquals("hoduchvlscrd", model.solutionTemplateProperties().version()); + Assertions.assertEquals("vsqw", model.targetProperties().capabilities().get(0)); + Assertions.assertEquals("bh", model.targetProperties().targetIds().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SolutionDeploymentUpdateProperties model = new SolutionDeploymentUpdateProperties() + .withSolutionTemplateProperties(new SolutionTemplateMetadataUpdate().withSubscriptionId("grhrdic") + .withResourceGroupName("wyjfowxwyovcxjs") + .withName("ipcukdveks") + .withVersion("hoduchvlscrd")) + .withInput(mapOf("spyszekbhwl", BinaryData.fromBytes("\"datafdyjdu\"".getBytes(StandardCharsets.UTF_8)), + "bfrnuybffljfii", BinaryData.fromBytes("\"dataaaggkre\"".getBytes(StandardCharsets.UTF_8)), "e", + BinaryData.fromBytes("\"datareoagsqtaadus\"".getBytes(StandardCharsets.UTF_8)))) + .withTargetProperties( + new TargetMetadata().withCapabilities(Arrays.asList("vsqw", "d", "hzilfmn", "ikpsimsfeypof")) + .withTargetIds(Arrays.asList("bh"))); + model = BinaryData.fromObject(model).toObject(SolutionDeploymentUpdateProperties.class); + Assertions.assertEquals("grhrdic", model.solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("wyjfowxwyovcxjs", model.solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("ipcukdveks", model.solutionTemplateProperties().name()); + Assertions.assertEquals("hoduchvlscrd", model.solutionTemplateProperties().version()); + Assertions.assertEquals("vsqw", model.targetProperties().capabilities().get(0)); + Assertions.assertEquals("bh", model.targetProperties().targetIds().get(0)); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentUpdateTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentUpdateTests.java new file mode 100644 index 0000000000000..ec004aed13c56 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentUpdateTests.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdate; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentUpdateProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadataUpdate; +import com.azure.resourcemanager.workloadorchestration.models.TargetMetadata; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class SolutionDeploymentUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionDeploymentUpdate model = BinaryData.fromString( + "{\"tags\":{\"osehxlzsxez\":\"vtqigdxzvsgeafg\"},\"properties\":{\"solutionTemplateProperties\":{\"subscriptionId\":\"waaeskyfjl\",\"resourceGroupName\":\"eqtoyrpl\",\"name\":\"lajmllp\",\"version\":\"evhamfowg\"},\"input\":{\"qovchiqbp\":\"\\\"datamkekxpkzwaqxo\\\"\"},\"targetProperties\":{\"capabilities\":[\"dusztekxby\"],\"targetIds\":[\"sfepxyihpq\"]}}}") + .toObject(SolutionDeploymentUpdate.class); + Assertions.assertEquals("vtqigdxzvsgeafg", model.tags().get("osehxlzsxez")); + Assertions.assertEquals("waaeskyfjl", model.properties().solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("eqtoyrpl", model.properties().solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("lajmllp", model.properties().solutionTemplateProperties().name()); + Assertions.assertEquals("evhamfowg", model.properties().solutionTemplateProperties().version()); + Assertions.assertEquals("dusztekxby", model.properties().targetProperties().capabilities().get(0)); + Assertions.assertEquals("sfepxyihpq", model.properties().targetProperties().targetIds().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SolutionDeploymentUpdate model = new SolutionDeploymentUpdate() + .withTags(mapOf("osehxlzsxez", "vtqigdxzvsgeafg")) + .withProperties(new SolutionDeploymentUpdateProperties() + .withSolutionTemplateProperties(new SolutionTemplateMetadataUpdate().withSubscriptionId("waaeskyfjl") + .withResourceGroupName("eqtoyrpl") + .withName("lajmllp") + .withVersion("evhamfowg")) + .withInput( + mapOf("qovchiqbp", BinaryData.fromBytes("\"datamkekxpkzwaqxo\"".getBytes(StandardCharsets.UTF_8)))) + .withTargetProperties(new TargetMetadata().withCapabilities(Arrays.asList("dusztekxby")) + .withTargetIds(Arrays.asList("sfepxyihpq")))); + model = BinaryData.fromObject(model).toObject(SolutionDeploymentUpdate.class); + Assertions.assertEquals("vtqigdxzvsgeafg", model.tags().get("osehxlzsxez")); + Assertions.assertEquals("waaeskyfjl", model.properties().solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("eqtoyrpl", model.properties().solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("lajmllp", model.properties().solutionTemplateProperties().name()); + Assertions.assertEquals("evhamfowg", model.properties().solutionTemplateProperties().version()); + Assertions.assertEquals("dusztekxby", model.properties().targetProperties().capabilities().get(0)); + Assertions.assertEquals("sfepxyihpq", model.properties().targetProperties().targetIds().get(0)); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsCreateOrUpdateMockTests.java new file mode 100644 index 0000000000000..3448391b29ce7 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsCreateOrUpdateMockTests.java @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeployment; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeploymentProperties; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadata; +import com.azure.resourcemanager.workloadorchestration.models.TargetMetadata; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionDeploymentsCreateOrUpdateMockTests { + @Test + public void testCreateOrUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"solutionTemplateProperties\":{\"subscriptionId\":\"znfgvlx\",\"resourceGroupName\":\"mnctigp\",\"name\":\"sywicklktgk\",\"version\":\"prtqjytd\"},\"input\":{\"lamoaxcaytnpk\":\"\\\"datafuhbdwbvjsbg\\\"\",\"eocnqoubvepvlrys\":\"\\\"databpbltcwsexh\\\"\"},\"output\":{\"bzhha\":\"\\\"datadxyfhxoh\\\"\"},\"targetProperties\":{\"capabilities\":[\"uxnvkdslcof\",\"vtf\",\"ehoui\",\"aklhjfddxqfuss\"],\"targetIds\":[\"sspmjvailfauyv\"]},\"provisioningState\":\"Succeeded\"},\"eTag\":\"lkqdgwbztrth\",\"location\":\"wvoglff\",\"tags\":{\"hbtofc\":\"gslor\",\"lhcnsdylmnqunk\":\"xk\",\"ptmsgk\":\"g\",\"xtzhgbgbhud\":\"edw\"},\"id\":\"rpjimvrrqfi\",\"name\":\"pkwmamrlfizjud\",\"type\":\"ndi\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + SolutionDeployment response = manager.solutionDeployments() + .define("s") + .withRegion("xjxbsowrrlcck") + .withExistingResourceGroup("bgumwhmxpuckns") + .withTags(mapOf("mqomxoalknuy", "pjmspau", "zi", "pvi")) + .withProperties(new SolutionDeploymentProperties() + .withSolutionTemplateProperties(new SolutionTemplateMetadata().withSubscriptionId("smg") + .withResourceGroupName("icttr") + .withName("lvvjm") + .withVersion("okxxamqecj")) + .withInput(mapOf("qxd", BinaryData.fromBytes("\"datalci\"".getBytes(StandardCharsets.UTF_8)), "ojk", + BinaryData.fromBytes("\"datamklphxwww\"".getBytes(StandardCharsets.UTF_8)))) + .withTargetProperties( + new TargetMetadata().withCapabilities(Arrays.asList("lwsfxayzqbyeywpm", "hnrt", "ikffydztk")) + .withTargetIds(Arrays.asList("bg", "nzfwvz", "teqjmyqxuhgk")))) + .create(); + + Assertions.assertEquals("wvoglff", response.location()); + Assertions.assertEquals("gslor", response.tags().get("hbtofc")); + Assertions.assertEquals("znfgvlx", response.properties().solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("mnctigp", response.properties().solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("sywicklktgk", response.properties().solutionTemplateProperties().name()); + Assertions.assertEquals("prtqjytd", response.properties().solutionTemplateProperties().version()); + Assertions.assertEquals("uxnvkdslcof", response.properties().targetProperties().capabilities().get(0)); + Assertions.assertEquals("sspmjvailfauyv", response.properties().targetProperties().targetIds().get(0)); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsGetByResourceGroupWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsGetByResourceGroupWithResponseMockTests.java new file mode 100644 index 0000000000000..520f2eedc6500 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsGetByResourceGroupWithResponseMockTests.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeployment; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionDeploymentsGetByResourceGroupWithResponseMockTests { + @Test + public void testGetByResourceGroupWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"solutionTemplateProperties\":{\"subscriptionId\":\"ivczktllxswtdap\",\"resourceGroupName\":\"irmnrijefmr\",\"name\":\"wxcevdspt\",\"version\":\"gffmwtblgmkokq\"},\"input\":{\"wlnm\":\"\\\"dataxie\\\"\"},\"output\":{\"jdnccote\":\"\\\"datafcnuestbsli\\\"\",\"xqdwbymuq\":\"\\\"dataikjiytehhxt\\\"\",\"ncrdo\":\"\\\"datan\\\"\",\"byh\":\"\\\"datactysecpekhx\\\"\"},\"targetProperties\":{\"capabilities\":[\"cvimmwck\",\"zvlfymtrts\",\"xup\"],\"targetIds\":[\"ckjbcbkg\",\"rfrjschjxncqzahg\",\"vbgd\",\"bimor\"]},\"provisioningState\":\"InProgress\"},\"eTag\":\"osgihtrxueqbm\",\"location\":\"fgvznjqsws\",\"tags\":{\"pizpbm\":\"gcsqosecxlngou\"},\"id\":\"xzspfy\",\"name\":\"slazipplxgtdu\",\"type\":\"jtyc\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + SolutionDeployment response = manager.solutionDeployments() + .getByResourceGroupWithResponse("pelpfijtezgxmpe", "zamadlerzi", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("fgvznjqsws", response.location()); + Assertions.assertEquals("gcsqosecxlngou", response.tags().get("pizpbm")); + Assertions.assertEquals("ivczktllxswtdap", response.properties().solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("irmnrijefmr", response.properties().solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("wxcevdspt", response.properties().solutionTemplateProperties().name()); + Assertions.assertEquals("gffmwtblgmkokq", response.properties().solutionTemplateProperties().version()); + Assertions.assertEquals("cvimmwck", response.properties().targetProperties().capabilities().get(0)); + Assertions.assertEquals("ckjbcbkg", response.properties().targetProperties().targetIds().get(0)); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListByResourceGroupMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListByResourceGroupMockTests.java new file mode 100644 index 0000000000000..e9fccf0b22ba8 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListByResourceGroupMockTests.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeployment; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionDeploymentsListByResourceGroupMockTests { + @Test + public void testListByResourceGroup() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"solutionTemplateProperties\":{\"subscriptionId\":\"hkwxfugfzi\",\"resourceGroupName\":\"xduyjnqzbrqcakm\",\"name\":\"ckviyjucamns\",\"version\":\"qoitwhmucjiu\"},\"input\":{\"elyqdvpqfbxg\":\"\\\"datayvehyk\\\"\"},\"output\":{\"sdmtxqlefnoh\":\"\\\"datad\\\"\",\"fopkyll\":\"\\\"datayw\\\"\",\"nj\":\"\\\"dataey\\\"\",\"msfwtwrsvevcneq\":\"\\\"dataw\\\"\"},\"targetProperties\":{\"capabilities\":[\"hqhg\"],\"targetIds\":[\"bzvulqevvjncpmy\",\"t\",\"gdmvghcmixmlwkf\",\"fbcyjrtalqeebud\"]},\"provisioningState\":\"Canceled\"},\"eTag\":\"ooaezktom\",\"location\":\"oi\",\"tags\":{\"eekfztvnabfbbtow\":\"wbywaazba\",\"aol\":\"oljdkxhmew\",\"pkrpkhqetpoe\":\"lzxkrdpuyyt\",\"fpc\":\"efno\"},\"id\":\"rx\",\"name\":\"yrxowv\",\"type\":\"ufcmuajwblxp\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.solutionDeployments().listByResourceGroup("ldrznlaxo", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("oi", response.iterator().next().location()); + Assertions.assertEquals("wbywaazba", response.iterator().next().tags().get("eekfztvnabfbbtow")); + Assertions.assertEquals("hkwxfugfzi", + response.iterator().next().properties().solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("xduyjnqzbrqcakm", + response.iterator().next().properties().solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("ckviyjucamns", + response.iterator().next().properties().solutionTemplateProperties().name()); + Assertions.assertEquals("qoitwhmucjiu", + response.iterator().next().properties().solutionTemplateProperties().version()); + Assertions.assertEquals("hqhg", + response.iterator().next().properties().targetProperties().capabilities().get(0)); + Assertions.assertEquals("bzvulqevvjncpmy", + response.iterator().next().properties().targetProperties().targetIds().get(0)); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListMockTests.java new file mode 100644 index 0000000000000..a6cc6e43d7c81 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionDeploymentsListMockTests.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SolutionDeployment; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionDeploymentsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"solutionTemplateProperties\":{\"subscriptionId\":\"zfrfaw\",\"resourceGroupName\":\"nsvrfajynih\",\"name\":\"ibufg\",\"version\":\"qzhluctblfehbg\"},\"input\":{\"onebldxa\":\"\\\"dataohrcmeqljxdumhyc\\\"\",\"uvohufzdtsrp\":\"\\\"datamdfjwcngkwxjsj\\\"\",\"ylgmgbh\":\"\\\"datauvgzacrzhns\\\"\",\"oqwb\":\"\\\"dataqczouanbfulvcxgl\\\"\"},\"output\":{\"wzhbhflj\":\"\\\"datalqbzbwb\\\"\",\"kzu\":\"\\\"datayodpiovnlhrwy\\\"\",\"rgoextqdnw\":\"\\\"datafapwxsvdeatjiobn\\\"\",\"upbmtbsetkods\":\"\\\"datagntimz\\\"\"},\"targetProperties\":{\"capabilities\":[\"edaakghcrzmm\",\"jyvdhdgdiwmlg\",\"tmfetqjisjmolzca\",\"fkakhgkrvtyycvy\"],\"targetIds\":[\"ejqaw\",\"usqpfzxkczbd\"]},\"provisioningState\":\"Deleting\"},\"eTag\":\"imh\",\"location\":\"ozvoort\",\"tags\":{\"jcyuzlybqsci\":\"h\"},\"id\":\"vylkvckcafnwq\",\"name\":\"awvcnviulbylmg\",\"type\":\"zrycw\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.solutionDeployments().list(com.azure.core.util.Context.NONE); + + Assertions.assertEquals("ozvoort", response.iterator().next().location()); + Assertions.assertEquals("h", response.iterator().next().tags().get("jcyuzlybqsci")); + Assertions.assertEquals("zfrfaw", + response.iterator().next().properties().solutionTemplateProperties().subscriptionId()); + Assertions.assertEquals("nsvrfajynih", + response.iterator().next().properties().solutionTemplateProperties().resourceGroupName()); + Assertions.assertEquals("ibufg", response.iterator().next().properties().solutionTemplateProperties().name()); + Assertions.assertEquals("qzhluctblfehbg", + response.iterator().next().properties().solutionTemplateProperties().version()); + Assertions.assertEquals("edaakghcrzmm", + response.iterator().next().properties().targetProperties().capabilities().get(0)); + Assertions.assertEquals("ejqaw", response.iterator().next().properties().targetProperties().targetIds().get(0)); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionInnerTests.java index 70b34bf58e0db..fdab1ceadb6ac 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionInnerTests.java @@ -15,18 +15,19 @@ public final class SolutionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionInner model = BinaryData.fromString( - "{\"properties\":{\"solutionTemplateId\":\"riolxorjalt\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"ncwsob\",\"latestConfigRevision\":\"wcsdbnwdcfhucq\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"fuvglsbjjca\",\"latestConfigRevision\":\"vxb\",\"isConfigured\":false},{\"solutionTemplateVersion\":\"vudutncor\",\"latestConfigRevision\":\"r\",\"isConfigured\":false},{\"solutionTemplateVersion\":\"qtvcofudflvkgj\",\"latestConfigRevision\":\"bgdknnqv\",\"isConfigured\":true}],\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"n\",\"type\":\"EdgeZone\"},\"eTag\":\"udsgs\",\"id\":\"mkycgra\",\"name\":\"wjue\",\"type\":\"aeburuvdmo\"}") + "{\"properties\":{\"solutionTemplateId\":\"ayzri\",\"displayName\":\"hya\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"jlb\",\"latestConfigRevision\":\"xqvkjlmxhomdyn\",\"isConfigured\":false},{\"solutionTemplateVersion\":\"wdigumbnraauz\",\"latestConfigRevision\":\"p\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"a\",\"latestConfigRevision\":\"ysdzhez\",\"isConfigured\":false}],\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"qyuvvfonkp\",\"type\":\"EdgeZone\"},\"eTag\":\"yik\",\"id\":\"lauyav\",\"name\":\"uwmncs\",\"type\":\"tijfybvp\"}") .toObject(SolutionInner.class); - Assertions.assertEquals("n", model.extendedLocation().name()); + Assertions.assertEquals("qyuvvfonkp", model.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SolutionInner model = new SolutionInner().withProperties(new SolutionProperties()) - .withExtendedLocation(new ExtendedLocation().withName("n").withType(ExtendedLocationType.EDGE_ZONE)); + .withExtendedLocation( + new ExtendedLocation().withName("qyuvvfonkp").withType(ExtendedLocationType.EDGE_ZONE)); model = BinaryData.fromObject(model).toObject(SolutionInner.class); - Assertions.assertEquals("n", model.extendedLocation().name()); + Assertions.assertEquals("qyuvvfonkp", model.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionListResultTests.java index 01692337abc9c..c7b34fdfb89f5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionListResultTests.java @@ -13,10 +13,10 @@ public final class SolutionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"solutionTemplateId\":\"ntuji\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"ed\",\"latestConfigRevision\":\"twwaezkojvdcpzf\",\"isConfigured\":true}],\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"cybxa\",\"type\":\"EdgeZone\"},\"eTag\":\"szufoxciqopidoa\",\"id\":\"iodhkhazxkhnz\",\"name\":\"onlwntoeg\",\"type\":\"kdwbwhkszz\"},{\"properties\":{\"solutionTemplateId\":\"vexztvbtqgs\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"oyzko\",\"latestConfigRevision\":\"wtl\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"guxawqaldsyuuxi\",\"latestConfigRevision\":\"erqf\",\"isConfigured\":false}],\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"nkbykutwpfhp\",\"type\":\"CustomLocation\"},\"eTag\":\"hrskdsnfd\",\"id\":\"oakgtdlmkkzev\",\"name\":\"l\",\"type\":\"ewpusdsttwvogvb\"},{\"properties\":{\"solutionTemplateId\":\"dcngqqmoakufgmj\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"rdgrtw\",\"latestConfigRevision\":\"enuuzkopbm\",\"isConfigured\":false}],\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"woyuhhziuief\",\"type\":\"EdgeZone\"},\"eTag\":\"hdmsmlmzqhoftrm\",\"id\":\"qu\",\"name\":\"ah\",\"type\":\"icslfaoq\"}],\"nextLink\":\"iyylhalnswhccsp\"}") + "{\"value\":[{\"properties\":{\"solutionTemplateId\":\"iaa\",\"displayName\":\"uagydwqfbylyrf\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"gtcojocqwo\",\"latestConfigRevision\":\"fnzjvusfzldm\",\"isConfigured\":true}],\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"lfsbtkadpysow\",\"type\":\"CustomLocation\"},\"eTag\":\"gkbugrjqct\",\"id\":\"cmisofie\",\"name\":\"pe\",\"type\":\"ojyqdhcuplcplcw\"}],\"nextLink\":\"ihih\"}") .toObject(SolutionListResult.class); - Assertions.assertEquals("cybxa", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("iyylhalnswhccsp", model.nextLink()); + Assertions.assertEquals("lfsbtkadpysow", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type()); + Assertions.assertEquals("ihih", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataInnerTests.java new file mode 100644 index 0000000000000..6633323bcd5d8 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataInner; + +public final class SolutionMetadataInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionMetadataInner model = BinaryData.fromString( + "{\"properties\":{\"displayName\":\"dsqtzbsrgnowcjh\",\"solutionTemplateId\":\"mvec\",\"latestVersion\":\"txmwoteyow\",\"currentVersion\":\"uqovekqvgqouwif\"},\"id\":\"pjwyiv\",\"name\":\"ikf\",\"type\":\"cvhrfsp\"}") + .toObject(SolutionMetadataInner.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataListResultTests.java new file mode 100644 index 0000000000000..2ed26ca29c43e --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionMetadataListResult; +import org.junit.jupiter.api.Assertions; + +public final class SolutionMetadataListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionMetadataListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"displayName\":\"qibrtalme\",\"solutionTemplateId\":\"t\",\"latestVersion\":\"dslqxihhrmooizqs\",\"currentVersion\":\"pxiutc\"},\"id\":\"pzhyr\",\"name\":\"etoge\",\"type\":\"joxslhvnhla\"}],\"nextLink\":\"q\"}") + .toObject(SolutionMetadataListResult.class); + Assertions.assertEquals("q", model.nextLink()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataPropertiesTests.java new file mode 100644 index 0000000000000..24a3998a371f2 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataProperties; + +public final class SolutionMetadataPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionMetadataProperties model = BinaryData.fromString( + "{\"displayName\":\"agr\",\"solutionTemplateId\":\"ikteusqczkvyk\",\"latestVersion\":\"ubyjaffmmf\",\"currentVersion\":\"cqc\"}") + .toObject(SolutionMetadataProperties.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionInnerTests.java new file mode 100644 index 0000000000000..a89f781e6fff1 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionMetadataVersionInner; + +public final class SolutionMetadataVersionInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionMetadataVersionInner model = BinaryData.fromString( + "{\"properties\":{\"parentDisplayName\":\"zjcjbtr\",\"solutionTemplateVersionId\":\"ehvvib\",\"schemaId\":\"jj\",\"dynamicConfigurationVersionId\":\"oqbeitpkxzt\",\"configurationStatus\":\"ConfigurationCompleted\"},\"id\":\"klf\",\"name\":\"idgfc\",\"type\":\"qmpimaqxzhem\"}") + .toObject(SolutionMetadataVersionInner.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionListResultTests.java new file mode 100644 index 0000000000000..051a2b9fdc843 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionMetadataVersionListResult; +import org.junit.jupiter.api.Assertions; + +public final class SolutionMetadataVersionListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionMetadataVersionListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"parentDisplayName\":\"jwltlwtjjgu\",\"solutionTemplateVersionId\":\"alhsnvkc\",\"schemaId\":\"xzrpo\",\"dynamicConfigurationVersionId\":\"mlnwiaaomylweazu\",\"configurationStatus\":\"ConfigurationCompleted\"},\"id\":\"thwwn\",\"name\":\"jhlfzswpchwahf\",\"type\":\"ousnfepgfewe\"},{\"properties\":{\"parentDisplayName\":\"yxgncxykxhdjhli\",\"solutionTemplateVersionId\":\"bcxf\",\"schemaId\":\"cporxvxcjz\",\"dynamicConfigurationVersionId\":\"izxfpxt\",\"configurationStatus\":\"ConfigurationPending\"},\"id\":\"javftjuhdqa\",\"name\":\"k\",\"type\":\"tgguwpijrajcivmm\"},{\"properties\":{\"parentDisplayName\":\"cf\",\"solutionTemplateVersionId\":\"rxgkne\",\"schemaId\":\"yinzqodfvpgs\",\"dynamicConfigurationVersionId\":\"xgsg\",\"configurationStatus\":\"ConfigurationPending\"},\"id\":\"zdjtxvzflbqv\",\"name\":\"aqvlgafcqusr\",\"type\":\"vetnwsdtutn\"}],\"nextLink\":\"duy\"}") + .toObject(SolutionMetadataVersionListResult.class); + Assertions.assertEquals("duy", model.nextLink()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionPropertiesTests.java new file mode 100644 index 0000000000000..9e3cb1613de9d --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataVersionProperties; + +public final class SolutionMetadataVersionPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionMetadataVersionProperties model = BinaryData.fromString( + "{\"parentDisplayName\":\"h\",\"solutionTemplateVersionId\":\"uj\",\"schemaId\":\"t\",\"dynamicConfigurationVersionId\":\"ozzwculkba\",\"configurationStatus\":\"ConfigurationPending\"}") + .toObject(SolutionMetadataVersionProperties.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..5f6ef275fd611 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsGetWithResponseMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataVersion; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionMetadataVersionsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"parentDisplayName\":\"wiygmgsevmdmzenl\",\"solutionTemplateVersionId\":\"tgfczljdncidtjva\",\"schemaId\":\"yznm\",\"dynamicConfigurationVersionId\":\"cdo\",\"configurationStatus\":\"ConfigurationCompleted\"},\"id\":\"cgytoxuw\",\"name\":\"ttnzqsaq\",\"type\":\"ebg\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + SolutionMetadataVersion response = manager.solutionMetadataVersions() + .getWithResponse("tmdofgeoag", "uoft", "xodwxm", com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsListByParentMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsListByParentMockTests.java new file mode 100644 index 0000000000000..ed6fcafe15c40 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadataVersionsListByParentMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadataVersion; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionMetadataVersionsListByParentMockTests { + @Test + public void testListByParent() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"parentDisplayName\":\"unycwztlvvwsnm\",\"solutionTemplateVersionId\":\"kyjtrepw\",\"schemaId\":\"fkcauxu\",\"dynamicConfigurationVersionId\":\"vcp\",\"configurationStatus\":\"ConfigurationPending\"},\"id\":\"fu\",\"name\":\"kclbtxluevsol\",\"type\":\"wil\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.solutionMetadataVersions() + .listByParent("zplusdekpdzzms", "gpgvokyejidbdq", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasGetWithResponseMockTests.java new file mode 100644 index 0000000000000..84c35378c0ce1 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasGetWithResponseMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadata; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionMetadatasGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"displayName\":\"krhd\",\"solutionTemplateId\":\"xbeuuqu\",\"latestVersion\":\"zwtjwwguzytijc\",\"currentVersion\":\"nondegjdyd\"},\"id\":\"kkkbjuckcatuqbh\",\"name\":\"owcnxtpz\",\"type\":\"lyseidtoak\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + SolutionMetadata response = manager.solutionMetadatas() + .getWithResponse("eo", "pajtfeyvkbd", com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasListByParentMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasListByParentMockTests.java new file mode 100644 index 0000000000000..5fd976b9fbd31 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionMetadatasListByParentMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SolutionMetadata; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionMetadatasListByParentMockTests { + @Test + public void testListByParent() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"displayName\":\"tgrhz\",\"solutionTemplateId\":\"fdpfawrptvcsht\",\"latestVersion\":\"tzc\",\"currentVersion\":\"bqgdird\"},\"id\":\"m\",\"name\":\"zjgcfjfx\",\"type\":\"bwjjirmuydgf\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.solutionMetadatas().listByParent("t", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionPropertiesTests.java index 3e6c70cebc55c..bb83ad9cb6c06 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionPropertiesTests.java @@ -11,7 +11,7 @@ public final class SolutionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionProperties model = BinaryData.fromString( - "{\"solutionTemplateId\":\"mz\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"ab\",\"latestConfigRevision\":\"q\",\"isConfigured\":false}],\"provisioningState\":\"Failed\"}") + "{\"solutionTemplateId\":\"krsgsgb\",\"displayName\":\"uzqgnjdgkynsc\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"hzvhxnkomtkubo\",\"latestConfigRevision\":\"ppnvdxz\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"ihfrbbcevqa\",\"latestConfigRevision\":\"tltdhlfkqojpy\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"gtrd\",\"latestConfigRevision\":\"nifmzzsdymbrnysu\",\"isConfigured\":false}],\"provisioningState\":\"Failed\"}") .toObject(SolutionProperties.class); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemaInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemaInnerTests.java new file mode 100644 index 0000000000000..a479053b326fe --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemaInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionSchemaInner; + +public final class SolutionSchemaInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionSchemaInner model = BinaryData.fromString( + "{\"properties\":{\"value\":\"\\\"dataqjpnqnoowsbed\\\"\",\"level\":\"rexkxbhxvucn\",\"templateUniqueIdentifier\":\"gmnhjevd\",\"provisioningState\":\"Deleting\"},\"eTag\":\"ajsvk\",\"id\":\"mqozzkivy\",\"name\":\"jrliiz\",\"type\":\"ixlqfhefkwabsolr\"}") + .toObject(SolutionSchemaInner.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemaListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemaListResultTests.java new file mode 100644 index 0000000000000..9793b35bf3db0 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemaListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.implementation.models.SolutionSchemaListResult; +import org.junit.jupiter.api.Assertions; + +public final class SolutionSchemaListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionSchemaListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"value\":\"\\\"dataytllhdyzmy\\\"\",\"level\":\"zexnxakcky\",\"templateUniqueIdentifier\":\"mxgaabjkdtfohfao\",\"provisioningState\":\"Failed\"},\"eTag\":\"iwr\",\"id\":\"wdyjqurykcrrauee\",\"name\":\"csuehogddac\",\"type\":\"cbgydlqi\"},{\"properties\":{\"value\":\"\\\"datamhmpty\\\"\",\"level\":\"lkfbnrqqxvztpb\",\"templateUniqueIdentifier\":\"nqtxjtomalswbnf\",\"provisioningState\":\"Failed\"},\"eTag\":\"ldwq\",\"id\":\"sfzygleexahv\",\"name\":\"ywhsbrcarycs\",\"type\":\"j\"},{\"properties\":{\"value\":\"\\\"dataoaqa\\\"\",\"level\":\"vehzp\",\"templateUniqueIdentifier\":\"mk\",\"provisioningState\":\"Failed\"},\"eTag\":\"mpfu\",\"id\":\"be\",\"name\":\"gybpmfb\",\"type\":\"ununm\"}],\"nextLink\":\"krvfyifkdschl\"}") + .toObject(SolutionSchemaListResult.class); + Assertions.assertEquals("krvfyifkdschl", model.nextLink()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemaPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemaPropertiesTests.java new file mode 100644 index 0000000000000..96a1c78c94a82 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemaPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.SolutionSchemaProperties; + +public final class SolutionSchemaPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionSchemaProperties model = BinaryData.fromString( + "{\"value\":\"\\\"dataqqlmgnlqxsjxte\\\"\",\"level\":\"xhvuqbozool\",\"templateUniqueIdentifier\":\"ocarkuzlbcnndt\",\"provisioningState\":\"Initialized\"}") + .toObject(SolutionSchemaProperties.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasGetWithResponseMockTests.java new file mode 100644 index 0000000000000..57862b0743159 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasGetWithResponseMockTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SolutionSchema; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionSchemasGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"value\":\"\\\"datavzcgulaebxia\\\"\",\"level\":\"suptessjlwjt\",\"templateUniqueIdentifier\":\"pv\",\"provisioningState\":\"Initialized\"},\"eTag\":\"xgxqayga\",\"id\":\"kvc\",\"name\":\"wpvlcjbvyezjwjkq\",\"type\":\"nbwhiieyoz\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + SolutionSchema response = manager.solutionSchemas() + .getWithResponse("tpkimskhnkkhbykr", "mhrcmelycpgoku", "hrvybn", "bnvmshfuzzlapy", + com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasListBySolutionTemplateVersionMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasListBySolutionTemplateVersionMockTests.java new file mode 100644 index 0000000000000..65b82afe178f3 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionSchemasListBySolutionTemplateVersionMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.SolutionSchema; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionSchemasListBySolutionTemplateVersionMockTests { + @Test + public void testListBySolutionTemplateVersion() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"value\":\"\\\"datauuciagvkdlhu\\\"\",\"level\":\"klbjoafmjfe\",\"templateUniqueIdentifier\":\"lvoepknarse\",\"provisioningState\":\"InProgress\"},\"eTag\":\"sqoacb\",\"id\":\"dgsapleqfg\",\"name\":\"xenvszgl\",\"type\":\"yakeszsu\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.solutionSchemas() + .listBySolutionTemplateVersion("r", "wfpucwnbcgqe", "gzjvbxqcbgoa", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateInnerTests.java index 3e533f2bffedd..763719850e35b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateInnerTests.java @@ -17,31 +17,31 @@ public final class SolutionTemplateInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionTemplateInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"snjvcdwxlpqekftn\",\"capabilities\":[\"tjsyin\",\"wfqatmtd\"],\"latestVersion\":\"mdvy\",\"state\":\"inactive\",\"enableExternalValidation\":true,\"provisioningState\":\"Canceled\"},\"eTag\":\"ywkbirryuzhlhkjo\",\"location\":\"vqqaatjinrvgo\",\"tags\":{\"x\":\"fiibfggjioolvr\",\"kkgll\":\"v\",\"uhbxvvy\":\"wjygvjayvblmhvk\"},\"id\":\"gsopbyrqufegxu\",\"name\":\"wz\",\"type\":\"bnhlmc\"}") + "{\"properties\":{\"uniqueIdentifier\":\"xgpnr\",\"description\":\"govfgpikqmhhaow\",\"capabilities\":[\"mzvupor\",\"zdfuydzvkfvxcnqm\"],\"latestVersion\":\"psw\",\"state\":\"active\",\"enableExternalValidation\":false,\"provisioningState\":\"Initialized\"},\"eTag\":\"gdhbe\",\"location\":\"qkzszuwiwtglxxh\",\"tags\":{\"icrmnzh\":\"pg\",\"vpqcb\":\"gmqgjs\",\"s\":\"rmbodt\",\"jfrnxousxauzlwv\":\"qgvriibakcla\"},\"id\":\"gmwohqfzizvu\",\"name\":\"mmkjsvthnwpztek\",\"type\":\"vmribiat\"}") .toObject(SolutionTemplateInner.class); - Assertions.assertEquals("vqqaatjinrvgo", model.location()); - Assertions.assertEquals("fiibfggjioolvr", model.tags().get("x")); - Assertions.assertEquals("snjvcdwxlpqekftn", model.properties().description()); - Assertions.assertEquals("tjsyin", model.properties().capabilities().get(0)); - Assertions.assertEquals(ResourceState.INACTIVE, model.properties().state()); - Assertions.assertTrue(model.properties().enableExternalValidation()); + Assertions.assertEquals("qkzszuwiwtglxxh", model.location()); + Assertions.assertEquals("pg", model.tags().get("icrmnzh")); + Assertions.assertEquals("govfgpikqmhhaow", model.properties().description()); + Assertions.assertEquals("mzvupor", model.properties().capabilities().get(0)); + Assertions.assertEquals(ResourceState.ACTIVE, model.properties().state()); + Assertions.assertFalse(model.properties().enableExternalValidation()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SolutionTemplateInner model = new SolutionTemplateInner().withLocation("vqqaatjinrvgo") - .withTags(mapOf("x", "fiibfggjioolvr", "kkgll", "v", "uhbxvvy", "wjygvjayvblmhvk")) - .withProperties(new SolutionTemplateProperties().withDescription("snjvcdwxlpqekftn") - .withCapabilities(Arrays.asList("tjsyin", "wfqatmtd")) - .withState(ResourceState.INACTIVE) - .withEnableExternalValidation(true)); + SolutionTemplateInner model = new SolutionTemplateInner().withLocation("qkzszuwiwtglxxh") + .withTags(mapOf("icrmnzh", "pg", "vpqcb", "gmqgjs", "s", "rmbodt", "jfrnxousxauzlwv", "qgvriibakcla")) + .withProperties(new SolutionTemplateProperties().withDescription("govfgpikqmhhaow") + .withCapabilities(Arrays.asList("mzvupor", "zdfuydzvkfvxcnqm")) + .withState(ResourceState.ACTIVE) + .withEnableExternalValidation(false)); model = BinaryData.fromObject(model).toObject(SolutionTemplateInner.class); - Assertions.assertEquals("vqqaatjinrvgo", model.location()); - Assertions.assertEquals("fiibfggjioolvr", model.tags().get("x")); - Assertions.assertEquals("snjvcdwxlpqekftn", model.properties().description()); - Assertions.assertEquals("tjsyin", model.properties().capabilities().get(0)); - Assertions.assertEquals(ResourceState.INACTIVE, model.properties().state()); - Assertions.assertTrue(model.properties().enableExternalValidation()); + Assertions.assertEquals("qkzszuwiwtglxxh", model.location()); + Assertions.assertEquals("pg", model.tags().get("icrmnzh")); + Assertions.assertEquals("govfgpikqmhhaow", model.properties().description()); + Assertions.assertEquals("mzvupor", model.properties().capabilities().get(0)); + Assertions.assertEquals(ResourceState.ACTIVE, model.properties().state()); + Assertions.assertFalse(model.properties().enableExternalValidation()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateListResultTests.java index febf6db84ae60..d504f3eadcc40 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateListResultTests.java @@ -13,14 +13,14 @@ public final class SolutionTemplateListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionTemplateListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"c\",\"capabilities\":[\"upkvipmdsc\",\"xqupevzhf\",\"totxhojujb\",\"pelmcuvhixbjxyf\"],\"latestVersion\":\"yl\",\"state\":\"active\",\"enableExternalValidation\":true,\"provisioningState\":\"Succeeded\"},\"eTag\":\"p\",\"location\":\"w\",\"tags\":{\"fpncurdo\":\"nujrywvtyl\",\"cbihwqk\":\"wiithtywub\",\"umwctondz\":\"fdntwjchrdgoih\",\"tov\":\"luudfdlwggytsb\"},\"id\":\"tgseinqfiufxqkn\",\"name\":\"irgne\",\"type\":\"ttwqmsni\"},{\"properties\":{\"description\":\"cdm\",\"capabilities\":[\"r\",\"jlpijnkrx\",\"rddh\"],\"latestVersion\":\"atiz\",\"state\":\"inactive\",\"enableExternalValidation\":false,\"provisioningState\":\"Canceled\"},\"eTag\":\"ft\",\"location\":\"qyzhf\",\"tags\":{\"lgnyhmo\":\"sgogczhonnxk\",\"h\":\"sxkkg\"},\"id\":\"rghxjb\",\"name\":\"hqxvcxgfrpdsofbs\",\"type\":\"rnsvbuswd\"},{\"properties\":{\"description\":\"yybyc\",\"capabilities\":[\"nvjsrtkfa\",\"nopqgikyzirtx\",\"yuxzejntpsewgi\",\"ilqu\"],\"latestVersion\":\"ydxtqm\",\"state\":\"active\",\"enableExternalValidation\":false,\"provisioningState\":\"Deleting\"},\"eTag\":\"ufhyaomtbgh\",\"location\":\"vgrvkffo\",\"tags\":{\"jmfxumvf\":\"hpjbib\"},\"id\":\"luyovwxnbkfezzx\",\"name\":\"cy\",\"type\":\"wzdgirujbzbo\"}],\"nextLink\":\"zzbtdcqvpniyujvi\"}") + "{\"value\":[{\"properties\":{\"uniqueIdentifier\":\"fgkmtdhern\",\"description\":\"btcjuah\",\"capabilities\":[\"qtobkauxo\",\"sh\"],\"latestVersion\":\"hwpnulaiywzejywh\",\"state\":\"inactive\",\"enableExternalValidation\":true,\"provisioningState\":\"Failed\"},\"eTag\":\"l\",\"location\":\"npdwr\",\"tags\":{\"gsnnf\":\"fgf\",\"coc\":\"yetefyp\",\"urmlmuo\":\"fjgtixrjvzuy\"},\"id\":\"olbauirop\",\"name\":\"ons\",\"type\":\"onwpnga\"},{\"properties\":{\"uniqueIdentifier\":\"nixjawrtmjfjmy\",\"description\":\"cxlzhcoxovnekh\",\"capabilities\":[\"lusfnrdtjxtxrdcq\",\"jvidttge\"],\"latestVersion\":\"slvyjtcvuwkasi\",\"state\":\"active\",\"enableExternalValidation\":true,\"provisioningState\":\"InProgress\"},\"eTag\":\"htuqfecjxe\",\"location\":\"tuhxuicb\",\"tags\":{\"wnjlxu\":\"mr\",\"jbaqehgpdoh\":\"rhwpus\",\"nwfepbnwg\":\"jqatucoigebxn\",\"jgcgbjbgdlfgtdys\":\"m\"},\"id\":\"aquflqbctqha\",\"name\":\"zjrwdkqze\",\"type\":\"yjleziunjx\"},{\"properties\":{\"uniqueIdentifier\":\"antkwcegyamlbns\",\"description\":\"qa\",\"capabilities\":[\"jvpilguooqja\",\"m\",\"itgueiookjbs\",\"hrtdtpdelq\"],\"latestVersion\":\"slmot\",\"state\":\"active\",\"enableExternalValidation\":false,\"provisioningState\":\"Failed\"},\"eTag\":\"vcjkgd\",\"location\":\"azftxejwabmdujtm\",\"tags\":{\"kyqltqsrogt\":\"pexcmjurbuhh\"},\"id\":\"wkffdjkt\",\"name\":\"ysidfvclgl\",\"type\":\"n\"},{\"properties\":{\"uniqueIdentifier\":\"jtkbusqogsfika\",\"description\":\"ians\",\"capabilities\":[\"rujtjiqxfzyjq\",\"tvwkpqhjpenu\"],\"latestVersion\":\"bqeqqekewvnqvcd\",\"state\":\"active\",\"enableExternalValidation\":false,\"provisioningState\":\"Succeeded\"},\"eTag\":\"djwnlaxpunjqi\",\"location\":\"zvvitacgxmfcs\",\"tags\":{\"tvsoxhlwntsj\":\"x\",\"uuuybnchrsziz\":\"qrsxyp\"},\"id\":\"yuel\",\"name\":\"etndnbfqyggagf\",\"type\":\"nlgmtrwahzjmu\"}],\"nextLink\":\"tb\"}") .toObject(SolutionTemplateListResult.class); - Assertions.assertEquals("w", model.value().get(0).location()); - Assertions.assertEquals("nujrywvtyl", model.value().get(0).tags().get("fpncurdo")); - Assertions.assertEquals("c", model.value().get(0).properties().description()); - Assertions.assertEquals("upkvipmdsc", model.value().get(0).properties().capabilities().get(0)); - Assertions.assertEquals(ResourceState.ACTIVE, model.value().get(0).properties().state()); + Assertions.assertEquals("npdwr", model.value().get(0).location()); + Assertions.assertEquals("fgf", model.value().get(0).tags().get("gsnnf")); + Assertions.assertEquals("btcjuah", model.value().get(0).properties().description()); + Assertions.assertEquals("qtobkauxo", model.value().get(0).properties().capabilities().get(0)); + Assertions.assertEquals(ResourceState.INACTIVE, model.value().get(0).properties().state()); Assertions.assertTrue(model.value().get(0).properties().enableExternalValidation()); - Assertions.assertEquals("zzbtdcqvpniyujvi", model.nextLink()); + Assertions.assertEquals("tb", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateMetadataTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateMetadataTests.java new file mode 100644 index 0000000000000..d164eccc7b7fb --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateMetadataTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadata; +import org.junit.jupiter.api.Assertions; + +public final class SolutionTemplateMetadataTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionTemplateMetadata model = BinaryData.fromString( + "{\"subscriptionId\":\"dchmaiubavlz\",\"resourceGroupName\":\"vgmfalkzazmgok\",\"name\":\"dgjqafkmkro\",\"version\":\"zrthqet\"}") + .toObject(SolutionTemplateMetadata.class); + Assertions.assertEquals("dchmaiubavlz", model.subscriptionId()); + Assertions.assertEquals("vgmfalkzazmgok", model.resourceGroupName()); + Assertions.assertEquals("dgjqafkmkro", model.name()); + Assertions.assertEquals("zrthqet", model.version()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SolutionTemplateMetadata model = new SolutionTemplateMetadata().withSubscriptionId("dchmaiubavlz") + .withResourceGroupName("vgmfalkzazmgok") + .withName("dgjqafkmkro") + .withVersion("zrthqet"); + model = BinaryData.fromObject(model).toObject(SolutionTemplateMetadata.class); + Assertions.assertEquals("dchmaiubavlz", model.subscriptionId()); + Assertions.assertEquals("vgmfalkzazmgok", model.resourceGroupName()); + Assertions.assertEquals("dgjqafkmkro", model.name()); + Assertions.assertEquals("zrthqet", model.version()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateMetadataUpdateTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateMetadataUpdateTests.java new file mode 100644 index 0000000000000..04c988a2f2318 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateMetadataUpdateTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateMetadataUpdate; +import org.junit.jupiter.api.Assertions; + +public final class SolutionTemplateMetadataUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SolutionTemplateMetadataUpdate model = BinaryData.fromString( + "{\"subscriptionId\":\"gsdrm\",\"resourceGroupName\":\"tjxophgerhsmv\",\"name\":\"htwzmqilr\",\"version\":\"ysfn\"}") + .toObject(SolutionTemplateMetadataUpdate.class); + Assertions.assertEquals("gsdrm", model.subscriptionId()); + Assertions.assertEquals("tjxophgerhsmv", model.resourceGroupName()); + Assertions.assertEquals("htwzmqilr", model.name()); + Assertions.assertEquals("ysfn", model.version()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SolutionTemplateMetadataUpdate model = new SolutionTemplateMetadataUpdate().withSubscriptionId("gsdrm") + .withResourceGroupName("tjxophgerhsmv") + .withName("htwzmqilr") + .withVersion("ysfn"); + model = BinaryData.fromObject(model).toObject(SolutionTemplateMetadataUpdate.class); + Assertions.assertEquals("gsdrm", model.subscriptionId()); + Assertions.assertEquals("tjxophgerhsmv", model.resourceGroupName()); + Assertions.assertEquals("htwzmqilr", model.name()); + Assertions.assertEquals("ysfn", model.version()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateParameterTests.java index ebd185bf406aa..b168baf525b85 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateParameterTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateParameterTests.java @@ -14,89 +14,115 @@ public final class SolutionTemplateParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionTemplateParameter model = BinaryData.fromString( - "{\"solutionTemplateVersionId\":\"uu\",\"solutionInstanceName\":\"fqka\",\"solutionDependencies\":[{\"solutionVersionId\":\"ipfpubji\",\"solutionTemplateId\":\"wifto\",\"solutionTemplateVersion\":\"kvpuvksgplsaknyn\",\"solutionInstanceName\":\"ynl\",\"targetId\":\"huopxodlqiynto\",\"dependencies\":[{\"solutionVersionId\":\"leosjswsrms\",\"solutionTemplateId\":\"zrpzb\",\"solutionTemplateVersion\":\"ckqqzqioxiysui\",\"solutionInstanceName\":\"ynkedyatrwyhqmib\",\"targetId\":\"hwit\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"yynpcdpumnzgmwz\",\"solutionTemplateId\":\"abikns\",\"solutionTemplateVersion\":\"gj\",\"solutionInstanceName\":\"bldtlww\",\"targetId\":\"kdmtncvokotll\",\"dependencies\":[{},{}]}]},{\"solutionVersionId\":\"gsyocogj\",\"solutionTemplateId\":\"dtbnnha\",\"solutionTemplateVersion\":\"ocrkvcikh\",\"solutionInstanceName\":\"p\",\"targetId\":\"qgxqquezikyw\",\"dependencies\":[{\"solutionVersionId\":\"allatmelwuipic\",\"solutionTemplateId\":\"zkzivgvvcnay\",\"solutionTemplateVersion\":\"yrnxxmueedn\",\"solutionInstanceName\":\"dvstkw\",\"targetId\":\"tchealmf\",\"dependencies\":[{}]},{\"solutionVersionId\":\"aygdvwvgpioh\",\"solutionTemplateId\":\"xrtfudxep\",\"solutionTemplateVersion\":\"yqagvrvm\",\"solutionInstanceName\":\"k\",\"targetId\":\"ghimdblx\",\"dependencies\":[{},{},{}]}]}]}") + "{\"solutionTemplateVersionId\":\"fzg\",\"solutionInstanceName\":\"jdftuljltd\",\"solutionDependencies\":[{\"solutionVersionId\":\"mtmczuome\",\"solutionTemplateId\":\"cwwqiokn\",\"solutionTemplateVersion\":\"xmojmsvpkjp\",\"solutionInstanceName\":\"kwcf\",\"targetId\":\"ljyxgtczhe\",\"dependencies\":[{\"solutionVersionId\":\"dshmkxmaehvbbx\",\"solutionTemplateId\":\"iplt\",\"solutionTemplateVersion\":\"htba\",\"solutionInstanceName\":\"gx\",\"targetId\":\"rc\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"lyhpluodpvruud\",\"solutionTemplateId\":\"zibt\",\"solutionTemplateVersion\":\"stgktst\",\"solutionInstanceName\":\"xeclzedqbcvhzlhp\",\"targetId\":\"dqkdlwwqfbu\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"trqjfsmlmbtx\",\"solutionTemplateId\":\"gfwsrtaw\",\"solutionTemplateVersion\":\"ezbrhubskh\",\"solutionInstanceName\":\"ygo\",\"targetId\":\"kkqfqjbvle\",\"dependencies\":[{},{},{},{}]},{\"solutionVersionId\":\"luiqtqzfavyvnqq\",\"solutionTemplateId\":\"aryeu\",\"solutionTemplateVersion\":\"jkqa\",\"solutionInstanceName\":\"gzslesjcbhernnti\",\"targetId\":\"djc\",\"dependencies\":[{},{},{}]}]},{\"solutionVersionId\":\"wr\",\"solutionTemplateId\":\"hwagohbuffkmrqe\",\"solutionTemplateVersion\":\"vhmxtdrjfu\",\"solutionInstanceName\":\"coebjvewzcj\",\"targetId\":\"m\",\"dependencies\":[{\"solutionVersionId\":\"guaadraufactkahz\",\"solutionTemplateId\":\"ajjziuxxpshne\",\"solutionTemplateVersion\":\"ulfgslqu\",\"solutionInstanceName\":\"wdlenrdsut\",\"targetId\":\"bazpjuohmi\",\"dependencies\":[{},{},{}]},{\"solutionVersionId\":\"norwmduvwpklvx\",\"solutionTemplateId\":\"ygdxpgpqchis\",\"solutionTemplateVersion\":\"pnnbjc\",\"solutionInstanceName\":\"gibbdaxc\",\"targetId\":\"fozauorsuk\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"qplhlvnu\",\"solutionTemplateId\":\"pzlrphw\",\"solutionTemplateVersion\":\"oldweyuqdu\",\"solutionInstanceName\":\"mnnrwr\",\"targetId\":\"ork\",\"dependencies\":[{},{}]},{\"solutionVersionId\":\"wjhhgdnhxmsivf\",\"solutionTemplateId\":\"iloxggdufiq\",\"solutionTemplateVersion\":\"ieuzaofjchvcyyy\",\"solutionInstanceName\":\"gdotcubiipuipwo\",\"targetId\":\"nmacj\",\"dependencies\":[{},{},{}]}]}]}") .toObject(SolutionTemplateParameter.class); - Assertions.assertEquals("uu", model.solutionTemplateVersionId()); - Assertions.assertEquals("fqka", model.solutionInstanceName()); - Assertions.assertEquals("ipfpubji", model.solutionDependencies().get(0).solutionVersionId()); - Assertions.assertEquals("wifto", model.solutionDependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("kvpuvksgplsaknyn", model.solutionDependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("ynl", model.solutionDependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("huopxodlqiynto", model.solutionDependencies().get(0).targetId()); - Assertions.assertEquals("leosjswsrms", + Assertions.assertEquals("fzg", model.solutionTemplateVersionId()); + Assertions.assertEquals("jdftuljltd", model.solutionInstanceName()); + Assertions.assertEquals("mtmczuome", model.solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("cwwqiokn", model.solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("xmojmsvpkjp", model.solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("kwcf", model.solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("ljyxgtczhe", model.solutionDependencies().get(0).targetId()); + Assertions.assertEquals("dshmkxmaehvbbx", model.solutionDependencies().get(0).dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("zrpzb", - model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("ckqqzqioxiysui", + Assertions.assertEquals("iplt", model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("htba", model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("ynkedyatrwyhqmib", - model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("hwit", model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("gx", model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("rc", model.solutionDependencies().get(0).dependencies().get(0).targetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SolutionTemplateParameter model - = new SolutionTemplateParameter().withSolutionTemplateVersionId("uu") - .withSolutionInstanceName("fqka") + = new SolutionTemplateParameter().withSolutionTemplateVersionId("fzg") + .withSolutionInstanceName("jdftuljltd") .withSolutionDependencies( Arrays.asList( - new SolutionDependencyParameter().withSolutionVersionId("ipfpubji") - .withSolutionTemplateId("wifto") - .withSolutionTemplateVersion("kvpuvksgplsaknyn") - .withSolutionInstanceName("ynl") - .withTargetId("huopxodlqiynto") + new SolutionDependencyParameter().withSolutionVersionId("mtmczuome") + .withSolutionTemplateId("cwwqiokn") + .withSolutionTemplateVersion("xmojmsvpkjp") + .withSolutionInstanceName("kwcf") + .withTargetId("ljyxgtczhe") .withDependencies(Arrays.asList( - new SolutionDependencyParameter().withSolutionVersionId("leosjswsrms") - .withSolutionTemplateId("zrpzb") - .withSolutionTemplateVersion("ckqqzqioxiysui") - .withSolutionInstanceName("ynkedyatrwyhqmib") - .withTargetId("hwit") + new SolutionDependencyParameter().withSolutionVersionId("dshmkxmaehvbbx") + .withSolutionTemplateId("iplt") + .withSolutionTemplateVersion("htba") + .withSolutionInstanceName("gx") + .withTargetId("rc") .withDependencies(Arrays.asList(new SolutionDependencyParameter(), new SolutionDependencyParameter(), new SolutionDependencyParameter(), new SolutionDependencyParameter())), - new SolutionDependencyParameter().withSolutionVersionId("yynpcdpumnzgmwz") - .withSolutionTemplateId("abikns") - .withSolutionTemplateVersion("gj") - .withSolutionInstanceName("bldtlww") - .withTargetId("kdmtncvokotll") + new SolutionDependencyParameter().withSolutionVersionId("lyhpluodpvruud") + .withSolutionTemplateId("zibt") + .withSolutionTemplateVersion("stgktst") + .withSolutionInstanceName("xeclzedqbcvhzlhp") + .withTargetId("dqkdlwwqfbu") .withDependencies(Arrays.asList(new SolutionDependencyParameter(), - new SolutionDependencyParameter())))), - new SolutionDependencyParameter().withSolutionVersionId("gsyocogj") - .withSolutionTemplateId("dtbnnha") - .withSolutionTemplateVersion("ocrkvcikh") - .withSolutionInstanceName("p") - .withTargetId("qgxqquezikyw") + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("trqjfsmlmbtx") + .withSolutionTemplateId("gfwsrtaw") + .withSolutionTemplateVersion("ezbrhubskh") + .withSolutionInstanceName("ygo") + .withTargetId("kkqfqjbvle") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("luiqtqzfavyvnqq") + .withSolutionTemplateId("aryeu") + .withSolutionTemplateVersion("jkqa") + .withSolutionInstanceName("gzslesjcbhernnti") + .withTargetId("djc") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())))), + new SolutionDependencyParameter().withSolutionVersionId("wr") + .withSolutionTemplateId("hwagohbuffkmrqe") + .withSolutionTemplateVersion("vhmxtdrjfu") + .withSolutionInstanceName("coebjvewzcj") + .withTargetId("m") .withDependencies(Arrays.asList( - new SolutionDependencyParameter().withSolutionVersionId("allatmelwuipic") - .withSolutionTemplateId("zkzivgvvcnay") - .withSolutionTemplateVersion("yrnxxmueedn") - .withSolutionInstanceName("dvstkw") - .withTargetId("tchealmf") - .withDependencies(Arrays.asList(new SolutionDependencyParameter())), - new SolutionDependencyParameter().withSolutionVersionId("aygdvwvgpioh") - .withSolutionTemplateId("xrtfudxep") - .withSolutionTemplateVersion("yqagvrvm") - .withSolutionInstanceName("k") - .withTargetId("ghimdblx") + new SolutionDependencyParameter().withSolutionVersionId("guaadraufactkahz") + .withSolutionTemplateId("ajjziuxxpshne") + .withSolutionTemplateVersion("ulfgslqu") + .withSolutionInstanceName("wdlenrdsut") + .withTargetId("bazpjuohmi") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("norwmduvwpklvx") + .withSolutionTemplateId("ygdxpgpqchis") + .withSolutionTemplateVersion("pnnbjc") + .withSolutionInstanceName("gibbdaxc") + .withTargetId("fozauorsuk") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("qplhlvnu") + .withSolutionTemplateId("pzlrphw") + .withSolutionTemplateVersion("oldweyuqdu") + .withSolutionInstanceName("mnnrwr") + .withTargetId("ork") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("wjhhgdnhxmsivf") + .withSolutionTemplateId("iloxggdufiq") + .withSolutionTemplateVersion("ieuzaofjchvcyyy") + .withSolutionInstanceName("gdotcubiipuipwo") + .withTargetId("nmacj") .withDependencies(Arrays.asList(new SolutionDependencyParameter(), new SolutionDependencyParameter(), new SolutionDependencyParameter())))))); model = BinaryData.fromObject(model).toObject(SolutionTemplateParameter.class); - Assertions.assertEquals("uu", model.solutionTemplateVersionId()); - Assertions.assertEquals("fqka", model.solutionInstanceName()); - Assertions.assertEquals("ipfpubji", model.solutionDependencies().get(0).solutionVersionId()); - Assertions.assertEquals("wifto", model.solutionDependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("kvpuvksgplsaknyn", model.solutionDependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("ynl", model.solutionDependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("huopxodlqiynto", model.solutionDependencies().get(0).targetId()); - Assertions.assertEquals("leosjswsrms", + Assertions.assertEquals("fzg", model.solutionTemplateVersionId()); + Assertions.assertEquals("jdftuljltd", model.solutionInstanceName()); + Assertions.assertEquals("mtmczuome", model.solutionDependencies().get(0).solutionVersionId()); + Assertions.assertEquals("cwwqiokn", model.solutionDependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("xmojmsvpkjp", model.solutionDependencies().get(0).solutionTemplateVersion()); + Assertions.assertEquals("kwcf", model.solutionDependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("ljyxgtczhe", model.solutionDependencies().get(0).targetId()); + Assertions.assertEquals("dshmkxmaehvbbx", model.solutionDependencies().get(0).dependencies().get(0).solutionVersionId()); - Assertions.assertEquals("zrpzb", - model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); - Assertions.assertEquals("ckqqzqioxiysui", + Assertions.assertEquals("iplt", model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateId()); + Assertions.assertEquals("htba", model.solutionDependencies().get(0).dependencies().get(0).solutionTemplateVersion()); - Assertions.assertEquals("ynkedyatrwyhqmib", - model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); - Assertions.assertEquals("hwit", model.solutionDependencies().get(0).dependencies().get(0).targetId()); + Assertions.assertEquals("gx", model.solutionDependencies().get(0).dependencies().get(0).solutionInstanceName()); + Assertions.assertEquals("rc", model.solutionDependencies().get(0).dependencies().get(0).targetId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatePropertiesTests.java index 8904fa82ad7a9..d87dfb304cf55 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatePropertiesTests.java @@ -14,23 +14,23 @@ public final class SolutionTemplatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionTemplateProperties model = BinaryData.fromString( - "{\"description\":\"l\",\"capabilities\":[\"ngitvgbmhrixkwm\"],\"latestVersion\":\"jejveg\",\"state\":\"inactive\",\"enableExternalValidation\":false,\"provisioningState\":\"InProgress\"}") + "{\"uniqueIdentifier\":\"plucfotangcfhnyk\",\"description\":\"cugswvxwlmzqw\",\"capabilities\":[\"tx\",\"jmxmcuqud\",\"cvclxynpdk\",\"gfabuiyjibuzphdu\"],\"latestVersion\":\"eiknpgo\",\"state\":\"inactive\",\"enableExternalValidation\":false,\"provisioningState\":\"InProgress\"}") .toObject(SolutionTemplateProperties.class); - Assertions.assertEquals("l", model.description()); - Assertions.assertEquals("ngitvgbmhrixkwm", model.capabilities().get(0)); + Assertions.assertEquals("cugswvxwlmzqw", model.description()); + Assertions.assertEquals("tx", model.capabilities().get(0)); Assertions.assertEquals(ResourceState.INACTIVE, model.state()); Assertions.assertFalse(model.enableExternalValidation()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SolutionTemplateProperties model = new SolutionTemplateProperties().withDescription("l") - .withCapabilities(Arrays.asList("ngitvgbmhrixkwm")) + SolutionTemplateProperties model = new SolutionTemplateProperties().withDescription("cugswvxwlmzqw") + .withCapabilities(Arrays.asList("tx", "jmxmcuqud", "cvclxynpdk", "gfabuiyjibuzphdu")) .withState(ResourceState.INACTIVE) .withEnableExternalValidation(false); model = BinaryData.fromObject(model).toObject(SolutionTemplateProperties.class); - Assertions.assertEquals("l", model.description()); - Assertions.assertEquals("ngitvgbmhrixkwm", model.capabilities().get(0)); + Assertions.assertEquals("cugswvxwlmzqw", model.description()); + Assertions.assertEquals("tx", model.capabilities().get(0)); Assertions.assertEquals(ResourceState.INACTIVE, model.state()); Assertions.assertFalse(model.enableExternalValidation()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateUpdatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateUpdatePropertiesTests.java index 247ad8cc26211..c0243ce56307c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateUpdatePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateUpdatePropertiesTests.java @@ -14,24 +14,23 @@ public final class SolutionTemplateUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionTemplateUpdateProperties model = BinaryData.fromString( - "{\"description\":\"jxeznoigbrnjwmw\",\"capabilities\":[\"bsazejjoqka\",\"fhsxttaugz\",\"nfaazpxdtnkdmkq\",\"jlwuenvrkp\"],\"state\":\"inactive\",\"enableExternalValidation\":false}") + "{\"description\":\"artvti\",\"capabilities\":[\"efchn\",\"n\"],\"state\":\"inactive\",\"enableExternalValidation\":false}") .toObject(SolutionTemplateUpdateProperties.class); - Assertions.assertEquals("jxeznoigbrnjwmw", model.description()); - Assertions.assertEquals("bsazejjoqka", model.capabilities().get(0)); + Assertions.assertEquals("artvti", model.description()); + Assertions.assertEquals("efchn", model.capabilities().get(0)); Assertions.assertEquals(ResourceState.INACTIVE, model.state()); Assertions.assertFalse(model.enableExternalValidation()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SolutionTemplateUpdateProperties model - = new SolutionTemplateUpdateProperties().withDescription("jxeznoigbrnjwmw") - .withCapabilities(Arrays.asList("bsazejjoqka", "fhsxttaugz", "nfaazpxdtnkdmkq", "jlwuenvrkp")) - .withState(ResourceState.INACTIVE) - .withEnableExternalValidation(false); + SolutionTemplateUpdateProperties model = new SolutionTemplateUpdateProperties().withDescription("artvti") + .withCapabilities(Arrays.asList("efchn", "n")) + .withState(ResourceState.INACTIVE) + .withEnableExternalValidation(false); model = BinaryData.fromObject(model).toObject(SolutionTemplateUpdateProperties.class); - Assertions.assertEquals("jxeznoigbrnjwmw", model.description()); - Assertions.assertEquals("bsazejjoqka", model.capabilities().get(0)); + Assertions.assertEquals("artvti", model.description()); + Assertions.assertEquals("efchn", model.capabilities().get(0)); Assertions.assertEquals(ResourceState.INACTIVE, model.state()); Assertions.assertFalse(model.enableExternalValidation()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateUpdateTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateUpdateTests.java index e7b5027186590..d7b1d15d29ed3 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateUpdateTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateUpdateTests.java @@ -17,29 +17,28 @@ public final class SolutionTemplateUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionTemplateUpdate model = BinaryData.fromString( - "{\"tags\":{\"rrvqa\":\"xccbdreaxhcex\",\"svfycxzbfv\":\"qkghtpwijnhy\",\"ronzmyhgfip\":\"owvrvmtgjqppyos\",\"waekrrjreafxtsgu\":\"sxkm\"},\"properties\":{\"description\":\"glikkxwslolb\",\"capabilities\":[\"uzlm\",\"felfktg\"],\"state\":\"active\",\"enableExternalValidation\":false}}") + "{\"tags\":{\"d\":\"tozipqwj\",\"ylkmqp\":\"urrxxgewpktv\",\"hlfbcgwgc\":\"o\"},\"properties\":{\"description\":\"oebqinjipn\",\"capabilities\":[\"ujqlafcbahh\",\"zpofoiyjwpfilk\",\"kkholvdndvia\"],\"state\":\"inactive\",\"enableExternalValidation\":false}}") .toObject(SolutionTemplateUpdate.class); - Assertions.assertEquals("xccbdreaxhcex", model.tags().get("rrvqa")); - Assertions.assertEquals("glikkxwslolb", model.properties().description()); - Assertions.assertEquals("uzlm", model.properties().capabilities().get(0)); - Assertions.assertEquals(ResourceState.ACTIVE, model.properties().state()); + Assertions.assertEquals("tozipqwj", model.tags().get("d")); + Assertions.assertEquals("oebqinjipn", model.properties().description()); + Assertions.assertEquals("ujqlafcbahh", model.properties().capabilities().get(0)); + Assertions.assertEquals(ResourceState.INACTIVE, model.properties().state()); Assertions.assertFalse(model.properties().enableExternalValidation()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SolutionTemplateUpdate model = new SolutionTemplateUpdate() - .withTags(mapOf("rrvqa", "xccbdreaxhcex", "svfycxzbfv", "qkghtpwijnhy", "ronzmyhgfip", "owvrvmtgjqppyos", - "waekrrjreafxtsgu", "sxkm")) - .withProperties(new SolutionTemplateUpdateProperties().withDescription("glikkxwslolb") - .withCapabilities(Arrays.asList("uzlm", "felfktg")) - .withState(ResourceState.ACTIVE) - .withEnableExternalValidation(false)); + SolutionTemplateUpdate model + = new SolutionTemplateUpdate().withTags(mapOf("d", "tozipqwj", "ylkmqp", "urrxxgewpktv", "hlfbcgwgc", "o")) + .withProperties(new SolutionTemplateUpdateProperties().withDescription("oebqinjipn") + .withCapabilities(Arrays.asList("ujqlafcbahh", "zpofoiyjwpfilk", "kkholvdndvia")) + .withState(ResourceState.INACTIVE) + .withEnableExternalValidation(false)); model = BinaryData.fromObject(model).toObject(SolutionTemplateUpdate.class); - Assertions.assertEquals("xccbdreaxhcex", model.tags().get("rrvqa")); - Assertions.assertEquals("glikkxwslolb", model.properties().description()); - Assertions.assertEquals("uzlm", model.properties().capabilities().get(0)); - Assertions.assertEquals(ResourceState.ACTIVE, model.properties().state()); + Assertions.assertEquals("tozipqwj", model.tags().get("d")); + Assertions.assertEquals("oebqinjipn", model.properties().description()); + Assertions.assertEquals("ujqlafcbahh", model.properties().capabilities().get(0)); + Assertions.assertEquals(ResourceState.INACTIVE, model.properties().state()); Assertions.assertFalse(model.properties().enableExternalValidation()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionInnerTests.java index 1795cd5a9d1cf..7baffa9a48dd5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionInnerTests.java @@ -8,6 +8,7 @@ import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.models.OrchestratorType; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; @@ -16,20 +17,24 @@ public final class SolutionTemplateVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionTemplateVersionInner model = BinaryData.fromString( - "{\"properties\":{\"configurations\":\"aivwitqscywu\",\"specification\":{},\"orchestratorType\":\"TO\",\"provisioningState\":\"Failed\"},\"eTag\":\"czbwemhairsbr\",\"id\":\"dwmsweypqwd\",\"name\":\"ggicccnxqhue\",\"type\":\"mkttlstvlzywem\"}") + "{\"properties\":{\"configurations\":\"\\\"datazhyrmewipmve\\\"\",\"specification\":{\"xundxgk\":\"\\\"dataxukuqgsj\\\"\",\"muvgp\":\"\\\"datatwzhhzjhfjmhv\\\"\",\"uzjyihsasbhudypo\":\"\\\"datauneqsxvmhf\\\"\",\"slynsqyrpfoo\":\"\\\"datayue\\\"\"},\"orchestratorType\":\"TO\",\"internalState\":\"PendingValidation\",\"provisioningState\":\"InProgress\"},\"eTag\":\"jnygq\",\"id\":\"fwqzdz\",\"name\":\"tilaxh\",\"type\":\"fhqlyvi\"}") .toObject(SolutionTemplateVersionInner.class); - Assertions.assertEquals("aivwitqscywu", model.properties().configurations()); Assertions.assertEquals(OrchestratorType.TO, model.properties().orchestratorType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SolutionTemplateVersionInner model = new SolutionTemplateVersionInner() - .withProperties(new SolutionTemplateVersionProperties().withConfigurations("aivwitqscywu") - .withSpecification(mapOf()) - .withOrchestratorType(OrchestratorType.TO)); + SolutionTemplateVersionInner model + = new SolutionTemplateVersionInner() + .withProperties(new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("\"datazhyrmewipmve\"".getBytes(StandardCharsets.UTF_8))) + .withSpecification(mapOf("xundxgk", + BinaryData.fromBytes("\"dataxukuqgsj\"".getBytes(StandardCharsets.UTF_8)), "muvgp", + BinaryData.fromBytes("\"datatwzhhzjhfjmhv\"".getBytes(StandardCharsets.UTF_8)), + "uzjyihsasbhudypo", BinaryData.fromBytes("\"datauneqsxvmhf\"".getBytes(StandardCharsets.UTF_8)), + "slynsqyrpfoo", BinaryData.fromBytes("\"datayue\"".getBytes(StandardCharsets.UTF_8)))) + .withOrchestratorType(OrchestratorType.TO)); model = BinaryData.fromObject(model).toObject(SolutionTemplateVersionInner.class); - Assertions.assertEquals("aivwitqscywu", model.properties().configurations()); Assertions.assertEquals(OrchestratorType.TO, model.properties().orchestratorType()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionListResultTests.java index 8f05b7f99825f..4334dda90287d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionListResultTests.java @@ -13,10 +13,9 @@ public final class SolutionTemplateVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionTemplateVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"configurations\":\"sfgytguslfead\",\"specification\":{},\"orchestratorType\":\"TO\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"hejhzisx\",\"id\":\"pelol\",\"name\":\"pv\",\"type\":\"srp\"},{\"properties\":{\"configurations\":\"ujzra\",\"specification\":{},\"orchestratorType\":\"TO\",\"provisioningState\":\"Deleting\"},\"eTag\":\"ftswibyrcdlbhsh\",\"id\":\"p\",\"name\":\"acstwityk\",\"type\":\"evxccedcp\"},{\"properties\":{\"configurations\":\"dyodnwzxltj\",\"specification\":{},\"orchestratorType\":\"TO\",\"provisioningState\":\"Initialized\"},\"eTag\":\"ugcxnavvwxq\",\"id\":\"y\",\"name\":\"unyowxwl\",\"type\":\"djrkvfgbvfvpd\"}],\"nextLink\":\"daciz\"}") + "{\"value\":[{\"properties\":{\"configurations\":\"\\\"datanxpmyyefrpmpdnq\\\"\",\"specification\":{\"ao\":\"\\\"dataka\\\"\",\"npqfrtqlkzmeg\":\"\\\"datavmm\\\"\",\"zyqdrfegcealzx\":\"\\\"dataitgvkx\\\"\"},\"orchestratorType\":\"TO\",\"internalState\":\"ValidatedWithoutSchema\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"oyqhlwig\",\"id\":\"vbkbxgomf\",\"name\":\"juwasqvdaeyyguxa\",\"type\":\"jsqzhzbezk\"},{\"properties\":{\"configurations\":\"\\\"datasidxasicdd\\\"\",\"specification\":{\"ah\":\"\\\"datavjskgfmoc\\\"\",\"kzyb\":\"\\\"dataqgatjeaahhvjhhn\\\"\",\"yxkyxvx\":\"\\\"datajjidjk\\\"\",\"lxunsmjbnkppxy\":\"\\\"datavblbjednljlageua\\\"\"},\"orchestratorType\":\"TO\",\"internalState\":\"ValidatedWithoutSchema\",\"provisioningState\":\"Deleting\"},\"eTag\":\"izzgwkln\",\"id\":\"mffeycxcktpi\",\"name\":\"merteeammxqiek\",\"type\":\"kzddrtkgdojbmxva\"}],\"nextLink\":\"efdeesve\"}") .toObject(SolutionTemplateVersionListResult.class); - Assertions.assertEquals("sfgytguslfead", model.value().get(0).properties().configurations()); Assertions.assertEquals(OrchestratorType.TO, model.value().get(0).properties().orchestratorType()); - Assertions.assertEquals("daciz", model.nextLink()); + Assertions.assertEquals("efdeesve", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionPropertiesTests.java index 74cc92aaae65a..f532ada1af609 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionPropertiesTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.OrchestratorType; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; @@ -15,19 +16,19 @@ public final class SolutionTemplateVersionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionTemplateVersionProperties model = BinaryData.fromString( - "{\"configurations\":\"zrncsdt\",\"specification\":{},\"orchestratorType\":\"TO\",\"provisioningState\":\"InProgress\"}") + "{\"configurations\":\"\\\"datauwivkxoy\\\"\",\"specification\":{\"vcpwpgclrc\":\"\\\"datanbixxrti\\\"\"},\"orchestratorType\":\"TO\",\"internalState\":\"ValidatedWithoutSchema\",\"provisioningState\":\"Deleting\"}") .toObject(SolutionTemplateVersionProperties.class); - Assertions.assertEquals("zrncsdt", model.configurations()); Assertions.assertEquals(OrchestratorType.TO, model.orchestratorType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SolutionTemplateVersionProperties model = new SolutionTemplateVersionProperties().withConfigurations("zrncsdt") - .withSpecification(mapOf()) + SolutionTemplateVersionProperties model = new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("\"datauwivkxoy\"".getBytes(StandardCharsets.UTF_8))) + .withSpecification( + mapOf("vcpwpgclrc", BinaryData.fromBytes("\"datanbixxrti\"".getBytes(StandardCharsets.UTF_8)))) .withOrchestratorType(OrchestratorType.TO); model = BinaryData.fromObject(model).toObject(SolutionTemplateVersionProperties.class); - Assertions.assertEquals("zrncsdt", model.configurations()); Assertions.assertEquals(OrchestratorType.TO, model.orchestratorType()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionWithUpdateTypeInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionWithUpdateTypeInnerTests.java index 315157ba3c21d..009a0158baa5d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionWithUpdateTypeInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionWithUpdateTypeInnerTests.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.workloadorchestration.models.OrchestratorType; import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; import com.azure.resourcemanager.workloadorchestration.models.UpdateType; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; @@ -18,27 +19,27 @@ public final class SolutionTemplateVersionWithUpdateTypeInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionTemplateVersionWithUpdateTypeInner model = BinaryData.fromString( - "{\"updateType\":\"Major\",\"version\":\"bqaays\",\"solutionTemplateVersion\":{\"properties\":{\"configurations\":\"ixqtn\",\"specification\":{},\"orchestratorType\":\"TO\",\"provisioningState\":\"Deleting\"},\"eTag\":\"fffiak\",\"id\":\"pqqmted\",\"name\":\"tmmjihyeozph\",\"type\":\"wau\"}}") + "{\"updateType\":\"Minor\",\"version\":\"jqirwrw\",\"solutionTemplateVersion\":{\"properties\":{\"configurations\":\"\\\"dataxffi\\\"\",\"specification\":{\"ozqvbubqmam\":\"\\\"dataxwrsnew\\\"\"},\"orchestratorType\":\"TO\",\"internalState\":\"ValidatedWithoutSchema\",\"provisioningState\":\"Initialized\"},\"eTag\":\"gaztt\",\"id\":\"o\",\"name\":\"dvmfqhppub\",\"type\":\"w\"}}") .toObject(SolutionTemplateVersionWithUpdateTypeInner.class); - Assertions.assertEquals(UpdateType.MAJOR, model.updateType()); - Assertions.assertEquals("bqaays", model.version()); - Assertions.assertEquals("ixqtn", model.solutionTemplateVersion().properties().configurations()); + Assertions.assertEquals(UpdateType.MINOR, model.updateType()); + Assertions.assertEquals("jqirwrw", model.version()); Assertions.assertEquals(OrchestratorType.TO, model.solutionTemplateVersion().properties().orchestratorType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SolutionTemplateVersionWithUpdateTypeInner model - = new SolutionTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) - .withVersion("bqaays") - .withSolutionTemplateVersion(new SolutionTemplateVersionInner() - .withProperties(new SolutionTemplateVersionProperties().withConfigurations("ixqtn") - .withSpecification(mapOf()) - .withOrchestratorType(OrchestratorType.TO))); + SolutionTemplateVersionWithUpdateTypeInner model = new SolutionTemplateVersionWithUpdateTypeInner() + .withUpdateType(UpdateType.MINOR) + .withVersion("jqirwrw") + .withSolutionTemplateVersion( + new SolutionTemplateVersionInner().withProperties(new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("\"dataxffi\"".getBytes(StandardCharsets.UTF_8))) + .withSpecification( + mapOf("ozqvbubqmam", BinaryData.fromBytes("\"dataxwrsnew\"".getBytes(StandardCharsets.UTF_8)))) + .withOrchestratorType(OrchestratorType.TO))); model = BinaryData.fromObject(model).toObject(SolutionTemplateVersionWithUpdateTypeInner.class); - Assertions.assertEquals(UpdateType.MAJOR, model.updateType()); - Assertions.assertEquals("bqaays", model.version()); - Assertions.assertEquals("ixqtn", model.solutionTemplateVersion().properties().configurations()); + Assertions.assertEquals(UpdateType.MINOR, model.updateType()); + Assertions.assertEquals("jqirwrw", model.version()); Assertions.assertEquals(OrchestratorType.TO, model.solutionTemplateVersion().properties().orchestratorType()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsCreateOrUpdateMockTests.java new file mode 100644 index 0000000000000..05bda2db9798c --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsCreateOrUpdateMockTests.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; +import com.azure.resourcemanager.workloadorchestration.models.OrchestratorType; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersion; +import com.azure.resourcemanager.workloadorchestration.models.SolutionTemplateVersionProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class SolutionTemplateVersionsCreateOrUpdateMockTests { + @Test + public void testCreateOrUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"configurations\":\"\\\"datax\\\"\",\"specification\":{\"rkepos\":\"\\\"datamsvvylj\\\"\"},\"orchestratorType\":\"TO\",\"internalState\":\"ValidatedWithSchema\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"ctwjwdsdlzm\",\"id\":\"erxxxoteehkhowgo\",\"name\":\"vvh\",\"type\":\"owpcbapnpxraqawb\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + WorkloadOrchestrationManager manager = WorkloadOrchestrationManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + SolutionTemplateVersion response + = manager.solutionTemplateVersions() + .define("ohrvmz") + .withExistingSolutionTemplate("mcxqqxmyzklao", "n") + .withProperties(new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("\"dataazad\"".getBytes(StandardCharsets.UTF_8))) + .withSpecification(mapOf("khjqjpvbaihxjtg", + BinaryData.fromBytes("\"dataznllaslk\"".getBytes(StandardCharsets.UTF_8)), "roigbsfsgsaenwld", + BinaryData.fromBytes("\"datagtaiywbq\"".getBytes(StandardCharsets.UTF_8)), "jc", + BinaryData.fromBytes("\"datamhljqlxspm\"".getBytes(StandardCharsets.UTF_8)), "hsxrznmgsdaluyc", + BinaryData.fromBytes("\"dataryldsxeb\"".getBytes(StandardCharsets.UTF_8)))) + .withOrchestratorType(OrchestratorType.TO)) + .create(); + + Assertions.assertEquals(OrchestratorType.TO, response.properties().orchestratorType()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsGetWithResponseMockTests.java index cde4aaaf5da61..009cc4bb82b68 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class SolutionTemplateVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"configurations\":\"hg\",\"specification\":{},\"orchestratorType\":\"TO\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"jolgjyyxpvels\",\"id\":\"rqz\",\"name\":\"vxoqe\",\"type\":\"ntxwaljglzob\"}"; + = "{\"properties\":{\"configurations\":\"\\\"datazx\\\"\",\"specification\":{\"dmhweqjfyxydgto\":\"\\\"databkhxsdplaum\\\"\"},\"orchestratorType\":\"TO\",\"internalState\":\"ValidatedWithSchema\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"gwzpvxak\",\"id\":\"hpsesrf\",\"name\":\"amqiydvxcgdhy\",\"type\":\"goqg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SolutionTemplateVersion response = manager.solutionTemplateVersions() - .getWithResponse("aodetv", "hkxdxuwsaifmc", "nosbz", com.azure.core.util.Context.NONE) + .getWithResponse("ngojfsqebuuxjx", "fxfjwp", "kktpmbmxbmbr", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("hg", response.properties().configurations()); Assertions.assertEquals(OrchestratorType.TO, response.properties().orchestratorType()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsListBySolutionTemplateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsListBySolutionTemplateMockTests.java index cffbdf4e0d685..0b6a551eb35ff 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsListBySolutionTemplateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplateVersionsListBySolutionTemplateMockTests.java @@ -23,7 +23,7 @@ public final class SolutionTemplateVersionsListBySolutionTemplateMockTests { @Test public void testListBySolutionTemplate() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"configurations\":\"fjrqpjiyr\",\"specification\":{},\"orchestratorType\":\"TO\",\"provisioningState\":\"Canceled\"},\"eTag\":\"wmzwdfkbnrzorpdl\",\"id\":\"qctqjfg\",\"name\":\"xsaetg\",\"type\":\"dgvpyig\"}]}"; + = "{\"value\":[{\"properties\":{\"configurations\":\"\\\"datatdahneaoovtyjzti\\\"\",\"specification\":{\"uklajvcfoc\":\"\\\"datawjlofzekfsrm\\\"\",\"kwxnhwhhnoyrza\":\"\\\"datahapejov\\\"\"},\"orchestratorType\":\"TO\",\"internalState\":\"PendingValidation\",\"provisioningState\":\"Failed\"},\"eTag\":\"envjeateaxxc\",\"id\":\"oxdjxldnaryy\",\"name\":\"nzkdolrndwdbvxvz\",\"type\":\"ledoyqxlunkft\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,9 +33,8 @@ public void testListBySolutionTemplate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.solutionTemplateVersions() - .listBySolutionTemplate("qwaafrqulhm", "yqbhd", com.azure.core.util.Context.NONE); + .listBySolutionTemplate("oyqyxyjrcbqpb", "spglq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("fjrqpjiyr", response.iterator().next().properties().configurations()); Assertions.assertEquals(OrchestratorType.TO, response.iterator().next().properties().orchestratorType()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateOrUpdateMockTests.java index e912a8c151503..995cb87c90d59 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateOrUpdateMockTests.java @@ -26,7 +26,7 @@ public final class SolutionTemplatesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"xlqfh\",\"capabilities\":[\"kwabsolronqq\"],\"latestVersion\":\"gn\",\"state\":\"inactive\",\"enableExternalValidation\":false,\"provisioningState\":\"Succeeded\"},\"eTag\":\"lexhv\",\"location\":\"b\",\"tags\":{\"zqocarku\":\"o\",\"nx\":\"lbcnndt\",\"llhdyzm\":\"wqy\",\"nxakckyw\":\"ckze\"},\"id\":\"mxgaabjkdtfohfao\",\"name\":\"zvkiwrsiwdy\",\"type\":\"quryk\"}"; + = "{\"properties\":{\"uniqueIdentifier\":\"vlo\",\"description\":\"yhigqkzjuqwqaj\",\"capabilities\":[\"zxpixhyo\"],\"latestVersion\":\"nfdbgsoscienezf\",\"state\":\"active\",\"enableExternalValidation\":false,\"provisioningState\":\"Succeeded\"},\"eTag\":\"bpjnrtekwwnt\",\"location\":\"opmdudsyiu\",\"tags\":{\"ouergaghp\":\"vktjhffecqkoq\",\"gyedzfzqi\":\"zxkpyehhfdyld\",\"a\":\"uqhtdereuno\",\"mxrfomckew\":\"zwhpjlwyxedz\"},\"id\":\"my\",\"name\":\"fopxf\",\"type\":\"jt\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,21 +36,21 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SolutionTemplate response = manager.solutionTemplates() - .define("azyqbxyxoyfp") - .withRegion("yvp") - .withExistingResourceGroup("t") - .withTags(mapOf("nrexkxbhxv", "qjpnqnoowsbed", "nfa", "cnulgmnhjevdy")) - .withProperties(new SolutionTemplateProperties().withDescription("qi") - .withCapabilities(Arrays.asList("zxlhdjzqdcadwv", "sozjiihj", "iybmrzoep")) + .define("dwgtqcumecsaa") + .withRegion("vvbq") + .withExistingResourceGroup("fatgawphnski") + .withTags(mapOf("qx", "mpe", "bn", "iqasif", "jkht", "nstlpwqpjn", "ztsm", "psvyouweuiyxfw")) + .withProperties(new SolutionTemplateProperties().withDescription("hzhrbkhtm") + .withCapabilities(Arrays.asList("wiuasfg", "gucyhfaimqvdruo", "kgyfpeoehgfmqm")) .withState(ResourceState.ACTIVE) .withEnableExternalValidation(false)) .create(); - Assertions.assertEquals("b", response.location()); - Assertions.assertEquals("o", response.tags().get("zqocarku")); - Assertions.assertEquals("xlqfh", response.properties().description()); - Assertions.assertEquals("kwabsolronqq", response.properties().capabilities().get(0)); - Assertions.assertEquals(ResourceState.INACTIVE, response.properties().state()); + Assertions.assertEquals("opmdudsyiu", response.location()); + Assertions.assertEquals("vktjhffecqkoq", response.tags().get("ouergaghp")); + Assertions.assertEquals("yhigqkzjuqwqaj", response.properties().description()); + Assertions.assertEquals("zxpixhyo", response.properties().capabilities().get(0)); + Assertions.assertEquals(ResourceState.ACTIVE, response.properties().state()); Assertions.assertFalse(response.properties().enableExternalValidation()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateVersionMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateVersionMockTests.java index 0b489bd4e270c..ad8ffb8109088 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateVersionMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesCreateVersionMockTests.java @@ -9,6 +9,7 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionInner; import com.azure.resourcemanager.workloadorchestration.fluent.models.SolutionTemplateVersionWithUpdateTypeInner; @@ -28,7 +29,7 @@ public final class SolutionTemplatesCreateVersionMockTests { @Test public void testCreateVersion() throws Exception { String responseStr - = "{\"properties\":{\"configurations\":\"jsllfryvd\",\"specification\":{},\"orchestratorType\":\"TO\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"cfrgnawbabgfbkt\",\"id\":\"mfczl\",\"name\":\"syqkfrbzgowox\",\"type\":\"mj\"}"; + = "{\"properties\":{\"configurations\":\"\\\"datafnqh\\\"\",\"specification\":{\"tyalh\":\"\\\"datasnosnqliwkmzojf\\\"\"},\"orchestratorType\":\"TO\",\"internalState\":\"ValidatedWithoutSchema\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"bjbhrpgiqsttc\",\"id\":\"rcmmaixpqj\",\"name\":\"wifhbksldttohq\",\"type\":\"lna\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,16 +39,20 @@ public void testCreateVersion() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SolutionTemplateVersion response = manager.solutionTemplates() - .createVersion("zknxkv", "cxetyvkunmignoh", - new SolutionTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.MINOR) - .withVersion("qo") - .withSolutionTemplateVersion(new SolutionTemplateVersionInner() - .withProperties(new SolutionTemplateVersionProperties().withConfigurations("wpin") - .withSpecification(mapOf()) + .createVersion("z", "canzb", + new SolutionTemplateVersionWithUpdateTypeInner().withUpdateType(UpdateType.MAJOR) + .withVersion("uyckyvnensmu") + .withSolutionTemplateVersion( + new SolutionTemplateVersionInner().withProperties(new SolutionTemplateVersionProperties() + .withConfigurations(BinaryData.fromBytes("\"datawjbct\"".getBytes(StandardCharsets.UTF_8))) + .withSpecification(mapOf("ujqjtotdxp", + BinaryData.fromBytes("\"datap\"".getBytes(StandardCharsets.UTF_8)), "wuusiecktybh", + BinaryData.fromBytes("\"datascsl\"".getBytes(StandardCharsets.UTF_8)), "d", + BinaryData.fromBytes("\"datauxidhhxomilddxj\"".getBytes(StandardCharsets.UTF_8)), + "qrslaate", BinaryData.fromBytes("\"datagxwjwil\"".getBytes(StandardCharsets.UTF_8)))) .withOrchestratorType(OrchestratorType.TO))), com.azure.core.util.Context.NONE); - Assertions.assertEquals("jsllfryvd", response.properties().configurations()); Assertions.assertEquals(OrchestratorType.TO, response.properties().orchestratorType()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesGetByResourceGroupWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesGetByResourceGroupWithResponseMockTests.java index 7d2de2a5de719..e72c266b4071f 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesGetByResourceGroupWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesGetByResourceGroupWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class SolutionTemplatesGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"l\",\"capabilities\":[\"qqa\",\"dmkxwxdcvjwcy\",\"iakeciqc\"],\"latestVersion\":\"rtui\",\"state\":\"active\",\"enableExternalValidation\":true,\"provisioningState\":\"Initialized\"},\"eTag\":\"mpzhzzwvywrgyngy\",\"location\":\"rpxncaki\",\"tags\":{\"lmf\":\"ndjrkclamggl\",\"ykglt\":\"jdoq\",\"tlgflwfgz\":\"gxhqfgqkayejs\"},\"id\":\"iucijjcea\",\"name\":\"lijjjrtvam\",\"type\":\"a\"}"; + = "{\"properties\":{\"uniqueIdentifier\":\"lxrkgjnmzpasla\",\"description\":\"xjfiuofpieid\",\"capabilities\":[\"vssqywjopackyhy\"],\"latestVersion\":\"ikmfn\",\"state\":\"active\",\"enableExternalValidation\":true,\"provisioningState\":\"Initialized\"},\"eTag\":\"j\",\"location\":\"izwgsoriobijeiyd\",\"tags\":{\"ybriop\":\"ynhbokayrg\",\"igsioctqkm\":\"weoftnorw\",\"xvzfffhtjnwos\":\"ja\",\"zqfcwrriomxee\":\"tfjxtvlx\"},\"id\":\"wyhjmbjiqegmxdbs\",\"name\":\"hc\",\"type\":\"hpyvdkgdet\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SolutionTemplate response = manager.solutionTemplates() - .getByResourceGroupWithResponse("aqqilzdcduwjoed", "ngucaifpaurww", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("pspfeylqlo", "vvujex", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("rpxncaki", response.location()); - Assertions.assertEquals("ndjrkclamggl", response.tags().get("lmf")); - Assertions.assertEquals("l", response.properties().description()); - Assertions.assertEquals("qqa", response.properties().capabilities().get(0)); + Assertions.assertEquals("izwgsoriobijeiyd", response.location()); + Assertions.assertEquals("ynhbokayrg", response.tags().get("ybriop")); + Assertions.assertEquals("xjfiuofpieid", response.properties().description()); + Assertions.assertEquals("vssqywjopackyhy", response.properties().capabilities().get(0)); Assertions.assertEquals(ResourceState.ACTIVE, response.properties().state()); Assertions.assertTrue(response.properties().enableExternalValidation()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListByResourceGroupMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListByResourceGroupMockTests.java index 0d53f23614285..501d1e6c60216 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListByResourceGroupMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListByResourceGroupMockTests.java @@ -23,7 +23,7 @@ public final class SolutionTemplatesListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"rvxisimjceagbj\",\"capabilities\":[\"lsumywzashx\"],\"latestVersion\":\"noy\",\"state\":\"active\",\"enableExternalValidation\":false,\"provisioningState\":\"InProgress\"},\"eTag\":\"znclkfkeebgv\",\"location\":\"e\",\"tags\":{\"gflqqbtnyjp\":\"oqujlyegqavn\",\"baevwjcnkottl\":\"lxdbfvabmvms\",\"zwjiqullq\":\"uhvajmailfemjjza\"},\"id\":\"bdmvrscmqerndbr\",\"name\":\"yeofltfnnxrkad\",\"type\":\"fynn\"}]}"; + = "{\"value\":[{\"properties\":{\"uniqueIdentifier\":\"iqikvllr\",\"description\":\"tpmglxkoikmtr\",\"capabilities\":[\"rqkzawbunmpak\",\"wzlweeprn\"],\"latestVersion\":\"zltkaszfj\",\"state\":\"inactive\",\"enableExternalValidation\":true,\"provisioningState\":\"Initialized\"},\"eTag\":\"apgrcqe\",\"location\":\"vrdjomln\",\"tags\":{\"dls\":\"v\",\"gzancoinmphy\":\"lxkqesdfeds\",\"e\":\"cqidkltvdhqnufbx\",\"ntojovfnybydhuih\":\"i\"},\"id\":\"ouwudhuaorh\",\"name\":\"kehwvumosqirca\",\"type\":\"qprlobruge\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,13 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.solutionTemplates().listByResourceGroup("ajcxnyqgxhl", com.azure.core.util.Context.NONE); + = manager.solutionTemplates().listByResourceGroup("h", com.azure.core.util.Context.NONE); - Assertions.assertEquals("e", response.iterator().next().location()); - Assertions.assertEquals("oqujlyegqavn", response.iterator().next().tags().get("gflqqbtnyjp")); - Assertions.assertEquals("rvxisimjceagbj", response.iterator().next().properties().description()); - Assertions.assertEquals("lsumywzashx", response.iterator().next().properties().capabilities().get(0)); - Assertions.assertEquals(ResourceState.ACTIVE, response.iterator().next().properties().state()); - Assertions.assertFalse(response.iterator().next().properties().enableExternalValidation()); + Assertions.assertEquals("vrdjomln", response.iterator().next().location()); + Assertions.assertEquals("v", response.iterator().next().tags().get("dls")); + Assertions.assertEquals("tpmglxkoikmtr", response.iterator().next().properties().description()); + Assertions.assertEquals("rqkzawbunmpak", response.iterator().next().properties().capabilities().get(0)); + Assertions.assertEquals(ResourceState.INACTIVE, response.iterator().next().properties().state()); + Assertions.assertTrue(response.iterator().next().properties().enableExternalValidation()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListMockTests.java index aafeee334a6fa..77bc56356bbdd 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionTemplatesListMockTests.java @@ -23,7 +23,7 @@ public final class SolutionTemplatesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"ui\",\"capabilities\":[\"ri\",\"fohyk\",\"kxbbcbrwjiutgnj\"],\"latestVersion\":\"beewoi\",\"state\":\"active\",\"enableExternalValidation\":false,\"provisioningState\":\"Initialized\"},\"eTag\":\"yrsrziuctixgb\",\"location\":\"uifr\",\"tags\":{\"parybjufpt\":\"aapezkiswqjmdghs\",\"daswvpp\":\"jczjnciuiyqv\",\"rr\":\"sqqzlgcndhz\",\"uww\":\"cfsrhkhgsn\"},\"id\":\"pphefsbzx\",\"name\":\"bzxomeik\",\"type\":\"clwzacnmwpfsu\"}]}"; + = "{\"value\":[{\"properties\":{\"uniqueIdentifier\":\"jkjyczcmtagela\",\"description\":\"dyolje\",\"capabilities\":[\"xqfmzsizzhravrcj\",\"jymgqbgcxhn\",\"xgzxlermkmer\",\"hskirhnp\"],\"latestVersion\":\"kcbkfukdlj\",\"state\":\"inactive\",\"enableExternalValidation\":false,\"provisioningState\":\"Deleting\"},\"eTag\":\"shkp\",\"location\":\"yaloowwzizznyufp\",\"tags\":{\"gufy\":\"ti\",\"iyvndjokgwes\":\"fdk\",\"zlpejtznxlueaujq\":\"mzqhrqp\"},\"id\":\"bgsimwejlwbkbp\",\"name\":\"zobdwbcp\",\"type\":\"aswkuhydtnaczkf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,11 +34,11 @@ public void testList() throws Exception { PagedIterable response = manager.solutionTemplates().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("uifr", response.iterator().next().location()); - Assertions.assertEquals("aapezkiswqjmdghs", response.iterator().next().tags().get("parybjufpt")); - Assertions.assertEquals("ui", response.iterator().next().properties().description()); - Assertions.assertEquals("ri", response.iterator().next().properties().capabilities().get(0)); - Assertions.assertEquals(ResourceState.ACTIVE, response.iterator().next().properties().state()); + Assertions.assertEquals("yaloowwzizznyufp", response.iterator().next().location()); + Assertions.assertEquals("ti", response.iterator().next().tags().get("gufy")); + Assertions.assertEquals("dyolje", response.iterator().next().properties().description()); + Assertions.assertEquals("xqfmzsizzhravrcj", response.iterator().next().properties().capabilities().get(0)); + Assertions.assertEquals(ResourceState.INACTIVE, response.iterator().next().properties().state()); Assertions.assertFalse(response.iterator().next().properties().enableExternalValidation()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionUpdatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionUpdatePropertiesTests.java index b1428008d2170..c8194717a9788 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionUpdatePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionUpdatePropertiesTests.java @@ -10,7 +10,9 @@ public final class SolutionUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SolutionUpdateProperties model = BinaryData.fromString("{}").toObject(SolutionUpdateProperties.class); + SolutionUpdateProperties model = BinaryData.fromString( + "{\"solutionTemplateId\":\"oisrvhmgorffu\",\"displayName\":\"scvwmzhwplef\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"xilcbtgnhnzey\",\"latestConfigRevision\":\"xtjjfzqlqhycav\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"ggxdb\",\"latestConfigRevision\":\"esmi\",\"isConfigured\":true}],\"provisioningState\":\"Deleting\"}") + .toObject(SolutionUpdateProperties.class); } @org.junit.jupiter.api.Test diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionUpdateTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionUpdateTests.java index 62ded4ab2a8e7..4584b95cf0c21 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionUpdateTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionUpdateTests.java @@ -11,7 +11,9 @@ public final class SolutionUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SolutionUpdate model = BinaryData.fromString("{\"properties\":{}}").toObject(SolutionUpdate.class); + SolutionUpdate model = BinaryData.fromString( + "{\"properties\":{\"solutionTemplateId\":\"vdff\",\"displayName\":\"afqr\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"aspavehhr\",\"latestConfigRevision\":\"kbunzoz\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"hcxgkmoyx\",\"latestConfigRevision\":\"dyuib\",\"isConfigured\":false},{\"solutionTemplateVersion\":\"fdn\",\"latestConfigRevision\":\"zydvfvf\",\"isConfigured\":false}],\"provisioningState\":\"Deleting\"}}") + .toObject(SolutionUpdate.class); } @org.junit.jupiter.api.Test diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionParameterTests.java index 7e3a22dfb98a9..a8a7339c2b542 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionParameterTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionParameterTests.java @@ -12,14 +12,14 @@ public final class SolutionVersionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SolutionVersionParameter model - = BinaryData.fromString("{\"solutionVersionId\":\"hhyxxrw\"}").toObject(SolutionVersionParameter.class); - Assertions.assertEquals("hhyxxrw", model.solutionVersionId()); + = BinaryData.fromString("{\"solutionVersionId\":\"m\"}").toObject(SolutionVersionParameter.class); + Assertions.assertEquals("m", model.solutionVersionId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SolutionVersionParameter model = new SolutionVersionParameter().withSolutionVersionId("hhyxxrw"); + SolutionVersionParameter model = new SolutionVersionParameter().withSolutionVersionId("m"); model = BinaryData.fromObject(model).toObject(SolutionVersionParameter.class); - Assertions.assertEquals("hhyxxrw", model.solutionVersionId()); + Assertions.assertEquals("m", model.solutionVersionId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionSnapshotTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionSnapshotTests.java index cc6420e018025..a84f3afe9d046 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionSnapshotTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionVersionSnapshotTests.java @@ -11,9 +11,9 @@ public final class SolutionVersionSnapshotTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SolutionVersionSnapshot model - = BinaryData.fromString("{\"solutionVersionId\":\"ambtrnegvm\",\"specification\":{}}") - .toObject(SolutionVersionSnapshot.class); - Assertions.assertEquals("ambtrnegvm", model.solutionVersionId()); + SolutionVersionSnapshot model = BinaryData.fromString( + "{\"solutionVersionId\":\"hcsrlzknmzl\",\"specification\":{\"phcnzqtpj\":\"\\\"dataupdwv\\\"\",\"iwdcxsmlzzhzd\":\"\\\"datamqrhvthl\\\"\",\"n\":\"\\\"dataxetlgydlhqv\\\"\",\"afiqgeaarbgjekg\":\"\\\"datapxy\\\"\"}}") + .toObject(SolutionVersionSnapshot.class); + Assertions.assertEquals("hcsrlzknmzl", model.solutionVersionId()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsCreateOrUpdateMockTests.java index 99187369a57d6..6ee369d8ea46a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsCreateOrUpdateMockTests.java @@ -24,7 +24,7 @@ public final class SolutionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"solutionTemplateId\":\"lss\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"omevtfycn\",\"latestConfigRevision\":\"bvgjcodkkgj\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"ytssikiz\",\"latestConfigRevision\":\"cufqbvntnrgmqs\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"hcekxgnlykm\",\"latestConfigRevision\":\"cpwzv\",\"isConfigured\":true}],\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"qdtiwlwxlb\",\"type\":\"EdgeZone\"},\"eTag\":\"qba\",\"id\":\"icqchygtv\",\"name\":\"byjanep\",\"type\":\"bdpkxyqvgx\"}"; + = "{\"properties\":{\"solutionTemplateId\":\"et\",\"displayName\":\"flwtjdt\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"e\",\"latestConfigRevision\":\"ooy\",\"isConfigured\":false},{\"solutionTemplateVersion\":\"uxdtzcq\",\"latestConfigRevision\":\"psdudgco\",\"isConfigured\":true}],\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"hxlantolaml\",\"type\":\"EdgeZone\"},\"eTag\":\"uxkqllczipvwdt\",\"id\":\"kzdqiqdlratrkwxo\",\"name\":\"uwxsuykznhrfgsl\",\"type\":\"lhpryjfzihuio\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,13 +34,14 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Solution response = manager.solutions() - .define("lbnwtpcpahp") - .withExistingTarget("uyu", "atvlmbjwcolbm") + .define("pcjycb") + .withExistingTarget("woxfaxdtnqifbsa", "roiauesugmo") .withProperties(new SolutionProperties()) - .withExtendedLocation(new ExtendedLocation().withName("kaobrl").withType(ExtendedLocationType.EDGE_ZONE)) + .withExtendedLocation( + new ExtendedLocation().withName("oduifvulxfa").withType(ExtendedLocationType.CUSTOM_LOCATION)) .create(); - Assertions.assertEquals("qdtiwlwxlb", response.extendedLocation().name()); + Assertions.assertEquals("hxlantolaml", response.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsGetWithResponseMockTests.java index 0b4d2c8b70abe..506ff32218845 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class SolutionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"solutionTemplateId\":\"fqz\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"njyixh\",\"latestConfigRevision\":\"fratqxmbjroumzz\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"al\",\"latestConfigRevision\":\"jrhuzgf\",\"isConfigured\":false}],\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"pusllywpv\",\"type\":\"CustomLocation\"},\"eTag\":\"tzbpdbollgry\",\"id\":\"iuas\",\"name\":\"growsoc\",\"type\":\"equygdjboqgrmtq\"}"; + = "{\"properties\":{\"solutionTemplateId\":\"re\",\"displayName\":\"zlp\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"mxmdutzfkgilnou\",\"latestConfigRevision\":\"ccgndjgdprig\",\"isConfigured\":false}],\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"qfcbuul\",\"type\":\"EdgeZone\"},\"eTag\":\"flqjfshtu\",\"id\":\"yohi\",\"name\":\"imwdcsklkqnqvki\",\"type\":\"nmbzmecuy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Solution response = manager.solutions() - .getWithResponse("blgmokzkltrfowtd", "rfmvlihcvjdrqcrj", "dhftukvhdxlwy", com.azure.core.util.Context.NONE) + .getWithResponse("vfiybxqichgyb", "zdqekivycpzcvd", "zulrqt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pusllywpv", response.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); + Assertions.assertEquals("qfcbuul", response.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsListByTargetMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsListByTargetMockTests.java index 9f82a81a918a7..5a89afa43dd23 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsListByTargetMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/SolutionsListByTargetMockTests.java @@ -23,7 +23,7 @@ public final class SolutionsListByTargetMockTests { @Test public void testListByTarget() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"solutionTemplateId\":\"disczskos\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"iqazugamxzkr\",\"latestConfigRevision\":\"coiisbamnppcce\",\"isConfigured\":false},{\"solutionTemplateVersion\":\"ztdsbeza\",\"latestConfigRevision\":\"yfukzxuizhyhnepk\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"tiarxqiubxduk\",\"latestConfigRevision\":\"cpxdazvd\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"tmmkosz\",\"latestConfigRevision\":\"dblnsntrp\",\"isConfigured\":false}],\"provisioningState\":\"InProgress\"},\"extendedLocation\":{\"name\":\"ofkbtf\",\"type\":\"CustomLocation\"},\"eTag\":\"lbnld\",\"id\":\"cbhhez\",\"name\":\"quwusq\",\"type\":\"utrpbr\"}]}"; + = "{\"value\":[{\"properties\":{\"solutionTemplateId\":\"zxplgtpvdvatlz\",\"displayName\":\"schnzrsbkkzov\",\"availableSolutionTemplateVersions\":[{\"solutionTemplateVersion\":\"mnfmfwsxafofuw\",\"latestConfigRevision\":\"rimm\",\"isConfigured\":true},{\"solutionTemplateVersion\":\"zwdehkkmvhz\",\"latestConfigRevision\":\"ovanyrva\",\"isConfigured\":false}],\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"l\",\"type\":\"EdgeZone\"},\"eTag\":\"wikfyaqandmym\",\"id\":\"oqjum\",\"name\":\"vsfbp\",\"type\":\"vzopaxmfmvsm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,9 @@ public void testListByTarget() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.solutions().listByTarget("kqevadrmmw", "uawvcmjzk", com.azure.core.util.Context.NONE); + = manager.solutions().listByTarget("zwimbzayspz", "rietvfp", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ofkbtf", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, - response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("l", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.iterator().next().extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageMapTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageMapTests.java new file mode 100644 index 0000000000000..d919dff6d5458 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageMapTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.StageMap; + +public final class StageMapTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + StageMap model = BinaryData.fromString( + "{\"displayState\":\"fbkp\",\"stage\":\"Deployment\",\"status\":\"InProgress\",\"startTime\":\"2021-02-08T07:21:06Z\",\"endTime\":\"2021-08-31T09:32:10Z\",\"childStages\":[{\"displayState\":\"hjdauwhvylwz\",\"stage\":\"Publish\",\"status\":\"InProgress\",\"startTime\":\"2021-06-28T08:45:27Z\",\"endTime\":\"2021-11-19T04:43:06Z\",\"childStages\":[{\"displayState\":\"bm\",\"stage\":\"Unstaging\",\"status\":\"Pending\",\"startTime\":\"2021-02-28T06:32:30Z\",\"endTime\":\"2020-12-27T11:29:17Z\",\"childStages\":[{\"displayState\":\"lve\",\"stage\":\"Staging\",\"status\":\"InProgress\"},{\"displayState\":\"upjm\",\"stage\":\"ExternalValidation\",\"status\":\"InProgress\"},{\"displayState\":\"xobbcswsrt\",\"stage\":\"Configuration\",\"status\":\"Completed\"},{\"displayState\":\"plrbpbewtghf\",\"stage\":\"Staging\",\"status\":\"InProgress\"}]},{\"displayState\":\"c\",\"stage\":\"Deployment\",\"status\":\"None\",\"startTime\":\"2021-01-14T04:37:45Z\",\"endTime\":\"2021-07-29T06:02:07Z\",\"childStages\":[{\"displayState\":\"jkbegibtnmxiebww\",\"stage\":\"Uninstallation\",\"status\":\"Completed\"},{\"displayState\":\"ayqcgw\",\"stage\":\"Publish\",\"status\":\"Failed\"},{\"displayState\":\"j\",\"stage\":\"Deployment\",\"status\":\"Completed\"},{\"displayState\":\"wyzmhtxon\",\"stage\":\"Deployment\",\"status\":\"InProgress\"}]},{\"displayState\":\"savjcbpwxqps\",\"stage\":\"Publish\",\"status\":\"Failed\",\"startTime\":\"2021-08-07T10:24:59Z\",\"endTime\":\"2021-10-14T02:36:30Z\",\"childStages\":[{\"displayState\":\"iuhprwmdyvxqta\",\"stage\":\"Unstaging\",\"status\":\"InProgress\"},{\"displayState\":\"ww\",\"stage\":\"Uninstallation\",\"status\":\"InProgress\"}]}]},{\"displayState\":\"qbex\",\"stage\":\"Configuration\",\"status\":\"Failed\",\"startTime\":\"2021-02-15T11:45:28Z\",\"endTime\":\"2021-02-16T05:25:07Z\",\"childStages\":[{\"displayState\":\"ojvknmefqsgzvaha\",\"stage\":\"Publish\",\"status\":\"Pending\",\"startTime\":\"2021-09-18T06:45:25Z\",\"endTime\":\"2021-06-30T09:34:11Z\",\"childStages\":[{\"displayState\":\"zcjrvxdjzlmwlx\",\"stage\":\"Publish\",\"status\":\"None\"},{\"displayState\":\"gfhzovawjvzunlut\",\"stage\":\"Configuration\",\"status\":\"Completed\"},{\"displayState\":\"prnxipeil\",\"stage\":\"Configuration\",\"status\":\"None\"}]},{\"displayState\":\"uaejxdultsk\",\"stage\":\"ExternalValidation\",\"status\":\"Completed\",\"startTime\":\"2021-05-16T15:29:03Z\",\"endTime\":\"2021-10-02T03:55:11Z\",\"childStages\":[{\"displayState\":\"e\",\"stage\":\"Unstaging\",\"status\":\"Failed\"},{\"displayState\":\"pwo\",\"stage\":\"Unstaging\",\"status\":\"Failed\"},{\"displayState\":\"kfpbs\",\"stage\":\"Deployment\",\"status\":\"None\"},{\"displayState\":\"f\",\"stage\":\"Deployment\",\"status\":\"Pending\"}]},{\"displayState\":\"uusdttouwa\",\"stage\":\"Uninstallation\",\"status\":\"None\",\"startTime\":\"2021-11-05T01:57:54Z\",\"endTime\":\"2021-09-30T23:19:15Z\",\"childStages\":[{\"displayState\":\"nsmvbxwyj\",\"stage\":\"Configuration\",\"status\":\"Failed\"}]}]}]}") + .toObject(StageMap.class); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageSpecTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageSpecTests.java index 1919422f4c8d4..732c3c69588cf 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageSpecTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageSpecTests.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.workloadorchestration.models.StageSpec; import com.azure.resourcemanager.workloadorchestration.models.TaskOption; import com.azure.resourcemanager.workloadorchestration.models.TaskSpec; +import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -19,36 +20,57 @@ public final class StageSpecTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { StageSpec model = BinaryData.fromString( - "{\"name\":\"oqaqhvseufuq\",\"specification\":{},\"tasks\":[{\"name\":\"lcgqlsismj\",\"targetId\":\"rddga\",\"specification\":{}},{\"name\":\"uhiosrsju\",\"targetId\":\"fcdis\",\"specification\":{}},{\"name\":\"rnxzh\",\"targetId\":\"exrxzbujrtrhq\",\"specification\":{}},{\"name\":\"revkhgnlnzo\",\"targetId\":\"lrpiqywnc\",\"specification\":{}}],\"taskOption\":{\"concurrency\":162010613,\"errorAction\":{\"mode\":\"stopOnAnyFailure\",\"maxToleratedFailures\":1957842604}}}") + "{\"name\":\"ysfaqegplwrysh\",\"specification\":{\"gkqu\":\"\\\"datakvb\\\"\"},\"tasks\":[{\"name\":\"w\",\"targetId\":\"dacarvvlfnty\",\"specification\":{\"enazerohzrsqals\":\"\\\"datapoi\\\"\"}},{\"name\":\"kdnwqapfgsdpcve\",\"targetId\":\"mzhhkuuipldqqc\",\"specification\":{\"blhtjq\":\"\\\"datakva\\\"\",\"eh\":\"\\\"dataqyv\\\"\",\"mxhzzysevus\":\"\\\"dataa\\\"\"}},{\"name\":\"ivzrrryveimipsk\",\"targetId\":\"zatvfuzka\",\"specification\":{\"qdsmjtg\":\"\\\"datajvvruxwigsyei\\\"\"}},{\"name\":\"qgdgkkile\",\"targetId\":\"kcsmk\",\"specification\":{\"oygbdgwumgxd\":\"\\\"datawtbbaedorvvmqf\\\"\",\"bgd\":\"\\\"datadhp\\\"\",\"vjsaqwotm\":\"\\\"dataxjd\\\"\",\"xaptefhexcgjok\":\"\\\"datawllcolsr\\\"\"}}],\"taskOption\":{\"concurrency\":308186783,\"errorAction\":{\"mode\":\"silentlyContinue\",\"maxToleratedFailures\":1683273653}}}") .toObject(StageSpec.class); - Assertions.assertEquals("oqaqhvseufuq", model.name()); - Assertions.assertEquals("lcgqlsismj", model.tasks().get(0).name()); - Assertions.assertEquals("rddga", model.tasks().get(0).targetId()); - Assertions.assertEquals(162010613, model.taskOption().concurrency()); - Assertions.assertEquals(ErrorActionMode.STOP_ON_ANY_FAILURE, model.taskOption().errorAction().mode()); - Assertions.assertEquals(1957842604, model.taskOption().errorAction().maxToleratedFailures()); + Assertions.assertEquals("ysfaqegplwrysh", model.name()); + Assertions.assertEquals("w", model.tasks().get(0).name()); + Assertions.assertEquals("dacarvvlfnty", model.tasks().get(0).targetId()); + Assertions.assertEquals(308186783, model.taskOption().concurrency()); + Assertions.assertEquals(ErrorActionMode.SILENTLY_CONTINUE, model.taskOption().errorAction().mode()); + Assertions.assertEquals(1683273653, model.taskOption().errorAction().maxToleratedFailures()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { StageSpec model - = new StageSpec().withName("oqaqhvseufuq") - .withSpecification(mapOf()) - .withTasks(Arrays.asList( - new TaskSpec().withName("lcgqlsismj").withTargetId("rddga").withSpecification(mapOf()), - new TaskSpec().withName("uhiosrsju").withTargetId("fcdis").withSpecification(mapOf()), - new TaskSpec().withName("rnxzh").withTargetId("exrxzbujrtrhq").withSpecification(mapOf()), - new TaskSpec().withName("revkhgnlnzo").withTargetId("lrpiqywnc").withSpecification(mapOf()))) - .withTaskOption(new TaskOption().withConcurrency(162010613) - .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE) - .withMaxToleratedFailures(1957842604))); + = new StageSpec().withName("ysfaqegplwrysh") + .withSpecification(mapOf("gkqu", BinaryData.fromBytes("\"datakvb\"".getBytes(StandardCharsets.UTF_8)))) + .withTasks( + Arrays + .asList( + new TaskSpec().withName("w") + .withTargetId("dacarvvlfnty") + .withSpecification(mapOf("enazerohzrsqals", + BinaryData.fromBytes("\"datapoi\"".getBytes(StandardCharsets.UTF_8)))), + new TaskSpec().withName("kdnwqapfgsdpcve") + .withTargetId("mzhhkuuipldqqc") + .withSpecification(mapOf("blhtjq", + BinaryData.fromBytes("\"datakva\"".getBytes(StandardCharsets.UTF_8)), "eh", + BinaryData.fromBytes("\"dataqyv\"".getBytes(StandardCharsets.UTF_8)), "mxhzzysevus", + BinaryData.fromBytes("\"dataa\"".getBytes(StandardCharsets.UTF_8)))), + new TaskSpec() + .withName("ivzrrryveimipsk") + .withTargetId("zatvfuzka") + .withSpecification(mapOf("qdsmjtg", + BinaryData.fromBytes("\"datajvvruxwigsyei\"".getBytes(StandardCharsets.UTF_8)))), + new TaskSpec().withName("qgdgkkile") + .withTargetId("kcsmk") + .withSpecification(mapOf("oygbdgwumgxd", + BinaryData.fromBytes("\"datawtbbaedorvvmqf\"".getBytes(StandardCharsets.UTF_8)), + "bgd", BinaryData.fromBytes("\"datadhp\"".getBytes(StandardCharsets.UTF_8)), + "vjsaqwotm", BinaryData.fromBytes("\"dataxjd\"".getBytes(StandardCharsets.UTF_8)), + "xaptefhexcgjok", + BinaryData.fromBytes("\"datawllcolsr\"".getBytes(StandardCharsets.UTF_8)))))) + .withTaskOption(new TaskOption().withConcurrency(308186783) + .withErrorAction(new ErrorAction().withMode(ErrorActionMode.SILENTLY_CONTINUE) + .withMaxToleratedFailures(1683273653))); model = BinaryData.fromObject(model).toObject(StageSpec.class); - Assertions.assertEquals("oqaqhvseufuq", model.name()); - Assertions.assertEquals("lcgqlsismj", model.tasks().get(0).name()); - Assertions.assertEquals("rddga", model.tasks().get(0).targetId()); - Assertions.assertEquals(162010613, model.taskOption().concurrency()); - Assertions.assertEquals(ErrorActionMode.STOP_ON_ANY_FAILURE, model.taskOption().errorAction().mode()); - Assertions.assertEquals(1957842604, model.taskOption().errorAction().maxToleratedFailures()); + Assertions.assertEquals("ysfaqegplwrysh", model.name()); + Assertions.assertEquals("w", model.tasks().get(0).name()); + Assertions.assertEquals("dacarvvlfnty", model.tasks().get(0).targetId()); + Assertions.assertEquals(308186783, model.taskOption().concurrency()); + Assertions.assertEquals(ErrorActionMode.SILENTLY_CONTINUE, model.taskOption().errorAction().mode()); + Assertions.assertEquals(1683273653, model.taskOption().errorAction().maxToleratedFailures()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageStatusTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageStatusTests.java index 78f85385024bd..683197dd50669 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageStatusTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/StageStatusTests.java @@ -13,13 +13,13 @@ public final class StageStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { StageStatus model = BinaryData.fromString( - "{\"status\":1341207750,\"statusMessage\":\"fzsvtuikzh\",\"stage\":\"qglcfhmlrqryxynq\",\"nextstage\":\"rd\",\"errorMessage\":\"ovw\",\"isActive\":\"inactive\",\"inputs\":{},\"outputs\":{}}") + "{\"status\":104830049,\"statusMessage\":\"ujivyqlkjuvsm\",\"stage\":\"slzoyov\",\"nextstage\":\"dbpqvybefgvm\",\"errorMessage\":\"okcvtlubses\",\"isActive\":\"active\",\"inputs\":{\"nlp\":\"\\\"datartrh\\\"\"},\"outputs\":{\"bbmnwagltb\":\"\\\"datakycndzfqivjreuy\\\"\",\"ymvqdbpbhfckdvez\":\"\\\"dataoeeonqlnfwm\\\"\",\"b\":\"\\\"datarcssbzhddubbnq\\\"\"}}") .toObject(StageStatus.class); - Assertions.assertEquals(1341207750, model.status()); - Assertions.assertEquals("fzsvtuikzh", model.statusMessage()); - Assertions.assertEquals("qglcfhmlrqryxynq", model.stage()); - Assertions.assertEquals("rd", model.nextstage()); - Assertions.assertEquals("ovw", model.errorMessage()); - Assertions.assertEquals(ActiveState.INACTIVE, model.isActive()); + Assertions.assertEquals(104830049, model.status()); + Assertions.assertEquals("ujivyqlkjuvsm", model.statusMessage()); + Assertions.assertEquals("slzoyov", model.stage()); + Assertions.assertEquals("dbpqvybefgvm", model.nextstage()); + Assertions.assertEquals("okcvtlubses", model.errorMessage()); + Assertions.assertEquals(ActiveState.ACTIVE, model.isActive()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetInnerTests.java index fc3e1d0213e38..42c3034990d36 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetInnerTests.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.workloadorchestration.models.ExtendedLocationType; import com.azure.resourcemanager.workloadorchestration.models.ResourceState; import com.azure.resourcemanager.workloadorchestration.models.TargetProperties; +import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -19,47 +20,50 @@ public final class TargetInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"rbpbewtghfgblcg\",\"displayName\":\"xzvlvqhjkbegib\",\"contextId\":\"nmxiebwwaloayqc\",\"targetSpecification\":{},\"capabilities\":[\"tzjuzgwyzmhtxo\",\"gmtsavjcbpwxqpsr\"],\"hierarchyLevel\":\"nftguvriuhpr\",\"status\":{\"lastModified\":\"2021-05-29T19:52:45Z\",\"deployed\":628006410,\"expectedRunningJobId\":1392355180,\"runningJobId\":473809520,\"status\":\"iwwroyqbexrmc\",\"statusDetails\":\"bycnojvkn\",\"generation\":841332893,\"targetStatuses\":[{\"name\":\"zvahapjy\",\"status\":\"pvgqzcjrvxdjzlm\",\"componentStatuses\":[{},{},{}]},{\"name\":\"vu\",\"status\":\"hzovawjvzunlut\",\"componentStatuses\":[{}]},{\"name\":\"rnxipei\",\"status\":\"jzuaejxdultskzbb\",\"componentStatuses\":[{},{},{}]},{\"name\":\"mv\",\"status\":\"kgpwoz\",\"componentStatuses\":[{},{}]}]},\"solutionScope\":\"p\",\"state\":\"inactive\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"dxluu\",\"extendedLocation\":{\"name\":\"ttouwaboekqvkel\",\"type\":\"EdgeZone\"},\"location\":\"vbxwyjsflhh\",\"tags\":{\"joya\":\"lnjixisxya\"},\"id\":\"cslyjpk\",\"name\":\"idzyexznelixhnr\",\"type\":\"tfolhbnx\"}") + "{\"properties\":{\"description\":\"jabibsystawf\",\"displayName\":\"djpvkvpbjxbkz\",\"contextId\":\"zkdvncja\",\"targetSpecification\":{\"ffhmouwqlgzr\":\"\\\"dataurgkakmokzhjjk\\\"\",\"ikayuhqlbjbsybb\":\"\\\"datazeeyebi\\\"\",\"ldgmfpgvmpip\":\"\\\"datawrv\\\"\"},\"capabilities\":[\"ltha\",\"fxssm\"],\"hierarchyLevel\":\"u\",\"status\":{\"lastModified\":\"2021-10-23T07:29:01Z\",\"deployed\":1417218644,\"expectedRunningJobId\":1999525641,\"runningJobId\":82609235,\"status\":\"hneuyowqkd\",\"statusDetails\":\"t\",\"generation\":372277345,\"targetStatuses\":[{\"name\":\"cgpik\",\"status\":\"imejzanl\",\"componentStatuses\":[{}]},{\"name\":\"av\",\"status\":\"bzonok\",\"componentStatuses\":[{}]},{\"name\":\"q\",\"status\":\"rgz\",\"componentStatuses\":[{},{},{}]}]},\"solutionScope\":\"azszrnwoiindfpw\",\"state\":\"inactive\",\"provisioningState\":\"Deleting\"},\"eTag\":\"tlhflsjcdhszf\",\"extendedLocation\":{\"name\":\"fbgofeljagrqmqh\",\"type\":\"CustomLocation\"},\"location\":\"riiiojnalghfkv\",\"tags\":{\"owueluqh\":\"ex\",\"zkw\":\"ahhxvrh\"},\"id\":\"jgwwspughftq\",\"name\":\"xhqxujxukndxdigr\",\"type\":\"guufzd\"}") .toObject(TargetInner.class); - Assertions.assertEquals("vbxwyjsflhh", model.location()); - Assertions.assertEquals("lnjixisxya", model.tags().get("joya")); - Assertions.assertEquals("rbpbewtghfgblcg", model.properties().description()); - Assertions.assertEquals("xzvlvqhjkbegib", model.properties().displayName()); - Assertions.assertEquals("nmxiebwwaloayqc", model.properties().contextId()); - Assertions.assertEquals("tzjuzgwyzmhtxo", model.properties().capabilities().get(0)); - Assertions.assertEquals("nftguvriuhpr", model.properties().hierarchyLevel()); - Assertions.assertEquals("p", model.properties().solutionScope()); + Assertions.assertEquals("riiiojnalghfkv", model.location()); + Assertions.assertEquals("ex", model.tags().get("owueluqh")); + Assertions.assertEquals("jabibsystawf", model.properties().description()); + Assertions.assertEquals("djpvkvpbjxbkz", model.properties().displayName()); + Assertions.assertEquals("zkdvncja", model.properties().contextId()); + Assertions.assertEquals("ltha", model.properties().capabilities().get(0)); + Assertions.assertEquals("u", model.properties().hierarchyLevel()); + Assertions.assertEquals("azszrnwoiindfpw", model.properties().solutionScope()); Assertions.assertEquals(ResourceState.INACTIVE, model.properties().state()); - Assertions.assertEquals("ttouwaboekqvkel", model.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); + Assertions.assertEquals("fbgofeljagrqmqh", model.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TargetInner model = new TargetInner().withLocation("vbxwyjsflhh") - .withTags(mapOf("joya", "lnjixisxya")) - .withProperties(new TargetProperties().withDescription("rbpbewtghfgblcg") - .withDisplayName("xzvlvqhjkbegib") - .withContextId("nmxiebwwaloayqc") - .withTargetSpecification(mapOf()) - .withCapabilities(Arrays.asList("tzjuzgwyzmhtxo", "gmtsavjcbpwxqpsr")) - .withHierarchyLevel("nftguvriuhpr") - .withSolutionScope("p") + TargetInner model = new TargetInner().withLocation("riiiojnalghfkv") + .withTags(mapOf("owueluqh", "ex", "zkw", "ahhxvrh")) + .withProperties(new TargetProperties().withDescription("jabibsystawf") + .withDisplayName("djpvkvpbjxbkz") + .withContextId("zkdvncja") + .withTargetSpecification(mapOf("ffhmouwqlgzr", + BinaryData.fromBytes("\"dataurgkakmokzhjjk\"".getBytes(StandardCharsets.UTF_8)), "ikayuhqlbjbsybb", + BinaryData.fromBytes("\"datazeeyebi\"".getBytes(StandardCharsets.UTF_8)), "ldgmfpgvmpip", + BinaryData.fromBytes("\"datawrv\"".getBytes(StandardCharsets.UTF_8)))) + .withCapabilities(Arrays.asList("ltha", "fxssm")) + .withHierarchyLevel("u") + .withSolutionScope("azszrnwoiindfpw") .withState(ResourceState.INACTIVE)) .withExtendedLocation( - new ExtendedLocation().withName("ttouwaboekqvkel").withType(ExtendedLocationType.EDGE_ZONE)); + new ExtendedLocation().withName("fbgofeljagrqmqh").withType(ExtendedLocationType.CUSTOM_LOCATION)); model = BinaryData.fromObject(model).toObject(TargetInner.class); - Assertions.assertEquals("vbxwyjsflhh", model.location()); - Assertions.assertEquals("lnjixisxya", model.tags().get("joya")); - Assertions.assertEquals("rbpbewtghfgblcg", model.properties().description()); - Assertions.assertEquals("xzvlvqhjkbegib", model.properties().displayName()); - Assertions.assertEquals("nmxiebwwaloayqc", model.properties().contextId()); - Assertions.assertEquals("tzjuzgwyzmhtxo", model.properties().capabilities().get(0)); - Assertions.assertEquals("nftguvriuhpr", model.properties().hierarchyLevel()); - Assertions.assertEquals("p", model.properties().solutionScope()); + Assertions.assertEquals("riiiojnalghfkv", model.location()); + Assertions.assertEquals("ex", model.tags().get("owueluqh")); + Assertions.assertEquals("jabibsystawf", model.properties().description()); + Assertions.assertEquals("djpvkvpbjxbkz", model.properties().displayName()); + Assertions.assertEquals("zkdvncja", model.properties().contextId()); + Assertions.assertEquals("ltha", model.properties().capabilities().get(0)); + Assertions.assertEquals("u", model.properties().hierarchyLevel()); + Assertions.assertEquals("azszrnwoiindfpw", model.properties().solutionScope()); Assertions.assertEquals(ResourceState.INACTIVE, model.properties().state()); - Assertions.assertEquals("ttouwaboekqvkel", model.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); + Assertions.assertEquals("fbgofeljagrqmqh", model.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetListResultTests.java index f19a3dd4c0acd..dbae55c7e2e88 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetListResultTests.java @@ -14,19 +14,19 @@ public final class TargetListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"xclvit\",\"displayName\":\"hqzonosggbhcoh\",\"contextId\":\"wdsjnkalju\",\"targetSpecification\":{},\"capabilities\":[\"swacffgdkzz\",\"wkfvhqcrailvp\"],\"hierarchyLevel\":\"ppfufl\",\"status\":{\"lastModified\":\"2021-05-23T16:48:47Z\",\"deployed\":1982601986,\"expectedRunningJobId\":1444401866,\"runningJobId\":885184868,\"status\":\"xsaga\",\"statusDetails\":\"nihgwqapnedg\",\"generation\":1412532919,\"targetStatuses\":[{},{}]},\"solutionScope\":\"vq\",\"state\":\"inactive\",\"provisioningState\":\"InProgress\"},\"eTag\":\"cvdrhvoodsot\",\"extendedLocation\":{\"name\":\"bzdopcj\",\"type\":\"CustomLocation\"},\"location\":\"hdldwmgxcxrsl\",\"tags\":{\"qsluicp\":\"twuoegrpkhjwni\"},\"id\":\"ggkzzlvmbmpa\",\"name\":\"modfvuefywsbpfvm\",\"type\":\"yhrfouyftaakcpw\"},{\"properties\":{\"description\":\"zvqtmnubexkp\",\"displayName\":\"ksmond\",\"contextId\":\"mquxvypo\",\"targetSpecification\":{},\"capabilities\":[\"opkwhojv\",\"ajqgxy\",\"mocmbqfqvmk\",\"xozap\"],\"hierarchyLevel\":\"helxprglya\",\"status\":{\"lastModified\":\"2021-01-30T07:19:13Z\",\"deployed\":1454263457,\"expectedRunningJobId\":373907539,\"runningJobId\":1344502344,\"status\":\"rjxgciqib\",\"statusDetails\":\"osx\",\"generation\":1655789286,\"targetStatuses\":[{},{},{}]},\"solutionScope\":\"o\",\"state\":\"active\",\"provisioningState\":\"Deleting\"},\"eTag\":\"qyib\",\"extendedLocation\":{\"name\":\"wfluszdt\",\"type\":\"EdgeZone\"},\"location\":\"kwofyyvoq\",\"tags\":{\"nwashrtd\":\"iexpbtgiwbwo\",\"ulpiuj\":\"kcnqxwbpo\",\"obyu\":\"aasipqi\"},\"id\":\"erpqlpqwcciuqg\",\"name\":\"dbutauvfbtkuwhh\",\"type\":\"hykojoxafnndlpic\"}],\"nextLink\":\"o\"}") + "{\"value\":[{\"properties\":{\"description\":\"otmrfhir\",\"displayName\":\"tymoxoftp\",\"contextId\":\"piwyczuhxacpqjl\",\"targetSpecification\":{\"vlmfwdgzxulucv\":\"\\\"datayuspskas\\\"\"},\"capabilities\":[\"mrsreuzvxurisjnh\",\"ytxifqjzgxmrh\",\"blwpcesutrgj\"],\"hierarchyLevel\":\"pauutpw\",\"status\":{\"lastModified\":\"2021-06-20T00:08:29Z\",\"deployed\":1245729434,\"expectedRunningJobId\":521171059,\"runningJobId\":248529956,\"status\":\"pnfqntcyp\",\"statusDetails\":\"jv\",\"generation\":1058520064,\"targetStatuses\":[{},{}]},\"solutionScope\":\"slirciz\",\"state\":\"inactive\",\"provisioningState\":\"InProgress\"},\"eTag\":\"ceacvlhvygdy\",\"extendedLocation\":{\"name\":\"umrtwnawjsl\",\"type\":\"EdgeZone\"},\"location\":\"kojgcyzts\",\"tags\":{\"nrpxehuw\":\"nbaeqphchqn\"},\"id\":\"ykqgaifmvik\",\"name\":\"bydvkhbejdz\",\"type\":\"xcv\"}],\"nextLink\":\"rhnj\"}") .toObject(TargetListResult.class); - Assertions.assertEquals("hdldwmgxcxrsl", model.value().get(0).location()); - Assertions.assertEquals("twuoegrpkhjwni", model.value().get(0).tags().get("qsluicp")); - Assertions.assertEquals("xclvit", model.value().get(0).properties().description()); - Assertions.assertEquals("hqzonosggbhcoh", model.value().get(0).properties().displayName()); - Assertions.assertEquals("wdsjnkalju", model.value().get(0).properties().contextId()); - Assertions.assertEquals("swacffgdkzz", model.value().get(0).properties().capabilities().get(0)); - Assertions.assertEquals("ppfufl", model.value().get(0).properties().hierarchyLevel()); - Assertions.assertEquals("vq", model.value().get(0).properties().solutionScope()); + Assertions.assertEquals("kojgcyzts", model.value().get(0).location()); + Assertions.assertEquals("nbaeqphchqn", model.value().get(0).tags().get("nrpxehuw")); + Assertions.assertEquals("otmrfhir", model.value().get(0).properties().description()); + Assertions.assertEquals("tymoxoftp", model.value().get(0).properties().displayName()); + Assertions.assertEquals("piwyczuhxacpqjl", model.value().get(0).properties().contextId()); + Assertions.assertEquals("mrsreuzvxurisjnh", model.value().get(0).properties().capabilities().get(0)); + Assertions.assertEquals("pauutpw", model.value().get(0).properties().hierarchyLevel()); + Assertions.assertEquals("slirciz", model.value().get(0).properties().solutionScope()); Assertions.assertEquals(ResourceState.INACTIVE, model.value().get(0).properties().state()); - Assertions.assertEquals("bzdopcj", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("o", model.nextLink()); + Assertions.assertEquals("umrtwnawjsl", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.value().get(0).extendedLocation().type()); + Assertions.assertEquals("rhnj", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetMetadataTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetMetadataTests.java new file mode 100644 index 0000000000000..6f8c2a577cd3f --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetMetadataTests.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.TargetMetadata; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class TargetMetadataTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + TargetMetadata model = BinaryData.fromString( + "{\"capabilities\":[\"rtvaoznqni\",\"iezeagm\",\"eituugedhfpjs\"],\"targetIds\":[\"mbl\",\"yjdeolctaebfs\",\"rledjcu\"]}") + .toObject(TargetMetadata.class); + Assertions.assertEquals("rtvaoznqni", model.capabilities().get(0)); + Assertions.assertEquals("mbl", model.targetIds().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + TargetMetadata model + = new TargetMetadata().withCapabilities(Arrays.asList("rtvaoznqni", "iezeagm", "eituugedhfpjs")) + .withTargetIds(Arrays.asList("mbl", "yjdeolctaebfs", "rledjcu")); + model = BinaryData.fromObject(model).toObject(TargetMetadata.class); + Assertions.assertEquals("rtvaoznqni", model.capabilities().get(0)); + Assertions.assertEquals("mbl", model.targetIds().get(0)); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetPropertiesTests.java index 3fa3fa58e80ee..47a2ef8f25c75 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetPropertiesTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.ResourceState; import com.azure.resourcemanager.workloadorchestration.models.TargetProperties; +import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -16,34 +17,38 @@ public final class TargetPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetProperties model = BinaryData.fromString( - "{\"description\":\"nalaulppg\",\"displayName\":\"dtpnapnyiropuhp\",\"contextId\":\"gvpgy\",\"targetSpecification\":{},\"capabilities\":[\"git\",\"medjvcslynqwwncw\"],\"hierarchyLevel\":\"zhxgktrmgucn\",\"status\":{\"lastModified\":\"2021-09-22T11:03:56Z\",\"deployed\":1588610928,\"expectedRunningJobId\":1950925712,\"runningJobId\":1409884239,\"status\":\"tfdygpfqb\",\"statusDetails\":\"ceopzfqrhhuaopp\",\"generation\":1290719044,\"targetStatuses\":[{\"name\":\"ol\",\"status\":\"ahzxctobgbk\",\"componentStatuses\":[{\"name\":\"zpostmgrcfbu\",\"status\":\"mfqjhhkxbp\"},{\"name\":\"ymjhxxjyngudivkr\",\"status\":\"wbxqzvszjfau\"},{\"name\":\"fdxxivetvtcqaqtd\",\"status\":\"mcbxvwvxysl\"},{\"name\":\"hsfxoblytkb\",\"status\":\"pe\"}]},{\"name\":\"wfbkrvrns\",\"status\":\"hqjohxcrsbfova\",\"componentStatuses\":[{\"name\":\"v\",\"status\":\"hsqfsubcgjbirxbp\"}]},{\"name\":\"srfbjfdtwss\",\"status\":\"ftpvjzbexil\",\"componentStatuses\":[{\"name\":\"qqnvwpmq\",\"status\":\"ruoujmk\"},{\"name\":\"hwqytj\",\"status\":\"bnw\"}]}]},\"solutionScope\":\"wgdrjervnaenqp\",\"state\":\"inactive\",\"provisioningState\":\"Deleting\"}") + "{\"description\":\"syqtfi\",\"displayName\":\"whbotzingamv\",\"contextId\":\"phoszqz\",\"targetSpecification\":{\"ynwcvtbv\":\"\\\"datahqamvdkf\\\"\",\"pcnp\":\"\\\"dataayhmtnvyqiatkz\\\"\",\"jguq\":\"\\\"datazcjaesgvvsccy\\\"\",\"lvdnkfx\":\"\\\"datahwyg\\\"\"},\"capabilities\":[\"emdwzrmuhapfc\",\"dpsqx\",\"vpsvuoymgcce\"],\"hierarchyLevel\":\"vezrypqlmfeo\",\"status\":{\"lastModified\":\"2021-10-17T10:06:59Z\",\"deployed\":262427692,\"expectedRunningJobId\":553153301,\"runningJobId\":359384916,\"status\":\"opgxedkowepb\",\"statusDetails\":\"cr\",\"generation\":1952723756,\"targetStatuses\":[{\"name\":\"snjvcdwxlpqekftn\",\"status\":\"tjsyin\",\"componentStatuses\":[{\"name\":\"atmtdhtmdvy\",\"status\":\"ikdgszywkbir\"}]},{\"name\":\"uzhlhkjoqrv\",\"status\":\"aatjinrvgoupmfi\",\"componentStatuses\":[{\"name\":\"gjio\",\"status\":\"vrwxkv\"},{\"name\":\"k\",\"status\":\"lqwjygvjayvblm\"},{\"name\":\"k\",\"status\":\"hbxvvyhgsopbyrqu\"}]},{\"name\":\"g\",\"status\":\"vwz\",\"componentStatuses\":[{\"name\":\"lmctlpd\",\"status\":\"itvgbmhrixkwm\"},{\"name\":\"jejveg\",\"status\":\"bpnaixexccbdre\"},{\"name\":\"hcexdrrvqa\",\"status\":\"kghtpwijnh\"}]},{\"name\":\"svfycxzbfv\",\"status\":\"wvrvmtg\",\"componentStatuses\":[{\"name\":\"y\",\"status\":\"tronzmyhgfi\"},{\"name\":\"sxkm\",\"status\":\"a\"},{\"name\":\"rrjreafxtsgu\",\"status\":\"jglikkxwslolb\"},{\"name\":\"vuzlm\",\"status\":\"elfk\"}]}]},\"solutionScope\":\"plcrpwjxeznoig\",\"state\":\"inactive\",\"provisioningState\":\"Failed\"}") .toObject(TargetProperties.class); - Assertions.assertEquals("nalaulppg", model.description()); - Assertions.assertEquals("dtpnapnyiropuhp", model.displayName()); - Assertions.assertEquals("gvpgy", model.contextId()); - Assertions.assertEquals("git", model.capabilities().get(0)); - Assertions.assertEquals("zhxgktrmgucn", model.hierarchyLevel()); - Assertions.assertEquals("wgdrjervnaenqp", model.solutionScope()); + Assertions.assertEquals("syqtfi", model.description()); + Assertions.assertEquals("whbotzingamv", model.displayName()); + Assertions.assertEquals("phoszqz", model.contextId()); + Assertions.assertEquals("emdwzrmuhapfc", model.capabilities().get(0)); + Assertions.assertEquals("vezrypqlmfeo", model.hierarchyLevel()); + Assertions.assertEquals("plcrpwjxeznoig", model.solutionScope()); Assertions.assertEquals(ResourceState.INACTIVE, model.state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TargetProperties model = new TargetProperties().withDescription("nalaulppg") - .withDisplayName("dtpnapnyiropuhp") - .withContextId("gvpgy") - .withTargetSpecification(mapOf()) - .withCapabilities(Arrays.asList("git", "medjvcslynqwwncw")) - .withHierarchyLevel("zhxgktrmgucn") - .withSolutionScope("wgdrjervnaenqp") + TargetProperties model = new TargetProperties().withDescription("syqtfi") + .withDisplayName("whbotzingamv") + .withContextId("phoszqz") + .withTargetSpecification( + mapOf("ynwcvtbv", BinaryData.fromBytes("\"datahqamvdkf\"".getBytes(StandardCharsets.UTF_8)), "pcnp", + BinaryData.fromBytes("\"dataayhmtnvyqiatkz\"".getBytes(StandardCharsets.UTF_8)), "jguq", + BinaryData.fromBytes("\"datazcjaesgvvsccy\"".getBytes(StandardCharsets.UTF_8)), "lvdnkfx", + BinaryData.fromBytes("\"datahwyg\"".getBytes(StandardCharsets.UTF_8)))) + .withCapabilities(Arrays.asList("emdwzrmuhapfc", "dpsqx", "vpsvuoymgcce")) + .withHierarchyLevel("vezrypqlmfeo") + .withSolutionScope("plcrpwjxeznoig") .withState(ResourceState.INACTIVE); model = BinaryData.fromObject(model).toObject(TargetProperties.class); - Assertions.assertEquals("nalaulppg", model.description()); - Assertions.assertEquals("dtpnapnyiropuhp", model.displayName()); - Assertions.assertEquals("gvpgy", model.contextId()); - Assertions.assertEquals("git", model.capabilities().get(0)); - Assertions.assertEquals("zhxgktrmgucn", model.hierarchyLevel()); - Assertions.assertEquals("wgdrjervnaenqp", model.solutionScope()); + Assertions.assertEquals("syqtfi", model.description()); + Assertions.assertEquals("whbotzingamv", model.displayName()); + Assertions.assertEquals("phoszqz", model.contextId()); + Assertions.assertEquals("emdwzrmuhapfc", model.capabilities().get(0)); + Assertions.assertEquals("vezrypqlmfeo", model.hierarchyLevel()); + Assertions.assertEquals("plcrpwjxeznoig", model.solutionScope()); Assertions.assertEquals(ResourceState.INACTIVE, model.state()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetSnapshotTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetSnapshotTests.java index f89d1405cb29b..127d6b2034e61 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetSnapshotTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetSnapshotTests.java @@ -11,10 +11,10 @@ public final class TargetSnapshotTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - TargetSnapshot model = BinaryData - .fromString("{\"targetId\":\"eqvldspast\",\"targetSpecification\":{},\"solutionScope\":\"dmflv\"}") + TargetSnapshot model = BinaryData.fromString( + "{\"targetId\":\"lbyulidwcwvmze\",\"targetSpecification\":{\"kspzhzmtksjcit\":\"\\\"datanfhjirwgdnqzbr\\\"\"},\"solutionScope\":\"gsxcdgljplkeua\"}") .toObject(TargetSnapshot.class); - Assertions.assertEquals("eqvldspast", model.targetId()); - Assertions.assertEquals("dmflv", model.solutionScope()); + Assertions.assertEquals("lbyulidwcwvmze", model.targetId()); + Assertions.assertEquals("gsxcdgljplkeua", model.solutionScope()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetStatusTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetStatusTests.java index b1aa22cd686d2..8aec16ac28af9 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetStatusTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetStatusTests.java @@ -12,11 +12,11 @@ public final class TargetStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetStatus model = BinaryData.fromString( - "{\"name\":\"rzdzucerscdnt\",\"status\":\"vfiwjmygtdss\",\"componentStatuses\":[{\"name\":\"mweriofzpy\",\"status\":\"emwabnet\"},{\"name\":\"hszhedplvwiwu\",\"status\":\"wmbesldnkw\"}]}") + "{\"name\":\"mmji\",\"status\":\"eozphv\",\"componentStatuses\":[{\"name\":\"qncygupkvi\",\"status\":\"dscwxqupevzhf\"},{\"name\":\"otxhojujby\",\"status\":\"lmcuvhixb\"},{\"name\":\"yfwnylr\",\"status\":\"o\"},{\"name\":\"ttpkiwkkbnujrywv\",\"status\":\"lbfpncurd\"}]}") .toObject(TargetStatus.class); - Assertions.assertEquals("rzdzucerscdnt", model.name()); - Assertions.assertEquals("vfiwjmygtdss", model.status()); - Assertions.assertEquals("mweriofzpy", model.componentStatuses().get(0).name()); - Assertions.assertEquals("emwabnet", model.componentStatuses().get(0).status()); + Assertions.assertEquals("mmji", model.name()); + Assertions.assertEquals("eozphv", model.status()); + Assertions.assertEquals("qncygupkvi", model.componentStatuses().get(0).name()); + Assertions.assertEquals("dscwxqupevzhf", model.componentStatuses().get(0).status()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetUpdatePropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetUpdatePropertiesTests.java index bc945fa433e01..3046043be13d6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetUpdatePropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetUpdatePropertiesTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.ResourceState; import com.azure.resourcemanager.workloadorchestration.models.TargetUpdateProperties; +import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -16,34 +17,36 @@ public final class TargetUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetUpdateProperties model = BinaryData.fromString( - "{\"description\":\"pbttdum\",\"displayName\":\"p\",\"contextId\":\"ebmnzbtbhjpglk\",\"targetSpecification\":{},\"capabilities\":[\"neuelfphsdyhtoz\"],\"hierarchyLevel\":\"kd\",\"solutionScope\":\"wq\",\"state\":\"active\"}") + "{\"description\":\"rydxtqm\",\"displayName\":\"ox\",\"contextId\":\"ggufhyaomtb\",\"targetSpecification\":{\"pjbi\":\"\\\"dataavgrvkffovjz\\\"\",\"yo\":\"\\\"datagjmfxumvfcl\\\"\"},\"capabilities\":[\"nbkfezzxscy\",\"wzdgirujbzbo\",\"vzzbtdcq\",\"pniyujviyl\"],\"hierarchyLevel\":\"shfssnrbgyef\",\"solutionScope\":\"msgaoj\",\"state\":\"active\"}") .toObject(TargetUpdateProperties.class); - Assertions.assertEquals("pbttdum", model.description()); - Assertions.assertEquals("p", model.displayName()); - Assertions.assertEquals("ebmnzbtbhjpglk", model.contextId()); - Assertions.assertEquals("neuelfphsdyhtoz", model.capabilities().get(0)); - Assertions.assertEquals("kd", model.hierarchyLevel()); - Assertions.assertEquals("wq", model.solutionScope()); + Assertions.assertEquals("rydxtqm", model.description()); + Assertions.assertEquals("ox", model.displayName()); + Assertions.assertEquals("ggufhyaomtb", model.contextId()); + Assertions.assertEquals("nbkfezzxscy", model.capabilities().get(0)); + Assertions.assertEquals("shfssnrbgyef", model.hierarchyLevel()); + Assertions.assertEquals("msgaoj", model.solutionScope()); Assertions.assertEquals(ResourceState.ACTIVE, model.state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TargetUpdateProperties model = new TargetUpdateProperties().withDescription("pbttdum") - .withDisplayName("p") - .withContextId("ebmnzbtbhjpglk") - .withTargetSpecification(mapOf()) - .withCapabilities(Arrays.asList("neuelfphsdyhtoz")) - .withHierarchyLevel("kd") - .withSolutionScope("wq") + TargetUpdateProperties model = new TargetUpdateProperties().withDescription("rydxtqm") + .withDisplayName("ox") + .withContextId("ggufhyaomtb") + .withTargetSpecification( + mapOf("pjbi", BinaryData.fromBytes("\"dataavgrvkffovjz\"".getBytes(StandardCharsets.UTF_8)), "yo", + BinaryData.fromBytes("\"datagjmfxumvfcl\"".getBytes(StandardCharsets.UTF_8)))) + .withCapabilities(Arrays.asList("nbkfezzxscy", "wzdgirujbzbo", "vzzbtdcq", "pniyujviyl")) + .withHierarchyLevel("shfssnrbgyef") + .withSolutionScope("msgaoj") .withState(ResourceState.ACTIVE); model = BinaryData.fromObject(model).toObject(TargetUpdateProperties.class); - Assertions.assertEquals("pbttdum", model.description()); - Assertions.assertEquals("p", model.displayName()); - Assertions.assertEquals("ebmnzbtbhjpglk", model.contextId()); - Assertions.assertEquals("neuelfphsdyhtoz", model.capabilities().get(0)); - Assertions.assertEquals("kd", model.hierarchyLevel()); - Assertions.assertEquals("wq", model.solutionScope()); + Assertions.assertEquals("rydxtqm", model.description()); + Assertions.assertEquals("ox", model.displayName()); + Assertions.assertEquals("ggufhyaomtb", model.contextId()); + Assertions.assertEquals("nbkfezzxscy", model.capabilities().get(0)); + Assertions.assertEquals("shfssnrbgyef", model.hierarchyLevel()); + Assertions.assertEquals("msgaoj", model.solutionScope()); Assertions.assertEquals(ResourceState.ACTIVE, model.state()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetUpdateTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetUpdateTests.java index e57595ca26028..aea237b5b2bb8 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetUpdateTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetUpdateTests.java @@ -8,6 +8,7 @@ import com.azure.resourcemanager.workloadorchestration.models.ResourceState; import com.azure.resourcemanager.workloadorchestration.models.TargetUpdate; import com.azure.resourcemanager.workloadorchestration.models.TargetUpdateProperties; +import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -17,38 +18,45 @@ public final class TargetUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetUpdate model = BinaryData.fromString( - "{\"tags\":{\"nsikvmkqzeqqkdl\":\"onz\",\"bdagxt\":\"fzxmhhvhgureodkw\",\"akbogqxndlkzgxh\":\"bqdxbx\"},\"properties\":{\"description\":\"plbpodxun\",\"displayName\":\"ebxmubyynt\",\"contextId\":\"rbqtkoie\",\"targetSpecification\":{},\"capabilities\":[\"gqrlltmuwla\"],\"hierarchyLevel\":\"zizxbmpgcj\",\"solutionScope\":\"u\",\"state\":\"active\"}}") + "{\"tags\":{\"dzjlu\":\"hrdgoihxumwcto\",\"wtovvtgsein\":\"dfdlwggyts\",\"knpirgnepttwq\":\"fiufx\",\"mqnrojlpijnkr\":\"sniffc\"},\"properties\":{\"description\":\"ddhcratizzr\",\"displayName\":\"asxifto\",\"contextId\":\"yzhftwesgogczh\",\"targetSpecification\":{\"gnyhmossxkkg\":\"\\\"dataxkr\\\"\",\"rghxjb\":\"\\\"datah\\\"\",\"rnsvbuswd\":\"\\\"datahqxvcxgfrpdsofbs\\\"\",\"ybycnunvj\":\"\\\"dataz\\\"\"},\"capabilities\":[\"kfawnopqgikyz\"],\"hierarchyLevel\":\"txdyuxzejntpsew\",\"solutionScope\":\"oi\",\"state\":\"active\"}}") .toObject(TargetUpdate.class); - Assertions.assertEquals("onz", model.tags().get("nsikvmkqzeqqkdl")); - Assertions.assertEquals("plbpodxun", model.properties().description()); - Assertions.assertEquals("ebxmubyynt", model.properties().displayName()); - Assertions.assertEquals("rbqtkoie", model.properties().contextId()); - Assertions.assertEquals("gqrlltmuwla", model.properties().capabilities().get(0)); - Assertions.assertEquals("zizxbmpgcj", model.properties().hierarchyLevel()); - Assertions.assertEquals("u", model.properties().solutionScope()); + Assertions.assertEquals("hrdgoihxumwcto", model.tags().get("dzjlu")); + Assertions.assertEquals("ddhcratizzr", model.properties().description()); + Assertions.assertEquals("asxifto", model.properties().displayName()); + Assertions.assertEquals("yzhftwesgogczh", model.properties().contextId()); + Assertions.assertEquals("kfawnopqgikyz", model.properties().capabilities().get(0)); + Assertions.assertEquals("txdyuxzejntpsew", model.properties().hierarchyLevel()); + Assertions.assertEquals("oi", model.properties().solutionScope()); Assertions.assertEquals(ResourceState.ACTIVE, model.properties().state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TargetUpdate model = new TargetUpdate() - .withTags(mapOf("nsikvmkqzeqqkdl", "onz", "bdagxt", "fzxmhhvhgureodkw", "akbogqxndlkzgxh", "bqdxbx")) - .withProperties(new TargetUpdateProperties().withDescription("plbpodxun") - .withDisplayName("ebxmubyynt") - .withContextId("rbqtkoie") - .withTargetSpecification(mapOf()) - .withCapabilities(Arrays.asList("gqrlltmuwla")) - .withHierarchyLevel("zizxbmpgcj") - .withSolutionScope("u") - .withState(ResourceState.ACTIVE)); + TargetUpdate model + = new TargetUpdate() + .withTags(mapOf("dzjlu", "hrdgoihxumwcto", "wtovvtgsein", "dfdlwggyts", "knpirgnepttwq", "fiufx", + "mqnrojlpijnkr", "sniffc")) + .withProperties( + new TargetUpdateProperties().withDescription("ddhcratizzr") + .withDisplayName("asxifto") + .withContextId("yzhftwesgogczh") + .withTargetSpecification(mapOf("gnyhmossxkkg", + BinaryData.fromBytes("\"dataxkr\"".getBytes(StandardCharsets.UTF_8)), "rghxjb", + BinaryData.fromBytes("\"datah\"".getBytes(StandardCharsets.UTF_8)), "rnsvbuswd", + BinaryData.fromBytes("\"datahqxvcxgfrpdsofbs\"".getBytes(StandardCharsets.UTF_8)), + "ybycnunvj", BinaryData.fromBytes("\"dataz\"".getBytes(StandardCharsets.UTF_8)))) + .withCapabilities(Arrays.asList("kfawnopqgikyz")) + .withHierarchyLevel("txdyuxzejntpsew") + .withSolutionScope("oi") + .withState(ResourceState.ACTIVE)); model = BinaryData.fromObject(model).toObject(TargetUpdate.class); - Assertions.assertEquals("onz", model.tags().get("nsikvmkqzeqqkdl")); - Assertions.assertEquals("plbpodxun", model.properties().description()); - Assertions.assertEquals("ebxmubyynt", model.properties().displayName()); - Assertions.assertEquals("rbqtkoie", model.properties().contextId()); - Assertions.assertEquals("gqrlltmuwla", model.properties().capabilities().get(0)); - Assertions.assertEquals("zizxbmpgcj", model.properties().hierarchyLevel()); - Assertions.assertEquals("u", model.properties().solutionScope()); + Assertions.assertEquals("hrdgoihxumwcto", model.tags().get("dzjlu")); + Assertions.assertEquals("ddhcratizzr", model.properties().description()); + Assertions.assertEquals("asxifto", model.properties().displayName()); + Assertions.assertEquals("yzhftwesgogczh", model.properties().contextId()); + Assertions.assertEquals("kfawnopqgikyz", model.properties().capabilities().get(0)); + Assertions.assertEquals("txdyuxzejntpsew", model.properties().hierarchyLevel()); + Assertions.assertEquals("oi", model.properties().solutionScope()); Assertions.assertEquals(ResourceState.ACTIVE, model.properties().state()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsCreateOrUpdateMockTests.java index 32f57f8e451a7..792dcd3573cee 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsCreateOrUpdateMockTests.java @@ -9,6 +9,7 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; import com.azure.resourcemanager.workloadorchestration.models.ExtendedLocation; import com.azure.resourcemanager.workloadorchestration.models.ExtendedLocationType; @@ -28,7 +29,7 @@ public final class TargetsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"qumoeno\",\"displayName\":\"naie\",\"contextId\":\"hqhsknd\",\"targetSpecification\":{},\"capabilities\":[\"qkaadlknw\",\"oanniyopetxi\",\"cnrly\"],\"hierarchyLevel\":\"nucaephblkwqpat\",\"status\":{\"lastModified\":\"2021-02-09T00:06:02Z\",\"deployed\":876148319,\"expectedRunningJobId\":690521109,\"runningJobId\":1323692842,\"status\":\"vivuzqymtuowo\",\"statusDetails\":\"gitsqh\",\"generation\":175618914,\"targetStatuses\":[{\"name\":\"dbanfznd\",\"status\":\"xmxeatkdb\",\"componentStatuses\":[{}]},{\"name\":\"djyibqbnaomhjrm\",\"status\":\"hmaxljalfi\",\"componentStatuses\":[{},{}]}]},\"solutionScope\":\"obcancdexxqcw\",\"state\":\"active\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"aknokzwjjzrl\",\"extendedLocation\":{\"name\":\"xldzyyfytpqsix\",\"type\":\"EdgeZone\"},\"location\":\"puj\",\"tags\":{\"mbmslzoyov\":\"qlkjuv\",\"befgvmxn\":\"zdbpqv\"},\"id\":\"kcvtl\",\"name\":\"bse\",\"type\":\"kvcuartrhunl\"}"; + = "{\"properties\":{\"description\":\"nsfdrlduye\",\"displayName\":\"iiit\",\"contextId\":\"ugyuqwrldaxu\",\"targetSpecification\":{\"zciggbnvtxofwa\":\"\\\"dataazcsozjvx\\\"\"},\"capabilities\":[\"yxwhoeamo\",\"obdoey\"],\"hierarchyLevel\":\"fpnimtwuuhaueg\",\"status\":{\"lastModified\":\"2021-01-07T12:15:38Z\",\"deployed\":790582079,\"expectedRunningJobId\":1492751113,\"runningJobId\":1158205806,\"status\":\"jyrkwfug\",\"statusDetails\":\"hrrk\",\"generation\":1227108365,\"targetStatuses\":[{\"name\":\"urhzzf\",\"status\":\"ueoqusvwluj\",\"componentStatuses\":[{},{},{}]},{\"name\":\"ibittoztjdqum\",\"status\":\"fmwc\",\"componentStatuses\":[{},{}]},{\"name\":\"gctxegtvgwyur\",\"status\":\"lfnzzryizwbxg\",\"componentStatuses\":[{},{},{},{}]}]},\"solutionScope\":\"layunomirhpfabe\",\"state\":\"inactive\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"mgewayxf\",\"extendedLocation\":{\"name\":\"bcpjstbhem\",\"type\":\"CustomLocation\"},\"location\":\"csqsnxfbx\",\"tags\":{\"pod\":\"apdrbzyvbsuadu\",\"qltd\":\"axpfobkzhmhj\",\"rkgzkyhudbkuw\":\"luqrojadhfztlray\"},\"id\":\"zqxlcwe\",\"name\":\"kfecjvxf\",\"type\":\"qufqizj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,32 +39,35 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Target response = manager.targets() - .define("ynudqllzsa") - .withRegion("aupxvpi") - .withExistingResourceGroup("tfvpndpmiljpn") - .withTags(mapOf("l", "aifyzyzeyuubeids")) - .withProperties(new TargetProperties().withDescription("pjlxeehuxiqhzl") - .withDisplayName("aymezx") - .withContextId("skihmxrfd") - .withTargetSpecification(mapOf()) - .withCapabilities(Arrays.asList("rednw", "yshtuwgmev", "afpwzyifrkgwl")) - .withHierarchyLevel("xeqipx") - .withSolutionScope("fg") - .withState(ResourceState.ACTIVE)) - .withExtendedLocation(new ExtendedLocation().withName("wxigpxv").withType(ExtendedLocationType.EDGE_ZONE)) + .define("xjgvh") + .withRegion("bc") + .withExistingResourceGroup("yrlmwkptsk") + .withTags(mapOf("jtirjwayhicqq", "kucddwnhczbutouc", "edvbiabvnsrge", "wvgwkslvli", "jqttbspvk", + "zyqxadyfhbmwkh")) + .withProperties(new TargetProperties().withDescription("cbmkakmkookbp") + .withDisplayName("tmgvmu") + .withContextId("akmlwktfowzkroyr") + .withTargetSpecification( + mapOf("jtgzj", BinaryData.fromBytes("\"dataxflzqjim\"".getBytes(StandardCharsets.UTF_8)))) + .withCapabilities(Arrays.asList("lfejlzuqloiw", "ayyzivrmitc", "qlhchwhrktjle", "fibfiplhx")) + .withHierarchyLevel("nsmy") + .withSolutionScope("lymg") + .withState(ResourceState.INACTIVE)) + .withExtendedLocation( + new ExtendedLocation().withName("lzaudg").withType(ExtendedLocationType.CUSTOM_LOCATION)) .create(); - Assertions.assertEquals("puj", response.location()); - Assertions.assertEquals("qlkjuv", response.tags().get("mbmslzoyov")); - Assertions.assertEquals("qumoeno", response.properties().description()); - Assertions.assertEquals("naie", response.properties().displayName()); - Assertions.assertEquals("hqhsknd", response.properties().contextId()); - Assertions.assertEquals("qkaadlknw", response.properties().capabilities().get(0)); - Assertions.assertEquals("nucaephblkwqpat", response.properties().hierarchyLevel()); - Assertions.assertEquals("obcancdexxqcw", response.properties().solutionScope()); - Assertions.assertEquals(ResourceState.ACTIVE, response.properties().state()); - Assertions.assertEquals("xldzyyfytpqsix", response.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); + Assertions.assertEquals("csqsnxfbx", response.location()); + Assertions.assertEquals("apdrbzyvbsuadu", response.tags().get("pod")); + Assertions.assertEquals("nsfdrlduye", response.properties().description()); + Assertions.assertEquals("iiit", response.properties().displayName()); + Assertions.assertEquals("ugyuqwrldaxu", response.properties().contextId()); + Assertions.assertEquals("yxwhoeamo", response.properties().capabilities().get(0)); + Assertions.assertEquals("fpnimtwuuhaueg", response.properties().hierarchyLevel()); + Assertions.assertEquals("layunomirhpfabe", response.properties().solutionScope()); + Assertions.assertEquals(ResourceState.INACTIVE, response.properties().state()); + Assertions.assertEquals("bcpjstbhem", response.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsGetByResourceGroupWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsGetByResourceGroupWithResponseMockTests.java index 08c65b5fd6674..ea4be8c8d308a 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsGetByResourceGroupWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsGetByResourceGroupWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class TargetsGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"lmknbnxwcdom\",\"displayName\":\"pvfqawz\",\"contextId\":\"gbrt\",\"targetSpecification\":{},\"capabilities\":[\"aclkiexhajlfnt\"],\"hierarchyLevel\":\"iqfyuttdi\",\"status\":{\"lastModified\":\"2021-09-07T21:32:41Z\",\"deployed\":149960086,\"expectedRunningJobId\":1375874232,\"runningJobId\":714698861,\"status\":\"xkyctwwgzwx\",\"statusDetails\":\"mecvogygzyvneeza\",\"generation\":390965858,\"targetStatuses\":[{\"name\":\"oqqtl\",\"status\":\"hzbkrkjj\",\"componentStatuses\":[{},{},{},{}]},{\"name\":\"qnvhnqoe\",\"status\":\"ogiyetes\",\"componentStatuses\":[{},{},{}]},{\"name\":\"dbztjhqtfbov\",\"status\":\"nkbw\",\"componentStatuses\":[{},{},{}]}]},\"solutionScope\":\"uhpsprkzyaupia\",\"state\":\"active\",\"provisioningState\":\"Deleting\"},\"eTag\":\"bwqroohtuovm\",\"extendedLocation\":{\"name\":\"nur\",\"type\":\"EdgeZone\"},\"location\":\"mghihp\",\"tags\":{\"sjuscvsfxigctmg\":\"mslclblyjxlt\",\"zqccydrtce\":\"uupb\",\"eq\":\"kdqkkyihzt\",\"ecfehuwa\":\"gqzgwldoychill\"},\"id\":\"a\",\"name\":\"uhicqllizstacsjv\",\"type\":\"rweft\"}"; + = "{\"properties\":{\"description\":\"ktz\",\"displayName\":\"oimyfpqd\",\"contextId\":\"wkppnwyytfvp\",\"targetSpecification\":{\"vuldbkkejjk\":\"\\\"datajikffffgkuhznw\\\"\",\"azmxjqi\":\"\\\"dataigaw\\\"\",\"jjsbcmlzaahzbhur\":\"\\\"datah\\\"\",\"lirh\":\"\\\"dataolk\\\"\"},\"capabilities\":[\"ojusuzgfjzcva\",\"xoia\"],\"hierarchyLevel\":\"ahfxwccok\",\"status\":{\"lastModified\":\"2021-12-09T01:14:20Z\",\"deployed\":1036449956,\"expectedRunningJobId\":58255309,\"runningJobId\":1311276979,\"status\":\"uhhoqeqshavlj\",\"statusDetails\":\"xyrqo\",\"generation\":900253875,\"targetStatuses\":[{\"name\":\"nkgzukwdr\",\"status\":\"kjthfce\",\"componentStatuses\":[{},{},{}]},{\"name\":\"jmlfuyfjbp\",\"status\":\"ddhlrufzcqyj\",\"componentStatuses\":[{},{},{}]},{\"name\":\"uiocuselqkrsazr\",\"status\":\"uddq\",\"componentStatuses\":[{},{}]},{\"name\":\"fisjmrkk\",\"status\":\"wdmdlgyqixokwt\",\"componentStatuses\":[{},{},{}]}]},\"solutionScope\":\"vagnqfqqdlcvmyo\",\"state\":\"inactive\",\"provisioningState\":\"Canceled\"},\"eTag\":\"chtvsnvlaqd\",\"extendedLocation\":{\"name\":\"yzawatu\",\"type\":\"CustomLocation\"},\"location\":\"okbczothymgob\",\"tags\":{\"eakhtmhobcya\":\"snwgwimaa\"},\"id\":\"rfvqtvkhgvo\",\"name\":\"gxkfnaoaqymhccto\",\"type\":\"uowyrnskbyhqu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,19 +33,19 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Target response = manager.targets() - .getByResourceGroupWithResponse("patlbijp", "gsksrfhf", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("cd", "akt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("mghihp", response.location()); - Assertions.assertEquals("mslclblyjxlt", response.tags().get("sjuscvsfxigctmg")); - Assertions.assertEquals("lmknbnxwcdom", response.properties().description()); - Assertions.assertEquals("pvfqawz", response.properties().displayName()); - Assertions.assertEquals("gbrt", response.properties().contextId()); - Assertions.assertEquals("aclkiexhajlfnt", response.properties().capabilities().get(0)); - Assertions.assertEquals("iqfyuttdi", response.properties().hierarchyLevel()); - Assertions.assertEquals("uhpsprkzyaupia", response.properties().solutionScope()); - Assertions.assertEquals(ResourceState.ACTIVE, response.properties().state()); - Assertions.assertEquals("nur", response.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); + Assertions.assertEquals("okbczothymgob", response.location()); + Assertions.assertEquals("snwgwimaa", response.tags().get("eakhtmhobcya")); + Assertions.assertEquals("ktz", response.properties().description()); + Assertions.assertEquals("oimyfpqd", response.properties().displayName()); + Assertions.assertEquals("wkppnwyytfvp", response.properties().contextId()); + Assertions.assertEquals("ojusuzgfjzcva", response.properties().capabilities().get(0)); + Assertions.assertEquals("ahfxwccok", response.properties().hierarchyLevel()); + Assertions.assertEquals("vagnqfqqdlcvmyo", response.properties().solutionScope()); + Assertions.assertEquals(ResourceState.INACTIVE, response.properties().state()); + Assertions.assertEquals("yzawatu", response.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListByResourceGroupMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListByResourceGroupMockTests.java index d1f78757d1a23..84e25b2b8e52d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListByResourceGroupMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListByResourceGroupMockTests.java @@ -24,7 +24,7 @@ public final class TargetsListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"epwamcxtcz\",\"displayName\":\"upeuknijduyye\",\"contextId\":\"pydjfboc\",\"targetSpecification\":{},\"capabilities\":[\"hulrtywikdmhla\",\"uflgbhgauacdixm\",\"ufr\"],\"hierarchyLevel\":\"ryjqgdkf\",\"status\":{\"lastModified\":\"2021-07-21T11:36:33Z\",\"deployed\":1850515821,\"expectedRunningJobId\":1305732905,\"runningJobId\":1703670506,\"status\":\"vefgwbmqjchntas\",\"statusDetails\":\"ymxbulpzealb\",\"generation\":204967420,\"targetStatuses\":[{\"name\":\"wyvf\",\"status\":\"btsuahxs\",\"componentStatuses\":[{},{},{}]},{\"name\":\"mmzrrscub\",\"status\":\"sd\",\"componentStatuses\":[{},{}]}]},\"solutionScope\":\"qwodiffjx\",\"state\":\"inactive\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"abwibvjogjo\",\"extendedLocation\":{\"name\":\"cyefoyzbamwine\",\"type\":\"EdgeZone\"},\"location\":\"fkak\",\"tags\":{\"evboclzhzjknyuxg\":\"dt\",\"mrdixtreki\":\"ttxpnrupza\"},\"id\":\"swyskbruffg\",\"name\":\"lukkutvlxhrpqhvm\",\"type\":\"lcouqehbhbcdszir\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"jpxecxqnwhsco\",\"displayName\":\"awmvgxs\",\"contextId\":\"pknpwirfljfewxq\",\"targetSpecification\":{\"hknqiijge\":\"\\\"dataxudnmckap\\\"\",\"qih\":\"\\\"datacdgmoqu\\\"\",\"tjouwhldxwhi\":\"\\\"datakyow\\\"\"},\"capabilities\":[\"roqksmfxm\",\"vprstv\"],\"hierarchyLevel\":\"itbfjtdy\",\"status\":{\"lastModified\":\"2021-04-10T03:19:51Z\",\"deployed\":1115779258,\"expectedRunningJobId\":1590887844,\"runningJobId\":1950257692,\"status\":\"cqrq\",\"statusDetails\":\"etjt\",\"generation\":1374912562,\"targetStatuses\":[{\"name\":\"doad\",\"status\":\"op\",\"componentStatuses\":[{},{},{}]},{\"name\":\"adkm\",\"status\":\"gssz\",\"componentStatuses\":[{},{},{}]}]},\"solutionScope\":\"kbbxuh\",\"state\":\"active\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"ncclabvoyngsuxxc\",\"extendedLocation\":{\"name\":\"myqjog\",\"type\":\"CustomLocation\"},\"location\":\"a\",\"tags\":{\"ormovdxxurntujmo\":\"a\",\"wemhdee\":\"lu\",\"rhrhtsl\":\"jslkyozdsfzjue\"},\"id\":\"jtv\",\"name\":\"j\",\"type\":\"xvgjbfi\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,18 +34,19 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.targets().listByResourceGroup("wqejpmvsse", com.azure.core.util.Context.NONE); + = manager.targets().listByResourceGroup("czygxv", com.azure.core.util.Context.NONE); - Assertions.assertEquals("fkak", response.iterator().next().location()); - Assertions.assertEquals("dt", response.iterator().next().tags().get("evboclzhzjknyuxg")); - Assertions.assertEquals("epwamcxtcz", response.iterator().next().properties().description()); - Assertions.assertEquals("upeuknijduyye", response.iterator().next().properties().displayName()); - Assertions.assertEquals("pydjfboc", response.iterator().next().properties().contextId()); - Assertions.assertEquals("hulrtywikdmhla", response.iterator().next().properties().capabilities().get(0)); - Assertions.assertEquals("ryjqgdkf", response.iterator().next().properties().hierarchyLevel()); - Assertions.assertEquals("qwodiffjx", response.iterator().next().properties().solutionScope()); - Assertions.assertEquals(ResourceState.INACTIVE, response.iterator().next().properties().state()); - Assertions.assertEquals("cyefoyzbamwine", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("a", response.iterator().next().location()); + Assertions.assertEquals("a", response.iterator().next().tags().get("ormovdxxurntujmo")); + Assertions.assertEquals("jpxecxqnwhsco", response.iterator().next().properties().description()); + Assertions.assertEquals("awmvgxs", response.iterator().next().properties().displayName()); + Assertions.assertEquals("pknpwirfljfewxq", response.iterator().next().properties().contextId()); + Assertions.assertEquals("roqksmfxm", response.iterator().next().properties().capabilities().get(0)); + Assertions.assertEquals("itbfjtdy", response.iterator().next().properties().hierarchyLevel()); + Assertions.assertEquals("kbbxuh", response.iterator().next().properties().solutionScope()); + Assertions.assertEquals(ResourceState.ACTIVE, response.iterator().next().properties().state()); + Assertions.assertEquals("myqjog", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, + response.iterator().next().extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListMockTests.java index 2646a41e422df..6441fd4a30994 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsListMockTests.java @@ -24,7 +24,7 @@ public final class TargetsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"an\",\"displayName\":\"oypmbltoorm\",\"contextId\":\"fqlwxldykalsy\",\"targetSpecification\":{},\"capabilities\":[\"lnjpnnbmjksibjgs\",\"jxxahmrnad\",\"yqegx\",\"iv\"],\"hierarchyLevel\":\"inbmh\",\"status\":{\"lastModified\":\"2021-02-09T15:04:07Z\",\"deployed\":1144091174,\"expectedRunningJobId\":1599505348,\"runningJobId\":1861737690,\"status\":\"mbk\",\"statusDetails\":\"njaujvaan\",\"generation\":2077139001,\"targetStatuses\":[{\"name\":\"wkdtaawxwf\",\"status\":\"aumrrqmbzmqkrat\",\"componentStatuses\":[{},{}]},{\"name\":\"bjsidb\",\"status\":\"kfpksokdgo\",\"componentStatuses\":[{},{}]},{\"name\":\"jymrhbg\",\"status\":\"ozkyewnfnzh\",\"componentStatuses\":[{}]}]},\"solutionScope\":\"smffjkutycyarnr\",\"state\":\"inactive\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"bzog\",\"extendedLocation\":{\"name\":\"t\",\"type\":\"EdgeZone\"},\"location\":\"czhcoeocnh\",\"tags\":{\"jzcfyjzptwr\":\"ot\",\"yglqdhmrjzral\":\"ohapqinfsz\",\"ypsjoq\":\"xpjb\",\"qzvs\":\"jenkyh\"},\"id\":\"xfxjelgcmpzqj\",\"name\":\"hhqxuwyvcacoyviv\",\"type\":\"s\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"pn\",\"displayName\":\"odfcbjq\",\"contextId\":\"wmtqsmoxsaz\",\"targetSpecification\":{\"inqbdnddbbozs\":\"\\\"datajgwecywnfyszzacz\\\"\",\"lxeeiht\":\"\\\"datavrmkjmyitrchwu\\\"\"},\"capabilities\":[\"noejhqlfmsibz\",\"yrfgxkyd\",\"mypgfqvmty\",\"hl\"],\"hierarchyLevel\":\"kxp\",\"status\":{\"lastModified\":\"2021-01-28T17:11:45Z\",\"deployed\":12523805,\"expectedRunningJobId\":1763155861,\"runningJobId\":1597954071,\"status\":\"ampqcrzgeuq\",\"statusDetails\":\"piatwfaujegqd\",\"generation\":365082016,\"targetStatuses\":[{\"name\":\"gddhjkrukizyhgs\",\"status\":\"nqskt\",\"componentStatuses\":[{},{},{}]},{\"name\":\"jbqggweeiwdhdm\",\"status\":\"gbfzu\",\"componentStatuses\":[{},{}]},{\"name\":\"unmlhxdfbklcii\",\"status\":\"gjsysmvxodgwxfkz\",\"componentStatuses\":[{},{},{}]},{\"name\":\"uvbdujgcwxvec\",\"status\":\"wjtrdxriza\",\"componentStatuses\":[{},{}]}]},\"solutionScope\":\"iarks\",\"state\":\"inactive\",\"provisioningState\":\"Canceled\"},\"eTag\":\"xwabzrwiqrxhacl\",\"extendedLocation\":{\"name\":\"osqkptjqgk\",\"type\":\"CustomLocation\"},\"location\":\"mainwhed\",\"tags\":{\"gvydjufbnklblaxp\":\"bqwuntobuizazzel\",\"lfdxaglz\":\"gjwdab\",\"siflikyypzkgxf\":\"ytlbtlqhopxouvm\"},\"id\":\"fmy\",\"name\":\"qsdb\",\"type\":\"oksz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,16 +35,17 @@ public void testList() throws Exception { PagedIterable response = manager.targets().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("czhcoeocnh", response.iterator().next().location()); - Assertions.assertEquals("ot", response.iterator().next().tags().get("jzcfyjzptwr")); - Assertions.assertEquals("an", response.iterator().next().properties().description()); - Assertions.assertEquals("oypmbltoorm", response.iterator().next().properties().displayName()); - Assertions.assertEquals("fqlwxldykalsy", response.iterator().next().properties().contextId()); - Assertions.assertEquals("lnjpnnbmjksibjgs", response.iterator().next().properties().capabilities().get(0)); - Assertions.assertEquals("inbmh", response.iterator().next().properties().hierarchyLevel()); - Assertions.assertEquals("smffjkutycyarnr", response.iterator().next().properties().solutionScope()); + Assertions.assertEquals("mainwhed", response.iterator().next().location()); + Assertions.assertEquals("bqwuntobuizazzel", response.iterator().next().tags().get("gvydjufbnklblaxp")); + Assertions.assertEquals("pn", response.iterator().next().properties().description()); + Assertions.assertEquals("odfcbjq", response.iterator().next().properties().displayName()); + Assertions.assertEquals("wmtqsmoxsaz", response.iterator().next().properties().contextId()); + Assertions.assertEquals("noejhqlfmsibz", response.iterator().next().properties().capabilities().get(0)); + Assertions.assertEquals("kxp", response.iterator().next().properties().hierarchyLevel()); + Assertions.assertEquals("iarks", response.iterator().next().properties().solutionScope()); Assertions.assertEquals(ResourceState.INACTIVE, response.iterator().next().properties().state()); - Assertions.assertEquals("t", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("osqkptjqgk", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, + response.iterator().next().extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsResolveConfigurationMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsResolveConfigurationMockTests.java index 122ca58230e58..5d6552b0b910e 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsResolveConfigurationMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TargetsResolveConfigurationMockTests.java @@ -23,7 +23,7 @@ public final class TargetsResolveConfigurationMockTests { @Test public void testResolveConfiguration() throws Exception { - String responseStr = "{\"configuration\":\"hqawmo\"}"; + String responseStr = "{\"configuration\":\"itoqcahfsg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,32 +33,144 @@ public void testResolveConfiguration() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ResolvedConfiguration response = manager.targets() - .resolveConfiguration("zusjsz", "bscm", - new SolutionTemplateParameter().withSolutionTemplateVersionId("lzijiufehgmvflnw") - .withSolutionInstanceName("qkxrerl") - .withSolutionDependencies( - Arrays.asList(new SolutionDependencyParameter().withSolutionVersionId("yl") - .withSolutionTemplateId("wxzut") - .withSolutionTemplateVersion("ztwhghmupg") - .withSolutionInstanceName("jtcdxabbujftaben") - .withTargetId("klqpx") + .resolveConfiguration("nm", "wgpterdiuw", + new SolutionTemplateParameter().withSolutionTemplateVersionId("i") + .withSolutionInstanceName("skw") + .withSolutionDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("etjygowifcqpolz") + .withSolutionTemplateId("ysdgzyyb") + .withSolutionTemplateVersion("xlvocptvdx") + .withSolutionInstanceName("eigmlil") + .withTargetId("ghjhjvmabzzbwa") .withDependencies(Arrays.asList( - new SolutionDependencyParameter().withSolutionVersionId("feddwwnlza") - .withSolutionTemplateId("xud") - .withSolutionTemplateVersion("hgookrtalvnbwgpb") - .withSolutionInstanceName("eluclvdjj") - .withTargetId("yrdnqod") + new SolutionDependencyParameter().withSolutionVersionId("d") + .withSolutionTemplateId("bgymqt") + .withSolutionTemplateVersion("preojxrjnbsconxa") + .withSolutionInstanceName("pney") + .withTargetId("bjizqfsgn") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("edpqlrfbo") + .withSolutionTemplateId("ipmlnfyzavf") + .withSolutionTemplateVersion("ypi") + .withSolutionInstanceName("bkpdjtaqhsmq") + .withTargetId("pdgonjhxs") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("gpczqulptk") + .withSolutionTemplateId("cpxtzhigqqbt") + .withSolutionTemplateVersion("pkjblornsih") + .withSolutionInstanceName("uds") + .withTargetId("suaawj") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("jnfczmnniixy") + .withSolutionTemplateId("qban") + .withSolutionTemplateVersion("jtgirnb") + .withSolutionInstanceName("gm") + .withTargetId("orgmynltwmpftm") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())))), + new SolutionDependencyParameter().withSolutionVersionId("jogsyx") + .withSolutionTemplateId("tamfddrvlkpz") + .withSolutionTemplateVersion("hnrecchd") + .withSolutionInstanceName("rmuhkahmjedbiucv") + .withTargetId("hwmjpjbweunxc") + .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("hu") + .withSolutionTemplateId("ihppiyb") + .withSolutionTemplateVersion("gnzuzpbgkzcsc") + .withSolutionInstanceName("uzvkunhdimjuk") + .withTargetId("r") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("gpucdocfq") + .withSolutionTemplateId("wgofmhx") + .withSolutionTemplateVersion("jlvzklk") + .withSolutionInstanceName("gikyjtkak") + .withTargetId("bishjvpzaptuo") .withDependencies(Arrays.asList(new SolutionDependencyParameter(), new SolutionDependencyParameter())), - new SolutionDependencyParameter().withSolutionVersionId("xhqf") - .withSolutionTemplateId("nvzoqgyipemch") - .withSolutionTemplateVersion("v") - .withSolutionInstanceName("zuejd") - .withTargetId("ptlghwzhomewjjst") + new SolutionDependencyParameter().withSolutionVersionId("izjixwfgcd") + .withSolutionTemplateId("kkcxwnujvqynvav") + .withSolutionTemplateVersion("mdmuqoh") + .withSolutionInstanceName("hraxquddrwjcl") + .withTargetId("rhlhpvzadbwenni") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("xrzfrmvztiucwvi") + .withSolutionTemplateId("lukh") + .withSolutionTemplateVersion("cqx") + .withSolutionInstanceName("bvzarmq") + .withTargetId("po") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())))), + new SolutionDependencyParameter().withSolutionVersionId("invagovjyhd") + .withSolutionTemplateId("brdvce") + .withSolutionTemplateVersion("whitxnmxgnmguzbu") + .withSolutionInstanceName("orbalkj") + .withTargetId("kbd") + .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("q") + .withSolutionTemplateId("qkqsygxiyneco") + .withSolutionTemplateVersion("gzkheubanl") + .withSolutionInstanceName("npqcc") + .withTargetId("iawzlzklaslgac") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("lrarwpewsaudo") + .withSolutionTemplateId("tighsxjpy") + .withSolutionTemplateVersion("kqbalah") + .withSolutionInstanceName("uuwxhmehjnhjioti") + .withTargetId("bbcngkeg") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("xbbfetwil") + .withSolutionTemplateId("zox") + .withSolutionTemplateVersion("xql") + .withSolutionInstanceName("olqownki") + .withTargetId("jew") .withDependencies(Arrays.asList(new SolutionDependencyParameter(), - new SolutionDependencyParameter(), new SolutionDependencyParameter())))))), + new SolutionDependencyParameter(), new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("k") + .withSolutionTemplateId("jmztnlmso") + .withSolutionTemplateVersion("tmvecdhdyswcrptv") + .withSolutionInstanceName("jczxvlgsrg") + .withTargetId("fizrpywlptyuqhr") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())))), + new SolutionDependencyParameter().withSolutionVersionId("k") + .withSolutionTemplateId("pfuofixcnpcfykkp") + .withSolutionTemplateVersion("cpawmp") + .withSolutionInstanceName("rdpwrpc") + .withTargetId("cfj") + .withDependencies(Arrays.asList( + new SolutionDependencyParameter().withSolutionVersionId("gzawk") + .withSolutionTemplateId("e") + .withSolutionTemplateVersion("yamnnidmdiawp") + .withSolutionInstanceName("kzrn") + .withTargetId("kctd") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("gwqpsqazih") + .withSolutionTemplateId("dvqgcnbhcbmjkz") + .withSolutionTemplateVersion("bn") + .withSolutionInstanceName("ntsxjmfmeftvh") + .withTargetId("o") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("hskb") + .withSolutionTemplateId("mjgrulcfog") + .withSolutionTemplateVersion("cxn") + .withSolutionInstanceName("tpfdzxcouzfwofwa") + .withTargetId("kzkdtzxsoednlwg") + .withDependencies(Arrays.asList(new SolutionDependencyParameter(), + new SolutionDependencyParameter(), new SolutionDependencyParameter(), + new SolutionDependencyParameter())), + new SolutionDependencyParameter().withSolutionVersionId("zomucmqgisnionet") + .withSolutionTemplateId("dr") + .withSolutionTemplateVersion("uenxkgtlzlmt") + .withSolutionInstanceName("xcznnhzkb") + .withTargetId("mxlxmwtygeq") + .withDependencies(Arrays.asList(new SolutionDependencyParameter())))))), com.azure.core.util.Context.NONE); - Assertions.assertEquals("hqawmo", response.configuration()); + Assertions.assertEquals("itoqcahfsg", response.configuration()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TaskOptionTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TaskOptionTests.java index 1f65e07373fd4..be9845df60bad 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TaskOptionTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TaskOptionTests.java @@ -14,21 +14,21 @@ public final class TaskOptionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TaskOption model = BinaryData.fromString( - "{\"concurrency\":1233794469,\"errorAction\":{\"mode\":\"silentlyContinue\",\"maxToleratedFailures\":601956231}}") + "{\"concurrency\":2058471559,\"errorAction\":{\"mode\":\"stopOnNFailures\",\"maxToleratedFailures\":490735122}}") .toObject(TaskOption.class); - Assertions.assertEquals(1233794469, model.concurrency()); - Assertions.assertEquals(ErrorActionMode.SILENTLY_CONTINUE, model.errorAction().mode()); - Assertions.assertEquals(601956231, model.errorAction().maxToleratedFailures()); + Assertions.assertEquals(2058471559, model.concurrency()); + Assertions.assertEquals(ErrorActionMode.STOP_ON_NFAILURES, model.errorAction().mode()); + Assertions.assertEquals(490735122, model.errorAction().maxToleratedFailures()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TaskOption model = new TaskOption().withConcurrency(1233794469) + TaskOption model = new TaskOption().withConcurrency(2058471559) .withErrorAction( - new ErrorAction().withMode(ErrorActionMode.SILENTLY_CONTINUE).withMaxToleratedFailures(601956231)); + new ErrorAction().withMode(ErrorActionMode.STOP_ON_NFAILURES).withMaxToleratedFailures(490735122)); model = BinaryData.fromObject(model).toObject(TaskOption.class); - Assertions.assertEquals(1233794469, model.concurrency()); - Assertions.assertEquals(ErrorActionMode.SILENTLY_CONTINUE, model.errorAction().mode()); - Assertions.assertEquals(601956231, model.errorAction().maxToleratedFailures()); + Assertions.assertEquals(2058471559, model.concurrency()); + Assertions.assertEquals(ErrorActionMode.STOP_ON_NFAILURES, model.errorAction().mode()); + Assertions.assertEquals(490735122, model.errorAction().maxToleratedFailures()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TaskSpecTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TaskSpecTests.java index 810417c58a8f3..89ef8ed8b0b4c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TaskSpecTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/TaskSpecTests.java @@ -6,6 +6,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.models.TaskSpec; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; @@ -13,18 +14,22 @@ public final class TaskSpecTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - TaskSpec model = BinaryData.fromString("{\"name\":\"e\",\"targetId\":\"dhgbjkvre\",\"specification\":{}}") + TaskSpec model = BinaryData.fromString( + "{\"name\":\"bekpeeksnbksdqhj\",\"targetId\":\"klxesl\",\"specification\":{\"o\":\"\\\"datahustcpoqmavnwqjw\\\"\"}}") .toObject(TaskSpec.class); - Assertions.assertEquals("e", model.name()); - Assertions.assertEquals("dhgbjkvre", model.targetId()); + Assertions.assertEquals("bekpeeksnbksdqhj", model.name()); + Assertions.assertEquals("klxesl", model.targetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TaskSpec model = new TaskSpec().withName("e").withTargetId("dhgbjkvre").withSpecification(mapOf()); + TaskSpec model = new TaskSpec().withName("bekpeeksnbksdqhj") + .withTargetId("klxesl") + .withSpecification( + mapOf("o", BinaryData.fromBytes("\"datahustcpoqmavnwqjw\"".getBytes(StandardCharsets.UTF_8)))); model = BinaryData.fromObject(model).toObject(TaskSpec.class); - Assertions.assertEquals("e", model.name()); - Assertions.assertEquals("dhgbjkvre", model.targetId()); + Assertions.assertEquals("bekpeeksnbksdqhj", model.name()); + Assertions.assertEquals("klxesl", model.targetId()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/UninstallJobParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/UninstallJobParameterTests.java new file mode 100644 index 0000000000000..1af41e1c756a4 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/UninstallJobParameterTests.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.UninstallJobParameter; +import org.junit.jupiter.api.Assertions; + +public final class UninstallJobParameterTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + UninstallJobParameter model = BinaryData.fromString( + "{\"jobType\":\"uninstall\",\"parameter\":{\"solutionTemplateId\":\"skdsnfdsdoakg\",\"solutionInstanceName\":\"lmkk\"}}") + .toObject(UninstallJobParameter.class); + Assertions.assertEquals("skdsnfdsdoakg", model.parameter().solutionTemplateId()); + Assertions.assertEquals("lmkk", model.parameter().solutionInstanceName()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/UninstallJobStepStatisticsTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/UninstallJobStepStatisticsTests.java new file mode 100644 index 0000000000000..13d6eab598a79 --- /dev/null +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/UninstallJobStepStatisticsTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.workloadorchestration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.workloadorchestration.models.UninstallJobStepStatistics; +import org.junit.jupiter.api.Assertions; + +public final class UninstallJobStepStatisticsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + UninstallJobStepStatistics model = BinaryData.fromString( + "{\"statisticsType\":\"uninstall\",\"totalCount\":1168209336,\"successCount\":1722395859,\"failedCount\":955341099}") + .toObject(UninstallJobStepStatistics.class); + Assertions.assertEquals(1168209336, model.totalCount()); + Assertions.assertEquals(1722395859, model.successCount()); + Assertions.assertEquals(955341099, model.failedCount()); + } +} diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/UninstallSolutionParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/UninstallSolutionParameterTests.java index c9295c45fccb8..5e4ca6c8ae5b5 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/UninstallSolutionParameterTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/UninstallSolutionParameterTests.java @@ -11,19 +11,19 @@ public final class UninstallSolutionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UninstallSolutionParameter model = BinaryData - .fromString("{\"solutionTemplateId\":\"mkcdyhbpkkpwdre\",\"solutionInstanceName\":\"ovvqfovljxywsu\"}") - .toObject(UninstallSolutionParameter.class); - Assertions.assertEquals("mkcdyhbpkkpwdre", model.solutionTemplateId()); - Assertions.assertEquals("ovvqfovljxywsu", model.solutionInstanceName()); + UninstallSolutionParameter model + = BinaryData.fromString("{\"solutionTemplateId\":\"evdlh\",\"solutionInstanceName\":\"pusdstt\"}") + .toObject(UninstallSolutionParameter.class); + Assertions.assertEquals("evdlh", model.solutionTemplateId()); + Assertions.assertEquals("pusdstt", model.solutionInstanceName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UninstallSolutionParameter model = new UninstallSolutionParameter().withSolutionTemplateId("mkcdyhbpkkpwdre") - .withSolutionInstanceName("ovvqfovljxywsu"); + UninstallSolutionParameter model + = new UninstallSolutionParameter().withSolutionTemplateId("evdlh").withSolutionInstanceName("pusdstt"); model = BinaryData.fromObject(model).toObject(UninstallSolutionParameter.class); - Assertions.assertEquals("mkcdyhbpkkpwdre", model.solutionTemplateId()); - Assertions.assertEquals("ovvqfovljxywsu", model.solutionInstanceName()); + Assertions.assertEquals("evdlh", model.solutionTemplateId()); + Assertions.assertEquals("pusdstt", model.solutionInstanceName()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/VersionParameterTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/VersionParameterTests.java index afb81081ed8dd..beeef56477b4c 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/VersionParameterTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/VersionParameterTests.java @@ -11,14 +11,15 @@ public final class VersionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VersionParameter model = BinaryData.fromString("{\"version\":\"s\"}").toObject(VersionParameter.class); - Assertions.assertEquals("s", model.version()); + VersionParameter model + = BinaryData.fromString("{\"version\":\"ojakhmsbzjhcrze\"}").toObject(VersionParameter.class); + Assertions.assertEquals("ojakhmsbzjhcrze", model.version()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VersionParameter model = new VersionParameter().withVersion("s"); + VersionParameter model = new VersionParameter().withVersion("ojakhmsbzjhcrze"); model = BinaryData.fromObject(model).toObject(VersionParameter.class); - Assertions.assertEquals("s", model.version()); + Assertions.assertEquals("ojakhmsbzjhcrze", model.version()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowInnerTests.java index f4ce173f9880a..97ef41757b176 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowInnerTests.java @@ -15,9 +15,9 @@ public final class WorkflowInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkflowInner model = BinaryData.fromString( - "{\"properties\":{\"workflowTemplateId\":\"gcealzxwh\",\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"ymo\",\"type\":\"CustomLocation\"},\"eTag\":\"lwigdivbkbx\",\"id\":\"mf\",\"name\":\"juwasqvdaeyyguxa\",\"type\":\"jsqzhzbezk\"}") + "{\"properties\":{\"workflowTemplateId\":\"ghihpvecms\",\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"lyjxltbsjus\",\"type\":\"CustomLocation\"},\"eTag\":\"f\",\"id\":\"gctmgxuupbezq\",\"name\":\"cydrtceukdqkk\",\"type\":\"ihztgeqmgqzgwldo\"}") .toObject(WorkflowInner.class); - Assertions.assertEquals("ymo", model.extendedLocation().name()); + Assertions.assertEquals("lyjxltbsjus", model.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); } @@ -25,9 +25,9 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { WorkflowInner model = new WorkflowInner().withProperties(new WorkflowProperties()) .withExtendedLocation( - new ExtendedLocation().withName("ymo").withType(ExtendedLocationType.CUSTOM_LOCATION)); + new ExtendedLocation().withName("lyjxltbsjus").withType(ExtendedLocationType.CUSTOM_LOCATION)); model = BinaryData.fromObject(model).toObject(WorkflowInner.class); - Assertions.assertEquals("ymo", model.extendedLocation().name()); + Assertions.assertEquals("lyjxltbsjus", model.extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowListResultTests.java index f66360600ca4b..da999ff9dc9d7 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowListResultTests.java @@ -13,10 +13,10 @@ public final class WorkflowListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkflowListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"workflowTemplateId\":\"ocwah\",\"provisioningState\":\"InProgress\"},\"extendedLocation\":{\"name\":\"tjeaahhvjhh\",\"type\":\"EdgeZone\"},\"eTag\":\"zybbj\",\"id\":\"dj\",\"name\":\"syxkyxvxevblb\",\"type\":\"ednljl\"}],\"nextLink\":\"euaulxu\"}") + "{\"value\":[{\"properties\":{\"workflowTemplateId\":\"aoaguhicqlli\",\"provisioningState\":\"InProgress\"},\"extendedLocation\":{\"name\":\"csjvhrwef\",\"type\":\"CustomLocation\"},\"eTag\":\"qejpmvssehaepwa\",\"id\":\"xtczhupeuknijd\",\"name\":\"y\",\"type\":\"es\"},{\"properties\":{\"workflowTemplateId\":\"jfbocyvh\",\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"tywikd\",\"type\":\"EdgeZone\"},\"eTag\":\"akuflgbhgauacdix\",\"id\":\"ufr\",\"name\":\"ryjqgdkf\",\"type\":\"ozo\"},{\"properties\":{\"workflowTemplateId\":\"bvjhvefgwbmqj\",\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"asfaymxbulpze\",\"type\":\"EdgeZone\"},\"eTag\":\"mqkyojwyvfkmbts\",\"id\":\"hxsgxj\",\"name\":\"mmzrrscub\",\"type\":\"wsdrnpxqwodif\"}],\"nextLink\":\"xcjr\"}") .toObject(WorkflowListResult.class); - Assertions.assertEquals("tjeaahhvjhh", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("euaulxu", model.nextLink()); + Assertions.assertEquals("csjvhrwef", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type()); + Assertions.assertEquals("xcjr", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowPropertiesTests.java index f444951eec47a..4b065a6570272 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowPropertiesTests.java @@ -11,7 +11,7 @@ public final class WorkflowPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkflowProperties model - = BinaryData.fromString("{\"workflowTemplateId\":\"msidxasicddyvv\",\"provisioningState\":\"InProgress\"}") + = BinaryData.fromString("{\"workflowTemplateId\":\"hillce\",\"provisioningState\":\"Deleting\"}") .toObject(WorkflowProperties.class); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionInnerTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionInnerTests.java index 9eeb77676650e..89fcf07309dc0 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionInnerTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionInnerTests.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.workloadorchestration.models.TaskOption; import com.azure.resourcemanager.workloadorchestration.models.TaskSpec; import com.azure.resourcemanager.workloadorchestration.models.WorkflowVersionProperties; +import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -23,73 +24,74 @@ public final class WorkflowVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkflowVersionInner model = BinaryData.fromString( - "{\"properties\":{\"revision\":1584096460,\"configuration\":\"nkppxynen\",\"stageSpec\":[{\"name\":\"vxei\",\"specification\":{},\"tasks\":[{\"name\":\"lnsrmffe\",\"targetId\":\"xcktpiymerteeamm\",\"specification\":{}},{\"name\":\"iekkkzddrtkgdojb\",\"targetId\":\"vavrefdees\",\"specification\":{}},{\"name\":\"cuijpxt\",\"targetId\":\"uwprtujwsawd\",\"specification\":{}}],\"taskOption\":{\"concurrency\":1148238938,\"errorAction\":{\"mode\":\"stopOnNFailures\",\"maxToleratedFailures\":1148508080}}},{\"name\":\"itvtzeexavo\",\"specification\":{},\"tasks\":[{\"name\":\"ecdmdqbwpy\",\"targetId\":\"tgsfja\",\"specification\":{}},{\"name\":\"slhhxudbxv\",\"targetId\":\"htnsi\",\"specification\":{}},{\"name\":\"dhzmmesckdlp\",\"targetId\":\"zrcxfailcfxwmdbo\",\"specification\":{}}],\"taskOption\":{\"concurrency\":1260487269,\"errorAction\":{\"mode\":\"silentlyContinue\",\"maxToleratedFailures\":1025084643}}},{\"name\":\"obrjlnacgcc\",\"specification\":{},\"tasks\":[{\"name\":\"kizvytn\",\"targetId\":\"vuljraaeranokqg\",\"specification\":{}},{\"name\":\"kjq\",\"targetId\":\"broyla\",\"specification\":{}}],\"taskOption\":{\"concurrency\":1120271954,\"errorAction\":{\"mode\":\"stopOnAnyFailure\",\"maxToleratedFailures\":2065681131}}},{\"name\":\"sfjbjsvg\",\"specification\":{},\"tasks\":[{\"name\":\"yvycytdclxgcckn\",\"targetId\":\"wmbtmvpdvjdhtt\",\"specification\":{}}],\"taskOption\":{\"concurrency\":1761945314,\"errorAction\":{\"mode\":\"silentlyContinue\",\"maxToleratedFailures\":439511971}}}],\"reviewId\":\"rphkmcrjdqnsdfz\",\"state\":\"PendingExternalValidation\",\"specification\":{},\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"kdghrjeuutlwx\",\"type\":\"EdgeZone\"},\"eTag\":\"zhokvbwnhh\",\"id\":\"lgehg\",\"name\":\"pipifh\",\"type\":\"f\"}") + "{\"properties\":{\"revision\":635821645,\"configuration\":\"wibvjogj\",\"stageSpec\":[{\"name\":\"mcyefoyzbam\",\"specification\":{\"evboclzhzjknyuxg\":\"\\\"dataeofvfkakpoldt\\\"\"},\"tasks\":[{\"name\":\"xpn\",\"targetId\":\"pzaamrdixtreki\",\"specification\":{\"k\":\"\\\"datawyskbruffgll\\\"\",\"qhvmblcouqe\":\"\\\"datautvlxhr\\\"\",\"randoypmb\":\"\\\"databhbcdszir\\\"\"}},{\"name\":\"t\",\"targetId\":\"rmkfqlwxldykals\",\"specification\":{\"ibjgsjjxxahm\":\"\\\"dataaolnjpnnbmjk\\\"\"}},{\"name\":\"nadzyq\",\"targetId\":\"xyivpinbm\",\"specification\":{\"bkezn\":\"\\\"databjijkgqxnh\\\"\",\"nggiycwkdtaa\":\"\\\"dataaujvaa\\\"\"}}],\"taskOption\":{\"concurrency\":388566249,\"errorAction\":{\"mode\":\"silentlyContinue\",\"maxToleratedFailures\":1402948836}}}],\"reviewId\":\"rq\",\"state\":\"NotApplicable\",\"specification\":{\"idbirkfpkso\":\"\\\"datakratbnxwbj\\\"\",\"ewijymrhbguz\":\"\\\"datadgo\\\"\",\"nfnzhhh\":\"\\\"datazkye\\\"\",\"mffjkutycyarn\":\"\\\"datao\\\"\"},\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"g\",\"type\":\"CustomLocation\"},\"eTag\":\"zoghktdpyczhc\",\"id\":\"ocnhzqrottjzcfyj\",\"name\":\"pt\",\"type\":\"rl\"}") .toObject(WorkflowVersionInner.class); - Assertions.assertEquals("vxei", model.properties().stageSpec().get(0).name()); - Assertions.assertEquals("lnsrmffe", model.properties().stageSpec().get(0).tasks().get(0).name()); - Assertions.assertEquals("xcktpiymerteeamm", model.properties().stageSpec().get(0).tasks().get(0).targetId()); - Assertions.assertEquals(1148238938, model.properties().stageSpec().get(0).taskOption().concurrency()); - Assertions.assertEquals(ErrorActionMode.STOP_ON_NFAILURES, + Assertions.assertEquals("mcyefoyzbam", model.properties().stageSpec().get(0).name()); + Assertions.assertEquals("xpn", model.properties().stageSpec().get(0).tasks().get(0).name()); + Assertions.assertEquals("pzaamrdixtreki", model.properties().stageSpec().get(0).tasks().get(0).targetId()); + Assertions.assertEquals(388566249, model.properties().stageSpec().get(0).taskOption().concurrency()); + Assertions.assertEquals(ErrorActionMode.SILENTLY_CONTINUE, model.properties().stageSpec().get(0).taskOption().errorAction().mode()); - Assertions.assertEquals(1148508080, + Assertions.assertEquals(1402948836, model.properties().stageSpec().get(0).taskOption().errorAction().maxToleratedFailures()); - Assertions.assertEquals("kdghrjeuutlwx", model.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); + Assertions.assertEquals("g", model.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkflowVersionInner model = new WorkflowVersionInner() - .withProperties(new WorkflowVersionProperties().withStageSpec(Arrays.asList(new StageSpec().withName("vxei") - .withSpecification(mapOf()) - .withTasks(Arrays.asList( - new TaskSpec().withName("lnsrmffe").withTargetId("xcktpiymerteeamm").withSpecification(mapOf()), - new TaskSpec().withName("iekkkzddrtkgdojb").withTargetId("vavrefdees").withSpecification(mapOf()), - new TaskSpec().withName("cuijpxt").withTargetId("uwprtujwsawd").withSpecification(mapOf()))) - .withTaskOption(new TaskOption().withConcurrency(1148238938) - .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_NFAILURES) - .withMaxToleratedFailures(1148508080))), - new StageSpec().withName("itvtzeexavo") - .withSpecification(mapOf()) - .withTasks(Arrays.asList( - new TaskSpec().withName("ecdmdqbwpy").withTargetId("tgsfja").withSpecification(mapOf()), - new TaskSpec().withName("slhhxudbxv").withTargetId("htnsi").withSpecification(mapOf()), - new TaskSpec().withName("dhzmmesckdlp") - .withTargetId("zrcxfailcfxwmdbo") - .withSpecification(mapOf()))) - .withTaskOption(new TaskOption().withConcurrency(1260487269) - .withErrorAction(new ErrorAction().withMode(ErrorActionMode.SILENTLY_CONTINUE) - .withMaxToleratedFailures(1025084643))), - new StageSpec().withName("obrjlnacgcc") - .withSpecification(mapOf()) - .withTasks(Arrays.asList( - new TaskSpec().withName("kizvytn").withTargetId("vuljraaeranokqg").withSpecification(mapOf()), - new TaskSpec().withName("kjq").withTargetId("broyla").withSpecification(mapOf()))) - .withTaskOption(new TaskOption().withConcurrency(1120271954) - .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE) - .withMaxToleratedFailures(2065681131))), - new StageSpec().withName("sfjbjsvg") - .withSpecification(mapOf()) - .withTasks(Arrays.asList(new TaskSpec().withName("yvycytdclxgcckn") - .withTargetId("wmbtmvpdvjdhtt") - .withSpecification(mapOf()))) - .withTaskOption(new TaskOption().withConcurrency(1761945314) - .withErrorAction(new ErrorAction().withMode(ErrorActionMode.SILENTLY_CONTINUE) - .withMaxToleratedFailures(439511971))))) - .withSpecification(mapOf())) - .withExtendedLocation( - new ExtendedLocation().withName("kdghrjeuutlwx").withType(ExtendedLocationType.EDGE_ZONE)); + WorkflowVersionInner model + = new WorkflowVersionInner() + .withProperties( + new WorkflowVersionProperties() + .withStageSpec( + Arrays.asList(new StageSpec().withName("mcyefoyzbam") + .withSpecification(mapOf("evboclzhzjknyuxg", + BinaryData.fromBytes("\"dataeofvfkakpoldt\"".getBytes(StandardCharsets.UTF_8)))) + .withTasks(Arrays.asList( + new TaskSpec().withName("xpn") + .withTargetId("pzaamrdixtreki") + .withSpecification(mapOf("k", + BinaryData.fromBytes( + "\"datawyskbruffgll\"".getBytes(StandardCharsets.UTF_8)), + "qhvmblcouqe", + BinaryData.fromBytes("\"datautvlxhr\"".getBytes(StandardCharsets.UTF_8)), + "randoypmb", + BinaryData + .fromBytes("\"databhbcdszir\"".getBytes(StandardCharsets.UTF_8)))), + new TaskSpec() + .withName("t") + .withTargetId("rmkfqlwxldykals") + .withSpecification(mapOf("ibjgsjjxxahm", + BinaryData + .fromBytes("\"dataaolnjpnnbmjk\"".getBytes(StandardCharsets.UTF_8)))), + new TaskSpec().withName("nadzyq") + .withTargetId("xyivpinbm") + .withSpecification(mapOf("bkezn", + BinaryData.fromBytes("\"databjijkgqxnh\"".getBytes(StandardCharsets.UTF_8)), + "nggiycwkdtaa", + BinaryData.fromBytes("\"dataaujvaa\"".getBytes(StandardCharsets.UTF_8)))))) + .withTaskOption(new TaskOption().withConcurrency(388566249) + .withErrorAction(new ErrorAction().withMode(ErrorActionMode.SILENTLY_CONTINUE) + .withMaxToleratedFailures(1402948836))))) + .withSpecification(mapOf("idbirkfpkso", + BinaryData.fromBytes("\"datakratbnxwbj\"".getBytes(StandardCharsets.UTF_8)), "ewijymrhbguz", + BinaryData.fromBytes("\"datadgo\"".getBytes(StandardCharsets.UTF_8)), "nfnzhhh", + BinaryData.fromBytes("\"datazkye\"".getBytes(StandardCharsets.UTF_8)), "mffjkutycyarn", + BinaryData.fromBytes("\"datao\"".getBytes(StandardCharsets.UTF_8))))) + .withExtendedLocation( + new ExtendedLocation().withName("g").withType(ExtendedLocationType.CUSTOM_LOCATION)); model = BinaryData.fromObject(model).toObject(WorkflowVersionInner.class); - Assertions.assertEquals("vxei", model.properties().stageSpec().get(0).name()); - Assertions.assertEquals("lnsrmffe", model.properties().stageSpec().get(0).tasks().get(0).name()); - Assertions.assertEquals("xcktpiymerteeamm", model.properties().stageSpec().get(0).tasks().get(0).targetId()); - Assertions.assertEquals(1148238938, model.properties().stageSpec().get(0).taskOption().concurrency()); - Assertions.assertEquals(ErrorActionMode.STOP_ON_NFAILURES, + Assertions.assertEquals("mcyefoyzbam", model.properties().stageSpec().get(0).name()); + Assertions.assertEquals("xpn", model.properties().stageSpec().get(0).tasks().get(0).name()); + Assertions.assertEquals("pzaamrdixtreki", model.properties().stageSpec().get(0).tasks().get(0).targetId()); + Assertions.assertEquals(388566249, model.properties().stageSpec().get(0).taskOption().concurrency()); + Assertions.assertEquals(ErrorActionMode.SILENTLY_CONTINUE, model.properties().stageSpec().get(0).taskOption().errorAction().mode()); - Assertions.assertEquals(1148508080, + Assertions.assertEquals(1402948836, model.properties().stageSpec().get(0).taskOption().errorAction().maxToleratedFailures()); - Assertions.assertEquals("kdghrjeuutlwx", model.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.extendedLocation().type()); + Assertions.assertEquals("g", model.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.extendedLocation().type()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionListResultTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionListResultTests.java index 6591de5fc01e3..c6e68b4c3ed63 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionListResultTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionListResultTests.java @@ -13,12 +13,12 @@ public final class WorkflowVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkflowVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"revision\":1540077554,\"configuration\":\"hcxlpm\",\"stageSpec\":[{\"name\":\"rbdkelvidiz\",\"specification\":{},\"tasks\":[{\"name\":\"ccxjm\",\"specification\":{}},{\"name\":\"nfdgn\",\"specification\":{}},{\"name\":\"n\",\"specification\":{}}],\"taskOption\":{}},{\"name\":\"puuw\",\"specification\":{},\"tasks\":[{\"name\":\"qjctzenkeif\",\"specification\":{}}],\"taskOption\":{}}],\"reviewId\":\"mkdasv\",\"state\":\"InReview\",\"specification\":{},\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"dchxgsrboldfor\",\"type\":\"EdgeZone\"},\"eTag\":\"jlvizbfhfovva\",\"id\":\"pbt\",\"name\":\"odxeszabbela\",\"type\":\"umuaslzkwrrwoycq\"},{\"properties\":{\"revision\":913388028,\"configuration\":\"ahnomdrkywu\",\"stageSpec\":[{\"name\":\"svfuurutlwexxwl\",\"specification\":{},\"tasks\":[{\"name\":\"xzsrzpge\",\"specification\":{}},{\"name\":\"q\",\"specification\":{}}],\"taskOption\":{}},{\"name\":\"bb\",\"specification\":{},\"tasks\":[{\"name\":\"akchzyvlixqnrk\",\"specification\":{}},{\"name\":\"xkjibnxmy\",\"specification\":{}},{\"name\":\"uxswqrntvl\",\"specification\":{}}],\"taskOption\":{}},{\"name\":\"jpsttexoq\",\"specification\":{},\"tasks\":[{\"name\":\"yufmhruncuwmq\",\"specification\":{}},{\"name\":\"pkcdqzhlct\",\"specification\":{}},{\"name\":\"dunqnd\",\"specification\":{}}],\"taskOption\":{}},{\"name\":\"pchrqbn\",\"specification\":{},\"tasks\":[{\"name\":\"egy\",\"specification\":{}},{\"name\":\"cw\",\"specification\":{}},{\"name\":\"oxjumvqqo\",\"specification\":{}},{\"name\":\"ihrraiouaub\",\"specification\":{}}],\"taskOption\":{}}],\"reviewId\":\"loqxfuojrngif\",\"state\":\"PendingExternalValidation\",\"specification\":{},\"provisioningState\":\"InProgress\"},\"extendedLocation\":{\"name\":\"biuimzdlyjdfq\",\"type\":\"CustomLocation\"},\"eTag\":\"yoqufdvruz\",\"id\":\"zojhpctfnmd\",\"name\":\"otngfdgu\",\"type\":\"eyzihgrky\"},{\"properties\":{\"revision\":1970936135,\"configuration\":\"snmfpphojeevy\",\"stageSpec\":[{\"name\":\"hsgz\",\"specification\":{},\"tasks\":[{\"name\":\"omfgbeglqgleohib\",\"specification\":{}},{\"name\":\"tnluankrr\",\"specification\":{}},{\"name\":\"xeeebtijvacvbmqz\",\"specification\":{}}],\"taskOption\":{}},{\"name\":\"q\",\"specification\":{},\"tasks\":[{\"name\":\"nw\",\"specification\":{}},{\"name\":\"acevehjkuyx\",\"specification\":{}},{\"name\":\"afgaoqlt\",\"specification\":{}},{\"name\":\"aeylinm\",\"specification\":{}}],\"taskOption\":{}}],\"reviewId\":\"xirpghriy\",\"state\":\"Staging\",\"specification\":{},\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"h\",\"type\":\"CustomLocation\"},\"eTag\":\"rlpyznuciqdsmexi\",\"id\":\"dfuxtya\",\"name\":\"iibmi\",\"type\":\"bnn\"}],\"nextLink\":\"tgnljhnmgixhcmav\"}") + "{\"value\":[{\"properties\":{\"revision\":1369230594,\"configuration\":\"bztensvkzykjtj\",\"stageSpec\":[{\"name\":\"sxfwushcdp\",\"specification\":{\"mgjfbpkuwxeoio\":\"\\\"datanq\\\"\"},\"tasks\":[{\"name\":\"zfav\",\"specification\":{}},{\"name\":\"jzwfb\",\"specification\":{}},{\"name\":\"yay\",\"specification\":{}}],\"taskOption\":{}},{\"name\":\"mfzsbf\",\"specification\":{\"rsxkr\":\"\\\"datazxmdew\\\"\"},\"tasks\":[{\"name\":\"jazejwwviyoyp\",\"specification\":{}},{\"name\":\"uhbrnnhjxsq\",\"specification\":{}},{\"name\":\"jhqkbiwetpozy\",\"specification\":{}}],\"taskOption\":{}}],\"reviewId\":\"iqyhgfse\",\"state\":\"NotApplicable\",\"specification\":{\"fbzkk\":\"\\\"databsfledynojpziu\\\"\",\"selpkpbaf\":\"\\\"datatnhqsycl\\\"\",\"cbevxrhyzdfw\":\"\\\"dataafhlbyl\\\"\"},\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"name\":\"pl\",\"type\":\"CustomLocation\"},\"eTag\":\"mairrh\",\"id\":\"fnrac\",\"name\":\"npq\",\"type\":\"g\"}],\"nextLink\":\"ujwouhdawsi\"}") .toObject(WorkflowVersionListResult.class); - Assertions.assertEquals("rbdkelvidiz", model.value().get(0).properties().stageSpec().get(0).name()); - Assertions.assertEquals("ccxjm", model.value().get(0).properties().stageSpec().get(0).tasks().get(0).name()); - Assertions.assertEquals("dchxgsrboldfor", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("tgnljhnmgixhcmav", model.nextLink()); + Assertions.assertEquals("sxfwushcdp", model.value().get(0).properties().stageSpec().get(0).name()); + Assertions.assertEquals("zfav", model.value().get(0).properties().stageSpec().get(0).tasks().get(0).name()); + Assertions.assertEquals("pl", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type()); + Assertions.assertEquals("ujwouhdawsi", model.nextLink()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionPropertiesTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionPropertiesTests.java index 0b5af544a696c..635af57587ce6 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionPropertiesTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionPropertiesTests.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.workloadorchestration.models.TaskOption; import com.azure.resourcemanager.workloadorchestration.models.TaskSpec; import com.azure.resourcemanager.workloadorchestration.models.WorkflowVersionProperties; +import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -20,64 +21,101 @@ public final class WorkflowVersionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkflowVersionProperties model = BinaryData.fromString( - "{\"revision\":1885635288,\"configuration\":\"vgcxtx\",\"stageSpec\":[{\"name\":\"sheafid\",\"specification\":{},\"tasks\":[{\"name\":\"resmkssjhoiftxfk\",\"targetId\":\"egprhptil\",\"specification\":{}}],\"taskOption\":{\"concurrency\":2086555538,\"errorAction\":{\"mode\":\"stopOnNFailures\",\"maxToleratedFailures\":13160998}}},{\"name\":\"ohmcwsld\",\"specification\":{},\"tasks\":[{\"name\":\"pwbralllibphbqz\",\"targetId\":\"zakakankjpdn\",\"specification\":{}}],\"taskOption\":{\"concurrency\":1242778940,\"errorAction\":{\"mode\":\"stopOnAnyFailure\",\"maxToleratedFailures\":2052287318}}},{\"name\":\"lmuoyxprimrsopte\",\"specification\":{},\"tasks\":[{\"name\":\"islstv\",\"targetId\":\"ylw\",\"specification\":{}},{\"name\":\"zaum\",\"targetId\":\"oohgu\",\"specification\":{}},{\"name\":\"uzboyjathw\",\"targetId\":\"olbaemwmdx\",\"specification\":{}},{\"name\":\"bwjscjpahlxveab\",\"targetId\":\"xnmwmqtibxyijddt\",\"specification\":{}}],\"taskOption\":{\"concurrency\":747956494,\"errorAction\":{\"mode\":\"stopOnAnyFailure\",\"maxToleratedFailures\":1119917570}}},{\"name\":\"eukmr\",\"specification\":{},\"tasks\":[{\"name\":\"pndzaapmudqmeq\",\"targetId\":\"gp\",\"specification\":{}}],\"taskOption\":{\"concurrency\":674250391,\"errorAction\":{\"mode\":\"stopOnAnyFailure\",\"maxToleratedFailures\":2053314156}}}],\"reviewId\":\"ybpmzznrtffyaq\",\"state\":\"Deploying\",\"specification\":{},\"provisioningState\":\"InProgress\"}") + "{\"revision\":1481424114,\"configuration\":\"qinfszpyglqd\",\"stageSpec\":[{\"name\":\"rjzralcx\",\"specification\":{\"enky\":\"\\\"datayypsjoqc\\\"\",\"vsqxfxjelgcmpzqj\":\"\\\"datafq\\\"\",\"s\":\"\\\"datahhqxuwyvcacoyviv\\\"\",\"bscm\":\"\\\"datazusjsz\\\"\"},\"tasks\":[{\"name\":\"ijiufehgmvfln\",\"targetId\":\"v\",\"specification\":{\"xzutgqztwhghmupg\":\"\\\"dataxrerlniylylyf\\\"\",\"nbbklqpxzucafed\":\"\\\"datayjtcdxabbujftab\\\"\",\"ookrtalvnbw\":\"\\\"datawwnlzafwxudgnh\\\"\",\"uclvdjj\":\"\\\"datapbeme\\\"\"}},{\"name\":\"kyrdnqodx\",\"targetId\":\"h\",\"specification\":{\"ipemchgavscz\":\"\\\"dataqfaqnvzoqg\\\"\",\"h\":\"\\\"dataejdtxptl\\\"\"}},{\"name\":\"zhomewjjstliu\",\"targetId\":\"awmo\",\"specification\":{\"vodrrslblxydkxr\":\"\\\"dataancz\\\"\"}}],\"taskOption\":{\"concurrency\":879177175,\"errorAction\":{\"mode\":\"stopOnAnyFailure\",\"maxToleratedFailures\":207491772}}},{\"name\":\"fbqljnqkh\",\"specification\":{\"urqlrqffawey\":\"\\\"dataocokule\\\"\"},\"tasks\":[{\"name\":\"phyjdxravj\",\"targetId\":\"dbrxmrgc\",\"specification\":{\"iyfjjkbajbuscg\":\"\\\"dataapx\\\"\",\"mclujyxkyxlzgs\":\"\\\"datauusioycblev\\\"\",\"taf\":\"\\\"datagkzz\\\"\"}},{\"name\":\"bzf\",\"targetId\":\"vwmbjlzqsczpg\",\"specification\":{\"owftptnuwjtks\":\"\\\"datawnapfdq\\\"\",\"cgqyhleseyq\":\"\\\"datah\\\"\"}},{\"name\":\"hvyeldotj\",\"targetId\":\"kwiswskukjtas\",\"specification\":{\"txfkndlqvt\":\"\\\"datawispkxk\\\"\",\"qaqkuea\":\"\\\"dataknvgmmbugtywat\\\"\"}}],\"taskOption\":{\"concurrency\":1215629075,\"errorAction\":{\"mode\":\"silentlyContinue\",\"maxToleratedFailures\":860318292}}}],\"reviewId\":\"zcbyfq\",\"state\":\"ReadyToDeploy\",\"specification\":{\"wckygr\":\"\\\"dataytehqpuvjmvqmt\\\"\",\"kb\":\"\\\"dataejnndljdju\\\"\",\"n\":\"\\\"datareq\\\"\"},\"provisioningState\":\"InProgress\"}") .toObject(WorkflowVersionProperties.class); - Assertions.assertEquals("sheafid", model.stageSpec().get(0).name()); - Assertions.assertEquals("resmkssjhoiftxfk", model.stageSpec().get(0).tasks().get(0).name()); - Assertions.assertEquals("egprhptil", model.stageSpec().get(0).tasks().get(0).targetId()); - Assertions.assertEquals(2086555538, model.stageSpec().get(0).taskOption().concurrency()); - Assertions.assertEquals(ErrorActionMode.STOP_ON_NFAILURES, + Assertions.assertEquals("rjzralcx", model.stageSpec().get(0).name()); + Assertions.assertEquals("ijiufehgmvfln", model.stageSpec().get(0).tasks().get(0).name()); + Assertions.assertEquals("v", model.stageSpec().get(0).tasks().get(0).targetId()); + Assertions.assertEquals(879177175, model.stageSpec().get(0).taskOption().concurrency()); + Assertions.assertEquals(ErrorActionMode.STOP_ON_ANY_FAILURE, model.stageSpec().get(0).taskOption().errorAction().mode()); - Assertions.assertEquals(13160998, model.stageSpec().get(0).taskOption().errorAction().maxToleratedFailures()); + Assertions.assertEquals(207491772, model.stageSpec().get(0).taskOption().errorAction().maxToleratedFailures()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkflowVersionProperties model = new WorkflowVersionProperties().withStageSpec(Arrays.asList( - new StageSpec().withName("sheafid") - .withSpecification(mapOf()) - .withTasks(Arrays.asList( - new TaskSpec().withName("resmkssjhoiftxfk").withTargetId("egprhptil").withSpecification(mapOf()))) - .withTaskOption( - new TaskOption().withConcurrency(2086555538) - .withErrorAction(new ErrorAction() - .withMode(ErrorActionMode.STOP_ON_NFAILURES) - .withMaxToleratedFailures(13160998))), - new StageSpec().withName("ohmcwsld") - .withSpecification(mapOf()) - .withTasks(Arrays.asList( - new TaskSpec().withName("pwbralllibphbqz").withTargetId("zakakankjpdn").withSpecification(mapOf()))) - .withTaskOption(new TaskOption().withConcurrency(1242778940) - .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE) - .withMaxToleratedFailures(2052287318))), - new StageSpec().withName("lmuoyxprimrsopte") - .withSpecification(mapOf()) - .withTasks( - Arrays.asList(new TaskSpec().withName("islstv").withTargetId("ylw").withSpecification(mapOf()), - new TaskSpec().withName("zaum").withTargetId("oohgu").withSpecification(mapOf()), - new TaskSpec().withName("uzboyjathw").withTargetId("olbaemwmdx").withSpecification(mapOf()), - new TaskSpec().withName("bwjscjpahlxveab") - .withTargetId("xnmwmqtibxyijddt") - .withSpecification(mapOf()))) - .withTaskOption(new TaskOption().withConcurrency(747956494) - .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE) - .withMaxToleratedFailures(1119917570))), - new StageSpec().withName("eukmr") - .withSpecification(mapOf()) - .withTasks(Arrays - .asList(new TaskSpec().withName("pndzaapmudqmeq").withTargetId("gp").withSpecification(mapOf()))) - .withTaskOption(new TaskOption().withConcurrency(674250391) - .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE) - .withMaxToleratedFailures(2053314156))))) - .withSpecification(mapOf()); + WorkflowVersionProperties model + = new WorkflowVersionProperties() + .withStageSpec( + Arrays + .asList( + new StageSpec().withName("rjzralcx") + .withSpecification(mapOf("enky", + BinaryData.fromBytes("\"datayypsjoqc\"".getBytes(StandardCharsets.UTF_8)), + "vsqxfxjelgcmpzqj", + BinaryData.fromBytes("\"datafq\"".getBytes(StandardCharsets.UTF_8)), "s", + BinaryData + .fromBytes("\"datahhqxuwyvcacoyviv\"".getBytes(StandardCharsets.UTF_8)), + "bscm", BinaryData.fromBytes("\"datazusjsz\"".getBytes(StandardCharsets.UTF_8)))) + .withTasks(Arrays.asList( + new TaskSpec().withName("ijiufehgmvfln") + .withTargetId("v") + .withSpecification(mapOf("xzutgqztwhghmupg", + BinaryData + .fromBytes("\"dataxrerlniylylyf\"".getBytes(StandardCharsets.UTF_8)), + "nbbklqpxzucafed", + BinaryData + .fromBytes("\"datayjtcdxabbujftab\"".getBytes(StandardCharsets.UTF_8)), + "ookrtalvnbw", + BinaryData.fromBytes( + "\"datawwnlzafwxudgnh\"".getBytes(StandardCharsets.UTF_8)), + "uclvdjj", + BinaryData.fromBytes("\"datapbeme\"".getBytes(StandardCharsets.UTF_8)))), + new TaskSpec().withName("kyrdnqodx") + .withTargetId("h") + .withSpecification(mapOf("ipemchgavscz", + BinaryData.fromBytes("\"dataqfaqnvzoqg\"".getBytes(StandardCharsets.UTF_8)), + "h", + BinaryData.fromBytes("\"dataejdtxptl\"".getBytes(StandardCharsets.UTF_8)))), + new TaskSpec() + .withName("zhomewjjstliu") + .withTargetId("awmo") + .withSpecification(mapOf("vodrrslblxydkxr", + BinaryData.fromBytes("\"dataancz\"".getBytes(StandardCharsets.UTF_8)))))) + .withTaskOption(new TaskOption().withConcurrency(879177175) + .withErrorAction(new ErrorAction().withMode(ErrorActionMode.STOP_ON_ANY_FAILURE) + .withMaxToleratedFailures(207491772))), + new StageSpec().withName("fbqljnqkh") + .withSpecification(mapOf("urqlrqffawey", + BinaryData.fromBytes("\"dataocokule\"".getBytes(StandardCharsets.UTF_8)))) + .withTasks(Arrays.asList( + new TaskSpec().withName("phyjdxravj") + .withTargetId("dbrxmrgc") + .withSpecification(mapOf("iyfjjkbajbuscg", + BinaryData.fromBytes("\"dataapx\"".getBytes(StandardCharsets.UTF_8)), + "mclujyxkyxlzgs", + BinaryData.fromBytes( + "\"datauusioycblev\"".getBytes(StandardCharsets.UTF_8)), + "taf", + BinaryData.fromBytes("\"datagkzz\"".getBytes(StandardCharsets.UTF_8)))), + new TaskSpec().withName("bzf") + .withTargetId("vwmbjlzqsczpg") + .withSpecification(mapOf("owftptnuwjtks", + BinaryData.fromBytes("\"datawnapfdq\"".getBytes(StandardCharsets.UTF_8)), + "cgqyhleseyq", + BinaryData.fromBytes("\"datah\"".getBytes(StandardCharsets.UTF_8)))), + new TaskSpec().withName("hvyeldotj") + .withTargetId("kwiswskukjtas") + .withSpecification(mapOf("txfkndlqvt", + BinaryData.fromBytes("\"datawispkxk\"".getBytes(StandardCharsets.UTF_8)), + "qaqkuea", + BinaryData.fromBytes( + "\"dataknvgmmbugtywat\"".getBytes(StandardCharsets.UTF_8)))))) + .withTaskOption(new TaskOption().withConcurrency(1215629075) + .withErrorAction(new ErrorAction().withMode(ErrorActionMode.SILENTLY_CONTINUE) + .withMaxToleratedFailures(860318292))))) + .withSpecification( + mapOf("wckygr", BinaryData.fromBytes("\"dataytehqpuvjmvqmt\"".getBytes(StandardCharsets.UTF_8)), + "kb", BinaryData.fromBytes("\"dataejnndljdju\"".getBytes(StandardCharsets.UTF_8)), "n", + BinaryData.fromBytes("\"datareq\"".getBytes(StandardCharsets.UTF_8)))); model = BinaryData.fromObject(model).toObject(WorkflowVersionProperties.class); - Assertions.assertEquals("sheafid", model.stageSpec().get(0).name()); - Assertions.assertEquals("resmkssjhoiftxfk", model.stageSpec().get(0).tasks().get(0).name()); - Assertions.assertEquals("egprhptil", model.stageSpec().get(0).tasks().get(0).targetId()); - Assertions.assertEquals(2086555538, model.stageSpec().get(0).taskOption().concurrency()); - Assertions.assertEquals(ErrorActionMode.STOP_ON_NFAILURES, + Assertions.assertEquals("rjzralcx", model.stageSpec().get(0).name()); + Assertions.assertEquals("ijiufehgmvfln", model.stageSpec().get(0).tasks().get(0).name()); + Assertions.assertEquals("v", model.stageSpec().get(0).tasks().get(0).targetId()); + Assertions.assertEquals(879177175, model.stageSpec().get(0).taskOption().concurrency()); + Assertions.assertEquals(ErrorActionMode.STOP_ON_ANY_FAILURE, model.stageSpec().get(0).taskOption().errorAction().mode()); - Assertions.assertEquals(13160998, model.stageSpec().get(0).taskOption().errorAction().maxToleratedFailures()); + Assertions.assertEquals(207491772, model.stageSpec().get(0).taskOption().errorAction().maxToleratedFailures()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsCreateOrUpdateMockTests.java index f1477e783e93d..c5ef28763328b 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsCreateOrUpdateMockTests.java @@ -9,6 +9,7 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.util.BinaryData; import com.azure.resourcemanager.workloadorchestration.WorkloadOrchestrationManager; import com.azure.resourcemanager.workloadorchestration.models.ErrorAction; import com.azure.resourcemanager.workloadorchestration.models.ExtendedLocation; @@ -31,7 +32,7 @@ public final class WorkflowVersionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"revision\":497820595,\"configuration\":\"ovribq\",\"stageSpec\":[{\"name\":\"tokhtvwtaznkcqw\",\"specification\":{},\"tasks\":[{\"name\":\"ofgwh\",\"specification\":{}},{\"name\":\"kbtlwljssm\",\"specification\":{}},{\"name\":\"tsnld\",\"specification\":{}},{\"name\":\"pwolgisubxb\",\"specification\":{}}],\"taskOption\":{\"concurrency\":813923997,\"errorAction\":{}}},{\"name\":\"gfii\",\"specification\":{},\"tasks\":[{\"name\":\"lefksxq\",\"specification\":{}},{\"name\":\"eazfpxgnmqvzvlu\",\"specification\":{}},{\"name\":\"q\",\"specification\":{}},{\"name\":\"aiossscyvaifp\",\"specification\":{}}],\"taskOption\":{\"concurrency\":1974468005,\"errorAction\":{}}},{\"name\":\"fye\",\"specification\":{},\"tasks\":[{\"name\":\"x\",\"specification\":{}},{\"name\":\"jdhsoy\",\"specification\":{}},{\"name\":\"hpvtyqftteh\",\"specification\":{}}],\"taskOption\":{\"concurrency\":456494066,\"errorAction\":{}}},{\"name\":\"jstkfvvdshxcd\",\"specification\":{},\"tasks\":[{\"name\":\"nygnxcgjtfrnquk\",\"specification\":{}},{\"name\":\"rf\",\"specification\":{}},{\"name\":\"s\",\"specification\":{}},{\"name\":\"nlrxsmyltrwntfmt\",\"specification\":{}}],\"taskOption\":{\"concurrency\":1421181653,\"errorAction\":{}}}],\"reviewId\":\"wnaz\",\"state\":\"Undeployed\",\"specification\":{},\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"zjwhsetwwjwz\",\"type\":\"CustomLocation\"},\"eTag\":\"e\",\"id\":\"uukykcyqh\",\"name\":\"qqzzdc\",\"type\":\"keys\"}"; + = "{\"properties\":{\"revision\":689380732,\"configuration\":\"d\",\"stageSpec\":[{\"name\":\"hqdcclcvqsr\",\"specification\":{\"ry\":\"\\\"dataylcvwbzmfx\\\"\"},\"tasks\":[{\"name\":\"xlpiywqnpfydr\",\"specification\":{}},{\"name\":\"bgcnyxbyx\",\"specification\":{}}],\"taskOption\":{\"concurrency\":392453063,\"errorAction\":{}}},{\"name\":\"ync\",\"specification\":{\"styygjq\":\"\\\"datall\\\"\"},\"tasks\":[{\"name\":\"mwqgmh\",\"specification\":{}},{\"name\":\"qmiwxzfvvzucqfg\",\"specification\":{}}],\"taskOption\":{\"concurrency\":2137205011,\"errorAction\":{}}}],\"reviewId\":\"wbmwdukinhl\",\"state\":\"ReadyToUpgrade\",\"specification\":{\"zrdwcg\":\"\\\"datakekzouyveww\\\"\",\"tdqtdnnckkplj\":\"\\\"datadohgcandxfhhhte\\\"\",\"cyijj\":\"\\\"datashvvfkdx\\\"\",\"uy\":\"\\\"datamhijzrqnjxmvvs\\\"\"},\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"gruhhqldrdymn\",\"type\":\"EdgeZone\"},\"eTag\":\"i\",\"id\":\"qwqnghxnimvy\",\"name\":\"jrxgunnq\",\"type\":\"ypu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -41,35 +42,53 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); WorkflowVersion response = manager.workflowVersions() - .define("tttk") - .withExistingWorkflow("xbibanbaupw", "zvpaklozkxbzrpej", "lssan") + .define("mw") + .withExistingWorkflow("yuveoxmpz", "wahdrdvhaztkxbi", "zfgxmbry") .withProperties(new WorkflowVersionProperties() .withStageSpec(Arrays.asList( - new StageSpec().withName("huhkslgwlok") - .withSpecification(mapOf()) - .withTasks(Arrays.asList(new TaskSpec().withName("jy").withSpecification(mapOf()), - new TaskSpec().withName("cqypz").withSpecification(mapOf()), - new TaskSpec().withName("zufgs").withSpecification(mapOf()), - new TaskSpec().withName("fejyvdwtfxptpqa").withSpecification(mapOf()))) - .withTaskOption(new TaskOption().withConcurrency(235281356).withErrorAction(new ErrorAction())), - new StageSpec().withName("cf") - .withSpecification(mapOf()) - .withTasks(Arrays.asList(new TaskSpec().withName("snxoc").withSpecification(mapOf()), - new TaskSpec().withName("ullojk").withSpecification(mapOf()), - new TaskSpec().withName("oy").withSpecification(mapOf()), - new TaskSpec().withName("g").withSpecification(mapOf()))) + new StageSpec() + .withName("fdaglmrcokzzert") + .withSpecification( + mapOf("hubymfp", BinaryData.fromBytes("\"datanzsiy\"".getBytes(StandardCharsets.UTF_8)), + "nfywtkq", BinaryData.fromBytes("\"datapikzebq\"".getBytes(StandardCharsets.UTF_8)), + "dlkhczygpm", BinaryData.fromBytes("\"dataw\"".getBytes(StandardCharsets.UTF_8)))) + .withTasks(Arrays.asList(new TaskSpec().withName("culojh").withSpecification(mapOf()), + new TaskSpec().withName("ylxdevfiyymotuzb").withSpecification(mapOf()), + new TaskSpec().withName("bwjmtftcveln").withSpecification(mapOf()))) + .withTaskOption(new TaskOption().withConcurrency(297332713).withErrorAction(new ErrorAction())), + new StageSpec().withName("qnstpaqpibjg") + .withSpecification(mapOf("fab", + BinaryData.fromBytes("\"datawmehfxrttxbmsenn\"".getBytes(StandardCharsets.UTF_8)), "xsfm", + BinaryData.fromBytes("\"datacamalect\"".getBytes(StandardCharsets.UTF_8)), "nbkdnny", + BinaryData.fromBytes("\"datazdxms\"".getBytes(StandardCharsets.UTF_8)))) + .withTasks(Arrays.asList(new TaskSpec().withName("uzmsvzyqrbr").withSpecification(mapOf()), + new TaskSpec().withName("xhjtlxfikjkxarav").withSpecification(mapOf()), + new TaskSpec().withName("wuasnjeglhtrx").withSpecification(mapOf()))) + .withTaskOption(new TaskOption().withConcurrency(708477406).withErrorAction(new ErrorAction())), + new StageSpec().withName("jcnwjzb") + .withSpecification( + mapOf("i", BinaryData.fromBytes("\"dataxrnwvdsvo\"".getBytes(StandardCharsets.UTF_8)), + "sorgf", BinaryData.fromBytes("\"dataawws\"".getBytes(StandardCharsets.UTF_8)), "fh", + BinaryData.fromBytes("\"datajxsawooau\"".getBytes(StandardCharsets.UTF_8)))) + .withTasks(Arrays.asList(new TaskSpec().withName("kmwzrdqyoy").withSpecification(mapOf()), + new TaskSpec().withName("mrnotocjnzdaiovr").withSpecification(mapOf()), + new TaskSpec().withName("hrpqphkvyyzadcrx").withSpecification(mapOf()), + new TaskSpec().withName("laypdtyzv").withSpecification(mapOf()))) .withTaskOption( - new TaskOption().withConcurrency(117635238).withErrorAction(new ErrorAction())))) - .withSpecification(mapOf())) - .withExtendedLocation( - new ExtendedLocation().withName("bsgzl").withType(ExtendedLocationType.CUSTOM_LOCATION)) + new TaskOption().withConcurrency(814478846).withErrorAction(new ErrorAction())))) + .withSpecification( + mapOf("tuo", BinaryData.fromBytes("\"datamnkcclp\"".getBytes(StandardCharsets.UTF_8)), "nxs", + BinaryData.fromBytes("\"datakscxjfsgmospoe\"".getBytes(StandardCharsets.UTF_8)), "bqhsujkafu", + BinaryData.fromBytes("\"datacowscuyfqlam\"".getBytes(StandardCharsets.UTF_8)), "qpwnikxkcajgr", + BinaryData.fromBytes("\"datapn\"".getBytes(StandardCharsets.UTF_8))))) + .withExtendedLocation(new ExtendedLocation().withName("svgoocq").withType(ExtendedLocationType.EDGE_ZONE)) .create(); - Assertions.assertEquals("tokhtvwtaznkcqw", response.properties().stageSpec().get(0).name()); - Assertions.assertEquals("ofgwh", response.properties().stageSpec().get(0).tasks().get(0).name()); - Assertions.assertEquals(813923997, response.properties().stageSpec().get(0).taskOption().concurrency()); - Assertions.assertEquals("zjwhsetwwjwz", response.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); + Assertions.assertEquals("hqdcclcvqsr", response.properties().stageSpec().get(0).name()); + Assertions.assertEquals("xlpiywqnpfydr", response.properties().stageSpec().get(0).tasks().get(0).name()); + Assertions.assertEquals(392453063, response.properties().stageSpec().get(0).taskOption().concurrency()); + Assertions.assertEquals("gruhhqldrdymn", response.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); } // Use "Map.of" if available diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsGetWithResponseMockTests.java index ee00fadd33110..0da156ed2b1d8 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class WorkflowVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"revision\":1288458710,\"configuration\":\"ztekxbyjgmsfep\",\"stageSpec\":[{\"name\":\"ihpq\",\"specification\":{},\"tasks\":[{\"name\":\"hrdicxdwyjfo\",\"specification\":{}},{\"name\":\"xwyovcxjsgbip\",\"specification\":{}}],\"taskOption\":{\"concurrency\":1208173457,\"errorAction\":{}}},{\"name\":\"eksbuhoduchvls\",\"specification\":{},\"tasks\":[{\"name\":\"bfdyjduss\",\"specification\":{}}],\"taskOption\":{\"concurrency\":1022332024,\"errorAction\":{}}},{\"name\":\"kbhwlkaaggkrehbf\",\"specification\":{},\"tasks\":[{\"name\":\"ff\",\"specification\":{}},{\"name\":\"jfiimreoa\",\"specification\":{}},{\"name\":\"sqtaadusrexxfa\",\"specification\":{}},{\"name\":\"sqwudohzilfmnli\",\"specification\":{}}],\"taskOption\":{\"concurrency\":12668329,\"errorAction\":{}}}],\"reviewId\":\"feypofqpmb\",\"state\":\"InReview\",\"specification\":{},\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"mttjxophgerh\",\"type\":\"EdgeZone\"},\"eTag\":\"gohtwz\",\"id\":\"ilrixysf\",\"name\":\"imsqywwwmhk\",\"type\":\"uwaedrympmlqoi\"}"; + = "{\"properties\":{\"revision\":1754310299,\"configuration\":\"xftedaubhe\",\"stageSpec\":[{\"name\":\"gzgrnq\",\"specification\":{\"gjq\":\"\\\"dataozuumr\\\"\",\"nsyxzxjmk\":\"\\\"dataacan\\\"\",\"lazof\":\"\\\"datanb\\\"\"},\"tasks\":[{\"name\":\"vtemaspmanydscdk\",\"specification\":{}},{\"name\":\"w\",\"specification\":{}},{\"name\":\"pwjc\",\"specification\":{}}],\"taskOption\":{\"concurrency\":2144792133,\"errorAction\":{}}}],\"reviewId\":\"tofelfhpfixo\",\"state\":\"InReview\",\"specification\":{\"zzmrgtxdhmfpp\":\"\\\"datafivsujybsr\\\"\",\"zgfragjh\":\"\\\"datanmgikesmkw\\\"\",\"btqhvmmniiqyhol\":\"\\\"dataerxlobk\\\"\"},\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"kb\",\"type\":\"CustomLocation\"},\"eTag\":\"cnqwlctmw\",\"id\":\"lxkrk\",\"name\":\"gvxrktjcjigc\",\"type\":\"tspanbqxase\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); WorkflowVersion response = manager.workflowVersions() - .getWithResponse("pq", "evhamfowg", "btmkekxpkzwaq", "ofqovchiqbplv", com.azure.core.util.Context.NONE) + .getWithResponse("mxpqkjnpyriwn", "ot", "xmmqmt", "jkyjrexw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ihpq", response.properties().stageSpec().get(0).name()); - Assertions.assertEquals("hrdicxdwyjfo", response.properties().stageSpec().get(0).tasks().get(0).name()); - Assertions.assertEquals(1208173457, response.properties().stageSpec().get(0).taskOption().concurrency()); - Assertions.assertEquals("mttjxophgerh", response.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); + Assertions.assertEquals("gzgrnq", response.properties().stageSpec().get(0).name()); + Assertions.assertEquals("vtemaspmanydscdk", response.properties().stageSpec().get(0).tasks().get(0).name()); + Assertions.assertEquals(2144792133, response.properties().stageSpec().get(0).taskOption().concurrency()); + Assertions.assertEquals("kb", response.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsListByWorkflowMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsListByWorkflowMockTests.java index 91c02bd86b26b..ff85604560bbe 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsListByWorkflowMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowVersionsListByWorkflowMockTests.java @@ -23,7 +23,7 @@ public final class WorkflowVersionsListByWorkflowMockTests { @Test public void testListByWorkflow() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"revision\":1765036901,\"configuration\":\"fsbw\",\"stageSpec\":[{\"name\":\"ivbvzi\",\"specification\":{},\"tasks\":[{\"name\":\"oooxzpradmskxk\",\"specification\":{}},{\"name\":\"pdgzigjsugswhg\",\"specification\":{}}],\"taskOption\":{\"concurrency\":1295634213,\"errorAction\":{}}},{\"name\":\"wwnbafoctohz\",\"specification\":{},\"tasks\":[{\"name\":\"wsxbgnvkervqc\",\"specification\":{}}],\"taskOption\":{\"concurrency\":690805625,\"errorAction\":{}}}],\"reviewId\":\"sxqvzvspabdsrg\",\"state\":\"Undeployed\",\"specification\":{},\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"name\":\"ubklrxhj\",\"type\":\"CustomLocation\"},\"eTag\":\"cetjdvq\",\"id\":\"ie\",\"name\":\"qkwaruwd\",\"type\":\"vqzxoebwg\"}]}"; + = "{\"value\":[{\"properties\":{\"revision\":1146855013,\"configuration\":\"z\",\"stageSpec\":[{\"name\":\"wcahdkmbjsmihr\",\"specification\":{\"bgukbsvbwyoty\":\"\\\"datazbfsjwfczglk\\\"\",\"nhjgclxaxwcffasp\":\"\\\"datanb\\\"\"},\"tasks\":[{\"name\":\"k\",\"specification\":{}},{\"name\":\"cszghdoaqip\",\"specification\":{}},{\"name\":\"nxclfrsbzrnmuv\",\"specification\":{}},{\"name\":\"vp\",\"specification\":{}}],\"taskOption\":{\"concurrency\":2075935666,\"errorAction\":{}}}],\"reviewId\":\"bf\",\"state\":\"Staging\",\"specification\":{\"inxd\":\"\\\"datan\\\"\",\"yxzmx\":\"\\\"datamaoyqxfv\\\"\",\"dnzujsj\":\"\\\"datanofxlttxoqx\\\"\"},\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"name\":\"pskcjhmm\",\"type\":\"CustomLocation\"},\"eTag\":\"nivdqtkyk\",\"id\":\"xnlsf\",\"name\":\"nyscaccpt\",\"type\":\"zetxygxxiceecvj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,13 @@ public void testListByWorkflow() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.workflowVersions() - .listByWorkflow("hzdue", "ihapfjiiknjdiq", "liejhpc", com.azure.core.util.Context.NONE); + .listByWorkflow("chefpgeed", "ybruhola", "mwcgimmrimaabsq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ivbvzi", response.iterator().next().properties().stageSpec().get(0).name()); - Assertions.assertEquals("oooxzpradmskxk", - response.iterator().next().properties().stageSpec().get(0).tasks().get(0).name()); - Assertions.assertEquals(1295634213, + Assertions.assertEquals("wcahdkmbjsmihr", response.iterator().next().properties().stageSpec().get(0).name()); + Assertions.assertEquals("k", response.iterator().next().properties().stageSpec().get(0).tasks().get(0).name()); + Assertions.assertEquals(2075935666, response.iterator().next().properties().stageSpec().get(0).taskOption().concurrency()); - Assertions.assertEquals("ubklrxhj", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("pskcjhmm", response.iterator().next().extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.iterator().next().extendedLocation().type()); } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsCreateOrUpdateMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsCreateOrUpdateMockTests.java index e382091960710..cac0f21f5d84e 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsCreateOrUpdateMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsCreateOrUpdateMockTests.java @@ -24,7 +24,7 @@ public final class WorkflowsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"workflowTemplateId\":\"yrle\",\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"stbvtqig\",\"type\":\"CustomLocation\"},\"eTag\":\"vsgeafgf\",\"id\":\"ehxlzsxezppk\",\"name\":\"waaeskyfjl\",\"type\":\"zeqtoyrplixlajml\"}"; + = "{\"properties\":{\"workflowTemplateId\":\"xo\",\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"ddmiploisjkzso\",\"type\":\"EdgeZone\"},\"eTag\":\"ntwgkvyo\",\"id\":\"s\",\"name\":\"pzupzwwy\",\"type\":\"bdjzghximkg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,14 +34,13 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Workflow response = manager.workflows() - .define("vgmfalkzazmgok") - .withExistingContext("tfjmskdchmaiub", "vlzw") + .define("bjepzwhj") + .withExistingContext("yawkch", "apitskshfyftt") .withProperties(new WorkflowProperties()) - .withExtendedLocation( - new ExtendedLocation().withName("hqet").withType(ExtendedLocationType.CUSTOM_LOCATION)) + .withExtendedLocation(new ExtendedLocation().withName("wehs").withType(ExtendedLocationType.EDGE_ZONE)) .create(); - Assertions.assertEquals("stbvtqig", response.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); + Assertions.assertEquals("ddmiploisjkzso", response.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsGetWithResponseMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsGetWithResponseMockTests.java index 7032d5036287e..bcef868e8713d 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsGetWithResponseMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class WorkflowsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"workflowTemplateId\":\"zaj\",\"provisioningState\":\"Initialized\"},\"extendedLocation\":{\"name\":\"hwjuyxxbxqvmvua\",\"type\":\"CustomLocation\"},\"eTag\":\"adxkxeqbwpntghy\",\"id\":\"a\",\"name\":\"cdrnxsl\",\"type\":\"vlzladl\"}"; + = "{\"properties\":{\"workflowTemplateId\":\"rbzakpjtcqr\",\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"jpsucmxi\",\"type\":\"EdgeZone\"},\"eTag\":\"qxynqj\",\"id\":\"atkyvscbgngcr\",\"name\":\"sxhircpgc\",\"type\":\"svkkjbjolpyokl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Workflow response = manager.workflows() - .getWithResponse("powzafcz", "umljcirvpef", "cdveititj", com.azure.core.util.Context.NONE) + .getWithResponse("ffbvtzldzchub", "gwn", "zuvigvl", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("hwjuyxxbxqvmvua", response.extendedLocation().name()); - Assertions.assertEquals(ExtendedLocationType.CUSTOM_LOCATION, response.extendedLocation().type()); + Assertions.assertEquals("jpsucmxi", response.extendedLocation().name()); + Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsListByContextMockTests.java b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsListByContextMockTests.java index 2d733ece0f4d7..b13d546841b73 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsListByContextMockTests.java +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/src/test/java/com/azure/resourcemanager/workloadorchestration/generated/WorkflowsListByContextMockTests.java @@ -23,7 +23,7 @@ public final class WorkflowsListByContextMockTests { @Test public void testListByContext() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"workflowTemplateId\":\"dano\",\"provisioningState\":\"InProgress\"},\"extendedLocation\":{\"name\":\"glmvoka\",\"type\":\"EdgeZone\"},\"eTag\":\"tjctibpvbkaeh\",\"id\":\"mzy\",\"name\":\"dfwakwseivmak\",\"type\":\"hysowljuxlkbect\"}]}"; + = "{\"value\":[{\"properties\":{\"workflowTemplateId\":\"yioqe\",\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"name\":\"qszz\",\"type\":\"EdgeZone\"},\"eTag\":\"sikawanvmwd\",\"id\":\"jqcrbk\",\"name\":\"mpnbnfgyweoj\",\"type\":\"epgcmahiwf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,9 +33,9 @@ public void testListByContext() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.workflows().listByContext("x", "pbqhvfdqqjwkr", com.azure.core.util.Context.NONE); + = manager.workflows().listByContext("vuznadvhm", "ieoigowxxbh", com.azure.core.util.Context.NONE); - Assertions.assertEquals("glmvoka", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("qszz", response.iterator().next().extendedLocation().name()); Assertions.assertEquals(ExtendedLocationType.EDGE_ZONE, response.iterator().next().extendedLocation().type()); } } diff --git a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/tsp-location.yaml b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/tsp-location.yaml index 4b7470fa48905..6abc5f3432935 100644 --- a/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/tsp-location.yaml +++ b/sdk/workloadorchestration/azure-resourcemanager-workloadorchestration/tsp-location.yaml @@ -1,4 +1,4 @@ -directory: specification/edge/Microsoft.Edge.ConfigurationManager.Management -commit: 6267b64842af3d744c5b092a3f3beef49729ad6d +directory: specification/edge/resource-manager/Microsoft.Edge/configurationmanager +commit: 87095c76a9f446a727997d12597e59c57a1bb62a repo: Azure/azure-rest-api-specs additionalDirectories: