From b486fe84c0dc1d17e74304cccdbc7e36ad55dbe8 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 10 Jun 2022 17:12:23 +0000 Subject: [PATCH] CodeGen from PR 19384 in Azure/azure-rest-api-specs Merge 676f6282c2c97ff945a9e26855fa9e269387d559 into e7bcafa885ef773c6309d6a8f3a65c5019df413d --- .../CHANGELOG.md | 4 +- .../README.md | 4 +- .../SAMPLE.md | 38 +-- .../pom.xml | 2 +- .../SourceControlConfigurationManager.java | 74 ++++- .../fluent/models/FluxConfigurationInner.java | 24 ++ .../FluxConfigurationPatchProperties.java | 30 ++ .../models/FluxConfigurationProperties.java | 30 ++ .../implementation/ExtensionsClientImpl.java | 11 +- .../FluxConfigOperationStatusClientImpl.java | 9 +- .../implementation/FluxConfigurationImpl.java | 5 + .../FluxConfigurationsClientImpl.java | 11 +- .../OperationStatusClientImpl.java | 9 +- ...urceControlConfigurationClientBuilder.java | 34 +-- .../SourceControlConfigurationClientImpl.java | 9 +- ...SourceControlConfigurationsClientImpl.java | 18 +- .../models/AzureBlobDefinition.java | 273 ++++++++++++++++++ .../models/AzureBlobPatchDefinition.java | 273 ++++++++++++++++++ .../models/BucketDefinition.java | 26 +- .../models/BucketPatchDefinition.java | 26 +- .../models/ComplianceStateType.java | 6 +- .../models/FluxComplianceState.java | 6 +- .../models/FluxConfiguration.java | 7 + .../models/FluxConfigurationPatch.java | 23 ++ .../models/LevelType.java | 6 +- .../models/ManagedIdentityDefinition.java | 46 +++ .../ManagedIdentityPatchDefinition.java | 46 +++ .../models/MessageLevelType.java | 6 +- .../models/OperatorScopeType.java | 6 +- .../models/OperatorType.java | 6 +- .../models/ProvisioningState.java | 6 +- .../models/ProvisioningStateType.java | 6 +- .../models/ScopeType.java | 6 +- .../models/ServicePrincipalDefinition.java | 183 ++++++++++++ .../ServicePrincipalPatchDefinition.java | 183 ++++++++++++ .../models/SourceKindType.java | 9 +- .../generated/ExtensionsCreateSamples.java | 2 +- .../generated/ExtensionsDeleteSamples.java | 2 +- .../generated/ExtensionsGetSamples.java | 2 +- .../generated/ExtensionsListSamples.java | 2 +- .../generated/ExtensionsUpdateSamples.java | 2 +- .../FluxConfigOperationStatusGetSamples.java | 2 +- ...uxConfigurationsCreateOrUpdateSamples.java | 4 +- .../FluxConfigurationsDeleteSamples.java | 2 +- .../FluxConfigurationsGetSamples.java | 2 +- .../FluxConfigurationsListSamples.java | 2 +- .../FluxConfigurationsUpdateSamples.java | 2 +- .../generated/OperationStatusGetSamples.java | 2 +- .../generated/OperationStatusListSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- ...olConfigurationsCreateOrUpdateSamples.java | 2 +- ...rceControlConfigurationsDeleteSamples.java | 2 +- ...SourceControlConfigurationsGetSamples.java | 2 +- ...ourceControlConfigurationsListSamples.java | 2 +- 54 files changed, 1338 insertions(+), 161 deletions(-) create mode 100644 sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/AzureBlobDefinition.java create mode 100644 sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/AzureBlobPatchDefinition.java create mode 100644 sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ManagedIdentityDefinition.java create mode 100644 sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ManagedIdentityPatchDefinition.java create mode 100644 sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ServicePrincipalDefinition.java create mode 100644 sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ServicePrincipalPatchDefinition.java diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md index 2b46365eb3b8..e5a9c9061ba8 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.4 (Unreleased) +## 1.0.0-beta.1 (2022-06-10) + +- Azure Resource Manager SourceControlConfiguration client library for Java. This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2022-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md index 1b3c2e1cec2e..bbc145390eff 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md @@ -2,7 +2,7 @@ Azure Resource Manager SourceControlConfiguration client library for Java. -This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2022-03. 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 SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2022-07. 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-kubernetesconfiguration - 1.0.0-beta.3 + 1.0.0-beta.4 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/SAMPLE.md b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/SAMPLE.md index e1c0104532f6..ded91667a3ef 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/SAMPLE.md +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/SAMPLE.md @@ -49,7 +49,7 @@ import java.util.Map; /** Samples for Extensions Create. */ public final class ExtensionsCreateSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateExtension.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/CreateExtension.json */ /** * Sample code: Create Extension. @@ -102,7 +102,7 @@ import com.azure.core.util.Context; /** Samples for Extensions Delete. */ public final class ExtensionsDeleteSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteExtension.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/DeleteExtension.json */ /** * Sample code: Delete Extension. @@ -133,7 +133,7 @@ import com.azure.core.util.Context; /** Samples for Extensions Get. */ public final class ExtensionsGetSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtension.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/GetExtension.json */ /** * Sample code: Get Extension. @@ -158,7 +158,7 @@ import com.azure.core.util.Context; /** Samples for Extensions List. */ public final class ExtensionsListSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListExtensions.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/ListExtensions.json */ /** * Sample code: List Extensions. @@ -183,7 +183,7 @@ import java.util.Map; /** Samples for Extensions Update. */ public final class ExtensionsUpdateSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchExtension.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/PatchExtension.json */ /** * Sample code: Update Extension. @@ -234,7 +234,7 @@ import com.azure.core.util.Context; /** Samples for FluxConfigOperationStatus Get. */ public final class FluxConfigOperationStatusGetSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfigurationAsyncOperationStatus.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/GetFluxConfigurationAsyncOperationStatus.json */ /** * Sample code: FluxConfigurationAsyncOperationStatus Get. @@ -275,7 +275,7 @@ import java.util.Map; /** Samples for FluxConfigurations CreateOrUpdate. */ public final class FluxConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/CreateFluxConfiguration.json */ /** * Sample code: Create Flux Configuration. @@ -324,7 +324,7 @@ public final class FluxConfigurationsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfigurationWithBucket.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/CreateFluxConfigurationWithBucket.json */ /** * Sample code: Create Flux Configuration with Bucket Source Kind. @@ -393,7 +393,7 @@ import com.azure.core.util.Context; /** Samples for FluxConfigurations Delete. */ public final class FluxConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteFluxConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/DeleteFluxConfiguration.json */ /** * Sample code: Delete Flux Configuration. @@ -424,7 +424,7 @@ import com.azure.core.util.Context; /** Samples for FluxConfigurations Get. */ public final class FluxConfigurationsGetSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/GetFluxConfiguration.json */ /** * Sample code: Get Flux Configuration. @@ -449,7 +449,7 @@ import com.azure.core.util.Context; /** Samples for FluxConfigurations List. */ public final class FluxConfigurationsListSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListFluxConfigurations.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/ListFluxConfigurations.json */ /** * Sample code: List Flux Configuration. @@ -478,7 +478,7 @@ import java.util.Map; /** Samples for FluxConfigurations Update. */ public final class FluxConfigurationsUpdateSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchFluxConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/PatchFluxConfiguration.json */ /** * Sample code: Patch Flux Configuration. @@ -536,7 +536,7 @@ import com.azure.core.util.Context; /** Samples for OperationStatus Get. */ public final class OperationStatusGetSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtensionAsyncOperationStatus.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/GetExtensionAsyncOperationStatus.json */ /** * Sample code: ExtensionAsyncOperationStatus Get. @@ -567,7 +567,7 @@ import com.azure.core.util.Context; /** Samples for OperationStatus List. */ public final class OperationStatusListSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListAsyncOperationStatus.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/ListAsyncOperationStatus.json */ /** * Sample code: AsyncOperationStatus List. @@ -591,7 +591,7 @@ import com.azure.core.util.Context; /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/OperationsList.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/OperationsList.json */ /** * Sample code: BatchAccountDelete. @@ -619,7 +619,7 @@ import java.util.Map; /** Samples for SourceControlConfigurations CreateOrUpdate. */ public final class SourceControlConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateSourceControlConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/CreateSourceControlConfiguration.json */ /** * Sample code: Create Source Control Configuration. @@ -676,7 +676,7 @@ import com.azure.core.util.Context; /** Samples for SourceControlConfigurations Delete. */ public final class SourceControlConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteSourceControlConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/DeleteSourceControlConfiguration.json */ /** * Sample code: Delete Source Control Configuration. @@ -701,7 +701,7 @@ import com.azure.core.util.Context; /** Samples for SourceControlConfigurations Get. */ public final class SourceControlConfigurationsGetSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetSourceControlConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/GetSourceControlConfiguration.json */ /** * Sample code: Get Source Control Configuration. @@ -726,7 +726,7 @@ import com.azure.core.util.Context; /** Samples for SourceControlConfigurations List. */ public final class SourceControlConfigurationsListSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListSourceControlConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/ListSourceControlConfiguration.json */ /** * Sample code: List Source Control Configuration. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml index 6d161668756a..a0207cfc8dbb 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for SourceControlConfiguration Management - This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. KubernetesConfiguration Client. Package tag package-2022-03. + This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. KubernetesConfiguration Client. Package tag package-2022-07. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java index 94e2546db198..c6793051e08b 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java @@ -10,11 +10,13 @@ import com.azure.core.http.HttpPipelineBuilder; import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.AddHeadersFromContextPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; @@ -84,6 +86,19 @@ public static SourceControlConfigurationManager authenticate(TokenCredential cre return configure().authenticate(credential, profile); } + /** + * Creates an instance of SourceControlConfiguration service API entry point. + * + * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. + * @param profile the Azure profile for client. + * @return the SourceControlConfiguration service API instance. + */ + public static SourceControlConfigurationManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) { + Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + return new SourceControlConfigurationManager(httpPipeline, profile, null); + } + /** * Gets a Configurable instance that can be used to create SourceControlConfigurationManager with optional * configuration. @@ -103,6 +118,7 @@ public static final class Configurable { private final List policies = new ArrayList<>(); private final List scopes = new ArrayList<>(); private RetryPolicy retryPolicy; + private RetryOptions retryOptions; private Duration defaultPollInterval; private Configurable() { @@ -163,6 +179,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { return this; } + /** + * Sets the retry options for the HTTP pipeline retry policy. + * + *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + * + * @param retryOptions the retry options for the HTTP pipeline retry policy. + * @return the configurable object itself. + */ + public Configurable withRetryOptions(RetryOptions retryOptions) { + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + /** * Sets the default poll interval, used when service does not provide "Retry-After" header. * @@ -196,7 +225,7 @@ public SourceControlConfigurationManager authenticate(TokenCredential credential .append("-") .append("com.azure.resourcemanager.kubernetesconfiguration") .append("/") - .append("1.0.0-beta.3"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -214,10 +243,15 @@ public SourceControlConfigurationManager authenticate(TokenCredential credential scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); } if (retryPolicy == null) { - retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + if (retryOptions != null) { + retryPolicy = new RetryPolicy(retryOptions); + } else { + retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + } } List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); + policies.add(new AddHeadersFromContextPolicy()); policies.add(new RequestIdPolicy()); policies .addAll( @@ -248,7 +282,11 @@ public SourceControlConfigurationManager authenticate(TokenCredential credential } } - /** @return Resource collection API of Extensions. */ + /** + * Gets the resource collection API of Extensions. + * + * @return Resource collection API of Extensions. + */ public Extensions extensions() { if (this.extensions == null) { this.extensions = new ExtensionsImpl(clientObject.getExtensions(), this); @@ -256,7 +294,11 @@ public Extensions extensions() { return extensions; } - /** @return Resource collection API of OperationStatus. */ + /** + * Gets the resource collection API of OperationStatus. + * + * @return Resource collection API of OperationStatus. + */ public OperationStatus operationStatus() { if (this.operationStatus == null) { this.operationStatus = new OperationStatusImpl(clientObject.getOperationStatus(), this); @@ -264,7 +306,11 @@ public OperationStatus operationStatus() { return operationStatus; } - /** @return Resource collection API of FluxConfigurations. */ + /** + * Gets the resource collection API of FluxConfigurations. + * + * @return Resource collection API of FluxConfigurations. + */ public FluxConfigurations fluxConfigurations() { if (this.fluxConfigurations == null) { this.fluxConfigurations = new FluxConfigurationsImpl(clientObject.getFluxConfigurations(), this); @@ -272,7 +318,11 @@ public FluxConfigurations fluxConfigurations() { return fluxConfigurations; } - /** @return Resource collection API of FluxConfigOperationStatus. */ + /** + * Gets the resource collection API of FluxConfigOperationStatus. + * + * @return Resource collection API of FluxConfigOperationStatus. + */ public FluxConfigOperationStatus fluxConfigOperationStatus() { if (this.fluxConfigOperationStatus == null) { this.fluxConfigOperationStatus = @@ -281,7 +331,11 @@ public FluxConfigOperationStatus fluxConfigOperationStatus() { return fluxConfigOperationStatus; } - /** @return Resource collection API of SourceControlConfigurations. */ + /** + * Gets the resource collection API of SourceControlConfigurations. + * + * @return Resource collection API of SourceControlConfigurations. + */ public SourceControlConfigurations sourceControlConfigurations() { if (this.sourceControlConfigurations == null) { this.sourceControlConfigurations = @@ -290,7 +344,11 @@ public SourceControlConfigurations sourceControlConfigurations() { return sourceControlConfigurations; } - /** @return Resource collection API of Operations. */ + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ public Operations operations() { if (this.operations == null) { this.operations = new OperationsImpl(clientObject.getOperations(), this); diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationInner.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationInner.java index b3b652c0a87d..c9fc2fa3fe24 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationInner.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationInner.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; +import com.azure.resourcemanager.kubernetesconfiguration.models.AzureBlobDefinition; import com.azure.resourcemanager.kubernetesconfiguration.models.BucketDefinition; import com.azure.resourcemanager.kubernetesconfiguration.models.FluxComplianceState; import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryDefinition; @@ -197,6 +198,29 @@ public FluxConfigurationInner withBucket(BucketDefinition bucket) { return this; } + /** + * Get the azureBlob property: Parameters to reconcile to the AzureBlob source kind type. + * + * @return the azureBlob value. + */ + public AzureBlobDefinition azureBlob() { + return this.innerProperties() == null ? null : this.innerProperties().azureBlob(); + } + + /** + * Set the azureBlob property: Parameters to reconcile to the AzureBlob source kind type. + * + * @param azureBlob the azureBlob value to set. + * @return the FluxConfigurationInner object itself. + */ + public FluxConfigurationInner withAzureBlob(AzureBlobDefinition azureBlob) { + if (this.innerProperties() == null) { + this.innerProperties = new FluxConfigurationProperties(); + } + this.innerProperties().withAzureBlob(azureBlob); + return this; + } + /** * Get the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source type * on the cluster. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationPatchProperties.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationPatchProperties.java index 11753307766a..e587e57e32a2 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationPatchProperties.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationPatchProperties.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.kubernetesconfiguration.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.kubernetesconfiguration.models.AzureBlobPatchDefinition; import com.azure.resourcemanager.kubernetesconfiguration.models.BucketPatchDefinition; import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryPatchDefinition; import com.azure.resourcemanager.kubernetesconfiguration.models.KustomizationPatchDefinition; @@ -41,6 +42,12 @@ public final class FluxConfigurationPatchProperties { @JsonProperty(value = "bucket") private BucketPatchDefinition bucket; + /* + * Parameters to reconcile to the AzureBlob source kind type. + */ + @JsonProperty(value = "azureBlob") + private AzureBlobPatchDefinition azureBlob; + /* * Array of kustomizations used to reconcile the artifact pulled by the * source type on the cluster. @@ -139,6 +146,26 @@ public FluxConfigurationPatchProperties withBucket(BucketPatchDefinition bucket) return this; } + /** + * Get the azureBlob property: Parameters to reconcile to the AzureBlob source kind type. + * + * @return the azureBlob value. + */ + public AzureBlobPatchDefinition azureBlob() { + return this.azureBlob; + } + + /** + * Set the azureBlob property: Parameters to reconcile to the AzureBlob source kind type. + * + * @param azureBlob the azureBlob value to set. + * @return the FluxConfigurationPatchProperties object itself. + */ + public FluxConfigurationPatchProperties withAzureBlob(AzureBlobPatchDefinition azureBlob) { + this.azureBlob = azureBlob; + return this; + } + /** * Get the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source type * on the cluster. @@ -197,6 +224,9 @@ public void validate() { if (bucket() != null) { bucket().validate(); } + if (azureBlob() != null) { + azureBlob().validate(); + } if (kustomizations() != null) { kustomizations() .values() diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationProperties.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationProperties.java index 4b0c1fbfaf12..6d2414dc8c30 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationProperties.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationProperties.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.kubernetesconfiguration.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.kubernetesconfiguration.models.AzureBlobDefinition; import com.azure.resourcemanager.kubernetesconfiguration.models.BucketDefinition; import com.azure.resourcemanager.kubernetesconfiguration.models.FluxComplianceState; import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryDefinition; @@ -60,6 +61,12 @@ public final class FluxConfigurationProperties { @JsonProperty(value = "bucket") private BucketDefinition bucket; + /* + * Parameters to reconcile to the AzureBlob source kind type. + */ + @JsonProperty(value = "azureBlob") + private AzureBlobDefinition azureBlob; + /* * Array of kustomizations used to reconcile the artifact pulled by the * source type on the cluster. @@ -253,6 +260,26 @@ public FluxConfigurationProperties withBucket(BucketDefinition bucket) { return this; } + /** + * Get the azureBlob property: Parameters to reconcile to the AzureBlob source kind type. + * + * @return the azureBlob value. + */ + public AzureBlobDefinition azureBlob() { + return this.azureBlob; + } + + /** + * Set the azureBlob property: Parameters to reconcile to the AzureBlob source kind type. + * + * @param azureBlob the azureBlob value to set. + * @return the FluxConfigurationProperties object itself. + */ + public FluxConfigurationProperties withAzureBlob(AzureBlobDefinition azureBlob) { + this.azureBlob = azureBlob; + return this; + } + /** * Get the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source type * on the cluster. @@ -385,6 +412,9 @@ public void validate() { if (bucket() != null) { bucket().validate(); } + if (azureBlob() != null) { + azureBlob().validate(); + } if (kustomizations() != null) { kustomizations() .values() diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsClientImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsClientImpl.java index f60b928014c0..137978b4583f 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsClientImpl.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsClientImpl.java @@ -130,7 +130,7 @@ Mono>> delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}" + "/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions" + "/{extensionName}") - @ExpectedResponses({202}) + @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @HostParam("$host") String endpoint, @@ -744,14 +744,7 @@ private Mono getAsync( String clusterName, String extensionName) { return getWithResponseAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigOperationStatusClientImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigOperationStatusClientImpl.java index 7dee5d2f41c6..1bbf99792078 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigOperationStatusClientImpl.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigOperationStatusClientImpl.java @@ -253,14 +253,7 @@ private Mono getAsync( String operationId) { return getWithResponseAsync( resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, operationId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationImpl.java index 3a489ff31668..f3d5621de245 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationImpl.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationImpl.java @@ -6,6 +6,7 @@ import com.azure.core.management.SystemData; import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.FluxConfigurationInner; +import com.azure.resourcemanager.kubernetesconfiguration.models.AzureBlobDefinition; import com.azure.resourcemanager.kubernetesconfiguration.models.BucketDefinition; import com.azure.resourcemanager.kubernetesconfiguration.models.FluxComplianceState; import com.azure.resourcemanager.kubernetesconfiguration.models.FluxConfiguration; @@ -72,6 +73,10 @@ public BucketDefinition bucket() { return this.innerModel().bucket(); } + public AzureBlobDefinition azureBlob() { + return this.innerModel().azureBlob(); + } + public Map kustomizations() { Map inner = this.innerModel().kustomizations(); if (inner != null) { diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationsClientImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationsClientImpl.java index 231fdeabd1bc..3321679d94b7 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationsClientImpl.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationsClientImpl.java @@ -110,7 +110,7 @@ Mono>> createOrUpdate( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}" + "/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations" + "/{fluxConfigurationName}") - @ExpectedResponses({202}) + @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @HostParam("$host") String endpoint, @@ -338,14 +338,7 @@ private Mono getAsync( String fluxConfigurationName) { return getWithResponseAsync( resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/OperationStatusClientImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/OperationStatusClientImpl.java index 21c3c3f1a5f1..7dd3865655e4 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/OperationStatusClientImpl.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/OperationStatusClientImpl.java @@ -281,14 +281,7 @@ private Mono getAsync( String operationId) { return getWithResponseAsync( resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName, operationId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationClientBuilder.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationClientBuilder.java index 752d006aea87..77fe8878508e 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationClientBuilder.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationClientBuilder.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; -import com.azure.core.http.policy.CookiePolicy; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.AzureEnvironment; @@ -67,34 +66,34 @@ public SourceControlConfigurationClientBuilder environment(AzureEnvironment envi } /* - * The default poll interval for long-running operation + * The HTTP pipeline to send requests through */ - private Duration defaultPollInterval; + private HttpPipeline pipeline; /** - * Sets The default poll interval for long-running operation. + * Sets The HTTP pipeline to send requests through. * - * @param defaultPollInterval the defaultPollInterval value. + * @param pipeline the pipeline value. * @return the SourceControlConfigurationClientBuilder. */ - public SourceControlConfigurationClientBuilder defaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = defaultPollInterval; + public SourceControlConfigurationClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; return this; } /* - * The HTTP pipeline to send requests through + * The default poll interval for long-running operation */ - private HttpPipeline pipeline; + private Duration defaultPollInterval; /** - * Sets The HTTP pipeline to send requests through. + * Sets The default poll interval for long-running operation. * - * @param pipeline the pipeline value. + * @param defaultPollInterval the defaultPollInterval value. * @return the SourceControlConfigurationClientBuilder. */ - public SourceControlConfigurationClientBuilder pipeline(HttpPipeline pipeline) { - this.pipeline = pipeline; + public SourceControlConfigurationClientBuilder defaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval = defaultPollInterval; return this; } @@ -126,15 +125,12 @@ public SourceControlConfigurationClientImpl buildClient() { if (environment == null) { this.environment = AzureEnvironment.AZURE; } + if (pipeline == null) { + this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + } if (defaultPollInterval == null) { this.defaultPollInterval = Duration.ofSeconds(30); } - if (pipeline == null) { - this.pipeline = - new HttpPipelineBuilder() - .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) - .build(); - } if (serializerAdapter == null) { this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationClientImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationClientImpl.java index 92ed100101ea..07f30b940814 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationClientImpl.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationClientImpl.java @@ -15,6 +15,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; @@ -34,7 +35,6 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.Duration; -import java.util.Map; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -207,7 +207,7 @@ public OperationsClient getOperations() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2022-03-01"; + this.apiVersion = "2022-07-01"; this.extensions = new ExtensionsClientImpl(this); this.operationStatus = new OperationStatusClientImpl(this); this.fluxConfigurations = new FluxConfigurationsClientImpl(this); @@ -232,10 +232,7 @@ public Context getContext() { * @return the merged context. */ public Context mergeContext(Context context) { - for (Map.Entry entry : this.getContext().getValues().entrySet()) { - context = context.addData(entry.getKey(), entry.getValue()); - } - return context; + return CoreUtils.mergeContexts(this.getContext(), context); } /** diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationsClientImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationsClientImpl.java index f1f7f2126c83..6860d3976d4d 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationsClientImpl.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/SourceControlConfigurationsClientImpl.java @@ -324,14 +324,7 @@ private Mono getAsync( String sourceControlConfigurationName) { return getWithResponseAsync( resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -590,14 +583,7 @@ private Mono createOrUpdateAsync( clusterName, sourceControlConfigurationName, sourceControlConfiguration) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/AzureBlobDefinition.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/AzureBlobDefinition.java new file mode 100644 index 000000000000..71aa8d7ef6f9 --- /dev/null +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/AzureBlobDefinition.java @@ -0,0 +1,273 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kubernetesconfiguration.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Parameters to reconcile to the AzureBlob source kind type. */ +@Fluent +public final class AzureBlobDefinition { + /* + * The URL to sync for the flux configuration Azure Blob storage account. + */ + @JsonProperty(value = "url") + private String url; + + /* + * The Azure Blob container name to sync from the url endpoint for the flux + * configuration. + */ + @JsonProperty(value = "containerName") + private String containerName; + + /* + * The maximum time to attempt to reconcile the cluster Azure Blob source + * with the remote. + */ + @JsonProperty(value = "timeoutInSeconds") + private Long timeoutInSeconds; + + /* + * The interval at which to re-reconcile the cluster Azure Blob source with + * the remote. + */ + @JsonProperty(value = "syncIntervalInSeconds") + private Long syncIntervalInSeconds; + + /* + * Parameters to authenticate using Service Principal. + */ + @JsonProperty(value = "servicePrincipal") + private ServicePrincipalDefinition servicePrincipal; + + /* + * The account key (shared key) to access the storage account + */ + @JsonProperty(value = "accountKey") + private String accountKey; + + /* + * The Shared Access token to access the storage container + */ + @JsonProperty(value = "sasToken") + private String sasToken; + + /* + * Parameters to authenticate using a Managed Identity. + */ + @JsonProperty(value = "managedIdentity") + private ManagedIdentityDefinition managedIdentity; + + /* + * Name of a local secret on the Kubernetes cluster to use as the + * authentication secret rather than the managed or user-provided + * configuration secrets. + */ + @JsonProperty(value = "localAuthRef") + private String localAuthRef; + + /** + * Get the url property: The URL to sync for the flux configuration Azure Blob storage account. + * + * @return the url value. + */ + public String url() { + return this.url; + } + + /** + * Set the url property: The URL to sync for the flux configuration Azure Blob storage account. + * + * @param url the url value to set. + * @return the AzureBlobDefinition object itself. + */ + public AzureBlobDefinition withUrl(String url) { + this.url = url; + return this; + } + + /** + * Get the containerName property: The Azure Blob container name to sync from the url endpoint for the flux + * configuration. + * + * @return the containerName value. + */ + public String containerName() { + return this.containerName; + } + + /** + * Set the containerName property: The Azure Blob container name to sync from the url endpoint for the flux + * configuration. + * + * @param containerName the containerName value to set. + * @return the AzureBlobDefinition object itself. + */ + public AzureBlobDefinition withContainerName(String containerName) { + this.containerName = containerName; + return this; + } + + /** + * Get the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster Azure Blob source with + * the remote. + * + * @return the timeoutInSeconds value. + */ + public Long timeoutInSeconds() { + return this.timeoutInSeconds; + } + + /** + * Set the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster Azure Blob source with + * the remote. + * + * @param timeoutInSeconds the timeoutInSeconds value to set. + * @return the AzureBlobDefinition object itself. + */ + public AzureBlobDefinition withTimeoutInSeconds(Long timeoutInSeconds) { + this.timeoutInSeconds = timeoutInSeconds; + return this; + } + + /** + * Get the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster Azure Blob source with + * the remote. + * + * @return the syncIntervalInSeconds value. + */ + public Long syncIntervalInSeconds() { + return this.syncIntervalInSeconds; + } + + /** + * Set the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster Azure Blob source with + * the remote. + * + * @param syncIntervalInSeconds the syncIntervalInSeconds value to set. + * @return the AzureBlobDefinition object itself. + */ + public AzureBlobDefinition withSyncIntervalInSeconds(Long syncIntervalInSeconds) { + this.syncIntervalInSeconds = syncIntervalInSeconds; + return this; + } + + /** + * Get the servicePrincipal property: Parameters to authenticate using Service Principal. + * + * @return the servicePrincipal value. + */ + public ServicePrincipalDefinition servicePrincipal() { + return this.servicePrincipal; + } + + /** + * Set the servicePrincipal property: Parameters to authenticate using Service Principal. + * + * @param servicePrincipal the servicePrincipal value to set. + * @return the AzureBlobDefinition object itself. + */ + public AzureBlobDefinition withServicePrincipal(ServicePrincipalDefinition servicePrincipal) { + this.servicePrincipal = servicePrincipal; + return this; + } + + /** + * Get the accountKey property: The account key (shared key) to access the storage account. + * + * @return the accountKey value. + */ + public String accountKey() { + return this.accountKey; + } + + /** + * Set the accountKey property: The account key (shared key) to access the storage account. + * + * @param accountKey the accountKey value to set. + * @return the AzureBlobDefinition object itself. + */ + public AzureBlobDefinition withAccountKey(String accountKey) { + this.accountKey = accountKey; + return this; + } + + /** + * Get the sasToken property: The Shared Access token to access the storage container. + * + * @return the sasToken value. + */ + public String sasToken() { + return this.sasToken; + } + + /** + * Set the sasToken property: The Shared Access token to access the storage container. + * + * @param sasToken the sasToken value to set. + * @return the AzureBlobDefinition object itself. + */ + public AzureBlobDefinition withSasToken(String sasToken) { + this.sasToken = sasToken; + return this; + } + + /** + * Get the managedIdentity property: Parameters to authenticate using a Managed Identity. + * + * @return the managedIdentity value. + */ + public ManagedIdentityDefinition managedIdentity() { + return this.managedIdentity; + } + + /** + * Set the managedIdentity property: Parameters to authenticate using a Managed Identity. + * + * @param managedIdentity the managedIdentity value to set. + * @return the AzureBlobDefinition object itself. + */ + public AzureBlobDefinition withManagedIdentity(ManagedIdentityDefinition managedIdentity) { + this.managedIdentity = managedIdentity; + return this; + } + + /** + * Get the localAuthRef property: Name of a local secret on the Kubernetes cluster to use as the authentication + * secret rather than the managed or user-provided configuration secrets. + * + * @return the localAuthRef value. + */ + public String localAuthRef() { + return this.localAuthRef; + } + + /** + * Set the localAuthRef property: Name of a local secret on the Kubernetes cluster to use as the authentication + * secret rather than the managed or user-provided configuration secrets. + * + * @param localAuthRef the localAuthRef value to set. + * @return the AzureBlobDefinition object itself. + */ + public AzureBlobDefinition withLocalAuthRef(String localAuthRef) { + this.localAuthRef = localAuthRef; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (servicePrincipal() != null) { + servicePrincipal().validate(); + } + if (managedIdentity() != null) { + managedIdentity().validate(); + } + } +} diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/AzureBlobPatchDefinition.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/AzureBlobPatchDefinition.java new file mode 100644 index 000000000000..eb294acb4587 --- /dev/null +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/AzureBlobPatchDefinition.java @@ -0,0 +1,273 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kubernetesconfiguration.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Parameters to reconcile to the AzureBlob source kind type. */ +@Fluent +public final class AzureBlobPatchDefinition { + /* + * The URL to sync for the flux configuration Azure Blob storage account. + */ + @JsonProperty(value = "url") + private String url; + + /* + * The Azure Blob container name to sync from the url endpoint for the flux + * configuration. + */ + @JsonProperty(value = "containerName") + private String containerName; + + /* + * The maximum time to attempt to reconcile the cluster Azure Blob source + * with the remote. + */ + @JsonProperty(value = "timeoutInSeconds") + private Long timeoutInSeconds; + + /* + * The interval at which to re-reconcile the cluster Azure Blob source with + * the remote. + */ + @JsonProperty(value = "syncIntervalInSeconds") + private Long syncIntervalInSeconds; + + /* + * Parameters to authenticate using Service Principal. + */ + @JsonProperty(value = "servicePrincipal") + private ServicePrincipalPatchDefinition servicePrincipal; + + /* + * The account key (shared key) to access the storage account + */ + @JsonProperty(value = "accountKey") + private String accountKey; + + /* + * The Shared Access token to access the storage container + */ + @JsonProperty(value = "sasToken") + private String sasToken; + + /* + * Parameters to authenticate using a Managed Identity. + */ + @JsonProperty(value = "managedIdentity") + private ManagedIdentityPatchDefinition managedIdentity; + + /* + * Name of a local secret on the Kubernetes cluster to use as the + * authentication secret rather than the managed or user-provided + * configuration secrets. + */ + @JsonProperty(value = "localAuthRef") + private String localAuthRef; + + /** + * Get the url property: The URL to sync for the flux configuration Azure Blob storage account. + * + * @return the url value. + */ + public String url() { + return this.url; + } + + /** + * Set the url property: The URL to sync for the flux configuration Azure Blob storage account. + * + * @param url the url value to set. + * @return the AzureBlobPatchDefinition object itself. + */ + public AzureBlobPatchDefinition withUrl(String url) { + this.url = url; + return this; + } + + /** + * Get the containerName property: The Azure Blob container name to sync from the url endpoint for the flux + * configuration. + * + * @return the containerName value. + */ + public String containerName() { + return this.containerName; + } + + /** + * Set the containerName property: The Azure Blob container name to sync from the url endpoint for the flux + * configuration. + * + * @param containerName the containerName value to set. + * @return the AzureBlobPatchDefinition object itself. + */ + public AzureBlobPatchDefinition withContainerName(String containerName) { + this.containerName = containerName; + return this; + } + + /** + * Get the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster Azure Blob source with + * the remote. + * + * @return the timeoutInSeconds value. + */ + public Long timeoutInSeconds() { + return this.timeoutInSeconds; + } + + /** + * Set the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster Azure Blob source with + * the remote. + * + * @param timeoutInSeconds the timeoutInSeconds value to set. + * @return the AzureBlobPatchDefinition object itself. + */ + public AzureBlobPatchDefinition withTimeoutInSeconds(Long timeoutInSeconds) { + this.timeoutInSeconds = timeoutInSeconds; + return this; + } + + /** + * Get the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster Azure Blob source with + * the remote. + * + * @return the syncIntervalInSeconds value. + */ + public Long syncIntervalInSeconds() { + return this.syncIntervalInSeconds; + } + + /** + * Set the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster Azure Blob source with + * the remote. + * + * @param syncIntervalInSeconds the syncIntervalInSeconds value to set. + * @return the AzureBlobPatchDefinition object itself. + */ + public AzureBlobPatchDefinition withSyncIntervalInSeconds(Long syncIntervalInSeconds) { + this.syncIntervalInSeconds = syncIntervalInSeconds; + return this; + } + + /** + * Get the servicePrincipal property: Parameters to authenticate using Service Principal. + * + * @return the servicePrincipal value. + */ + public ServicePrincipalPatchDefinition servicePrincipal() { + return this.servicePrincipal; + } + + /** + * Set the servicePrincipal property: Parameters to authenticate using Service Principal. + * + * @param servicePrincipal the servicePrincipal value to set. + * @return the AzureBlobPatchDefinition object itself. + */ + public AzureBlobPatchDefinition withServicePrincipal(ServicePrincipalPatchDefinition servicePrincipal) { + this.servicePrincipal = servicePrincipal; + return this; + } + + /** + * Get the accountKey property: The account key (shared key) to access the storage account. + * + * @return the accountKey value. + */ + public String accountKey() { + return this.accountKey; + } + + /** + * Set the accountKey property: The account key (shared key) to access the storage account. + * + * @param accountKey the accountKey value to set. + * @return the AzureBlobPatchDefinition object itself. + */ + public AzureBlobPatchDefinition withAccountKey(String accountKey) { + this.accountKey = accountKey; + return this; + } + + /** + * Get the sasToken property: The Shared Access token to access the storage container. + * + * @return the sasToken value. + */ + public String sasToken() { + return this.sasToken; + } + + /** + * Set the sasToken property: The Shared Access token to access the storage container. + * + * @param sasToken the sasToken value to set. + * @return the AzureBlobPatchDefinition object itself. + */ + public AzureBlobPatchDefinition withSasToken(String sasToken) { + this.sasToken = sasToken; + return this; + } + + /** + * Get the managedIdentity property: Parameters to authenticate using a Managed Identity. + * + * @return the managedIdentity value. + */ + public ManagedIdentityPatchDefinition managedIdentity() { + return this.managedIdentity; + } + + /** + * Set the managedIdentity property: Parameters to authenticate using a Managed Identity. + * + * @param managedIdentity the managedIdentity value to set. + * @return the AzureBlobPatchDefinition object itself. + */ + public AzureBlobPatchDefinition withManagedIdentity(ManagedIdentityPatchDefinition managedIdentity) { + this.managedIdentity = managedIdentity; + return this; + } + + /** + * Get the localAuthRef property: Name of a local secret on the Kubernetes cluster to use as the authentication + * secret rather than the managed or user-provided configuration secrets. + * + * @return the localAuthRef value. + */ + public String localAuthRef() { + return this.localAuthRef; + } + + /** + * Set the localAuthRef property: Name of a local secret on the Kubernetes cluster to use as the authentication + * secret rather than the managed or user-provided configuration secrets. + * + * @param localAuthRef the localAuthRef value to set. + * @return the AzureBlobPatchDefinition object itself. + */ + public AzureBlobPatchDefinition withLocalAuthRef(String localAuthRef) { + this.localAuthRef = localAuthRef; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (servicePrincipal() != null) { + servicePrincipal().validate(); + } + if (managedIdentity() != null) { + managedIdentity().validate(); + } + } +} diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/BucketDefinition.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/BucketDefinition.java index a3400b5f33b7..8ad2c8e3d391 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/BucketDefinition.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/BucketDefinition.java @@ -7,7 +7,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Parameters to reconcile to the GitRepository source kind type. */ +/** Parameters to reconcile to the Bucket source kind type. */ @Fluent public final class BucketDefinition { /* @@ -31,15 +31,15 @@ public final class BucketDefinition { private Boolean insecure; /* - * The maximum time to attempt to reconcile the cluster git repository - * source with the remote. + * The maximum time to attempt to reconcile the cluster bucket source with + * the remote. */ @JsonProperty(value = "timeoutInSeconds") private Long timeoutInSeconds; /* - * The interval at which to re-reconcile the cluster git repository source - * with the remote. + * The interval at which to re-reconcile the cluster bucket source with the + * remote. */ @JsonProperty(value = "syncIntervalInSeconds") private Long syncIntervalInSeconds; @@ -119,8 +119,8 @@ public BucketDefinition withInsecure(Boolean insecure) { } /** - * Get the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster git repository source - * with the remote. + * Get the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster bucket source with the + * remote. * * @return the timeoutInSeconds value. */ @@ -129,8 +129,8 @@ public Long timeoutInSeconds() { } /** - * Set the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster git repository source - * with the remote. + * Set the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster bucket source with the + * remote. * * @param timeoutInSeconds the timeoutInSeconds value to set. * @return the BucketDefinition object itself. @@ -141,8 +141,8 @@ public BucketDefinition withTimeoutInSeconds(Long timeoutInSeconds) { } /** - * Get the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster git repository source - * with the remote. + * Get the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster bucket source with the + * remote. * * @return the syncIntervalInSeconds value. */ @@ -151,8 +151,8 @@ public Long syncIntervalInSeconds() { } /** - * Set the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster git repository source - * with the remote. + * Set the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster bucket source with the + * remote. * * @param syncIntervalInSeconds the syncIntervalInSeconds value to set. * @return the BucketDefinition object itself. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/BucketPatchDefinition.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/BucketPatchDefinition.java index e2579bf5c22c..0d5f560c5bb2 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/BucketPatchDefinition.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/BucketPatchDefinition.java @@ -7,7 +7,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Parameters to reconcile to the GitRepository source kind type. */ +/** Parameters to reconcile to the Bucket source kind type. */ @Fluent public final class BucketPatchDefinition { /* @@ -31,15 +31,15 @@ public final class BucketPatchDefinition { private Boolean insecure; /* - * The maximum time to attempt to reconcile the cluster git repository - * source with the remote. + * The maximum time to attempt to reconcile the cluster bucket source with + * the remote. */ @JsonProperty(value = "timeoutInSeconds") private Long timeoutInSeconds; /* - * The interval at which to re-reconcile the cluster git repository source - * with the remote. + * The interval at which to re-reconcile the cluster bucket source with the + * remote. */ @JsonProperty(value = "syncIntervalInSeconds") private Long syncIntervalInSeconds; @@ -119,8 +119,8 @@ public BucketPatchDefinition withInsecure(Boolean insecure) { } /** - * Get the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster git repository source - * with the remote. + * Get the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster bucket source with the + * remote. * * @return the timeoutInSeconds value. */ @@ -129,8 +129,8 @@ public Long timeoutInSeconds() { } /** - * Set the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster git repository source - * with the remote. + * Set the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster bucket source with the + * remote. * * @param timeoutInSeconds the timeoutInSeconds value to set. * @return the BucketPatchDefinition object itself. @@ -141,8 +141,8 @@ public BucketPatchDefinition withTimeoutInSeconds(Long timeoutInSeconds) { } /** - * Get the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster git repository source - * with the remote. + * Get the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster bucket source with the + * remote. * * @return the syncIntervalInSeconds value. */ @@ -151,8 +151,8 @@ public Long syncIntervalInSeconds() { } /** - * Set the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster git repository source - * with the remote. + * Set the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster bucket source with the + * remote. * * @param syncIntervalInSeconds the syncIntervalInSeconds value to set. * @return the BucketPatchDefinition object itself. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ComplianceStateType.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ComplianceStateType.java index fe79e77156cd..3f44d55beb3e 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ComplianceStateType.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ComplianceStateType.java @@ -36,7 +36,11 @@ public static ComplianceStateType fromString(String name) { return fromString(name, ComplianceStateType.class); } - /** @return known ComplianceStateType values. */ + /** + * Gets known ComplianceStateType values. + * + * @return known ComplianceStateType values. + */ public static Collection values() { return values(ComplianceStateType.class); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxComplianceState.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxComplianceState.java index 5f708cfccf8b..2e3056b22093 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxComplianceState.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxComplianceState.java @@ -36,7 +36,11 @@ public static FluxComplianceState fromString(String name) { return fromString(name, FluxComplianceState.class); } - /** @return known FluxComplianceState values. */ + /** + * Gets known FluxComplianceState values. + * + * @return known FluxComplianceState values. + */ public static Collection values() { return values(FluxComplianceState.class); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxConfiguration.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxConfiguration.java index ee5831891d36..d631b4014e2a 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxConfiguration.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxConfiguration.java @@ -85,6 +85,13 @@ public interface FluxConfiguration { */ BucketDefinition bucket(); + /** + * Gets the azureBlob property: Parameters to reconcile to the AzureBlob source kind type. + * + * @return the azureBlob value. + */ + AzureBlobDefinition azureBlob(); + /** * Gets the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source * type on the cluster. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxConfigurationPatch.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxConfigurationPatch.java index 43f845b0faf2..5e60aaf69534 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxConfigurationPatch.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/FluxConfigurationPatch.java @@ -121,6 +121,29 @@ public FluxConfigurationPatch withBucket(BucketPatchDefinition bucket) { return this; } + /** + * Get the azureBlob property: Parameters to reconcile to the AzureBlob source kind type. + * + * @return the azureBlob value. + */ + public AzureBlobPatchDefinition azureBlob() { + return this.innerProperties() == null ? null : this.innerProperties().azureBlob(); + } + + /** + * Set the azureBlob property: Parameters to reconcile to the AzureBlob source kind type. + * + * @param azureBlob the azureBlob value to set. + * @return the FluxConfigurationPatch object itself. + */ + public FluxConfigurationPatch withAzureBlob(AzureBlobPatchDefinition azureBlob) { + if (this.innerProperties() == null) { + this.innerProperties = new FluxConfigurationPatchProperties(); + } + this.innerProperties().withAzureBlob(azureBlob); + return this; + } + /** * Get the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source type * on the cluster. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/LevelType.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/LevelType.java index 45628120dca8..fd33a5995adc 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/LevelType.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/LevelType.java @@ -30,7 +30,11 @@ public static LevelType fromString(String name) { return fromString(name, LevelType.class); } - /** @return known LevelType values. */ + /** + * Gets known LevelType values. + * + * @return known LevelType values. + */ public static Collection values() { return values(LevelType.class); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ManagedIdentityDefinition.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ManagedIdentityDefinition.java new file mode 100644 index 000000000000..2a2041b0f628 --- /dev/null +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ManagedIdentityDefinition.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kubernetesconfiguration.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Parameters to authenticate using a Managed Identity. */ +@Fluent +public final class ManagedIdentityDefinition { + /* + * The client Id for authenticating a Managed Identity. + */ + @JsonProperty(value = "clientId") + private String clientId; + + /** + * Get the clientId property: The client Id for authenticating a Managed Identity. + * + * @return the clientId value. + */ + public String clientId() { + return this.clientId; + } + + /** + * Set the clientId property: The client Id for authenticating a Managed Identity. + * + * @param clientId the clientId value to set. + * @return the ManagedIdentityDefinition object itself. + */ + public ManagedIdentityDefinition withClientId(String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ManagedIdentityPatchDefinition.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ManagedIdentityPatchDefinition.java new file mode 100644 index 000000000000..f19c960006aa --- /dev/null +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ManagedIdentityPatchDefinition.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kubernetesconfiguration.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Parameters to authenticate using a Managed Identity. */ +@Fluent +public final class ManagedIdentityPatchDefinition { + /* + * The client Id for authenticating a Managed Identity. + */ + @JsonProperty(value = "clientId") + private String clientId; + + /** + * Get the clientId property: The client Id for authenticating a Managed Identity. + * + * @return the clientId value. + */ + public String clientId() { + return this.clientId; + } + + /** + * Set the clientId property: The client Id for authenticating a Managed Identity. + * + * @param clientId the clientId value to set. + * @return the ManagedIdentityPatchDefinition object itself. + */ + public ManagedIdentityPatchDefinition withClientId(String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/MessageLevelType.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/MessageLevelType.java index 6fc8db2a7b7f..c5e1f6f96b52 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/MessageLevelType.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/MessageLevelType.java @@ -30,7 +30,11 @@ public static MessageLevelType fromString(String name) { return fromString(name, MessageLevelType.class); } - /** @return known MessageLevelType values. */ + /** + * Gets known MessageLevelType values. + * + * @return known MessageLevelType values. + */ public static Collection values() { return values(MessageLevelType.class); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/OperatorScopeType.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/OperatorScopeType.java index 2f7bb7464a80..771f22dff741 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/OperatorScopeType.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/OperatorScopeType.java @@ -27,7 +27,11 @@ public static OperatorScopeType fromString(String name) { return fromString(name, OperatorScopeType.class); } - /** @return known OperatorScopeType values. */ + /** + * Gets known OperatorScopeType values. + * + * @return known OperatorScopeType values. + */ public static Collection values() { return values(OperatorScopeType.class); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/OperatorType.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/OperatorType.java index 984777577f85..f41484121f20 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/OperatorType.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/OperatorType.java @@ -24,7 +24,11 @@ public static OperatorType fromString(String name) { return fromString(name, OperatorType.class); } - /** @return known OperatorType values. */ + /** + * Gets known OperatorType values. + * + * @return known OperatorType values. + */ public static Collection values() { return values(OperatorType.class); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ProvisioningState.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ProvisioningState.java index 814f95bc64c0..3134d93456c2 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ProvisioningState.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ProvisioningState.java @@ -39,7 +39,11 @@ public static ProvisioningState fromString(String name) { return fromString(name, ProvisioningState.class); } - /** @return known ProvisioningState values. */ + /** + * Gets known ProvisioningState values. + * + * @return known ProvisioningState values. + */ public static Collection values() { return values(ProvisioningState.class); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ProvisioningStateType.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ProvisioningStateType.java index 3ba7b515a1c2..1633b250173b 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ProvisioningStateType.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ProvisioningStateType.java @@ -36,7 +36,11 @@ public static ProvisioningStateType fromString(String name) { return fromString(name, ProvisioningStateType.class); } - /** @return known ProvisioningStateType values. */ + /** + * Gets known ProvisioningStateType values. + * + * @return known ProvisioningStateType values. + */ public static Collection values() { return values(ProvisioningStateType.class); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ScopeType.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ScopeType.java index 9e35c0b62061..ab4e29a9fa59 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ScopeType.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ScopeType.java @@ -27,7 +27,11 @@ public static ScopeType fromString(String name) { return fromString(name, ScopeType.class); } - /** @return known ScopeType values. */ + /** + * Gets known ScopeType values. + * + * @return known ScopeType values. + */ public static Collection values() { return values(ScopeType.class); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ServicePrincipalDefinition.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ServicePrincipalDefinition.java new file mode 100644 index 000000000000..b7df18ea579b --- /dev/null +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ServicePrincipalDefinition.java @@ -0,0 +1,183 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kubernetesconfiguration.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Parameters to authenticate using Service Principal. */ +@Fluent +public final class ServicePrincipalDefinition { + /* + * The client Id for authenticating a Service Principal. + */ + @JsonProperty(value = "clientId") + private String clientId; + + /* + * The tenant Id for authenticating a Service Principal + */ + @JsonProperty(value = "tenantId") + private String tenantId; + + /* + * The client secret for authenticating a Service Principal + */ + @JsonProperty(value = "clientSecret") + private String clientSecret; + + /* + * Base64-encoded certificate used to authenticate a Service Principal + */ + @JsonProperty(value = "clientCertificate") + private String clientCertificate; + + /* + * The password for the certificate used to authenticate a Service + * Principal + */ + @JsonProperty(value = "clientCertificatePassword") + private String clientCertificatePassword; + + /* + * Specifies whether to include x5c header in client claims when acquiring + * a token to enable subject name / issuer based authentication for the + * Client Certificate + */ + @JsonProperty(value = "clientCertificateSendChain") + private Boolean clientCertificateSendChain; + + /** + * Get the clientId property: The client Id for authenticating a Service Principal. + * + * @return the clientId value. + */ + public String clientId() { + return this.clientId; + } + + /** + * Set the clientId property: The client Id for authenticating a Service Principal. + * + * @param clientId the clientId value to set. + * @return the ServicePrincipalDefinition object itself. + */ + public ServicePrincipalDefinition withClientId(String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the tenantId property: The tenant Id for authenticating a Service Principal. + * + * @return the tenantId value. + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Set the tenantId property: The tenant Id for authenticating a Service Principal. + * + * @param tenantId the tenantId value to set. + * @return the ServicePrincipalDefinition object itself. + */ + public ServicePrincipalDefinition withTenantId(String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * Get the clientSecret property: The client secret for authenticating a Service Principal. + * + * @return the clientSecret value. + */ + public String clientSecret() { + return this.clientSecret; + } + + /** + * Set the clientSecret property: The client secret for authenticating a Service Principal. + * + * @param clientSecret the clientSecret value to set. + * @return the ServicePrincipalDefinition object itself. + */ + public ServicePrincipalDefinition withClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the clientCertificate property: Base64-encoded certificate used to authenticate a Service Principal. + * + * @return the clientCertificate value. + */ + public String clientCertificate() { + return this.clientCertificate; + } + + /** + * Set the clientCertificate property: Base64-encoded certificate used to authenticate a Service Principal. + * + * @param clientCertificate the clientCertificate value to set. + * @return the ServicePrincipalDefinition object itself. + */ + public ServicePrincipalDefinition withClientCertificate(String clientCertificate) { + this.clientCertificate = clientCertificate; + return this; + } + + /** + * Get the clientCertificatePassword property: The password for the certificate used to authenticate a Service + * Principal. + * + * @return the clientCertificatePassword value. + */ + public String clientCertificatePassword() { + return this.clientCertificatePassword; + } + + /** + * Set the clientCertificatePassword property: The password for the certificate used to authenticate a Service + * Principal. + * + * @param clientCertificatePassword the clientCertificatePassword value to set. + * @return the ServicePrincipalDefinition object itself. + */ + public ServicePrincipalDefinition withClientCertificatePassword(String clientCertificatePassword) { + this.clientCertificatePassword = clientCertificatePassword; + return this; + } + + /** + * Get the clientCertificateSendChain property: Specifies whether to include x5c header in client claims when + * acquiring a token to enable subject name / issuer based authentication for the Client Certificate. + * + * @return the clientCertificateSendChain value. + */ + public Boolean clientCertificateSendChain() { + return this.clientCertificateSendChain; + } + + /** + * Set the clientCertificateSendChain property: Specifies whether to include x5c header in client claims when + * acquiring a token to enable subject name / issuer based authentication for the Client Certificate. + * + * @param clientCertificateSendChain the clientCertificateSendChain value to set. + * @return the ServicePrincipalDefinition object itself. + */ + public ServicePrincipalDefinition withClientCertificateSendChain(Boolean clientCertificateSendChain) { + this.clientCertificateSendChain = clientCertificateSendChain; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ServicePrincipalPatchDefinition.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ServicePrincipalPatchDefinition.java new file mode 100644 index 000000000000..ba59ed091bfe --- /dev/null +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/ServicePrincipalPatchDefinition.java @@ -0,0 +1,183 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kubernetesconfiguration.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Parameters to authenticate using Service Principal. */ +@Fluent +public final class ServicePrincipalPatchDefinition { + /* + * The client Id for authenticating a Service Principal. + */ + @JsonProperty(value = "clientId") + private String clientId; + + /* + * The tenant Id for authenticating a Service Principal + */ + @JsonProperty(value = "tenantId") + private String tenantId; + + /* + * The client secret for authenticating a Service Principal + */ + @JsonProperty(value = "clientSecret") + private String clientSecret; + + /* + * Base64-encoded certificate used to authenticate a Service Principal + */ + @JsonProperty(value = "clientCertificate") + private String clientCertificate; + + /* + * The password for the certificate used to authenticate a Service + * Principal + */ + @JsonProperty(value = "clientCertificatePassword") + private String clientCertificatePassword; + + /* + * Specifies whether to include x5c header in client claims when acquiring + * a token to enable subject name / issuer based authentication for the + * Client Certificate + */ + @JsonProperty(value = "clientCertificateSendChain") + private Boolean clientCertificateSendChain; + + /** + * Get the clientId property: The client Id for authenticating a Service Principal. + * + * @return the clientId value. + */ + public String clientId() { + return this.clientId; + } + + /** + * Set the clientId property: The client Id for authenticating a Service Principal. + * + * @param clientId the clientId value to set. + * @return the ServicePrincipalPatchDefinition object itself. + */ + public ServicePrincipalPatchDefinition withClientId(String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the tenantId property: The tenant Id for authenticating a Service Principal. + * + * @return the tenantId value. + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Set the tenantId property: The tenant Id for authenticating a Service Principal. + * + * @param tenantId the tenantId value to set. + * @return the ServicePrincipalPatchDefinition object itself. + */ + public ServicePrincipalPatchDefinition withTenantId(String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * Get the clientSecret property: The client secret for authenticating a Service Principal. + * + * @return the clientSecret value. + */ + public String clientSecret() { + return this.clientSecret; + } + + /** + * Set the clientSecret property: The client secret for authenticating a Service Principal. + * + * @param clientSecret the clientSecret value to set. + * @return the ServicePrincipalPatchDefinition object itself. + */ + public ServicePrincipalPatchDefinition withClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the clientCertificate property: Base64-encoded certificate used to authenticate a Service Principal. + * + * @return the clientCertificate value. + */ + public String clientCertificate() { + return this.clientCertificate; + } + + /** + * Set the clientCertificate property: Base64-encoded certificate used to authenticate a Service Principal. + * + * @param clientCertificate the clientCertificate value to set. + * @return the ServicePrincipalPatchDefinition object itself. + */ + public ServicePrincipalPatchDefinition withClientCertificate(String clientCertificate) { + this.clientCertificate = clientCertificate; + return this; + } + + /** + * Get the clientCertificatePassword property: The password for the certificate used to authenticate a Service + * Principal. + * + * @return the clientCertificatePassword value. + */ + public String clientCertificatePassword() { + return this.clientCertificatePassword; + } + + /** + * Set the clientCertificatePassword property: The password for the certificate used to authenticate a Service + * Principal. + * + * @param clientCertificatePassword the clientCertificatePassword value to set. + * @return the ServicePrincipalPatchDefinition object itself. + */ + public ServicePrincipalPatchDefinition withClientCertificatePassword(String clientCertificatePassword) { + this.clientCertificatePassword = clientCertificatePassword; + return this; + } + + /** + * Get the clientCertificateSendChain property: Specifies whether to include x5c header in client claims when + * acquiring a token to enable subject name / issuer based authentication for the Client Certificate. + * + * @return the clientCertificateSendChain value. + */ + public Boolean clientCertificateSendChain() { + return this.clientCertificateSendChain; + } + + /** + * Set the clientCertificateSendChain property: Specifies whether to include x5c header in client claims when + * acquiring a token to enable subject name / issuer based authentication for the Client Certificate. + * + * @param clientCertificateSendChain the clientCertificateSendChain value to set. + * @return the ServicePrincipalPatchDefinition object itself. + */ + public ServicePrincipalPatchDefinition withClientCertificateSendChain(Boolean clientCertificateSendChain) { + this.clientCertificateSendChain = clientCertificateSendChain; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/SourceKindType.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/SourceKindType.java index cd8c82409770..2d279d86363d 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/SourceKindType.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/models/SourceKindType.java @@ -16,6 +16,9 @@ public final class SourceKindType extends ExpandableStringEnum { /** Static value Bucket for SourceKindType. */ public static final SourceKindType BUCKET = fromString("Bucket"); + /** Static value AzureBlob for SourceKindType. */ + public static final SourceKindType AZURE_BLOB = fromString("AzureBlob"); + /** * Creates or finds a SourceKindType from its string representation. * @@ -27,7 +30,11 @@ public static SourceKindType fromString(String name) { return fromString(name, SourceKindType.class); } - /** @return known SourceKindType values. */ + /** + * Gets known SourceKindType values. + * + * @return known SourceKindType values. + */ public static Collection values() { return values(SourceKindType.class); } diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsCreateSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsCreateSamples.java index 7c4ce4c434e7..6a08ae92b835 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsCreateSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsCreateSamples.java @@ -14,7 +14,7 @@ /** Samples for Extensions Create. */ public final class ExtensionsCreateSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateExtension.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/CreateExtension.json */ /** * Sample code: Create Extension. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsDeleteSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsDeleteSamples.java index be0f26a7e2a5..29336cb4b206 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsDeleteSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Extensions Delete. */ public final class ExtensionsDeleteSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteExtension.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/DeleteExtension.json */ /** * Sample code: Delete Extension. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsGetSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsGetSamples.java index 52d6110cb026..ecc1a8f82cf9 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsGetSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Extensions Get. */ public final class ExtensionsGetSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtension.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/GetExtension.json */ /** * Sample code: Get Extension. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsListSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsListSamples.java index 08d89817eeec..ecb7cfaeeea4 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsListSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Extensions List. */ public final class ExtensionsListSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListExtensions.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/ListExtensions.json */ /** * Sample code: List Extensions. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsUpdateSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsUpdateSamples.java index b89348741325..426fd99cf51a 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsUpdateSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/ExtensionsUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for Extensions Update. */ public final class ExtensionsUpdateSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchExtension.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/PatchExtension.json */ /** * Sample code: Update Extension. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigOperationStatusGetSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigOperationStatusGetSamples.java index 76de78984aba..ed0a84365382 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigOperationStatusGetSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigOperationStatusGetSamples.java @@ -9,7 +9,7 @@ /** Samples for FluxConfigOperationStatus Get. */ public final class FluxConfigOperationStatusGetSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfigurationAsyncOperationStatus.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/GetFluxConfigurationAsyncOperationStatus.json */ /** * Sample code: FluxConfigurationAsyncOperationStatus Get. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsCreateOrUpdateSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsCreateOrUpdateSamples.java index cfffcacbec2d..85576668ffa8 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsCreateOrUpdateSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsCreateOrUpdateSamples.java @@ -19,7 +19,7 @@ /** Samples for FluxConfigurations CreateOrUpdate. */ public final class FluxConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/CreateFluxConfiguration.json */ /** * Sample code: Create Flux Configuration. @@ -68,7 +68,7 @@ public static void createFluxConfiguration( } /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfigurationWithBucket.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/CreateFluxConfigurationWithBucket.json */ /** * Sample code: Create Flux Configuration with Bucket Source Kind. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsDeleteSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsDeleteSamples.java index 5203c96c5d25..a2e9d68f56d8 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsDeleteSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for FluxConfigurations Delete. */ public final class FluxConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteFluxConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/DeleteFluxConfiguration.json */ /** * Sample code: Delete Flux Configuration. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsGetSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsGetSamples.java index dbc0b74c0f31..4dba6b61b6af 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsGetSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for FluxConfigurations Get. */ public final class FluxConfigurationsGetSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/GetFluxConfiguration.json */ /** * Sample code: Get Flux Configuration. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsListSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsListSamples.java index c63af333f824..b90808a1368b 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsListSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsListSamples.java @@ -9,7 +9,7 @@ /** Samples for FluxConfigurations List. */ public final class FluxConfigurationsListSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListFluxConfigurations.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/ListFluxConfigurations.json */ /** * Sample code: List Flux Configuration. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsUpdateSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsUpdateSamples.java index c9be514f2964..66ded57797d7 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsUpdateSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/FluxConfigurationsUpdateSamples.java @@ -14,7 +14,7 @@ /** Samples for FluxConfigurations Update. */ public final class FluxConfigurationsUpdateSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchFluxConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/PatchFluxConfiguration.json */ /** * Sample code: Patch Flux Configuration. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusGetSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusGetSamples.java index 7a061fc01dc9..25d85140297c 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusGetSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusGetSamples.java @@ -9,7 +9,7 @@ /** Samples for OperationStatus Get. */ public final class OperationStatusGetSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtensionAsyncOperationStatus.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/GetExtensionAsyncOperationStatus.json */ /** * Sample code: ExtensionAsyncOperationStatus Get. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusListSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusListSamples.java index 043452252d06..877e8d1fa2ce 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusListSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationStatusListSamples.java @@ -9,7 +9,7 @@ /** Samples for OperationStatus List. */ public final class OperationStatusListSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListAsyncOperationStatus.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/ListAsyncOperationStatus.json */ /** * Sample code: AsyncOperationStatus List. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationsListSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationsListSamples.java index 4c86ca6e4d01..41ad53e9171a 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationsListSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/OperationsList.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/OperationsList.json */ /** * Sample code: BatchAccountDelete. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsCreateOrUpdateSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsCreateOrUpdateSamples.java index 6e8c76fa604b..26648112979a 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsCreateOrUpdateSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ /** Samples for SourceControlConfigurations CreateOrUpdate. */ public final class SourceControlConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateSourceControlConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/CreateSourceControlConfiguration.json */ /** * Sample code: Create Source Control Configuration. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsDeleteSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsDeleteSamples.java index 60d189272ec2..3d85ebd6514c 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsDeleteSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for SourceControlConfigurations Delete. */ public final class SourceControlConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteSourceControlConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/DeleteSourceControlConfiguration.json */ /** * Sample code: Delete Source Control Configuration. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsGetSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsGetSamples.java index 23dbe750d4c1..7c0561e7fff7 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsGetSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for SourceControlConfigurations Get. */ public final class SourceControlConfigurationsGetSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetSourceControlConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/GetSourceControlConfiguration.json */ /** * Sample code: Get Source Control Configuration. diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsListSamples.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsListSamples.java index af14d84b94a8..29aa0a29efe7 100644 --- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsListSamples.java +++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/samples/java/com/azure/resourcemanager/kubernetesconfiguration/generated/SourceControlConfigurationsListSamples.java @@ -9,7 +9,7 @@ /** Samples for SourceControlConfigurations List. */ public final class SourceControlConfigurationsListSamples { /* - * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListSourceControlConfiguration.json + * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-07-01/examples/ListSourceControlConfiguration.json */ /** * Sample code: List Source Control Configuration.