diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index bb19e5b0c9e84..caf69f98c3f4f 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -70,6 +70,7 @@ com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.0.0-beta.3;2 com.azure.resourcemanager:azure-resourcemanager-containerservice;2.0.0-beta.3;2.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-cosmos;2.0.0-beta.3;2.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-dns;2.0.0-beta.3;2.0.0-beta.4 +com.azure.resourcemanager:azure-resourcemanager-eventhubs;2.0.0-beta.4;2.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-keyvault;2.0.0-beta.3;2.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-monitor;2.0.0-beta.3;2.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-msi;2.0.0-beta.3;2.0.0-beta.4 diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json index 6ead679f99b17..21ecac279c1d1 100644 --- a/sdk/resourcemanager/api-specs.json +++ b/sdk/resourcemanager/api-specs.json @@ -154,10 +154,10 @@ "package": "com.azure.resourcemanager.dns", "args": "--payload-flattening-threshold=1 --tag=package-2018-03-preview" }, - "eventhub": { - "dir": "azure-resourcemanager-eventhub", + "eventhubs": { + "dir": "azure-resourcemanager-eventhubs", "source": "specification/eventhub/resource-manager/readme.md", - "package": "com.microsoft.azure.resourcemanager.eventhub", + "package": "com.azure.resourcemanager.eventhubs", "args": "--payload-flattening-threshold=1 --tag=package-2017-04" }, "features": { diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-eventhubs/CHANGELOG.md new file mode 100644 index 0000000000000..003c434ede62c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/CHANGELOG.md @@ -0,0 +1,5 @@ +# Release History + +## 2.0.0-beta.4 (Unreleased) + +- TODO diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/README.md b/sdk/resourcemanager/azure-resourcemanager-eventhubs/README.md new file mode 100644 index 0000000000000..1e41c42c56388 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/README.md @@ -0,0 +1,42 @@ +# Azure Resource Manager EventHubs client library for Java + +Azure Resource Manager EventHubs client library for Java + +For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azure-sdk-java-mgmt). + +## Getting started + +### Prerequisites + +- Java Development Kit (JDK) with version 8 or above + +### Adding the package to your product + +[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-eventhubs;current}) +```xml + + com.azure.resourcemanager + azure-resourcemanager-eventhubs + 2.0.0-beta.4 + +``` +[//]: # ({x-version-update-end}) + +## Key concepts + +## Examples + +## Troubleshooting + +## Next steps + +## Contributing + +If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft +Azure Projects Contribution Guidelines](http://azure.github.io/guidelines.html). + +1. Fork it +1. Create your feature branch (`git checkout -b my-new-feature`) +1. Commit your changes (`git commit -am 'Add some feature'`) +1. Push to the branch (`git push origin my-new-feature`) +1. Create new Pull Request diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/pom.xml b/sdk/resourcemanager/azure-resourcemanager-eventhubs/pom.xml new file mode 100644 index 0000000000000..2a1ce1af63f82 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/pom.xml @@ -0,0 +1,135 @@ + + + 4.0.0 + + com.azure + azure-client-sdk-parent + 1.7.0 + ../../parents/azure-client-sdk-parent + + + com.azure.resourcemanager + azure-resourcemanager-eventhubs + 2.0.0-beta.4 + jar + + Microsoft Azure SDK for EventHubs Management + This package contains Microsoft Azure EventHubs Management SDK. For documentation on how to use this package, please see https://aka.ms/azure-sdk-java-mgmt + https://github.com/Azure/azure-sdk-for-java + + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + + https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + + + 0.10 + 0.10 + + + + + microsoft + Microsoft + + + + + + com.azure.resourcemanager + azure-resourcemanager-resources + 2.0.0-beta.4 + + + com.azure.resourcemanager + azure-resourcemanager-storage + 2.0.0-beta.4 + + + org.junit.jupiter + junit-jupiter-engine + 5.6.2 + test + + + org.junit.jupiter + junit-jupiter-api + 5.6.2 + test + + + com.azure + azure-core-http-netty + 1.5.4 + test + + + com.azure + azure-identity + 1.1.0 + test + + + + + azure-mgmt-sdk-test-jar + + + !maven.test.skip + + + + + com.azure.resourcemanager + azure-resourcemanager-resources + 2.0.0-beta.4 + test-jar + test + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + true + true + + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.5 + + + com/azure/resourcemanager/**/fluent/**/* + com/azure/resourcemanager/**/models/**/* + + + + + + diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/EventHubManagementClient.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/EventHubManagementClient.java new file mode 100644 index 0000000000000..8c5484367cf92 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/EventHubManagementClient.java @@ -0,0 +1,203 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs; + +import com.azure.core.annotation.ServiceClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.util.logging.ClientLogger; +import com.azure.core.util.serializer.SerializerAdapter; +import com.azure.resourcemanager.eventhubs.fluent.ConsumerGroupsClient; +import com.azure.resourcemanager.eventhubs.fluent.DisasterRecoveryConfigsClient; +import com.azure.resourcemanager.eventhubs.fluent.EventHubsClient; +import com.azure.resourcemanager.eventhubs.fluent.NamespacesClient; +import com.azure.resourcemanager.eventhubs.fluent.OperationsClient; +import com.azure.resourcemanager.eventhubs.fluent.RegionsClient; +import com.azure.resourcemanager.resources.fluentcore.AzureServiceClient; +import java.time.Duration; + +/** Initializes a new instance of the EventHubManagementClient type. */ +@ServiceClient(builder = EventHubManagementClientBuilder.class) +public final class EventHubManagementClient extends AzureServiceClient { + private final ClientLogger logger = new ClientLogger(EventHubManagementClient.class); + + /** + * Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of + * the URI for every service call. + */ + private final String subscriptionId; + + /** + * Gets Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms + * part of the URI for every service call. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + + /** server parameter. */ + private final String endpoint; + + /** + * Gets server parameter. + * + * @return the endpoint value. + */ + public String getEndpoint() { + return this.endpoint; + } + + /** Api Version. */ + private final String apiVersion; + + /** + * Gets Api Version. + * + * @return the apiVersion value. + */ + public String getApiVersion() { + return this.apiVersion; + } + + /** The HTTP pipeline to send requests through. */ + private final HttpPipeline httpPipeline; + + /** + * Gets The HTTP pipeline to send requests through. + * + * @return the httpPipeline value. + */ + public HttpPipeline getHttpPipeline() { + return this.httpPipeline; + } + + /** The serializer to serialize an object into a string. */ + private final SerializerAdapter serializerAdapter; + + /** + * Gets The serializer to serialize an object into a string. + * + * @return the serializerAdapter value. + */ + public SerializerAdapter getSerializerAdapter() { + return this.serializerAdapter; + } + + /** The default poll interval for long-running operation. */ + private final Duration defaultPollInterval; + + /** + * Gets The default poll interval for long-running operation. + * + * @return the defaultPollInterval value. + */ + public Duration getDefaultPollInterval() { + return this.defaultPollInterval; + } + + /** The NamespacesClient object to access its operations. */ + private final NamespacesClient namespaces; + + /** + * Gets the NamespacesClient object to access its operations. + * + * @return the NamespacesClient object. + */ + public NamespacesClient getNamespaces() { + return this.namespaces; + } + + /** The DisasterRecoveryConfigsClient object to access its operations. */ + private final DisasterRecoveryConfigsClient disasterRecoveryConfigs; + + /** + * Gets the DisasterRecoveryConfigsClient object to access its operations. + * + * @return the DisasterRecoveryConfigsClient object. + */ + public DisasterRecoveryConfigsClient getDisasterRecoveryConfigs() { + return this.disasterRecoveryConfigs; + } + + /** The EventHubsClient object to access its operations. */ + private final EventHubsClient eventHubs; + + /** + * Gets the EventHubsClient object to access its operations. + * + * @return the EventHubsClient object. + */ + public EventHubsClient getEventHubs() { + return this.eventHubs; + } + + /** The ConsumerGroupsClient object to access its operations. */ + private final ConsumerGroupsClient consumerGroups; + + /** + * Gets the ConsumerGroupsClient object to access its operations. + * + * @return the ConsumerGroupsClient object. + */ + public ConsumerGroupsClient getConsumerGroups() { + return this.consumerGroups; + } + + /** The OperationsClient object to access its operations. */ + private final OperationsClient operations; + + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + public OperationsClient getOperations() { + return this.operations; + } + + /** The RegionsClient object to access its operations. */ + private final RegionsClient regions; + + /** + * Gets the RegionsClient object to access its operations. + * + * @return the RegionsClient object. + */ + public RegionsClient getRegions() { + return this.regions; + } + + /** + * Initializes an instance of EventHubManagementClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param serializerAdapter The serializer to serialize an object into a string. + * @param defaultPollInterval The default poll interval for long-running operation. + * @param environment The Azure environment. + */ + EventHubManagementClient( + HttpPipeline httpPipeline, + SerializerAdapter serializerAdapter, + Duration defaultPollInterval, + AzureEnvironment environment, + String subscriptionId, + String endpoint) { + super(httpPipeline, serializerAdapter, environment); + this.httpPipeline = httpPipeline; + this.serializerAdapter = serializerAdapter; + this.defaultPollInterval = defaultPollInterval; + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = "2017-04-01"; + this.namespaces = new NamespacesClient(this); + this.disasterRecoveryConfigs = new DisasterRecoveryConfigsClient(this); + this.eventHubs = new EventHubsClient(this); + this.consumerGroups = new ConsumerGroupsClient(this); + this.operations = new OperationsClient(this); + this.regions = new RegionsClient(this); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/EventHubManagementClientBuilder.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/EventHubManagementClientBuilder.java new file mode 100644 index 0000000000000..541ca6cde51af --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/EventHubManagementClientBuilder.java @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs; + +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; +import com.azure.core.management.serializer.AzureJacksonAdapter; +import com.azure.core.util.serializer.SerializerAdapter; +import java.time.Duration; + +/** A builder for creating a new instance of the EventHubManagementClient type. */ +@ServiceClientBuilder(serviceClients = {EventHubManagementClient.class}) +public final class EventHubManagementClientBuilder { + /* + * Subscription credentials that uniquely identify a Microsoft Azure + * subscription. The subscription ID forms part of the URI for every + * service call. + */ + private String subscriptionId; + + /** + * Sets Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms + * part of the URI for every service call. + * + * @param subscriptionId the subscriptionId value. + * @return the EventHubManagementClientBuilder. + */ + public EventHubManagementClientBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /* + * server parameter + */ + private String endpoint; + + /** + * Sets server parameter. + * + * @param endpoint the endpoint value. + * @return the EventHubManagementClientBuilder. + */ + public EventHubManagementClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /* + * The environment to connect to + */ + private AzureEnvironment environment; + + /** + * Sets The environment to connect to. + * + * @param environment the environment value. + * @return the EventHubManagementClientBuilder. + */ + public EventHubManagementClientBuilder environment(AzureEnvironment environment) { + this.environment = environment; + return this; + } + + /* + * The HTTP pipeline to send requests through + */ + private HttpPipeline pipeline; + + /** + * Sets The HTTP pipeline to send requests through. + * + * @param pipeline the pipeline value. + * @return the EventHubManagementClientBuilder. + */ + public EventHubManagementClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /* + * The serializer to serialize an object into a string + */ + private SerializerAdapter serializerAdapter; + + /** + * Sets The serializer to serialize an object into a string. + * + * @param serializerAdapter the serializerAdapter value. + * @return the EventHubManagementClientBuilder. + */ + public EventHubManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { + this.serializerAdapter = serializerAdapter; + return this; + } + + /* + * The default poll interval for long-running operation + */ + private Duration defaultPollInterval; + + /** + * Sets The default poll interval for long-running operation. + * + * @param defaultPollInterval the defaultPollInterval value. + * @return the EventHubManagementClientBuilder. + */ + public EventHubManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval = defaultPollInterval; + return this; + } + + /** + * Builds an instance of EventHubManagementClient with the provided parameters. + * + * @return an instance of EventHubManagementClient. + */ + public EventHubManagementClient buildClient() { + if (endpoint == null) { + this.endpoint = "https://management.azure.com"; + } + if (environment == null) { + this.environment = AzureEnvironment.AZURE; + } + if (pipeline == null) { + this.pipeline = + new HttpPipelineBuilder() + .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) + .build(); + } + if (serializerAdapter == null) { + this.serializerAdapter = new AzureJacksonAdapter(); + } + if (defaultPollInterval == null) { + this.defaultPollInterval = Duration.ofSeconds(30); + } + EventHubManagementClient client = + new EventHubManagementClient( + pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + return client; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/EventHubsManager.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/EventHubsManager.java new file mode 100644 index 0000000000000..6941b51a29272 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/EventHubsManager.java @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs; + +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpPipeline; +import com.azure.resourcemanager.eventhubs.implementation.DisasterRecoveryPairingAuthorizationRulesImpl; +import com.azure.resourcemanager.eventhubs.implementation.EventHubAuthorizationRulesImpl; +import com.azure.resourcemanager.eventhubs.implementation.EventHubConsumerGroupsImpl; +import com.azure.resourcemanager.eventhubs.implementation.EventHubDisasterRecoveryPairingsImpl; +import com.azure.resourcemanager.eventhubs.implementation.EventHubNamespaceAuthorizationRulesImpl; +import com.azure.resourcemanager.eventhubs.implementation.EventHubNamespacesImpl; +import com.azure.resourcemanager.eventhubs.implementation.EventHubsImpl; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationRules; +import com.azure.resourcemanager.eventhubs.models.EventHubAuthorizationRules; +import com.azure.resourcemanager.eventhubs.models.EventHubConsumerGroups; +import com.azure.resourcemanager.eventhubs.models.EventHubDisasterRecoveryPairings; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaceAuthorizationRules; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaces; +import com.azure.resourcemanager.eventhubs.models.EventHubs; +import com.azure.resourcemanager.resources.fluentcore.arm.AzureConfigurable; +import com.azure.resourcemanager.resources.fluentcore.arm.implementation.AzureConfigurableImpl; +import com.azure.resourcemanager.resources.fluentcore.arm.implementation.Manager; +import com.azure.resourcemanager.resources.fluentcore.profile.AzureProfile; +import com.azure.resourcemanager.resources.fluentcore.utils.HttpPipelineProvider; +import com.azure.resourcemanager.resources.fluentcore.utils.SdkContext; +import com.azure.resourcemanager.storage.StorageManager; + +/** + * Entry point to Azure EventHub resource management. + */ +public final class EventHubsManager extends Manager { + private EventHubNamespaces namespaces; + private EventHubs eventHubs; + private EventHubConsumerGroups consumerGroups; + private EventHubAuthorizationRules eventHubAuthorizationRules; + private EventHubNamespaceAuthorizationRules namespaceAuthorizationRules; + private EventHubDisasterRecoveryPairings eventHubDisasterRecoveryPairings; + private DisasterRecoveryPairingAuthorizationRules disasterRecoveryPairingAuthorizationRules; + + private final StorageManager storageManager; + + /** + * Get a Configurable instance that can be used to create EventHubsManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new EventHubsManager.ConfigurableImpl(); + } + + /** + * Creates an instance of EventHubsManager that exposes EventHub resource management API entry points. + * + * @param credential the credential to use + * @param profile the profile to use + * @return the EventHubsManager + */ + public static EventHubsManager authenticate(TokenCredential credential, AzureProfile profile) { + return authenticate(HttpPipelineProvider.buildHttpPipeline(credential, profile), profile); + } + + /** + * Creates an instance of EventHubsManager that exposes EventHub resource management API entry points. + * + * @param httpPipeline the HttpPipeline to be used for API calls. + * @param profile the profile to use + * @return the EventHubsManager + */ + public static EventHubsManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) { + return authenticate(httpPipeline, profile, new SdkContext()); + } + + /** + * Creates an instance of EventHubsManager that exposes EventHub resource management API entry points. + * + * @param httpPipeline the HttpPipeline to be used for API calls. + * @param profile the profile to use + * @param sdkContext the sdk context + * @return the EventHubsManager + */ + public static EventHubsManager authenticate( + HttpPipeline httpPipeline, AzureProfile profile, SdkContext sdkContext) { + return new EventHubsManager(httpPipeline, profile, sdkContext); + } + + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of EventHubsManager that exposes EventHub management API entry points. + * + * @param credential the credential to use + * @param profile the profile to use + * @return the interface exposing EventHub management API entry points that work across subscriptions + */ + EventHubsManager authenticate(TokenCredential credential, AzureProfile profile); + } + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableImpl implements Configurable { + public EventHubsManager authenticate(TokenCredential credential, AzureProfile profile) { + return EventHubsManager.authenticate(buildHttpPipeline(credential, profile), profile); + } + } + private EventHubsManager(HttpPipeline httpPipeline, AzureProfile profile, SdkContext sdkContext) { + super( + httpPipeline, + profile, + new EventHubManagementClientBuilder() + .pipeline(httpPipeline) + .endpoint(profile.environment().getResourceManagerEndpoint()) + .subscriptionId(profile.subscriptionId()) + .buildClient(), + sdkContext + ); + storageManager = StorageManager.authenticate(httpPipeline, profile, sdkContext); + } + + /** + * @return entry point to manage EventHub namespaces + */ + public EventHubNamespaces namespaces() { + if (this.namespaces == null) { + this.namespaces = new EventHubNamespacesImpl(this); + } + return this.namespaces; + } + + /** + * @return entry point to manage event hubs + */ + public EventHubs eventHubs() { + if (this.eventHubs == null) { + this.eventHubs = new EventHubsImpl(this, this.storageManager); + } + return this.eventHubs; + } + + /** + * @return entry point to manage event hub consumer groups + */ + public EventHubConsumerGroups consumerGroups() { + if (this.consumerGroups == null) { + this.consumerGroups = new EventHubConsumerGroupsImpl(this); + } + return this.consumerGroups; + } + + /** + * @return entry point to manage disaster recovery pairing of event hub namespaces. + */ + public EventHubDisasterRecoveryPairings eventHubDisasterRecoveryPairings() { + if (this.eventHubDisasterRecoveryPairings == null) { + this.eventHubDisasterRecoveryPairings = new EventHubDisasterRecoveryPairingsImpl(this); + } + return this.eventHubDisasterRecoveryPairings; + } + + /** + * @return entry point to manage event hub authorization rules. + */ + public EventHubAuthorizationRules eventHubAuthorizationRules() { + if (this.eventHubAuthorizationRules == null) { + this.eventHubAuthorizationRules = new EventHubAuthorizationRulesImpl(this); + } + return this.eventHubAuthorizationRules; + } + + /** + * @return entry point to manage event hub namespace authorization rules. + */ + public EventHubNamespaceAuthorizationRules namespaceAuthorizationRules() { + if (this.namespaceAuthorizationRules == null) { + this.namespaceAuthorizationRules = new EventHubNamespaceAuthorizationRulesImpl(this); + } + return this.namespaceAuthorizationRules; + } + + /** + * @return entry point to manage disaster recovery pairing authorization rules. + */ + public DisasterRecoveryPairingAuthorizationRules disasterRecoveryPairingAuthorizationRules() { + if (this.disasterRecoveryPairingAuthorizationRules == null) { + this.disasterRecoveryPairingAuthorizationRules = new DisasterRecoveryPairingAuthorizationRulesImpl(this); + } + return this.disasterRecoveryPairingAuthorizationRules; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/ConsumerGroupsClient.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/ConsumerGroupsClient.java new file mode 100644 index 0000000000000..07ed795016fba --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/ConsumerGroupsClient.java @@ -0,0 +1,1149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.EventHubManagementClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.ConsumerGroupInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.ConsumerGroupListResultInner; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in ConsumerGroups. */ +public final class ConsumerGroupsClient { + private final ClientLogger logger = new ClientLogger(ConsumerGroupsClient.class); + + /** The proxy service used to perform REST calls. */ + private final ConsumerGroupsService service; + + /** The service client containing this operation class. */ + private final EventHubManagementClient client; + + /** + * Initializes an instance of ConsumerGroupsClient. + * + * @param client the instance of the service client containing this operation class. + */ + public ConsumerGroupsClient(EventHubManagementClient client) { + this.service = + RestProxy.create(ConsumerGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for EventHubManagementClientConsumerGroups to be used by the proxy + * service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "EventHubManagementCl") + private interface ConsumerGroupsService { + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @PathParam("consumerGroupName") String consumerGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") ConsumerGroupInner parameters, + Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}") + @ExpectedResponses({200, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> delete( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @PathParam("consumerGroupName") String consumerGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @PathParam("consumerGroupName") String consumerGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}/consumergroups") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByEventHub( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("$skip") Integer skip, + @QueryParam("$top") Integer top, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByEventHubNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + } + + /** + * Creates or updates an Event Hubs consumer group as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024. + * e.g. it can be used to store descriptive data, such as list of teams and their contact information also + * user-defined configuration settings can be stored. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Consumer group operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + String userMetadata) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (consumerGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter consumerGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + ConsumerGroupInner parameters = new ConsumerGroupInner(); + parameters.withUserMetadata(userMetadata); + return FluxUtil + .withContext( + context -> + service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + consumerGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Creates or updates an Event Hubs consumer group as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024. + * e.g. it can be used to store descriptive data, such as list of teams and their contact information also + * user-defined configuration settings can be stored. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Consumer group operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + String userMetadata, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (consumerGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter consumerGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + ConsumerGroupInner parameters = new ConsumerGroupInner(); + parameters.withUserMetadata(userMetadata); + context = this.client.mergeContext(context); + return service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + consumerGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Creates or updates an Event Hubs consumer group as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024. + * e.g. it can be used to store descriptive data, such as list of teams and their contact information also + * user-defined configuration settings can be stored. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Consumer group operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + String userMetadata) { + return createOrUpdateWithResponseAsync( + resourceGroupName, namespaceName, eventHubName, consumerGroupName, userMetadata) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates an Event Hubs consumer group as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024. + * e.g. it can be used to store descriptive data, such as list of teams and their contact information also + * user-defined configuration settings can be stored. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Consumer group operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + String userMetadata, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, namespaceName, eventHubName, consumerGroupName, userMetadata, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates an Event Hubs consumer group as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024. + * e.g. it can be used to store descriptive data, such as list of teams and their contact information also + * user-defined configuration settings can be stored. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Consumer group operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConsumerGroupInner createOrUpdate( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + String userMetadata) { + return createOrUpdateAsync(resourceGroupName, namespaceName, eventHubName, consumerGroupName, userMetadata) + .block(); + } + + /** + * Creates or updates an Event Hubs consumer group as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024. + * e.g. it can be used to store descriptive data, such as list of teams and their contact information also + * user-defined configuration settings can be stored. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Consumer group operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConsumerGroupInner createOrUpdate( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + String userMetadata, + Context context) { + return createOrUpdateAsync( + resourceGroupName, namespaceName, eventHubName, consumerGroupName, userMetadata, context) + .block(); + } + + /** + * Deletes a consumer group from the specified Event Hub and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteWithResponseAsync( + String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (consumerGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter consumerGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .delete( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + consumerGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Deletes a consumer group from the specified Event Hub and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (consumerGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter consumerGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .delete( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + consumerGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Deletes a consumer group from the specified Event Hub and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync( + String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName) { + return deleteWithResponseAsync(resourceGroupName, namespaceName, eventHubName, consumerGroupName) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Deletes a consumer group from the specified Event Hub and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + Context context) { + return deleteWithResponseAsync(resourceGroupName, namespaceName, eventHubName, consumerGroupName, context) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Deletes a consumer group from the specified Event Hub and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName) { + deleteAsync(resourceGroupName, namespaceName, eventHubName, consumerGroupName).block(); + } + + /** + * Deletes a consumer group from the specified Event Hub and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + Context context) { + deleteAsync(resourceGroupName, namespaceName, eventHubName, consumerGroupName, context).block(); + } + + /** + * Gets a description for the specified consumer group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a description for the specified consumer group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync( + String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (consumerGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter consumerGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .get( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + consumerGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets a description for the specified consumer group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a description for the specified consumer group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (consumerGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter consumerGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .get( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + consumerGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets a description for the specified consumer group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a description for the specified consumer group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync( + String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName) { + return getWithResponseAsync(resourceGroupName, namespaceName, eventHubName, consumerGroupName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets a description for the specified consumer group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a description for the specified consumer group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + Context context) { + return getWithResponseAsync(resourceGroupName, namespaceName, eventHubName, consumerGroupName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets a description for the specified consumer group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a description for the specified consumer group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConsumerGroupInner get( + String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName) { + return getAsync(resourceGroupName, namespaceName, eventHubName, consumerGroupName).block(); + } + + /** + * Gets a description for the specified consumer group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param consumerGroupName The consumer group name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a description for the specified consumer group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConsumerGroupInner get( + String resourceGroupName, + String namespaceName, + String eventHubName, + String consumerGroupName, + Context context) { + return getAsync(resourceGroupName, namespaceName, eventHubName, consumerGroupName, context).block(); + } + + /** + * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the + * Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the consumer groups in a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByEventHubSinglePageAsync( + String resourceGroupName, String namespaceName, String eventHubName, Integer skip, Integer top) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listByEventHub( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + skip, + top, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the + * Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the consumer groups in a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByEventHubSinglePageAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + Integer skip, + Integer top, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listByEventHub( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + skip, + top, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the + * Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the consumer groups in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByEventHubAsync( + String resourceGroupName, String namespaceName, String eventHubName, Integer skip, Integer top) { + return new PagedFlux<>( + () -> listByEventHubSinglePageAsync(resourceGroupName, namespaceName, eventHubName, skip, top), + nextLink -> listByEventHubNextSinglePageAsync(nextLink)); + } + + /** + * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the + * Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the consumer groups in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByEventHubAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + Integer skip, + Integer top, + Context context) { + return new PagedFlux<>( + () -> listByEventHubSinglePageAsync(resourceGroupName, namespaceName, eventHubName, skip, top, context), + nextLink -> listByEventHubNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the + * Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the consumer groups in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByEventHubAsync( + String resourceGroupName, String namespaceName, String eventHubName) { + final Integer skip = null; + final Integer top = null; + final Context context = null; + return new PagedFlux<>( + () -> listByEventHubSinglePageAsync(resourceGroupName, namespaceName, eventHubName, skip, top), + nextLink -> listByEventHubNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the + * Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the consumer groups in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByEventHub( + String resourceGroupName, String namespaceName, String eventHubName, Integer skip, Integer top) { + return new PagedIterable<>(listByEventHubAsync(resourceGroupName, namespaceName, eventHubName, skip, top)); + } + + /** + * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the + * Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the consumer groups in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByEventHub( + String resourceGroupName, + String namespaceName, + String eventHubName, + Integer skip, + Integer top, + Context context) { + return new PagedIterable<>( + listByEventHubAsync(resourceGroupName, namespaceName, eventHubName, skip, top, context)); + } + + /** + * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the + * Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the consumer groups in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByEventHub( + String resourceGroupName, String namespaceName, String eventHubName) { + final Integer skip = null; + final Integer top = null; + final Context context = null; + return new PagedIterable<>(listByEventHubAsync(resourceGroupName, namespaceName, eventHubName, skip, top)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result to the List Consumer Group operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByEventHubNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listByEventHubNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result to the List Consumer Group operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByEventHubNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listByEventHubNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/DisasterRecoveryConfigsClient.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/DisasterRecoveryConfigsClient.java new file mode 100644 index 0000000000000..9a6f7bbce26f9 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/DisasterRecoveryConfigsClient.java @@ -0,0 +1,2212 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.EventHubManagementClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.AccessKeysInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.ArmDisasterRecoveryInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.ArmDisasterRecoveryListResultInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleListResultInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.CheckNameAvailabilityResultInner; +import com.azure.resourcemanager.eventhubs.models.CheckNameAvailabilityParameter; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in DisasterRecoveryConfigs. */ +public final class DisasterRecoveryConfigsClient { + private final ClientLogger logger = new ClientLogger(DisasterRecoveryConfigsClient.class); + + /** The proxy service used to perform REST calls. */ + private final DisasterRecoveryConfigsService service; + + /** The service client containing this operation class. */ + private final EventHubManagementClient client; + + /** + * Initializes an instance of DisasterRecoveryConfigsClient. + * + * @param client the instance of the service client containing this operation class. + */ + public DisasterRecoveryConfigsClient(EventHubManagementClient client) { + this.service = + RestProxy + .create(DisasterRecoveryConfigsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for EventHubManagementClientDisasterRecoveryConfigs to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "EventHubManagementCl") + private interface DisasterRecoveryConfigsService { + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAuthorizationRules( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("alias") String alias, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getAuthorizationRule( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("alias") String alias, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}" + + "/listKeys") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listKeys( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("alias") String alias, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/disasterRecoveryConfigs/checkNameAvailability") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> checkNameAvailability( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @BodyParam("application/json") CheckNameAvailabilityParameter parameters, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/disasterRecoveryConfigs") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/disasterRecoveryConfigs/{alias}") + @ExpectedResponses({200, 201}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("alias") String alias, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") ArmDisasterRecoveryInner parameters, + Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/disasterRecoveryConfigs/{alias}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> delete( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("alias") String alias, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/disasterRecoveryConfigs/{alias}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("alias") String alias, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> breakPairing( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("alias") String alias, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/disasterRecoveryConfigs/{alias}/failover") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> failOver( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("alias") String alias, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAuthorizationRulesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesSinglePageAsync( + String resourceGroupName, String namespaceName, String alias) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listAuthorizationRules( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesSinglePageAsync( + String resourceGroupName, String namespaceName, String alias, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listAuthorizationRules( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAuthorizationRulesAsync( + String resourceGroupName, String namespaceName, String alias) { + return new PagedFlux<>( + () -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, alias), + nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAuthorizationRulesAsync( + String resourceGroupName, String namespaceName, String alias, Context context) { + return new PagedFlux<>( + () -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, alias, context), + nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAuthorizationRules( + String resourceGroupName, String namespaceName, String alias) { + return new PagedIterable<>(listAuthorizationRulesAsync(resourceGroupName, namespaceName, alias)); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAuthorizationRules( + String resourceGroupName, String namespaceName, String alias, Context context) { + return new PagedIterable<>(listAuthorizationRulesAsync(resourceGroupName, namespaceName, alias, context)); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAuthorizationRuleWithResponseAsync( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .getAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAuthorizationRuleWithResponseAsync( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .getAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAuthorizationRuleAsync( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) { + return getAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, alias, authorizationRuleName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAuthorizationRuleAsync( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) { + return getAuthorizationRuleWithResponseAsync( + resourceGroupName, namespaceName, alias, authorizationRuleName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AuthorizationRuleInner getAuthorizationRule( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) { + return getAuthorizationRuleAsync(resourceGroupName, namespaceName, alias, authorizationRuleName).block(); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AuthorizationRuleInner getAuthorizationRule( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) { + return getAuthorizationRuleAsync(resourceGroupName, namespaceName, alias, authorizationRuleName, context) + .block(); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listKeysWithResponseAsync( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listKeys( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listKeysWithResponseAsync( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listKeys( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listKeysAsync( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) { + return listKeysWithResponseAsync(resourceGroupName, namespaceName, alias, authorizationRuleName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listKeysAsync( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) { + return listKeysWithResponseAsync(resourceGroupName, namespaceName, alias, authorizationRuleName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AccessKeysInner listKeys( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) { + return listKeysAsync(resourceGroupName, namespaceName, alias, authorizationRuleName).block(); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AccessKeysInner listKeys( + String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) { + return listKeysAsync(resourceGroupName, namespaceName, alias, authorizationRuleName, context).block(); + } + + /** + * Check the give Namespace name availability. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param name Name to check the namespace name availability. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> checkNameAvailabilityWithResponseAsync( + String resourceGroupName, String namespaceName, String name) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + CheckNameAvailabilityParameter parameters = new CheckNameAvailabilityParameter(); + parameters.withName(name); + return FluxUtil + .withContext( + context -> + service + .checkNameAvailability( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + namespaceName, + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Check the give Namespace name availability. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param name Name to check the namespace name availability. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> checkNameAvailabilityWithResponseAsync( + String resourceGroupName, String namespaceName, String name, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + CheckNameAvailabilityParameter parameters = new CheckNameAvailabilityParameter(); + parameters.withName(name); + context = this.client.mergeContext(context); + return service + .checkNameAvailability( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + namespaceName, + parameters, + context); + } + + /** + * Check the give Namespace name availability. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param name Name to check the namespace name availability. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono checkNameAvailabilityAsync( + String resourceGroupName, String namespaceName, String name) { + return checkNameAvailabilityWithResponseAsync(resourceGroupName, namespaceName, name) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Check the give Namespace name availability. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param name Name to check the namespace name availability. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono checkNameAvailabilityAsync( + String resourceGroupName, String namespaceName, String name, Context context) { + return checkNameAvailabilityWithResponseAsync(resourceGroupName, namespaceName, name, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Check the give Namespace name availability. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param name Name to check the namespace name availability. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CheckNameAvailabilityResultInner checkNameAvailability( + String resourceGroupName, String namespaceName, String name) { + return checkNameAvailabilityAsync(resourceGroupName, namespaceName, name).block(); + } + + /** + * Check the give Namespace name availability. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param name Name to check the namespace name availability. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CheckNameAvailabilityResultInner checkNameAvailability( + String resourceGroupName, String namespaceName, String name, Context context) { + return checkNameAvailabilityAsync(resourceGroupName, namespaceName, name, context).block(); + } + + /** + * Gets all Alias(Disaster Recovery configurations). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Alias(Disaster Recovery configurations). + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listSinglePageAsync( + String resourceGroupName, String namespaceName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .list( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets all Alias(Disaster Recovery configurations). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Alias(Disaster Recovery configurations). + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listSinglePageAsync( + String resourceGroupName, String namespaceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .list( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Gets all Alias(Disaster Recovery configurations). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Alias(Disaster Recovery configurations). + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String namespaceName) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, namespaceName), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets all Alias(Disaster Recovery configurations). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Alias(Disaster Recovery configurations). + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync( + String resourceGroupName, String namespaceName, Context context) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, namespaceName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all Alias(Disaster Recovery configurations). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Alias(Disaster Recovery configurations). + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String namespaceName) { + return new PagedIterable<>(listAsync(resourceGroupName, namespaceName)); + } + + /** + * Gets all Alias(Disaster Recovery configurations). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Alias(Disaster Recovery configurations). + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list( + String resourceGroupName, String namespaceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, namespaceName, context)); + } + + /** + * Creates or updates a new Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param parameters Single item in List or Get Alias(Disaster Recovery configuration) operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, String namespaceName, String alias, ArmDisasterRecoveryInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + return FluxUtil + .withContext( + context -> + service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Creates or updates a new Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param parameters Single item in List or Get Alias(Disaster Recovery configuration) operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, + String namespaceName, + String alias, + ArmDisasterRecoveryInner parameters, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + context = this.client.mergeContext(context); + return service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Creates or updates a new Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param parameters Single item in List or Get Alias(Disaster Recovery configuration) operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, String namespaceName, String alias, ArmDisasterRecoveryInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, alias, parameters) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates a new Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param parameters Single item in List or Get Alias(Disaster Recovery configuration) operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, + String namespaceName, + String alias, + ArmDisasterRecoveryInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, alias, parameters, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates a new Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param parameters Single item in List or Get Alias(Disaster Recovery configuration) operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ArmDisasterRecoveryInner createOrUpdate( + String resourceGroupName, String namespaceName, String alias, ArmDisasterRecoveryInner parameters) { + return createOrUpdateAsync(resourceGroupName, namespaceName, alias, parameters).block(); + } + + /** + * Creates or updates a new Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param parameters Single item in List or Get Alias(Disaster Recovery configuration) operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ArmDisasterRecoveryInner createOrUpdate( + String resourceGroupName, + String namespaceName, + String alias, + ArmDisasterRecoveryInner parameters, + Context context) { + return createOrUpdateAsync(resourceGroupName, namespaceName, alias, parameters, context).block(); + } + + /** + * Deletes an Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteWithResponseAsync(String resourceGroupName, String namespaceName, String alias) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .delete( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Deletes an Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteWithResponseAsync( + String resourceGroupName, String namespaceName, String alias, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .delete( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Deletes an Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String namespaceName, String alias) { + return deleteWithResponseAsync(resourceGroupName, namespaceName, alias) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Deletes an Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String namespaceName, String alias, Context context) { + return deleteWithResponseAsync(resourceGroupName, namespaceName, alias, context) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Deletes an Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String namespaceName, String alias) { + deleteAsync(resourceGroupName, namespaceName, alias).block(); + } + + /** + * Deletes an Alias(Disaster Recovery configuration). + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String namespaceName, String alias, Context context) { + deleteAsync(resourceGroupName, namespaceName, alias, context).block(); + } + + /** + * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync( + String resourceGroupName, String namespaceName, String alias) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .get( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync( + String resourceGroupName, String namespaceName, String alias, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .get( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String namespaceName, String alias) { + return getWithResponseAsync(resourceGroupName, namespaceName, alias) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync( + String resourceGroupName, String namespaceName, String alias, Context context) { + return getWithResponseAsync(resourceGroupName, namespaceName, alias, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ArmDisasterRecoveryInner get(String resourceGroupName, String namespaceName, String alias) { + return getAsync(resourceGroupName, namespaceName, alias).block(); + } + + /** + * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ArmDisasterRecoveryInner get(String resourceGroupName, String namespaceName, String alias, Context context) { + return getAsync(resourceGroupName, namespaceName, alias, context).block(); + } + + /** + * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> breakPairingWithResponseAsync( + String resourceGroupName, String namespaceName, String alias) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .breakPairing( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> breakPairingWithResponseAsync( + String resourceGroupName, String namespaceName, String alias, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .breakPairing( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono breakPairingAsync(String resourceGroupName, String namespaceName, String alias) { + return breakPairingWithResponseAsync(resourceGroupName, namespaceName, alias) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono breakPairingAsync(String resourceGroupName, String namespaceName, String alias, Context context) { + return breakPairingWithResponseAsync(resourceGroupName, namespaceName, alias, context) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void breakPairing(String resourceGroupName, String namespaceName, String alias) { + breakPairingAsync(resourceGroupName, namespaceName, alias).block(); + } + + /** + * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void breakPairing(String resourceGroupName, String namespaceName, String alias, Context context) { + breakPairingAsync(resourceGroupName, namespaceName, alias, context).block(); + } + + /** + * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> failOverWithResponseAsync( + String resourceGroupName, String namespaceName, String alias) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .failOver( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> failOverWithResponseAsync( + String resourceGroupName, String namespaceName, String alias, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (alias == null) { + return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .failOver( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + alias, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono failOverAsync(String resourceGroupName, String namespaceName, String alias) { + return failOverWithResponseAsync(resourceGroupName, namespaceName, alias) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono failOverAsync(String resourceGroupName, String namespaceName, String alias, Context context) { + return failOverWithResponseAsync(resourceGroupName, namespaceName, alias, context) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void failOver(String resourceGroupName, String namespaceName, String alias) { + failOverAsync(resourceGroupName, namespaceName, alias).block(); + } + + /** + * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param alias The Disaster Recovery configuration name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void failOver(String resourceGroupName, String namespaceName, String alias, Context context) { + failOverAsync(resourceGroupName, namespaceName, alias, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from the List namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listAuthorizationRulesNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from the List namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listAuthorizationRulesNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result of the List Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result of the List Alias(Disaster Recovery configuration) operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/EventHubsClient.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/EventHubsClient.java new file mode 100644 index 0000000000000..cacb2687bedf3 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/EventHubsClient.java @@ -0,0 +1,2505 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.EventHubManagementClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.AccessKeysInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleListResultInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.EventHubListResultInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.EventhubInner; +import com.azure.resourcemanager.eventhubs.models.AccessRights; +import com.azure.resourcemanager.eventhubs.models.RegenerateAccessKeyParameters; +import java.util.List; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in EventHubs. */ +public final class EventHubsClient { + private final ClientLogger logger = new ClientLogger(EventHubsClient.class); + + /** The proxy service used to perform REST calls. */ + private final EventHubsService service; + + /** The service client containing this operation class. */ + private final EventHubManagementClient client; + + /** + * Initializes an instance of EventHubsClient. + * + * @param client the instance of the service client containing this operation class. + */ + public EventHubsClient(EventHubManagementClient client) { + this.service = + RestProxy.create(EventHubsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for EventHubManagementClientEventHubs to be used by the proxy service to + * perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "EventHubManagementCl") + private interface EventHubsService { + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}/authorizationRules") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAuthorizationRules( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdateAuthorizationRule( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") AuthorizationRuleInner parameters, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getAuthorizationRule( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}") + @ExpectedResponses({200, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> deleteAuthorizationRule( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/listKeys") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listKeys( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> regenerateKeys( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") RegenerateAccessKeyParameters parameters, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByNamespace( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("$skip") Integer skip, + @QueryParam("$top") Integer top, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") EventhubInner parameters, + Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}") + @ExpectedResponses({200, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> delete( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/eventhubs/{eventHubName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("eventHubName") String eventHubName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAuthorizationRulesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByNamespaceNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + } + + /** + * Gets the authorization rules for an Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the authorization rules for an Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesSinglePageAsync( + String resourceGroupName, String namespaceName, String eventHubName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listAuthorizationRules( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets the authorization rules for an Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the authorization rules for an Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesSinglePageAsync( + String resourceGroupName, String namespaceName, String eventHubName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listAuthorizationRules( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Gets the authorization rules for an Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the authorization rules for an Event Hub. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAuthorizationRulesAsync( + String resourceGroupName, String namespaceName, String eventHubName) { + return new PagedFlux<>( + () -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, eventHubName), + nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink)); + } + + /** + * Gets the authorization rules for an Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the authorization rules for an Event Hub. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAuthorizationRulesAsync( + String resourceGroupName, String namespaceName, String eventHubName, Context context) { + return new PagedFlux<>( + () -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, eventHubName, context), + nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets the authorization rules for an Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the authorization rules for an Event Hub. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAuthorizationRules( + String resourceGroupName, String namespaceName, String eventHubName) { + return new PagedIterable<>(listAuthorizationRulesAsync(resourceGroupName, namespaceName, eventHubName)); + } + + /** + * Gets the authorization rules for an Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the authorization rules for an Event Hub. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAuthorizationRules( + String resourceGroupName, String namespaceName, String eventHubName, Context context) { + return new PagedIterable<>( + listAuthorizationRulesAsync(resourceGroupName, namespaceName, eventHubName, context)); + } + + /** + * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule + * will take a few seconds to take effect. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateAuthorizationRuleWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + List rights) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + AuthorizationRuleInner parameters = new AuthorizationRuleInner(); + parameters.withRights(rights); + return FluxUtil + .withContext( + context -> + service + .createOrUpdateAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule + * will take a few seconds to take effect. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateAuthorizationRuleWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + List rights, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + AuthorizationRuleInner parameters = new AuthorizationRuleInner(); + parameters.withRights(rights); + context = this.client.mergeContext(context); + return service + .createOrUpdateAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule + * will take a few seconds to take effect. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAuthorizationRuleAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + List rights) { + return createOrUpdateAuthorizationRuleWithResponseAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName, rights) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule + * will take a few seconds to take effect. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAuthorizationRuleAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + List rights, + Context context) { + return createOrUpdateAuthorizationRuleWithResponseAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName, rights, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule + * will take a few seconds to take effect. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AuthorizationRuleInner createOrUpdateAuthorizationRule( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + List rights) { + return createOrUpdateAuthorizationRuleAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName, rights) + .block(); + } + + /** + * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule + * will take a few seconds to take effect. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AuthorizationRuleInner createOrUpdateAuthorizationRule( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + List rights, + Context context) { + return createOrUpdateAuthorizationRuleAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName, rights, context) + .block(); + } + + /** + * Gets an AuthorizationRule for an Event Hub by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for an Event Hub by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAuthorizationRuleWithResponseAsync( + String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .getAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets an AuthorizationRule for an Event Hub by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for an Event Hub by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAuthorizationRuleWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .getAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets an AuthorizationRule for an Event Hub by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for an Event Hub by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAuthorizationRuleAsync( + String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName) { + return getAuthorizationRuleWithResponseAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets an AuthorizationRule for an Event Hub by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for an Event Hub by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAuthorizationRuleAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + Context context) { + return getAuthorizationRuleWithResponseAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets an AuthorizationRule for an Event Hub by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for an Event Hub by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AuthorizationRuleInner getAuthorizationRule( + String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName) { + return getAuthorizationRuleAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName).block(); + } + + /** + * Gets an AuthorizationRule for an Event Hub by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for an Event Hub by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AuthorizationRuleInner getAuthorizationRule( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + Context context) { + return getAuthorizationRuleAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName, context) + .block(); + } + + /** + * Deletes an Event Hub AuthorizationRule. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteAuthorizationRuleWithResponseAsync( + String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .deleteAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Deletes an Event Hub AuthorizationRule. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteAuthorizationRuleWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .deleteAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Deletes an Event Hub AuthorizationRule. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAuthorizationRuleAsync( + String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName) { + return deleteAuthorizationRuleWithResponseAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Deletes an Event Hub AuthorizationRule. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAuthorizationRuleAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + Context context) { + return deleteAuthorizationRuleWithResponseAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName, context) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Deletes an Event Hub AuthorizationRule. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void deleteAuthorizationRule( + String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName) { + deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName).block(); + } + + /** + * Deletes an Event Hub AuthorizationRule. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void deleteAuthorizationRule( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + Context context) { + deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName, context) + .block(); + } + + /** + * Gets the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ACS and SAS connection strings for the Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listKeysWithResponseAsync( + String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listKeys( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ACS and SAS connection strings for the Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listKeysWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listKeys( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ACS and SAS connection strings for the Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listKeysAsync( + String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName) { + return listKeysWithResponseAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ACS and SAS connection strings for the Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listKeysAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + Context context) { + return listKeysWithResponseAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ACS and SAS connection strings for the Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AccessKeysInner listKeys( + String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName) { + return listKeysAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName).block(); + } + + /** + * Gets the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ACS and SAS connection strings for the Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AccessKeysInner listKeys( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + Context context) { + return listKeysAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName, context).block(); + } + + /** + * Regenerates the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> regenerateKeysWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + return FluxUtil + .withContext( + context -> + service + .regenerateKeys( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Regenerates the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> regenerateKeysWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + context = this.client.mergeContext(context); + return service + .regenerateKeys( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Regenerates the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono regenerateKeysAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters) { + return regenerateKeysWithResponseAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName, parameters) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Regenerates the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono regenerateKeysAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters, + Context context) { + return regenerateKeysWithResponseAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName, parameters, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Regenerates the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AccessKeysInner regenerateKeys( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters) { + return regenerateKeysAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName, parameters) + .block(); + } + + /** + * Regenerates the ACS and SAS connection strings for the Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AccessKeysInner regenerateKeys( + String resourceGroupName, + String namespaceName, + String eventHubName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters, + Context context) { + return regenerateKeysAsync( + resourceGroupName, namespaceName, eventHubName, authorizationRuleName, parameters, context) + .block(); + } + + /** + * Gets all the Event Hubs in a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Event Hubs in a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByNamespaceSinglePageAsync( + String resourceGroupName, String namespaceName, Integer skip, Integer top) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listByNamespace( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + skip, + top, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets all the Event Hubs in a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Event Hubs in a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByNamespaceSinglePageAsync( + String resourceGroupName, String namespaceName, Integer skip, Integer top, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listByNamespace( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + skip, + top, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Gets all the Event Hubs in a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Event Hubs in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByNamespaceAsync( + String resourceGroupName, String namespaceName, Integer skip, Integer top) { + return new PagedFlux<>( + () -> listByNamespaceSinglePageAsync(resourceGroupName, namespaceName, skip, top), + nextLink -> listByNamespaceNextSinglePageAsync(nextLink)); + } + + /** + * Gets all the Event Hubs in a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Event Hubs in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByNamespaceAsync( + String resourceGroupName, String namespaceName, Integer skip, Integer top, Context context) { + return new PagedFlux<>( + () -> listByNamespaceSinglePageAsync(resourceGroupName, namespaceName, skip, top, context), + nextLink -> listByNamespaceNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the Event Hubs in a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Event Hubs in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName) { + final Integer skip = null; + final Integer top = null; + final Context context = null; + return new PagedFlux<>( + () -> listByNamespaceSinglePageAsync(resourceGroupName, namespaceName, skip, top), + nextLink -> listByNamespaceNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the Event Hubs in a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Event Hubs in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByNamespace( + String resourceGroupName, String namespaceName, Integer skip, Integer top) { + return new PagedIterable<>(listByNamespaceAsync(resourceGroupName, namespaceName, skip, top)); + } + + /** + * Gets all the Event Hubs in a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains + * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting + * point to use for subsequent calls. + * @param top May be used to limit the number of results to the most recent N usageDetails. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Event Hubs in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByNamespace( + String resourceGroupName, String namespaceName, Integer skip, Integer top, Context context) { + return new PagedIterable<>(listByNamespaceAsync(resourceGroupName, namespaceName, skip, top, context)); + } + + /** + * Gets all the Event Hubs in a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Event Hubs in a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByNamespace(String resourceGroupName, String namespaceName) { + final Integer skip = null; + final Integer top = null; + final Context context = null; + return new PagedIterable<>(listByNamespaceAsync(resourceGroupName, namespaceName, skip, top)); + } + + /** + * Creates or updates a new Event Hub as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param parameters Single item in List or Get Event Hub operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Event Hub operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, String namespaceName, String eventHubName, EventhubInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + return FluxUtil + .withContext( + context -> + service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Creates or updates a new Event Hub as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param parameters Single item in List or Get Event Hub operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Event Hub operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + EventhubInner parameters, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + context = this.client.mergeContext(context); + return service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Creates or updates a new Event Hub as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param parameters Single item in List or Get Event Hub operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Event Hub operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, String namespaceName, String eventHubName, EventhubInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, eventHubName, parameters) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates a new Event Hub as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param parameters Single item in List or Get Event Hub operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Event Hub operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, + String namespaceName, + String eventHubName, + EventhubInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, eventHubName, parameters, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates a new Event Hub as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param parameters Single item in List or Get Event Hub operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Event Hub operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EventhubInner createOrUpdate( + String resourceGroupName, String namespaceName, String eventHubName, EventhubInner parameters) { + return createOrUpdateAsync(resourceGroupName, namespaceName, eventHubName, parameters).block(); + } + + /** + * Creates or updates a new Event Hub as a nested resource within a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param parameters Single item in List or Get Event Hub operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in List or Get Event Hub operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EventhubInner createOrUpdate( + String resourceGroupName, + String namespaceName, + String eventHubName, + EventhubInner parameters, + Context context) { + return createOrUpdateAsync(resourceGroupName, namespaceName, eventHubName, parameters, context).block(); + } + + /** + * Deletes an Event Hub from the specified Namespace and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteWithResponseAsync( + String resourceGroupName, String namespaceName, String eventHubName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .delete( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Deletes an Event Hub from the specified Namespace and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteWithResponseAsync( + String resourceGroupName, String namespaceName, String eventHubName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .delete( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Deletes an Event Hub from the specified Namespace and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String namespaceName, String eventHubName) { + return deleteWithResponseAsync(resourceGroupName, namespaceName, eventHubName) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Deletes an Event Hub from the specified Namespace and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync( + String resourceGroupName, String namespaceName, String eventHubName, Context context) { + return deleteWithResponseAsync(resourceGroupName, namespaceName, eventHubName, context) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Deletes an Event Hub from the specified Namespace and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String namespaceName, String eventHubName) { + deleteAsync(resourceGroupName, namespaceName, eventHubName).block(); + } + + /** + * Deletes an Event Hub from the specified Namespace and resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String namespaceName, String eventHubName, Context context) { + deleteAsync(resourceGroupName, namespaceName, eventHubName, context).block(); + } + + /** + * Gets an Event Hubs description for the specified Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Event Hubs description for the specified Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync( + String resourceGroupName, String namespaceName, String eventHubName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .get( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets an Event Hubs description for the specified Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Event Hubs description for the specified Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync( + String resourceGroupName, String namespaceName, String eventHubName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (eventHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter eventHubName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .get( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + eventHubName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets an Event Hubs description for the specified Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Event Hubs description for the specified Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String namespaceName, String eventHubName) { + return getWithResponseAsync(resourceGroupName, namespaceName, eventHubName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets an Event Hubs description for the specified Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Event Hubs description for the specified Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync( + String resourceGroupName, String namespaceName, String eventHubName, Context context) { + return getWithResponseAsync(resourceGroupName, namespaceName, eventHubName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets an Event Hubs description for the specified Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Event Hubs description for the specified Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EventhubInner get(String resourceGroupName, String namespaceName, String eventHubName) { + return getAsync(resourceGroupName, namespaceName, eventHubName).block(); + } + + /** + * Gets an Event Hubs description for the specified Event Hub. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param eventHubName The Event Hub name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Event Hubs description for the specified Event Hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EventhubInner get(String resourceGroupName, String namespaceName, String eventHubName, Context context) { + return getAsync(resourceGroupName, namespaceName, eventHubName, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from the List namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listAuthorizationRulesNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from the List namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listAuthorizationRulesNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result of the List EventHubs operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByNamespaceNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listByNamespaceNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result of the List EventHubs operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByNamespaceNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listByNamespaceNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/NamespacesClient.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/NamespacesClient.java new file mode 100644 index 0000000000000..f313de4adc9c3 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/NamespacesClient.java @@ -0,0 +1,3767 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.eventhubs.EventHubManagementClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.AccessKeysInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleListResultInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.CheckNameAvailabilityResultInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.EHNamespaceInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.EHNamespaceListResultInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.MessagingPlanInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.NetworkRuleSetInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.NetworkRuleSetListResultInner; +import com.azure.resourcemanager.eventhubs.models.AccessRights; +import com.azure.resourcemanager.eventhubs.models.CheckNameAvailabilityParameter; +import com.azure.resourcemanager.eventhubs.models.RegenerateAccessKeyParameters; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import java.nio.ByteBuffer; +import java.util.List; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in Namespaces. */ +public final class NamespacesClient + implements InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { + private final ClientLogger logger = new ClientLogger(NamespacesClient.class); + + /** The proxy service used to perform REST calls. */ + private final NamespacesService service; + + /** The service client containing this operation class. */ + private final EventHubManagementClient client; + + /** + * Initializes an instance of NamespacesClient. + * + * @param client the instance of the service client containing this operation class. + */ + public NamespacesClient(EventHubManagementClient client) { + this.service = + RestProxy.create(NamespacesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for EventHubManagementClientNamespaces to be used by the proxy service to + * perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "EventHubManagementCl") + private interface NamespacesService { + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/authorizationRules") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAuthorizationRules( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/authorizationRules/{authorizationRuleName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdateAuthorizationRule( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") AuthorizationRuleInner parameters, + Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/authorizationRules/{authorizationRuleName}") + @ExpectedResponses({200, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> deleteAuthorizationRule( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/authorizationRules/{authorizationRuleName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getAuthorizationRule( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listKeys( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> regenerateKeys( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @PathParam("authorizationRuleName") String authorizationRuleName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") RegenerateAccessKeyParameters parameters, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> checkNameAvailability( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") CheckNameAvailabilityParameter parameters, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/namespaces") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub" + + "/namespaces") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}") + @ExpectedResponses({200, 201, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") EHNamespaceInner parameters, + Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}") + @ExpectedResponses({200, 202, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}") + @ExpectedResponses({200, 201}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Patch( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}") + @ExpectedResponses({200, 201, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") EHNamespaceInner parameters, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/messagingplan") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getMessagingPlan( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/networkRuleSets/default") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdateNetworkRuleSet( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") NetworkRuleSetInner parameters, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/networkRuleSets/default") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getNetworkRuleSet( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces" + + "/{namespaceName}/networkRuleSets") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNetworkRuleSets( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("namespaceName") String namespaceName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAuthorizationRulesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNetworkRuleSetsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesSinglePageAsync( + String resourceGroupName, String namespaceName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listAuthorizationRules( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesSinglePageAsync( + String resourceGroupName, String namespaceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listAuthorizationRules( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAuthorizationRulesAsync( + String resourceGroupName, String namespaceName) { + return new PagedFlux<>( + () -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName), + nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAuthorizationRulesAsync( + String resourceGroupName, String namespaceName, Context context) { + return new PagedFlux<>( + () -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, context), + nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAuthorizationRules( + String resourceGroupName, String namespaceName) { + return new PagedIterable<>(listAuthorizationRulesAsync(resourceGroupName, namespaceName)); + } + + /** + * Gets a list of authorization rules for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of authorization rules for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAuthorizationRules( + String resourceGroupName, String namespaceName, Context context) { + return new PagedIterable<>(listAuthorizationRulesAsync(resourceGroupName, namespaceName, context)); + } + + /** + * Creates or updates an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateAuthorizationRuleWithResponseAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName, List rights) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + AuthorizationRuleInner parameters = new AuthorizationRuleInner(); + parameters.withRights(rights); + return FluxUtil + .withContext( + context -> + service + .createOrUpdateAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Creates or updates an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateAuthorizationRuleWithResponseAsync( + String resourceGroupName, + String namespaceName, + String authorizationRuleName, + List rights, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + AuthorizationRuleInner parameters = new AuthorizationRuleInner(); + parameters.withRights(rights); + context = this.client.mergeContext(context); + return service + .createOrUpdateAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Creates or updates an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAuthorizationRuleAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName, List rights) { + return createOrUpdateAuthorizationRuleWithResponseAsync( + resourceGroupName, namespaceName, authorizationRuleName, rights) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAuthorizationRuleAsync( + String resourceGroupName, + String namespaceName, + String authorizationRuleName, + List rights, + Context context) { + return createOrUpdateAuthorizationRuleWithResponseAsync( + resourceGroupName, namespaceName, authorizationRuleName, rights, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AuthorizationRuleInner createOrUpdateAuthorizationRule( + String resourceGroupName, String namespaceName, String authorizationRuleName, List rights) { + return createOrUpdateAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName, rights) + .block(); + } + + /** + * Creates or updates an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param rights The rights associated with the rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single item in a List or Get AuthorizationRule operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AuthorizationRuleInner createOrUpdateAuthorizationRule( + String resourceGroupName, + String namespaceName, + String authorizationRuleName, + List rights, + Context context) { + return createOrUpdateAuthorizationRuleAsync( + resourceGroupName, namespaceName, authorizationRuleName, rights, context) + .block(); + } + + /** + * Deletes an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteAuthorizationRuleWithResponseAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .deleteAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Deletes an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteAuthorizationRuleWithResponseAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .deleteAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Deletes an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAuthorizationRuleAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName) { + return deleteAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, authorizationRuleName) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Deletes an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAuthorizationRuleAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) { + return deleteAuthorizationRuleWithResponseAsync( + resourceGroupName, namespaceName, authorizationRuleName, context) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Deletes an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName) { + deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName).block(); + } + + /** + * Deletes an AuthorizationRule for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void deleteAuthorizationRule( + String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) { + deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName, context).block(); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAuthorizationRuleWithResponseAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .getAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAuthorizationRuleWithResponseAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .getAuthorizationRule( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAuthorizationRuleAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName) { + return getAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, authorizationRuleName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAuthorizationRuleAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) { + return getAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AuthorizationRuleInner getAuthorizationRule( + String resourceGroupName, String namespaceName, String authorizationRuleName) { + return getAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName).block(); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an AuthorizationRule for a Namespace by rule name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AuthorizationRuleInner getAuthorizationRule( + String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) { + return getAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName, context).block(); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listKeysWithResponseAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listKeys( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listKeysWithResponseAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listKeys( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listKeysAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName) { + return listKeysWithResponseAsync(resourceGroupName, namespaceName, authorizationRuleName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listKeysAsync( + String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) { + return listKeysWithResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String authorizationRuleName) { + return listKeysAsync(resourceGroupName, namespaceName, authorizationRuleName).block(); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the primary and secondary connection strings for the Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AccessKeysInner listKeys( + String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) { + return listKeysAsync(resourceGroupName, namespaceName, authorizationRuleName, context).block(); + } + + /** + * Regenerates the primary or secondary connection strings for the specified Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> regenerateKeysWithResponseAsync( + String resourceGroupName, + String namespaceName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + return FluxUtil + .withContext( + context -> + service + .regenerateKeys( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Regenerates the primary or secondary connection strings for the specified Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> regenerateKeysWithResponseAsync( + String resourceGroupName, + String namespaceName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (authorizationRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + context = this.client.mergeContext(context); + return service + .regenerateKeys( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + authorizationRuleName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Regenerates the primary or secondary connection strings for the specified Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono regenerateKeysAsync( + String resourceGroupName, + String namespaceName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters) { + return regenerateKeysWithResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Regenerates the primary or secondary connection strings for the specified Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono regenerateKeysAsync( + String resourceGroupName, + String namespaceName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters, + Context context) { + return regenerateKeysWithResponseAsync( + resourceGroupName, namespaceName, authorizationRuleName, parameters, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Regenerates the primary or secondary connection strings for the specified Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AccessKeysInner regenerateKeys( + String resourceGroupName, + String namespaceName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters) { + return regenerateKeysAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters).block(); + } + + /** + * Regenerates the primary or secondary connection strings for the specified Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs + * to be reset. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return namespace/EventHub Connection String. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AccessKeysInner regenerateKeys( + String resourceGroupName, + String namespaceName, + String authorizationRuleName, + RegenerateAccessKeyParameters parameters, + Context context) { + return regenerateKeysAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters, context) + .block(); + } + + /** + * Check the give Namespace name availability. + * + * @param name Name to check the namespace name availability. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> checkNameAvailabilityWithResponseAsync(String name) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + CheckNameAvailabilityParameter parameters = new CheckNameAvailabilityParameter(); + parameters.withName(name); + return FluxUtil + .withContext( + context -> + service + .checkNameAvailability( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Check the give Namespace name availability. + * + * @param name Name to check the namespace name availability. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> checkNameAvailabilityWithResponseAsync( + String name, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + CheckNameAvailabilityParameter parameters = new CheckNameAvailabilityParameter(); + parameters.withName(name); + context = this.client.mergeContext(context); + return service + .checkNameAvailability( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Check the give Namespace name availability. + * + * @param name Name to check the namespace name availability. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono checkNameAvailabilityAsync(String name) { + return checkNameAvailabilityWithResponseAsync(name) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Check the give Namespace name availability. + * + * @param name Name to check the namespace name availability. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono checkNameAvailabilityAsync(String name, Context context) { + return checkNameAvailabilityWithResponseAsync(name, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Check the give Namespace name availability. + * + * @param name Name to check the namespace name availability. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CheckNameAvailabilityResultInner checkNameAvailability(String name) { + return checkNameAvailabilityAsync(name).block(); + } + + /** + * Check the give Namespace name availability. + * + * @param name Name to check the namespace name availability. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Result of the CheckNameAvailability operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CheckNameAvailabilityResultInner checkNameAvailability(String name, Context context) { + return checkNameAvailabilityAsync(name, context).block(); + } + + /** + * Lists all the available Namespaces within a subscription, irrespective of the resource groups. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .list( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Lists all the available Namespaces within a subscription, irrespective of the resource groups. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Lists all the available Namespaces within a subscription, irrespective of the resource groups. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the available Namespaces within a subscription, irrespective of the resource groups. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(Context context) { + return new PagedFlux<>( + () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all the available Namespaces within a subscription, irrespective of the resource groups. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Lists all the available Namespaces within a subscription, irrespective of the resource groups. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Lists the available Namespaces within a resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listByResourceGroup( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Lists the available Namespaces within a resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByResourceGroupSinglePageAsync( + String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listByResourceGroup( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Lists the available Namespaces within a resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>( + () -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * Lists the available Namespaces within a resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>( + () -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists the available Namespaces within a resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * Lists the available Namespaces within a resource group. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + return FluxUtil + .withContext( + context -> + service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + context = this.client.mergeContext(context); + return service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, EHNamespaceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters) { + Mono>> mono = + createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, parameters); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), EHNamespaceInner.class, EHNamespaceInner.class, Context.NONE); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, EHNamespaceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, parameters, context); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), EHNamespaceInner.class, EHNamespaceInner.class, context); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SyncPoller, EHNamespaceInner> beginCreateOrUpdate( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, namespaceName, parameters).getSyncPoller(); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SyncPoller, EHNamespaceInner> beginCreateOrUpdate( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, namespaceName, parameters, context).getSyncPoller(); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, namespaceName, parameters) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, namespaceName, parameters, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EHNamespaceInner createOrUpdate( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters) { + return createOrUpdateAsync(resourceGroupName, namespaceName, parameters).block(); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EHNamespaceInner createOrUpdate( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, namespaceName, parameters, context).block(); + } + + /** + * Deletes an existing namespace. This operation also removes all associated resources under the namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String namespaceName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .delete( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Deletes an existing namespace. This operation also removes all associated resources under the namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync( + String resourceGroupName, String namespaceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .delete( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Deletes an existing namespace. This operation also removes all associated resources under the namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String namespaceName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, namespaceName); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + } + + /** + * Deletes an existing namespace. This operation also removes all associated resources under the namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String namespaceName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, namespaceName, context); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + } + + /** + * Deletes an existing namespace. This operation also removes all associated resources under the namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName) { + return beginDeleteAsync(resourceGroupName, namespaceName).getSyncPoller(); + } + + /** + * Deletes an existing namespace. This operation also removes all associated resources under the namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SyncPoller, Void> beginDelete( + String resourceGroupName, String namespaceName, Context context) { + return beginDeleteAsync(resourceGroupName, namespaceName, context).getSyncPoller(); + } + + /** + * Deletes an existing namespace. This operation also removes all associated resources under the namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String namespaceName) { + return beginDeleteAsync(resourceGroupName, namespaceName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes an existing namespace. This operation also removes all associated resources under the namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String namespaceName, Context context) { + return beginDeleteAsync(resourceGroupName, namespaceName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes an existing namespace. This operation also removes all associated resources under the namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String namespaceName) { + deleteAsync(resourceGroupName, namespaceName).block(); + } + + /** + * Deletes an existing namespace. This operation also removes all associated resources under the namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String namespaceName, Context context) { + deleteAsync(resourceGroupName, namespaceName, context).block(); + } + + /** + * Gets the description of the specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the description of the specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByResourceGroupWithResponseAsync( + String resourceGroupName, String namespaceName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .getByResourceGroup( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets the description of the specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the description of the specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByResourceGroupWithResponseAsync( + String resourceGroupName, String namespaceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .getByResourceGroup( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets the description of the specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the description of the specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, String namespaceName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, namespaceName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets the description of the specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the description of the specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync( + String resourceGroupName, String namespaceName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, namespaceName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets the description of the specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the description of the specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EHNamespaceInner getByResourceGroup(String resourceGroupName, String namespaceName) { + return getByResourceGroupAsync(resourceGroupName, namespaceName).block(); + } + + /** + * Gets the description of the specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the description of the specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EHNamespaceInner getByResourceGroup(String resourceGroupName, String namespaceName, Context context) { + return getByResourceGroupAsync(resourceGroupName, namespaceName, context).block(); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> updateWithResponseAsync( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + return FluxUtil + .withContext( + context -> + service + .update( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> updateWithResponseAsync( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + context = this.client.mergeContext(context); + return service + .update( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters) { + return updateWithResponseAsync(resourceGroupName, namespaceName, parameters) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context) { + return updateWithResponseAsync(resourceGroupName, namespaceName, parameters, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EHNamespaceInner update(String resourceGroupName, String namespaceName, EHNamespaceInner parameters) { + return updateAsync(resourceGroupName, namespaceName, parameters).block(); + } + + /** + * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is + * idempotent. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Single Namespace item in List or Get Operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return single Namespace item in List or Get Operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EHNamespaceInner update( + String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context) { + return updateAsync(resourceGroupName, namespaceName, parameters, context).block(); + } + + /** + * Gets messaging plan for specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return messaging plan for specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getMessagingPlanWithResponseAsync( + String resourceGroupName, String namespaceName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .getMessagingPlan( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets messaging plan for specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return messaging plan for specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getMessagingPlanWithResponseAsync( + String resourceGroupName, String namespaceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .getMessagingPlan( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets messaging plan for specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return messaging plan for specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getMessagingPlanAsync(String resourceGroupName, String namespaceName) { + return getMessagingPlanWithResponseAsync(resourceGroupName, namespaceName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets messaging plan for specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return messaging plan for specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getMessagingPlanAsync( + String resourceGroupName, String namespaceName, Context context) { + return getMessagingPlanWithResponseAsync(resourceGroupName, namespaceName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets messaging plan for specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return messaging plan for specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MessagingPlanInner getMessagingPlan(String resourceGroupName, String namespaceName) { + return getMessagingPlanAsync(resourceGroupName, namespaceName).block(); + } + + /** + * Gets messaging plan for specified namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return messaging plan for specified namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MessagingPlanInner getMessagingPlan(String resourceGroupName, String namespaceName, Context context) { + return getMessagingPlanAsync(resourceGroupName, namespaceName, context).block(); + } + + /** + * Create or update NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Description of NetworkRuleSet resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return description of NetworkRuleSet resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateNetworkRuleSetWithResponseAsync( + String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + return FluxUtil + .withContext( + context -> + service + .createOrUpdateNetworkRuleSet( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Create or update NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Description of NetworkRuleSet resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return description of NetworkRuleSet resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateNetworkRuleSetWithResponseAsync( + String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + context = this.client.mergeContext(context); + return service + .createOrUpdateNetworkRuleSet( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Create or update NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Description of NetworkRuleSet resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return description of NetworkRuleSet resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateNetworkRuleSetAsync( + String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters) { + return createOrUpdateNetworkRuleSetWithResponseAsync(resourceGroupName, namespaceName, parameters) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Create or update NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Description of NetworkRuleSet resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return description of NetworkRuleSet resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateNetworkRuleSetAsync( + String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters, Context context) { + return createOrUpdateNetworkRuleSetWithResponseAsync(resourceGroupName, namespaceName, parameters, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Create or update NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Description of NetworkRuleSet resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return description of NetworkRuleSet resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkRuleSetInner createOrUpdateNetworkRuleSet( + String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters) { + return createOrUpdateNetworkRuleSetAsync(resourceGroupName, namespaceName, parameters).block(); + } + + /** + * Create or update NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param parameters Description of NetworkRuleSet resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return description of NetworkRuleSet resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkRuleSetInner createOrUpdateNetworkRuleSet( + String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters, Context context) { + return createOrUpdateNetworkRuleSetAsync(resourceGroupName, namespaceName, parameters, context).block(); + } + + /** + * Gets NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getNetworkRuleSetWithResponseAsync( + String resourceGroupName, String namespaceName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .getNetworkRuleSet( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getNetworkRuleSetWithResponseAsync( + String resourceGroupName, String namespaceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .getNetworkRuleSet( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Gets NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getNetworkRuleSetAsync(String resourceGroupName, String namespaceName) { + return getNetworkRuleSetWithResponseAsync(resourceGroupName, namespaceName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getNetworkRuleSetAsync( + String resourceGroupName, String namespaceName, Context context) { + return getNetworkRuleSetWithResponseAsync(resourceGroupName, namespaceName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Gets NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkRuleSetInner getNetworkRuleSet(String resourceGroupName, String namespaceName) { + return getNetworkRuleSetAsync(resourceGroupName, namespaceName).block(); + } + + /** + * Gets NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkRuleSetInner getNetworkRuleSet(String resourceGroupName, String namespaceName, Context context) { + return getNetworkRuleSetAsync(resourceGroupName, namespaceName, context).block(); + } + + /** + * Gets list of NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetworkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listNetworkRuleSetsSinglePageAsync( + String resourceGroupName, String namespaceName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listNetworkRuleSets( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets list of NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetworkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listNetworkRuleSetsSinglePageAsync( + String resourceGroupName, String namespaceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (namespaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listNetworkRuleSets( + this.client.getEndpoint(), + resourceGroupName, + namespaceName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Gets list of NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetworkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listNetworkRuleSetsAsync(String resourceGroupName, String namespaceName) { + return new PagedFlux<>( + () -> listNetworkRuleSetsSinglePageAsync(resourceGroupName, namespaceName), + nextLink -> listNetworkRuleSetsNextSinglePageAsync(nextLink)); + } + + /** + * Gets list of NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetworkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listNetworkRuleSetsAsync( + String resourceGroupName, String namespaceName, Context context) { + return new PagedFlux<>( + () -> listNetworkRuleSetsSinglePageAsync(resourceGroupName, namespaceName, context), + nextLink -> listNetworkRuleSetsNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets list of NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetworkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listNetworkRuleSets(String resourceGroupName, String namespaceName) { + return new PagedIterable<>(listNetworkRuleSetsAsync(resourceGroupName, namespaceName)); + } + + /** + * Gets list of NetworkRuleSet for a Namespace. + * + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetworkRuleSet for a Namespace. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listNetworkRuleSets( + String resourceGroupName, String namespaceName, Context context) { + return new PagedIterable<>(listNetworkRuleSetsAsync(resourceGroupName, namespaceName, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from the List namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listAuthorizationRulesNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from the List namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAuthorizationRulesNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listAuthorizationRulesNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listByResourceGroupNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List Namespace operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByResourceGroupNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listByResourceGroupNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List NetworkRuleSet operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listNetworkRuleSetsNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listNetworkRuleSetsNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List NetworkRuleSet operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listNetworkRuleSetsNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listNetworkRuleSetsNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/OperationsClient.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/OperationsClient.java new file mode 100644 index 0000000000000..28a017f772cbd --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/OperationsClient.java @@ -0,0 +1,245 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.EventHubManagementClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.OperationInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.OperationListResultInner; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in Operations. */ +public final class OperationsClient { + private final ClientLogger logger = new ClientLogger(OperationsClient.class); + + /** The proxy service used to perform REST calls. */ + private final OperationsService service; + + /** The service client containing this operation class. */ + private final EventHubManagementClient client; + + /** + * Initializes an instance of OperationsClient. + * + * @param client the instance of the service client containing this operation class. + */ + public OperationsClient(EventHubManagementClient client) { + this.service = + RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for EventHubManagementClientOperations to be used by the proxy service to + * perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "EventHubManagementCl") + private interface OperationsService { + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("/providers/Microsoft.EventHub/operations") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list( + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + } + + /** + * Lists all of the available Event Hub REST API operations. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list Event Hub operations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Lists all of the available Event Hub REST API operations. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list Event Hub operations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Lists all of the available Event Hub REST API operations. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list Event Hub operations. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all of the available Event Hub REST API operations. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list Event Hub operations. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(Context context) { + return new PagedFlux<>( + () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all of the available Event Hub REST API operations. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list Event Hub operations. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Lists all of the available Event Hub REST API operations. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list Event Hub operations. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list Event Hub operations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list Event Hub operations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/RegionsClient.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/RegionsClient.java new file mode 100644 index 0000000000000..2e67fcd05fe66 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/RegionsClient.java @@ -0,0 +1,284 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.EventHubManagementClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.MessagingRegionsInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.MessagingRegionsListResultInner; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in Regions. */ +public final class RegionsClient { + private final ClientLogger logger = new ClientLogger(RegionsClient.class); + + /** The proxy service used to perform REST calls. */ + private final RegionsService service; + + /** The service client containing this operation class. */ + private final EventHubManagementClient client; + + /** + * Initializes an instance of RegionsClient. + * + * @param client the instance of the service client containing this operation class. + */ + public RegionsClient(EventHubManagementClient client) { + this.service = RestProxy.create(RegionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for EventHubManagementClientRegions to be used by the proxy service to + * perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "EventHubManagementCl") + private interface RegionsService { + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/sku/{sku}/regions") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySku( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("sku") String sku, + Context context); + + @Headers({"Accept: application/json", "Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySkuNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); + } + + /** + * Gets the available Regions for a given sku. + * + * @param sku The sku type. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the available Regions for a given sku. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listBySkuSinglePageAsync(String sku) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (sku == null) { + return Mono.error(new IllegalArgumentException("Parameter sku is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .listBySku( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + sku, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Gets the available Regions for a given sku. + * + * @param sku The sku type. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the available Regions for a given sku. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listBySkuSinglePageAsync(String sku, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (sku == null) { + return Mono.error(new IllegalArgumentException("Parameter sku is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listBySku( + this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), sku, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Gets the available Regions for a given sku. + * + * @param sku The sku type. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the available Regions for a given sku. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listBySkuAsync(String sku) { + return new PagedFlux<>(() -> listBySkuSinglePageAsync(sku), nextLink -> listBySkuNextSinglePageAsync(nextLink)); + } + + /** + * Gets the available Regions for a given sku. + * + * @param sku The sku type. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the available Regions for a given sku. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listBySkuAsync(String sku, Context context) { + return new PagedFlux<>( + () -> listBySkuSinglePageAsync(sku, context), nextLink -> listBySkuNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets the available Regions for a given sku. + * + * @param sku The sku type. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the available Regions for a given sku. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listBySku(String sku) { + return new PagedIterable<>(listBySkuAsync(sku)); + } + + /** + * Gets the available Regions for a given sku. + * + * @param sku The sku type. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the available Regions for a given sku. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listBySku(String sku, Context context) { + return new PagedIterable<>(listBySkuAsync(sku, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List MessagingRegions operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listBySkuNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.listBySkuNext(nextLink, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of the List MessagingRegions operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listBySkuNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .listBySkuNext(nextLink, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/AccessKeysInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/AccessKeysInner.java new file mode 100644 index 0000000000000..190f59aa2fbee --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/AccessKeysInner.java @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The AccessKeys model. */ +@Immutable +public final class AccessKeysInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(AccessKeysInner.class); + + /* + * Primary connection string of the created namespace AuthorizationRule. + */ + @JsonProperty(value = "primaryConnectionString", access = JsonProperty.Access.WRITE_ONLY) + private String primaryConnectionString; + + /* + * Secondary connection string of the created namespace AuthorizationRule. + */ + @JsonProperty(value = "secondaryConnectionString", access = JsonProperty.Access.WRITE_ONLY) + private String secondaryConnectionString; + + /* + * Primary connection string of the alias if GEO DR is enabled + */ + @JsonProperty(value = "aliasPrimaryConnectionString", access = JsonProperty.Access.WRITE_ONLY) + private String aliasPrimaryConnectionString; + + /* + * Secondary connection string of the alias if GEO DR is enabled + */ + @JsonProperty(value = "aliasSecondaryConnectionString", access = JsonProperty.Access.WRITE_ONLY) + private String aliasSecondaryConnectionString; + + /* + * A base64-encoded 256-bit primary key for signing and validating the SAS + * token. + */ + @JsonProperty(value = "primaryKey", access = JsonProperty.Access.WRITE_ONLY) + private String primaryKey; + + /* + * A base64-encoded 256-bit primary key for signing and validating the SAS + * token. + */ + @JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY) + private String secondaryKey; + + /* + * A string that describes the AuthorizationRule. + */ + @JsonProperty(value = "keyName", access = JsonProperty.Access.WRITE_ONLY) + private String keyName; + + /** + * Get the primaryConnectionString property: Primary connection string of the created namespace AuthorizationRule. + * + * @return the primaryConnectionString value. + */ + public String primaryConnectionString() { + return this.primaryConnectionString; + } + + /** + * Get the secondaryConnectionString property: Secondary connection string of the created namespace + * AuthorizationRule. + * + * @return the secondaryConnectionString value. + */ + public String secondaryConnectionString() { + return this.secondaryConnectionString; + } + + /** + * Get the aliasPrimaryConnectionString property: Primary connection string of the alias if GEO DR is enabled. + * + * @return the aliasPrimaryConnectionString value. + */ + public String aliasPrimaryConnectionString() { + return this.aliasPrimaryConnectionString; + } + + /** + * Get the aliasSecondaryConnectionString property: Secondary connection string of the alias if GEO DR is enabled. + * + * @return the aliasSecondaryConnectionString value. + */ + public String aliasSecondaryConnectionString() { + return this.aliasSecondaryConnectionString; + } + + /** + * Get the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token. + * + * @return the primaryKey value. + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Get the secondaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token. + * + * @return the secondaryKey value. + */ + public String secondaryKey() { + return this.secondaryKey; + } + + /** + * Get the keyName property: A string that describes the AuthorizationRule. + * + * @return the keyName value. + */ + public String keyName() { + return this.keyName; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ArmDisasterRecoveryInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ArmDisasterRecoveryInner.java new file mode 100644 index 0000000000000..53670509a5cfb --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ArmDisasterRecoveryInner.java @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.management.ProxyResource; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.models.ProvisioningStateDR; +import com.azure.resourcemanager.eventhubs.models.RoleDisasterRecovery; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The ArmDisasterRecovery model. */ +@JsonFlatten +@Fluent +public class ArmDisasterRecoveryInner extends ProxyResource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ArmDisasterRecoveryInner.class); + + /* + * Provisioning state of the Alias(Disaster Recovery configuration) - + * possible values 'Accepted' or 'Succeeded' or 'Failed' + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningStateDR provisioningState; + + /* + * ARM Id of the Primary/Secondary eventhub namespace name, which is part + * of GEO DR pairing + */ + @JsonProperty(value = "properties.partnerNamespace") + private String partnerNamespace; + + /* + * Alternate name specified when alias and namespace names are same. + */ + @JsonProperty(value = "properties.alternateName") + private String alternateName; + + /* + * role of namespace in GEO DR - possible values 'Primary' or + * 'PrimaryNotReplicating' or 'Secondary' + */ + @JsonProperty(value = "properties.role", access = JsonProperty.Access.WRITE_ONLY) + private RoleDisasterRecovery role; + + /* + * Number of entities pending to be replicated. + */ + @JsonProperty(value = "properties.pendingReplicationOperationsCount", access = JsonProperty.Access.WRITE_ONLY) + private Long pendingReplicationOperationsCount; + + /** + * Get the provisioningState property: Provisioning state of the Alias(Disaster Recovery configuration) - possible + * values 'Accepted' or 'Succeeded' or 'Failed'. + * + * @return the provisioningState value. + */ + public ProvisioningStateDR provisioningState() { + return this.provisioningState; + } + + /** + * Get the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO + * DR pairing. + * + * @return the partnerNamespace value. + */ + public String partnerNamespace() { + return this.partnerNamespace; + } + + /** + * Set the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO + * DR pairing. + * + * @param partnerNamespace the partnerNamespace value to set. + * @return the ArmDisasterRecoveryInner object itself. + */ + public ArmDisasterRecoveryInner withPartnerNamespace(String partnerNamespace) { + this.partnerNamespace = partnerNamespace; + return this; + } + + /** + * Get the alternateName property: Alternate name specified when alias and namespace names are same. + * + * @return the alternateName value. + */ + public String alternateName() { + return this.alternateName; + } + + /** + * Set the alternateName property: Alternate name specified when alias and namespace names are same. + * + * @param alternateName the alternateName value to set. + * @return the ArmDisasterRecoveryInner object itself. + */ + public ArmDisasterRecoveryInner withAlternateName(String alternateName) { + this.alternateName = alternateName; + return this; + } + + /** + * Get the role property: role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or + * 'Secondary'. + * + * @return the role value. + */ + public RoleDisasterRecovery role() { + return this.role; + } + + /** + * Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated. + * + * @return the pendingReplicationOperationsCount value. + */ + public Long pendingReplicationOperationsCount() { + return this.pendingReplicationOperationsCount; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ArmDisasterRecoveryListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ArmDisasterRecoveryListResultInner.java new file mode 100644 index 0000000000000..8c3af6303af0f --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ArmDisasterRecoveryListResultInner.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The ArmDisasterRecoveryListResult model. */ +@Fluent +public final class ArmDisasterRecoveryListResultInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ArmDisasterRecoveryListResultInner.class); + + /* + * List of Alias(Disaster Recovery configurations) + */ + @JsonProperty(value = "value") + private List value; + + /* + * Link to the next set of results. Not empty if Value contains incomplete + * list of Alias(Disaster Recovery configuration) + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the value property: List of Alias(Disaster Recovery configurations). + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: List of Alias(Disaster Recovery configurations). + * + * @param value the value value to set. + * @return the ArmDisasterRecoveryListResultInner object itself. + */ + public ArmDisasterRecoveryListResultInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of + * Alias(Disaster Recovery configuration). + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/AuthorizationRuleInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/AuthorizationRuleInner.java new file mode 100644 index 0000000000000..f371d5a0ac8b4 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/AuthorizationRuleInner.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.management.ProxyResource; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.models.AccessRights; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The AuthorizationRule model. */ +@JsonFlatten +@Fluent +public class AuthorizationRuleInner extends ProxyResource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(AuthorizationRuleInner.class); + + /* + * The rights associated with the rule. + */ + @JsonProperty(value = "properties.rights") + private List rights; + + /** + * Get the rights property: The rights associated with the rule. + * + * @return the rights value. + */ + public List rights() { + return this.rights; + } + + /** + * Set the rights property: The rights associated with the rule. + * + * @param rights the rights value to set. + * @return the AuthorizationRuleInner object itself. + */ + public AuthorizationRuleInner withRights(List rights) { + this.rights = rights; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/AuthorizationRuleListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/AuthorizationRuleListResultInner.java new file mode 100644 index 0000000000000..3164566b98f5c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/AuthorizationRuleListResultInner.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The AuthorizationRuleListResult model. */ +@Fluent +public final class AuthorizationRuleListResultInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(AuthorizationRuleListResultInner.class); + + /* + * Result of the List Authorization Rules operation. + */ + @JsonProperty(value = "value") + private List value; + + /* + * Link to the next set of results. Not empty if Value contains an + * incomplete list of Authorization Rules + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /** + * Get the value property: Result of the List Authorization Rules operation. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: Result of the List Authorization Rules operation. + * + * @param value the value value to set. + * @return the AuthorizationRuleListResultInner object itself. + */ + public AuthorizationRuleListResultInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: Link to the next set of results. Not empty if Value contains an incomplete list of + * Authorization Rules. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: Link to the next set of results. Not empty if Value contains an incomplete list of + * Authorization Rules. + * + * @param nextLink the nextLink value to set. + * @return the AuthorizationRuleListResultInner object itself. + */ + public AuthorizationRuleListResultInner withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/CheckNameAvailabilityResultInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/CheckNameAvailabilityResultInner.java new file mode 100644 index 0000000000000..34e7fc6e46670 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/CheckNameAvailabilityResultInner.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.models.UnavailableReason; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CheckNameAvailabilityResult model. */ +@Fluent +public final class CheckNameAvailabilityResultInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameAvailabilityResultInner.class); + + /* + * The detailed info regarding the reason associated with the Namespace. + */ + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) + private String message; + + /* + * Value indicating Namespace is availability, true if the Namespace is + * available; otherwise, false. + */ + @JsonProperty(value = "nameAvailable") + private Boolean nameAvailable; + + /* + * The reason for unavailability of a Namespace. + */ + @JsonProperty(value = "reason") + private UnavailableReason reason; + + /** + * Get the message property: The detailed info regarding the reason associated with the Namespace. + * + * @return the message value. + */ + public String message() { + return this.message; + } + + /** + * Get the nameAvailable property: Value indicating Namespace is availability, true if the Namespace is available; + * otherwise, false. + * + * @return the nameAvailable value. + */ + public Boolean nameAvailable() { + return this.nameAvailable; + } + + /** + * Set the nameAvailable property: Value indicating Namespace is availability, true if the Namespace is available; + * otherwise, false. + * + * @param nameAvailable the nameAvailable value to set. + * @return the CheckNameAvailabilityResultInner object itself. + */ + public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) { + this.nameAvailable = nameAvailable; + return this; + } + + /** + * Get the reason property: The reason for unavailability of a Namespace. + * + * @return the reason value. + */ + public UnavailableReason reason() { + return this.reason; + } + + /** + * Set the reason property: The reason for unavailability of a Namespace. + * + * @param reason the reason value to set. + * @return the CheckNameAvailabilityResultInner object itself. + */ + public CheckNameAvailabilityResultInner withReason(UnavailableReason reason) { + this.reason = reason; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ConsumerGroupInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ConsumerGroupInner.java new file mode 100644 index 0000000000000..d24b98b216b1e --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ConsumerGroupInner.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.management.ProxyResource; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The ConsumerGroup model. */ +@JsonFlatten +@Fluent +public class ConsumerGroupInner extends ProxyResource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ConsumerGroupInner.class); + + /* + * Exact time the message was created. + */ + @JsonProperty(value = "properties.createdAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdAt; + + /* + * The exact time the message was updated. + */ + @JsonProperty(value = "properties.updatedAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime updatedAt; + + /* + * User Metadata is a placeholder to store user-defined string data with + * maximum length 1024. e.g. it can be used to store descriptive data, such + * as list of teams and their contact information also user-defined + * configuration settings can be stored. + */ + @JsonProperty(value = "properties.userMetadata") + private String userMetadata; + + /** + * Get the createdAt property: Exact time the message was created. + * + * @return the createdAt value. + */ + public OffsetDateTime createdAt() { + return this.createdAt; + } + + /** + * Get the updatedAt property: The exact time the message was updated. + * + * @return the updatedAt value. + */ + public OffsetDateTime updatedAt() { + return this.updatedAt; + } + + /** + * Get the userMetadata property: User Metadata is a placeholder to store user-defined string data with maximum + * length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information + * also user-defined configuration settings can be stored. + * + * @return the userMetadata value. + */ + public String userMetadata() { + return this.userMetadata; + } + + /** + * Set the userMetadata property: User Metadata is a placeholder to store user-defined string data with maximum + * length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information + * also user-defined configuration settings can be stored. + * + * @param userMetadata the userMetadata value to set. + * @return the ConsumerGroupInner object itself. + */ + public ConsumerGroupInner withUserMetadata(String userMetadata) { + this.userMetadata = userMetadata; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ConsumerGroupListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ConsumerGroupListResultInner.java new file mode 100644 index 0000000000000..4829b08ac1590 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/ConsumerGroupListResultInner.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The ConsumerGroupListResult model. */ +@Fluent +public final class ConsumerGroupListResultInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ConsumerGroupListResultInner.class); + + /* + * Result of the List Consumer Group operation. + */ + @JsonProperty(value = "value") + private List value; + + /* + * Link to the next set of results. Not empty if Value contains incomplete + * list of Consumer Group + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /** + * Get the value property: Result of the List Consumer Group operation. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: Result of the List Consumer Group operation. + * + * @param value the value value to set. + * @return the ConsumerGroupListResultInner object itself. + */ + public ConsumerGroupListResultInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of + * Consumer Group. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of + * Consumer Group. + * + * @param nextLink the nextLink value to set. + * @return the ConsumerGroupListResultInner object itself. + */ + public ConsumerGroupListResultInner withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EHNamespaceInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EHNamespaceInner.java new file mode 100644 index 0000000000000..27a5af5043c85 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EHNamespaceInner.java @@ -0,0 +1,218 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.management.Resource; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.models.Sku; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The EHNamespace model. */ +@JsonFlatten +@Fluent +public class EHNamespaceInner extends Resource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(EHNamespaceInner.class); + + /* + * Properties of sku resource + */ + @JsonProperty(value = "sku") + private Sku sku; + + /* + * Provisioning state of the Namespace. + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /* + * The time the Namespace was created. + */ + @JsonProperty(value = "properties.createdAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdAt; + + /* + * The time the Namespace was updated. + */ + @JsonProperty(value = "properties.updatedAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime updatedAt; + + /* + * Endpoint you can use to perform Service Bus operations. + */ + @JsonProperty(value = "properties.serviceBusEndpoint", access = JsonProperty.Access.WRITE_ONLY) + private String serviceBusEndpoint; + + /* + * Identifier for Azure Insights metrics. + */ + @JsonProperty(value = "properties.metricId", access = JsonProperty.Access.WRITE_ONLY) + private String metricId; + + /* + * Value that indicates whether AutoInflate is enabled for eventhub + * namespace. + */ + @JsonProperty(value = "properties.isAutoInflateEnabled") + private Boolean isAutoInflateEnabled; + + /* + * Upper limit of throughput units when AutoInflate is enabled, value + * should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = + * true) + */ + @JsonProperty(value = "properties.maximumThroughputUnits") + private Integer maximumThroughputUnits; + + /* + * Value that indicates whether Kafka is enabled for eventhub namespace. + */ + @JsonProperty(value = "properties.kafkaEnabled") + private Boolean kafkaEnabled; + + /** + * Get the sku property: Properties of sku resource. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku property: Properties of sku resource. + * + * @param sku the sku value to set. + * @return the EHNamespaceInner object itself. + */ + public EHNamespaceInner withSku(Sku sku) { + this.sku = sku; + return this; + } + + /** + * Get the provisioningState property: Provisioning state of the Namespace. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the createdAt property: The time the Namespace was created. + * + * @return the createdAt value. + */ + public OffsetDateTime createdAt() { + return this.createdAt; + } + + /** + * Get the updatedAt property: The time the Namespace was updated. + * + * @return the updatedAt value. + */ + public OffsetDateTime updatedAt() { + return this.updatedAt; + } + + /** + * Get the serviceBusEndpoint property: Endpoint you can use to perform Service Bus operations. + * + * @return the serviceBusEndpoint value. + */ + public String serviceBusEndpoint() { + return this.serviceBusEndpoint; + } + + /** + * Get the metricId property: Identifier for Azure Insights metrics. + * + * @return the metricId value. + */ + public String metricId() { + return this.metricId; + } + + /** + * Get the isAutoInflateEnabled property: Value that indicates whether AutoInflate is enabled for eventhub + * namespace. + * + * @return the isAutoInflateEnabled value. + */ + public Boolean isAutoInflateEnabled() { + return this.isAutoInflateEnabled; + } + + /** + * Set the isAutoInflateEnabled property: Value that indicates whether AutoInflate is enabled for eventhub + * namespace. + * + * @param isAutoInflateEnabled the isAutoInflateEnabled value to set. + * @return the EHNamespaceInner object itself. + */ + public EHNamespaceInner withIsAutoInflateEnabled(Boolean isAutoInflateEnabled) { + this.isAutoInflateEnabled = isAutoInflateEnabled; + return this; + } + + /** + * Get the maximumThroughputUnits property: Upper limit of throughput units when AutoInflate is enabled, value + * should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true). + * + * @return the maximumThroughputUnits value. + */ + public Integer maximumThroughputUnits() { + return this.maximumThroughputUnits; + } + + /** + * Set the maximumThroughputUnits property: Upper limit of throughput units when AutoInflate is enabled, value + * should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true). + * + * @param maximumThroughputUnits the maximumThroughputUnits value to set. + * @return the EHNamespaceInner object itself. + */ + public EHNamespaceInner withMaximumThroughputUnits(Integer maximumThroughputUnits) { + this.maximumThroughputUnits = maximumThroughputUnits; + return this; + } + + /** + * Get the kafkaEnabled property: Value that indicates whether Kafka is enabled for eventhub namespace. + * + * @return the kafkaEnabled value. + */ + public Boolean kafkaEnabled() { + return this.kafkaEnabled; + } + + /** + * Set the kafkaEnabled property: Value that indicates whether Kafka is enabled for eventhub namespace. + * + * @param kafkaEnabled the kafkaEnabled value to set. + * @return the EHNamespaceInner object itself. + */ + public EHNamespaceInner withKafkaEnabled(Boolean kafkaEnabled) { + this.kafkaEnabled = kafkaEnabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (sku() != null) { + sku().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EHNamespaceListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EHNamespaceListResultInner.java new file mode 100644 index 0000000000000..0c3c5aab87b09 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EHNamespaceListResultInner.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The EHNamespaceListResult model. */ +@Fluent +public final class EHNamespaceListResultInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(EHNamespaceListResultInner.class); + + /* + * Result of the List Namespace operation + */ + @JsonProperty(value = "value") + private List value; + + /* + * Link to the next set of results. Not empty if Value contains incomplete + * list of namespaces. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /** + * Get the value property: Result of the List Namespace operation. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: Result of the List Namespace operation. + * + * @param value the value value to set. + * @return the EHNamespaceListResultInner object itself. + */ + public EHNamespaceListResultInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of + * namespaces. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of + * namespaces. + * + * @param nextLink the nextLink value to set. + * @return the EHNamespaceListResultInner object itself. + */ + public EHNamespaceListResultInner withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EventHubListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EventHubListResultInner.java new file mode 100644 index 0000000000000..df7d5ee6e048d --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EventHubListResultInner.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The EventHubListResult model. */ +@Fluent +public final class EventHubListResultInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(EventHubListResultInner.class); + + /* + * Result of the List EventHubs operation. + */ + @JsonProperty(value = "value") + private List value; + + /* + * Link to the next set of results. Not empty if Value contains incomplete + * list of EventHubs. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /** + * Get the value property: Result of the List EventHubs operation. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: Result of the List EventHubs operation. + * + * @param value the value value to set. + * @return the EventHubListResultInner object itself. + */ + public EventHubListResultInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of + * EventHubs. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of + * EventHubs. + * + * @param nextLink the nextLink value to set. + * @return the EventHubListResultInner object itself. + */ + public EventHubListResultInner withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EventhubInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EventhubInner.java new file mode 100644 index 0000000000000..20662e38dbc54 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/EventhubInner.java @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.management.ProxyResource; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.models.CaptureDescription; +import com.azure.resourcemanager.eventhubs.models.EntityStatus; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.List; + +/** The Eventhub model. */ +@JsonFlatten +@Fluent +public class EventhubInner extends ProxyResource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(EventhubInner.class); + + /* + * Current number of shards on the Event Hub. + */ + @JsonProperty(value = "properties.partitionIds", access = JsonProperty.Access.WRITE_ONLY) + private List partitionIds; + + /* + * Exact time the Event Hub was created. + */ + @JsonProperty(value = "properties.createdAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdAt; + + /* + * The exact time the message was updated. + */ + @JsonProperty(value = "properties.updatedAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime updatedAt; + + /* + * Number of days to retain the events for this Event Hub, value should be + * 1 to 7 days + */ + @JsonProperty(value = "properties.messageRetentionInDays") + private Long messageRetentionInDays; + + /* + * Number of partitions created for the Event Hub, allowed values are from + * 1 to 32 partitions. + */ + @JsonProperty(value = "properties.partitionCount") + private Long partitionCount; + + /* + * Enumerates the possible values for the status of the Event Hub. + */ + @JsonProperty(value = "properties.status") + private EntityStatus status; + + /* + * Properties of capture description + */ + @JsonProperty(value = "properties.captureDescription") + private CaptureDescription captureDescription; + + /** + * Get the partitionIds property: Current number of shards on the Event Hub. + * + * @return the partitionIds value. + */ + public List partitionIds() { + return this.partitionIds; + } + + /** + * Get the createdAt property: Exact time the Event Hub was created. + * + * @return the createdAt value. + */ + public OffsetDateTime createdAt() { + return this.createdAt; + } + + /** + * Get the updatedAt property: The exact time the message was updated. + * + * @return the updatedAt value. + */ + public OffsetDateTime updatedAt() { + return this.updatedAt; + } + + /** + * Get the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be + * 1 to 7 days. + * + * @return the messageRetentionInDays value. + */ + public Long messageRetentionInDays() { + return this.messageRetentionInDays; + } + + /** + * Set the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be + * 1 to 7 days. + * + * @param messageRetentionInDays the messageRetentionInDays value to set. + * @return the EventhubInner object itself. + */ + public EventhubInner withMessageRetentionInDays(Long messageRetentionInDays) { + this.messageRetentionInDays = messageRetentionInDays; + return this; + } + + /** + * Get the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 + * partitions. + * + * @return the partitionCount value. + */ + public Long partitionCount() { + return this.partitionCount; + } + + /** + * Set the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32 + * partitions. + * + * @param partitionCount the partitionCount value to set. + * @return the EventhubInner object itself. + */ + public EventhubInner withPartitionCount(Long partitionCount) { + this.partitionCount = partitionCount; + return this; + } + + /** + * Get the status property: Enumerates the possible values for the status of the Event Hub. + * + * @return the status value. + */ + public EntityStatus status() { + return this.status; + } + + /** + * Set the status property: Enumerates the possible values for the status of the Event Hub. + * + * @param status the status value to set. + * @return the EventhubInner object itself. + */ + public EventhubInner withStatus(EntityStatus status) { + this.status = status; + return this; + } + + /** + * Get the captureDescription property: Properties of capture description. + * + * @return the captureDescription value. + */ + public CaptureDescription captureDescription() { + return this.captureDescription; + } + + /** + * Set the captureDescription property: Properties of capture description. + * + * @param captureDescription the captureDescription value to set. + * @return the EventhubInner object itself. + */ + public EventhubInner withCaptureDescription(CaptureDescription captureDescription) { + this.captureDescription = captureDescription; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (captureDescription() != null) { + captureDescription().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/MessagingPlanInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/MessagingPlanInner.java new file mode 100644 index 0000000000000..1e47593043f2e --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/MessagingPlanInner.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.management.Resource; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The MessagingPlan model. */ +@JsonFlatten +@Immutable +public class MessagingPlanInner extends Resource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(MessagingPlanInner.class); + + /* + * Sku type + */ + @JsonProperty(value = "properties.sku", access = JsonProperty.Access.WRITE_ONLY) + private Integer sku; + + /* + * Selected event hub unit + */ + @JsonProperty(value = "properties.selectedEventHubUnit", access = JsonProperty.Access.WRITE_ONLY) + private Integer selectedEventHubUnit; + + /* + * The exact time the messaging plan was updated. + */ + @JsonProperty(value = "properties.updatedAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime updatedAt; + + /* + * revision number + */ + @JsonProperty(value = "properties.revision", access = JsonProperty.Access.WRITE_ONLY) + private Long revision; + + /** + * Get the sku property: Sku type. + * + * @return the sku value. + */ + public Integer sku() { + return this.sku; + } + + /** + * Get the selectedEventHubUnit property: Selected event hub unit. + * + * @return the selectedEventHubUnit value. + */ + public Integer selectedEventHubUnit() { + return this.selectedEventHubUnit; + } + + /** + * Get the updatedAt property: The exact time the messaging plan was updated. + * + * @return the updatedAt value. + */ + public OffsetDateTime updatedAt() { + return this.updatedAt; + } + + /** + * Get the revision property: revision number. + * + * @return the revision value. + */ + public Long revision() { + return this.revision; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/MessagingRegionsInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/MessagingRegionsInner.java new file mode 100644 index 0000000000000..97262bbcb559e --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/MessagingRegionsInner.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.models.MessagingRegionsProperties; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The MessagingRegions model. */ +@Fluent +public final class MessagingRegionsInner extends Resource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(MessagingRegionsInner.class); + + /* + * Properties of Messaging Region + */ + @JsonProperty(value = "properties") + private MessagingRegionsProperties properties; + + /** + * Get the properties property: Properties of Messaging Region. + * + * @return the properties value. + */ + public MessagingRegionsProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of Messaging Region. + * + * @param properties the properties value to set. + * @return the MessagingRegionsInner object itself. + */ + public MessagingRegionsInner withProperties(MessagingRegionsProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/MessagingRegionsListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/MessagingRegionsListResultInner.java new file mode 100644 index 0000000000000..75ad6db743ad0 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/MessagingRegionsListResultInner.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The MessagingRegionsListResult model. */ +@Fluent +public final class MessagingRegionsListResultInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(MessagingRegionsListResultInner.class); + + /* + * Result of the List MessagingRegions type. + */ + @JsonProperty(value = "value") + private List value; + + /* + * Link to the next set of results. Not empty if Value contains incomplete + * list of MessagingRegions. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the value property: Result of the List MessagingRegions type. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: Result of the List MessagingRegions type. + * + * @param value the value value to set. + * @return the MessagingRegionsListResultInner object itself. + */ + public MessagingRegionsListResultInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of + * MessagingRegions. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/NetworkRuleSetInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/NetworkRuleSetInner.java new file mode 100644 index 0000000000000..cc2d1199dc34c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/NetworkRuleSetInner.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.management.ProxyResource; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.models.DefaultAction; +import com.azure.resourcemanager.eventhubs.models.NWRuleSetIpRules; +import com.azure.resourcemanager.eventhubs.models.NWRuleSetVirtualNetworkRules; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The NetworkRuleSet model. */ +@JsonFlatten +@Fluent +public class NetworkRuleSetInner extends ProxyResource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkRuleSetInner.class); + + /* + * Default Action for Network Rule Set + */ + @JsonProperty(value = "properties.defaultAction") + private DefaultAction defaultAction; + + /* + * List VirtualNetwork Rules + */ + @JsonProperty(value = "properties.virtualNetworkRules") + private List virtualNetworkRules; + + /* + * List of IpRules + */ + @JsonProperty(value = "properties.ipRules") + private List ipRules; + + /** + * Get the defaultAction property: Default Action for Network Rule Set. + * + * @return the defaultAction value. + */ + public DefaultAction defaultAction() { + return this.defaultAction; + } + + /** + * Set the defaultAction property: Default Action for Network Rule Set. + * + * @param defaultAction the defaultAction value to set. + * @return the NetworkRuleSetInner object itself. + */ + public NetworkRuleSetInner withDefaultAction(DefaultAction defaultAction) { + this.defaultAction = defaultAction; + return this; + } + + /** + * Get the virtualNetworkRules property: List VirtualNetwork Rules. + * + * @return the virtualNetworkRules value. + */ + public List virtualNetworkRules() { + return this.virtualNetworkRules; + } + + /** + * Set the virtualNetworkRules property: List VirtualNetwork Rules. + * + * @param virtualNetworkRules the virtualNetworkRules value to set. + * @return the NetworkRuleSetInner object itself. + */ + public NetworkRuleSetInner withVirtualNetworkRules(List virtualNetworkRules) { + this.virtualNetworkRules = virtualNetworkRules; + return this; + } + + /** + * Get the ipRules property: List of IpRules. + * + * @return the ipRules value. + */ + public List ipRules() { + return this.ipRules; + } + + /** + * Set the ipRules property: List of IpRules. + * + * @param ipRules the ipRules value to set. + * @return the NetworkRuleSetInner object itself. + */ + public NetworkRuleSetInner withIpRules(List ipRules) { + this.ipRules = ipRules; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (virtualNetworkRules() != null) { + virtualNetworkRules().forEach(e -> e.validate()); + } + if (ipRules() != null) { + ipRules().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/NetworkRuleSetListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/NetworkRuleSetListResultInner.java new file mode 100644 index 0000000000000..e2c6a96bb3839 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/NetworkRuleSetListResultInner.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The NetworkRuleSetListResult model. */ +@Fluent +public final class NetworkRuleSetListResultInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkRuleSetListResultInner.class); + + /* + * Result of the List NetworkRuleSet operation. + */ + @JsonProperty(value = "value") + private List value; + + /* + * Link to the next set of results. Not empty if Value contains incomplete + * list of NetworkRuleSet. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /** + * Get the value property: Result of the List NetworkRuleSet operation. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: Result of the List NetworkRuleSet operation. + * + * @param value the value value to set. + * @return the NetworkRuleSetListResultInner object itself. + */ + public NetworkRuleSetListResultInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of + * NetworkRuleSet. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of + * NetworkRuleSet. + * + * @param nextLink the nextLink value to set. + * @return the NetworkRuleSetListResultInner object itself. + */ + public NetworkRuleSetListResultInner withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/OperationInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/OperationInner.java new file mode 100644 index 0000000000000..3a1dcec6d24e7 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/OperationInner.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.models.OperationDisplay; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Operation model. */ +@Fluent +public final class OperationInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class); + + /* + * Operation name: {provider}/{resource}/{operation} + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /* + * The object that represents the operation. + */ + @JsonProperty(value = "display") + private OperationDisplay display; + + /** + * Get the name property: Operation name: {provider}/{resource}/{operation}. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the display property: The object that represents the operation. + * + * @return the display value. + */ + public OperationDisplay display() { + return this.display; + } + + /** + * Set the display property: The object that represents the operation. + * + * @param display the display value to set. + * @return the OperationInner object itself. + */ + public OperationInner withDisplay(OperationDisplay display) { + this.display = display; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (display() != null) { + display().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/OperationListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/OperationListResultInner.java new file mode 100644 index 0000000000000..2d8b1a1ddf7cf --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/OperationListResultInner.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.fluent.inner; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The OperationListResult model. */ +@Immutable +public final class OperationListResultInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResultInner.class); + + /* + * List of Event Hub operations supported by the Microsoft.EventHub + * resource provider. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private List value; + + /* + * URL to get the next set of operation list results if there are any. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the value property: List of Event Hub operations supported by the Microsoft.EventHub resource provider. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: URL to get the next set of operation list results if there are any. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/package-info.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/package-info.java new file mode 100644 index 0000000000000..cd4cc0a96d5e3 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/inner/package-info.java @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** Package containing the inner classes for EventHubManagementClient. Azure Event Hubs client. */ +package com.azure.resourcemanager.eventhubs.fluent.inner; diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/package-info.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/package-info.java new file mode 100644 index 0000000000000..27a28c361d770 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/package-info.java @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** Package containing the client classes for EventHubManagementClient. Azure Event Hubs client. */ +package com.azure.resourcemanager.eventhubs.fluent; diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/Ancestors.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/Ancestors.java new file mode 100644 index 0000000000000..44592e3674d8c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/Ancestors.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.resourcemanager.resources.fluentcore.arm.ResourceId; + +import java.util.Objects; + +class Ancestors { + + class OneAncestor { + private final String resourceGroupName; + private final String ancestor1Name; + + OneAncestor(String resourceGroupName, String ancestor1Name) { + this.resourceGroupName = Objects.requireNonNull(resourceGroupName); + this.ancestor1Name = Objects.requireNonNull(ancestor1Name); + } + + OneAncestor(ResourceId resourceId) { + Objects.requireNonNull(resourceId); + Objects.requireNonNull(resourceId.parent()); + + this.resourceGroupName = Objects.requireNonNull(resourceId.resourceGroupName()); + this.ancestor1Name = Objects.requireNonNull(resourceId.parent().name()); + } + + OneAncestor(String resourceId) { + this(ResourceId.fromString(Objects.requireNonNull(resourceId))); + } + + public String resourceGroupName() { + return this.resourceGroupName; + } + + public String ancestor1Name() { + return this.ancestor1Name; + } + } + + class TwoAncestor extends OneAncestor { + private final String ancestor2Name; + + TwoAncestor(String resourceGroupName, String ancestor1Name, String ancestor2Name) { + super(resourceGroupName, ancestor1Name); + this.ancestor2Name = Objects.requireNonNull(ancestor2Name); + } + + TwoAncestor(ResourceId resourceId) { + super(resourceId); + Objects.requireNonNull(resourceId.parent().parent()); + + this.ancestor2Name = Objects.requireNonNull(resourceId.parent().parent().name()); + } + + TwoAncestor(String resourceId) { + this(ResourceId.fromString(Objects.requireNonNull(resourceId))); + } + + public String ancestor2Name() { + return this.ancestor2Name; + } + } + + class ThreeAncestor extends TwoAncestor { + private final String ancestor3Name; + + ThreeAncestor(String resourceGroupName, String ancestor1Name, String ancestor2Name, String ancestor3Name) { + super(resourceGroupName, ancestor1Name, ancestor2Name); + + this.ancestor3Name = Objects.requireNonNull(ancestor3Name); + } + + ThreeAncestor(ResourceId resourceId) { + super(resourceId); + Objects.requireNonNull(resourceId.parent().parent().parent()); + + this.ancestor3Name = Objects.requireNonNull(resourceId.parent().parent().parent().name()); + } + + ThreeAncestor(String resourceId) { + this(ResourceId.fromString(Objects.requireNonNull(resourceId))); + } + + public String ancestor3Name() { + return this.ancestor3Name; + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/AuthorizationRuleBaseImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/AuthorizationRuleBaseImpl.java new file mode 100644 index 0000000000000..08e57a60c7430 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/AuthorizationRuleBaseImpl.java @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.AccessKeysInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.eventhubs.models.AccessRights; +import com.azure.resourcemanager.eventhubs.models.AuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHubAuthorizationKey; +import com.azure.resourcemanager.eventhubs.models.KeyType; +import com.azure.resourcemanager.resources.fluentcore.model.implementation.IndexableRefreshableWrapperImpl; +import reactor.core.publisher.Mono; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Base implementation for authorization rule. + * (Internal use only) + * + * @param rule fluent model + * @param implementation of rule fluent model + */ +abstract class AuthorizationRuleBaseImpl, + RuleImpl extends IndexableRefreshableWrapperImpl> + extends NestedResourceImpl implements AuthorizationRule { + + protected AuthorizationRuleBaseImpl(String name, AuthorizationRuleInner inner, EventHubsManager manager) { + super(name, inner, manager); + } + + @Override + public Mono getKeysAsync() { + return this.getKeysInnerAsync() + .map(EventHubAuthorizationKeyImpl::new); + } + + @Override + public EventHubAuthorizationKey getKeys() { + return getKeysAsync().block(); + } + + @Override + public Mono regenerateKeyAsync(KeyType keyType) { + return this.regenerateKeysInnerAsync(keyType) + .map(EventHubAuthorizationKeyImpl::new); + } + + @Override + public EventHubAuthorizationKey regenerateKey(KeyType keyType) { + return regenerateKeyAsync(keyType).block(); + } + + @Override + public List rights() { + if (this.inner().rights() == null) { + return Collections.unmodifiableList(new ArrayList<>()); + } + return Collections.unmodifiableList(this.inner().rights()); + } + + + @SuppressWarnings("unchecked") + public RuleImpl withListenAccess() { + if (this.inner().rights() == null) { + this.inner().withRights(new ArrayList<>()); + } + if (!this.inner().rights().contains(AccessRights.LISTEN)) { + this.inner().rights().add(AccessRights.LISTEN); + } + return (RuleImpl) this; + } + + @SuppressWarnings("unchecked") + public RuleImpl withSendAccess() { + if (this.inner().rights() == null) { + this.inner().withRights(new ArrayList<>()); + } + if (!this.inner().rights().contains(AccessRights.SEND)) { + this.inner().rights().add(AccessRights.SEND); + } + return (RuleImpl) this; + } + + @SuppressWarnings("unchecked") + public RuleImpl withSendAndListenAccess() { + withListenAccess(); + withSendAccess(); + return (RuleImpl) this; + } + + @SuppressWarnings("unchecked") + public RuleImpl withManageAccess() { + withListenAccess(); + withSendAccess(); + if (!this.inner().rights().contains(AccessRights.MANAGE)) { + this.inner().rights().add(AccessRights.MANAGE); + } + return (RuleImpl) this; + } + + protected abstract Mono getKeysInnerAsync(); + protected abstract Mono regenerateKeysInnerAsync(KeyType keyType); + protected abstract Mono getInnerAsync(); + public abstract Mono createResourceAsync(); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/AuthorizationRulesBaseImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/AuthorizationRulesBaseImpl.java new file mode 100644 index 0000000000000..b2c639f4edf1b --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/AuthorizationRulesBaseImpl.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById; +import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl; +import reactor.core.publisher.Mono; + +abstract class AuthorizationRulesBaseImpl + extends WrapperImpl + implements HasManager, + SupportsGettingById, + SupportsDeletingById { + + protected final EventHubsManager manager; + + protected AuthorizationRulesBaseImpl(EventHubsManager manager, InnerT inner) { + super(inner); + this.manager = manager; + } + + @Override + public EventHubsManager manager() { + return this.manager; + } + + @Override + public RuleT getById(String id) { + return getByIdAsync(id).block(); + } + + @Override + public void deleteById(String id) { + deleteByIdAsync(id).block(); + } + + protected abstract RuleImpl wrapModel(AuthorizationRuleInner innerModel); + public abstract Mono getByIdAsync(String id); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/DisasterRecoveryPairingAuthorizationKeyImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/DisasterRecoveryPairingAuthorizationKeyImpl.java new file mode 100644 index 0000000000000..07679136d962b --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/DisasterRecoveryPairingAuthorizationKeyImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.resourcemanager.eventhubs.fluent.inner.AccessKeysInner; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationKey; +import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl; + +/** + * Implementation for {@link DisasterRecoveryPairingAuthorizationKey}. + */ +class DisasterRecoveryPairingAuthorizationKeyImpl + extends WrapperImpl + implements DisasterRecoveryPairingAuthorizationKey { + + DisasterRecoveryPairingAuthorizationKeyImpl(AccessKeysInner inner) { + super(inner); + } + + @Override + public String primaryKey() { + return this.inner().primaryKey(); + } + + @Override + public String secondaryKey() { + return this.inner().secondaryKey(); + } + + @Override + public String primaryConnectionString() { + return this.inner().primaryConnectionString(); + } + + @Override + public String secondaryConnectionString() { + return this.inner().secondaryConnectionString(); + } + + @Override + public String aliasPrimaryConnectionString() { + return this.inner().aliasPrimaryConnectionString(); + } + + @Override + public String aliasSecondaryConnectionString() { + return this.inner().aliasSecondaryConnectionString(); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/DisasterRecoveryPairingAuthorizationRuleImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/DisasterRecoveryPairingAuthorizationRuleImpl.java new file mode 100644 index 0000000000000..fca87760e36f3 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/DisasterRecoveryPairingAuthorizationRuleImpl.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.eventhubs.models.AccessRights; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationKey; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationRule; +import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl; +import reactor.core.publisher.Mono; + +import java.util.List; +import java.util.Objects; + +/** + * Implementation for {@link DisasterRecoveryPairingAuthorizationRule}. + */ +class DisasterRecoveryPairingAuthorizationRuleImpl + extends WrapperImpl + implements DisasterRecoveryPairingAuthorizationRule { + + private final EventHubsManager manager; + private final Ancestors.TwoAncestor ancestor; + + protected DisasterRecoveryPairingAuthorizationRuleImpl(AuthorizationRuleInner inner, EventHubsManager manager) { + super(inner); + this.manager = manager; + this.ancestor = new Ancestors().new TwoAncestor(inner.id()); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public List rights() { + return this.inner().rights(); + } + + @Override + public Mono getKeysAsync() { + return this.manager.inner().getDisasterRecoveryConfigs() + .listKeysAsync(this.ancestor().resourceGroupName(), + this.ancestor.ancestor2Name(), + this.ancestor().ancestor1Name(), + this.name()) + .map(DisasterRecoveryPairingAuthorizationKeyImpl::new); + } + + @Override + public DisasterRecoveryPairingAuthorizationKey getKeys() { + return this.getKeysAsync().block(); + } + + @Override + public EventHubsManager manager() { + return this.manager; + } + + private Ancestors.TwoAncestor ancestor() { + Objects.requireNonNull(this.ancestor); + return this.ancestor; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/DisasterRecoveryPairingAuthorizationRulesImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/DisasterRecoveryPairingAuthorizationRulesImpl.java new file mode 100644 index 0000000000000..6be98fc58a3d7 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/DisasterRecoveryPairingAuthorizationRulesImpl.java @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.DisasterRecoveryConfigsClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationRules; +import com.azure.resourcemanager.resources.fluentcore.arm.ResourceId; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.implementation.ReadableWrappersImpl; +import reactor.core.publisher.Mono; + +/** + * Implementation for {@link DisasterRecoveryPairingAuthorizationRules}. + */ +public final class DisasterRecoveryPairingAuthorizationRulesImpl + extends ReadableWrappersImpl + implements DisasterRecoveryPairingAuthorizationRules { + + private final EventHubsManager manager; + + public DisasterRecoveryPairingAuthorizationRulesImpl(EventHubsManager manager) { + this.manager = manager; + } + + @Override + public PagedIterable listByDisasterRecoveryPairing( + String resourceGroupName, String namespaceName, String pairingName) { + return inner() + .listAuthorizationRules(resourceGroupName, namespaceName, pairingName) + .mapPage(this::wrapModel); + } + + @Override + public PagedFlux listByDisasterRecoveryPairingAsync( + String resourceGroupName, String namespaceName, String pairingName) { + return inner() + .listAuthorizationRulesAsync(resourceGroupName, namespaceName, pairingName) + .mapPage(this::wrapModel); + } + + @Override + public Mono getByNameAsync( + String resourceGroupName, String namespaceName, String pairingName, String name) { + return this.manager.inner().getDisasterRecoveryConfigs().getAuthorizationRuleAsync(resourceGroupName, + namespaceName, + pairingName, + name) + .map(this::wrapModel); + } + + @Override + public DisasterRecoveryPairingAuthorizationRule getByName( + String resourceGroupName, String namespaceName, String pairingName, String name) { + return getByNameAsync(resourceGroupName, namespaceName, pairingName, name).block(); + } + + @Override + public DisasterRecoveryPairingAuthorizationRule getById(String id) { + return getByIdAsync(id).block(); + } + + @Override + public Mono getByIdAsync(String id) { + ResourceId resourceId = ResourceId.fromString(id); + return this.getByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().name(), + resourceId.parent().parent().name(), + resourceId.name()); + } + + @Override + public EventHubsManager manager() { + return this.manager; + } + + @Override + public DisasterRecoveryConfigsClient inner() { + return this.manager.inner().getDisasterRecoveryConfigs(); + } + + @Override + protected DisasterRecoveryPairingAuthorizationRuleImpl wrapModel(AuthorizationRuleInner inner) { + return new DisasterRecoveryPairingAuthorizationRuleImpl(inner, manager); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubAuthorizationKeyImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubAuthorizationKeyImpl.java new file mode 100644 index 0000000000000..0c8d69ddcd41d --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubAuthorizationKeyImpl.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.resourcemanager.eventhubs.fluent.inner.AccessKeysInner; +import com.azure.resourcemanager.eventhubs.models.EventHubAuthorizationKey; +import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl; + +/** + * Implementation for AuthorizationKeys. + */ +class EventHubAuthorizationKeyImpl + extends WrapperImpl + implements EventHubAuthorizationKey { + + EventHubAuthorizationKeyImpl(AccessKeysInner inner) { + super(inner); + } + + @Override + public String primaryKey() { + return this.inner().primaryKey(); + } + + @Override + public String secondaryKey() { + return this.inner().secondaryKey(); + } + + @Override + public String primaryConnectionString() { + return this.inner().primaryConnectionString(); + } + + @Override + public String secondaryConnectionString() { + return this.inner().secondaryConnectionString(); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubAuthorizationRuleImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubAuthorizationRuleImpl.java new file mode 100644 index 0000000000000..af9edaece701a --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubAuthorizationRuleImpl.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.AccessKeysInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.eventhubs.models.EventHub; +import com.azure.resourcemanager.eventhubs.models.EventHubAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.KeyType; +import com.azure.resourcemanager.eventhubs.models.RegenerateAccessKeyParameters; +import reactor.core.publisher.Mono; + +import java.util.Objects; + +/** + * Implementation for {@link EventHubAuthorizationRule}. + */ +class EventHubAuthorizationRuleImpl extends AuthorizationRuleBaseImpl + implements + EventHubAuthorizationRule, + EventHubAuthorizationRule.Definition, + EventHubAuthorizationRule.Update { + + private Ancestors.TwoAncestor ancestor; + + EventHubAuthorizationRuleImpl(String name, AuthorizationRuleInner inner, EventHubsManager manager) { + super(name, inner, manager); + this.ancestor = new Ancestors().new TwoAncestor(inner.id()); + } + + EventHubAuthorizationRuleImpl(String name, EventHubsManager manager) { + super(name, new AuthorizationRuleInner(), manager); + } + + @Override + public String namespaceResourceGroupName() { + return this.ancestor().resourceGroupName(); + } + + @Override + public String namespaceName() { + return this.ancestor().ancestor2Name(); + } + + @Override + public String eventHubName() { + return this.ancestor().ancestor1Name(); + } + + @Override + public EventHubAuthorizationRuleImpl withExistingEventHubId(String eventHubResourceId) { + this.ancestor = new Ancestors().new TwoAncestor(selfId(eventHubResourceId)); + return this; + } + + @Override + public EventHubAuthorizationRuleImpl withExistingEventHub( + String resourceGroupName, String namespaceName, String eventHubName) { + this.ancestor = new Ancestors().new TwoAncestor(resourceGroupName, eventHubName, namespaceName); + return this; + } + + @Override + public EventHubAuthorizationRuleImpl withExistingEventHub(EventHub eventHub) { + this.ancestor = new Ancestors().new TwoAncestor(selfId(eventHub.id())); + return this; + } + + @Override + protected Mono getInnerAsync() { + return this.manager.inner().getEventHubs() + .getAuthorizationRuleAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor2Name(), + this.ancestor().ancestor1Name(), + this.name()); + } + + @Override + public Mono createResourceAsync() { + return this.manager.inner().getEventHubs() + .createOrUpdateAuthorizationRuleAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor2Name(), + this.ancestor().ancestor1Name(), + this.name(), + this.inner().rights()) + .map(innerToFluentMap(this)); + } + + @Override + protected Mono getKeysInnerAsync() { + return this.manager.inner().getEventHubs() + .listKeysAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor2Name(), + this.ancestor().ancestor1Name(), + this.name()); + } + + @Override + protected Mono regenerateKeysInnerAsync(KeyType keyType) { + final RegenerateAccessKeyParameters regenKeyInner = new RegenerateAccessKeyParameters() + .withKeyType(keyType); + return this.manager.inner().getEventHubs() + .regenerateKeysAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor2Name(), + this.ancestor().ancestor1Name(), + this.name(), + regenKeyInner); + } + + private Ancestors.TwoAncestor ancestor() { + Objects.requireNonNull(this.ancestor); + return this.ancestor; + } + + private String selfId(String parentId) { + return String.format("%s/authorizationRules/%s", parentId, this.name()); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubAuthorizationRulesImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubAuthorizationRulesImpl.java new file mode 100644 index 0000000000000..1e5ce8618a446 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubAuthorizationRulesImpl.java @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.EventHubsClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.eventhubs.models.EventHubAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHubAuthorizationRules; +import com.azure.resourcemanager.resources.fluentcore.arm.ResourceId; +import reactor.core.publisher.Mono; + +import java.util.Objects; + +/** + * Implementation for {@link EventHubAuthorizationRules}. + */ +public final class EventHubAuthorizationRulesImpl + extends AuthorizationRulesBaseImpl + implements EventHubAuthorizationRules { + + public EventHubAuthorizationRulesImpl(EventHubsManager manager) { + super(manager, manager.inner().getEventHubs()); + } + + @Override + public EventHubAuthorizationRuleImpl define(String name) { + return new EventHubAuthorizationRuleImpl(name, this.manager); + } + + @Override + public Mono getByIdAsync(String id) { + Objects.requireNonNull(id); + ResourceId resourceId = ResourceId.fromString(id); + + return getByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().parent().name(), + resourceId.parent().name(), + resourceId.name()); + } + + @Override + public EventHubAuthorizationRule getByName( + String resourceGroupName, String namespaceName, String eventHubName, String name) { + return getByNameAsync(resourceGroupName, namespaceName, eventHubName, name).block(); + } + + @Override + public Mono getByNameAsync( + String resourceGroupName, String namespaceName, String eventHubName, String name) { + return this.inner().getAuthorizationRuleAsync(resourceGroupName, namespaceName, eventHubName, name) + .map(this::wrapModel); + } + + @Override + public PagedIterable listByEventHub( + final String resourceGroupName, final String namespaceName, final String eventHubName) { + return inner() + .listAuthorizationRules(resourceGroupName, namespaceName, eventHubName) + .mapPage(this::wrapModel); + } + + @Override + public PagedFlux listByEventHubAsync( + String resourceGroupName, String namespaceName, final String eventHubName) { + return this.inner() + .listAuthorizationRulesAsync(resourceGroupName, namespaceName, eventHubName) + .mapPage(this::wrapModel); + } + + @Override + public Mono deleteByIdAsync(String id) { + Objects.requireNonNull(id); + ResourceId resourceId = ResourceId.fromString(id); + return deleteByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().parent().name(), + resourceId.parent().name(), + resourceId.name()); + } + + @Override + public void deleteByName(String resourceGroupName, String namespaceName, String eventHubName, String name) { + deleteByNameAsync(resourceGroupName, namespaceName, eventHubName, name).block(); + } + + @Override + public Mono deleteByNameAsync( + String resourceGroupName, String namespaceName, String eventHubName, String name) { + return this.inner().deleteAuthorizationRuleAsync(resourceGroupName, + namespaceName, + eventHubName, + name); + } + + @Override + protected EventHubAuthorizationRuleImpl wrapModel(AuthorizationRuleInner innerModel) { + return new EventHubAuthorizationRuleImpl(innerModel.name(), innerModel, this.manager); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubConsumerGroupImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubConsumerGroupImpl.java new file mode 100644 index 0000000000000..ae03233128428 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubConsumerGroupImpl.java @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.ConsumerGroupInner; +import com.azure.resourcemanager.eventhubs.models.EventHub; +import com.azure.resourcemanager.eventhubs.models.EventHubConsumerGroup; +import reactor.core.publisher.Mono; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * Implementation for {@link EventHubConsumerGroup}. + */ +class EventHubConsumerGroupImpl + extends NestedResourceImpl + implements EventHubConsumerGroup, + EventHubConsumerGroup.Definition, + EventHubConsumerGroup.Update { + + private Ancestors.TwoAncestor ancestor; + + EventHubConsumerGroupImpl(String name, ConsumerGroupInner inner, EventHubsManager manager) { + super(name, inner, manager); + this.ancestor = new Ancestors().new TwoAncestor(inner.id()); + } + + EventHubConsumerGroupImpl(String name, EventHubsManager manager) { + super(name, new ConsumerGroupInner(), manager); + } + + @Override + public String namespaceResourceGroupName() { + return this.ancestor().resourceGroupName(); + } + + @Override + public String namespaceName() { + return this.ancestor().ancestor2Name(); + } + + @Override + public String eventHubName() { + return this.ancestor().ancestor1Name(); + } + + @Override + public OffsetDateTime createdAt() { + return this.inner().createdAt(); + } + + @Override + public OffsetDateTime updatedAt() { + return this.inner().updatedAt(); + } + + @Override + public String userMetadata() { + return this.inner().userMetadata(); + } + + @Override + public EventHubConsumerGroupImpl withExistingEventHub(EventHub eventHub) { + this.ancestor = new Ancestors().new TwoAncestor(selfId(eventHub.id())); + return this; + } + + @Override + public EventHubConsumerGroupImpl withExistingEventHubId(String eventHubId) { + this.ancestor = new Ancestors().new TwoAncestor(selfId(eventHubId)); + return this; + } + + @Override + public EventHubConsumerGroupImpl withExistingEventHub( + String resourceGroupName, String namespaceName, String eventHubName) { + this.ancestor = new Ancestors().new TwoAncestor(resourceGroupName, eventHubName, namespaceName); + return this; + } + + @Override + public EventHubConsumerGroupImpl withUserMetadata(String metadata) { + this.inner().withUserMetadata(metadata); + return this; + } + + @Override + public Mono createResourceAsync() { + return this.manager.inner().getConsumerGroups() + .createOrUpdateAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor2Name(), + this.ancestor().ancestor1Name(), + this.name(), + this.inner().userMetadata()) + .map(innerToFluentMap(this)); + } + + @Override + protected Mono getInnerAsync() { + return this.manager.inner().getConsumerGroups() + .getAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor2Name(), + this.ancestor().ancestor1Name(), + this.name()); + } + + private Ancestors.TwoAncestor ancestor() { + Objects.requireNonNull(this.ancestor); + return this.ancestor; + } + + private String selfId(String parentId) { + return String.format("%s/consumerGroups/%s", parentId, this.name()); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubConsumerGroupsImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubConsumerGroupsImpl.java new file mode 100644 index 0000000000000..51ed9c8a0773c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubConsumerGroupsImpl.java @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.ConsumerGroupsClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.ConsumerGroupInner; +import com.azure.resourcemanager.eventhubs.models.EventHubConsumerGroup; +import com.azure.resourcemanager.eventhubs.models.EventHubConsumerGroups; +import com.azure.resourcemanager.resources.fluentcore.arm.ResourceId; +import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl; +import reactor.core.publisher.Mono; + +import java.util.Objects; + +/** + * Implementation for {@link EventHubConsumerGroups}. + */ +public final class EventHubConsumerGroupsImpl + extends WrapperImpl + implements EventHubConsumerGroups { + private final EventHubsManager manager; + + public EventHubConsumerGroupsImpl(EventHubsManager manager) { + super(manager.inner().getConsumerGroups()); + this.manager = manager; + } + + @Override + public EventHubsManager manager() { + return this.manager; + } + + @Override + public EventHubConsumerGroupImpl define(String name) { + return new EventHubConsumerGroupImpl(name, this.manager); + } + + @Override + public EventHubConsumerGroup getById(String id) { + return getByIdAsync(id).block(); + } + + @Override + public Mono getByIdAsync(String id) { + Objects.requireNonNull(id); + ResourceId resourceId = ResourceId.fromString(id); + + return getByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().parent().name(), + resourceId.parent().name(), + resourceId.name()); + } + + @Override + public Mono getByNameAsync( + String resourceGroupName, String namespaceName, String eventHubName, String name) { + return this.inner().getAsync(resourceGroupName, namespaceName, eventHubName, name).map(this::wrapModel); + } + + @Override + public EventHubConsumerGroup getByName( + String resourceGroupName, String namespaceName, String eventHubName, String name) { + return getByNameAsync(resourceGroupName, namespaceName, eventHubName, name).block(); + } + + @Override + public PagedIterable listByEventHub( + String resourceGroupName, String namespaceName, String eventHubName) { + return inner() + .listByEventHub(resourceGroupName, namespaceName, eventHubName) + .mapPage(this::wrapModel); + } + + @Override + public PagedFlux listByEventHubAsync( + String resourceGroupName, String namespaceName, String eventHubName) { + return inner() + .listByEventHubAsync(resourceGroupName, namespaceName, eventHubName) + .mapPage(this::wrapModel); + } + + @Override + public void deleteById(String id) { + deleteByIdAsync(id).block(); + } + + @Override + public Mono deleteByIdAsync(String id) { + Objects.requireNonNull(id); + ResourceId resourceId = ResourceId.fromString(id); + + return deleteByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().parent().name(), + resourceId.parent().name(), + resourceId.name()); + } + + @Override + public Mono deleteByNameAsync( + String resourceGroupName, String namespaceName, String eventHubName, String name) { + return this.inner().deleteAsync(resourceGroupName, + namespaceName, + eventHubName, + name); + } + + @Override + public void deleteByName(String resourceGroupName, String namespaceName, String eventHubName, String name) { + deleteByNameAsync(resourceGroupName, namespaceName, eventHubName, name).block(); + } + + private EventHubConsumerGroupImpl wrapModel(ConsumerGroupInner innerModel) { + return new EventHubConsumerGroupImpl(innerModel.name(), innerModel, this.manager); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubDisasterRecoveryPairingImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubDisasterRecoveryPairingImpl.java new file mode 100644 index 0000000000000..c0531e26be0ba --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubDisasterRecoveryPairingImpl.java @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.ArmDisasterRecoveryInner; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHubDisasterRecoveryPairing; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespace; +import com.azure.resourcemanager.eventhubs.models.ProvisioningStateDR; +import com.azure.resourcemanager.eventhubs.models.RoleDisasterRecovery; +import com.azure.resourcemanager.resources.fluentcore.arm.ResourceId; +import com.azure.resourcemanager.resources.fluentcore.model.Creatable; +import reactor.core.publisher.Mono; + +import java.util.Objects; + +/** + * Implementation for {@link EventHubDisasterRecoveryPairing}. + */ +class EventHubDisasterRecoveryPairingImpl + extends NestedResourceImpl + implements EventHubDisasterRecoveryPairing, + EventHubDisasterRecoveryPairing.Definition, + EventHubDisasterRecoveryPairing.Update { + + private Ancestors.OneAncestor ancestor; + private final ClientLogger logger = new ClientLogger(EventHubDisasterRecoveryPairingImpl.class); + + EventHubDisasterRecoveryPairingImpl(String name, ArmDisasterRecoveryInner inner, EventHubsManager manager) { + super(name, inner, manager); + this.ancestor = new Ancestors().new OneAncestor(inner.id()); + } + + EventHubDisasterRecoveryPairingImpl(String name, EventHubsManager manager) { + super(name, new ArmDisasterRecoveryInner(), manager); + } + + @Override + public String primaryNamespaceResourceGroupName() { + return this.ancestor().resourceGroupName(); + } + + @Override + public String primaryNamespaceName() { + return this.ancestor().ancestor1Name(); + } + + @Override + public String secondaryNamespaceId() { + return this.inner().partnerNamespace(); + } + + @Override + public RoleDisasterRecovery namespaceRole() { + return this.inner().role(); + } + + @Override + public ProvisioningStateDR provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public EventHubDisasterRecoveryPairingImpl withNewPrimaryNamespace( + Creatable namespaceCreatable) { + this.addDependency(namespaceCreatable); + if (namespaceCreatable instanceof EventHubNamespaceImpl) { + EventHubNamespaceImpl namespace = ((EventHubNamespaceImpl) namespaceCreatable); + this.ancestor = new Ancestors().new OneAncestor(namespace.resourceGroupName(), namespaceCreatable.name()); + } else { + logger.logExceptionAsError(new IllegalArgumentException("The namespaceCreatable is invalid.")); + } + return this; + } + + @Override + public EventHubDisasterRecoveryPairingImpl withExistingPrimaryNamespace(EventHubNamespace namespace) { + this.ancestor = new Ancestors().new OneAncestor(selfId(namespace.id())); + return this; + } + + @Override + public EventHubDisasterRecoveryPairingImpl withExistingPrimaryNamespace( + String resourceGroupName, String primaryNamespaceName) { + this.ancestor = new Ancestors().new OneAncestor(resourceGroupName, primaryNamespaceName); + return this; + } + + @Override + public EventHubDisasterRecoveryPairingImpl withExistingPrimaryNamespaceId(String namespaceId) { + this.ancestor = new Ancestors().new OneAncestor(selfId(namespaceId)); + return this; + } + + @Override + public EventHubDisasterRecoveryPairingImpl withNewSecondaryNamespace( + Creatable namespaceCreatable) { + this.addDependency(namespaceCreatable); + if (namespaceCreatable instanceof EventHubNamespaceImpl) { + EventHubNamespaceImpl namespace = ((EventHubNamespaceImpl) namespaceCreatable); + this.inner().withPartnerNamespace(namespace.name()); + } else { + logger.logExceptionAsError(new IllegalArgumentException("The namespaceCreatable is invalid.")); + } + return this; + } + + @Override + public EventHubDisasterRecoveryPairingImpl withExistingSecondaryNamespace(EventHubNamespace namespace) { + Objects.requireNonNull(namespace.id()); + this.inner().withPartnerNamespace(namespace.id()); + return this; + } + + @Override + public EventHubDisasterRecoveryPairingImpl withExistingSecondaryNamespaceId(String namespaceId) { + Objects.requireNonNull(namespaceId); + this.inner().withPartnerNamespace(namespaceId); + return this; + } + + @Override + public Mono createResourceAsync() { + return this.manager().inner().getDisasterRecoveryConfigs() + .createOrUpdateAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor1Name(), + this.name(), + this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Mono breakPairingAsync() { + return this.manager().inner().getDisasterRecoveryConfigs() + .breakPairingAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor1Name(), + this.name()) + .then(refreshAsync()) + .then(); + } + + @Override + public void breakPairing() { + this.breakPairingAsync().block(); + } + + @Override + public Mono failOverAsync() { + // Fail over is run against secondary namespace (because primary might be down at time of failover) + // + ResourceId secondaryNs = ResourceId.fromString(this.inner().partnerNamespace()); + return this.manager().inner().getDisasterRecoveryConfigs().failOverAsync(secondaryNs.resourceGroupName(), + secondaryNs.name(), + this.name()) + .then(refreshAsync()) + .then(); + } + + @Override + public void failOver() { + this.failOverAsync().block(); + } + + @Override + public PagedFlux listAuthorizationRulesAsync() { + return this.manager().disasterRecoveryPairingAuthorizationRules() + .listByDisasterRecoveryPairingAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor1Name(), + this.name()); + } + + @Override + public PagedIterable listAuthorizationRules() { + return this.manager().disasterRecoveryPairingAuthorizationRules() + .listByDisasterRecoveryPairing(this.ancestor().resourceGroupName(), + this.ancestor().ancestor1Name(), + this.name()); + } + + @Override + protected Mono getInnerAsync() { + return this.manager().inner().getDisasterRecoveryConfigs().getAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor1Name(), + this.name()); + } + + private Ancestors.OneAncestor ancestor() { + Objects.requireNonNull(this.ancestor); + return this.ancestor; + } + + private String selfId(String parentId) { + return String.format("%s/disasterRecoveryConfig/%s", parentId, this.name()); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubDisasterRecoveryPairingsImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubDisasterRecoveryPairingsImpl.java new file mode 100644 index 0000000000000..4b388242012ba --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubDisasterRecoveryPairingsImpl.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.DisasterRecoveryConfigsClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.ArmDisasterRecoveryInner; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationRules; +import com.azure.resourcemanager.eventhubs.models.EventHubDisasterRecoveryPairing; +import com.azure.resourcemanager.eventhubs.models.EventHubDisasterRecoveryPairings; +import com.azure.resourcemanager.resources.fluentcore.arm.ResourceId; +import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl; +import reactor.core.publisher.Mono; + +import java.util.Objects; + +/** + * Implementation for {@link EventHubDisasterRecoveryPairings}. + */ +public final class EventHubDisasterRecoveryPairingsImpl + extends WrapperImpl + implements EventHubDisasterRecoveryPairings { + private EventHubsManager manager; + + public EventHubDisasterRecoveryPairingsImpl(EventHubsManager manager) { + super(manager.inner().getDisasterRecoveryConfigs()); + this.manager = manager; + } + + @Override + public EventHubsManager manager() { + return this.manager; + } + + @Override + public EventHubDisasterRecoveryPairingImpl define(String name) { + return new EventHubDisasterRecoveryPairingImpl(name, this.manager); + } + + @Override + public DisasterRecoveryPairingAuthorizationRules authorizationRules() { + return null; + } + + @Override + public EventHubDisasterRecoveryPairing getById(String id) { + return getByIdAsync(id).block(); + } + + @Override + public Mono getByIdAsync(String id) { + Objects.requireNonNull(id); + ResourceId resourceId = ResourceId.fromString(id); + return getByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().name(), + resourceId.name()); + } + + @Override + public Mono getByNameAsync( + String resourceGroupName, String namespaceName, String name) { + return this.inner().getAsync(resourceGroupName, + namespaceName, + name) + .map(this::wrapModel); + } + + @Override + public EventHubDisasterRecoveryPairing getByName( + String resourceGroupName, String namespaceName, String name) { + return getByNameAsync(resourceGroupName, namespaceName, name).block(); + } + + @Override + public PagedIterable listByNamespace( + String resourceGroupName, String namespaceName) { + return inner() + .list(resourceGroupName, namespaceName) + .mapPage(this::wrapModel); + } + + @Override + public PagedFlux listByNamespaceAsync( + String resourceGroupName, String namespaceName) { + return this.inner().listAsync(resourceGroupName, namespaceName) + .mapPage(this::wrapModel); + } + + @Override + public void deleteById(String id) { + deleteByIdAsync(id).block(); + } + + @Override + public Mono deleteByIdAsync(String id) { + Objects.requireNonNull(id); + ResourceId resourceId = ResourceId.fromString(id); + return deleteByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().name(), + resourceId.name()); + } + + @Override + public Mono deleteByNameAsync(String resourceGroupName, String namespaceName, String name) { + return this.inner().deleteAsync(resourceGroupName, + namespaceName, + name); + } + + @Override + public void deleteByName(String resourceGroupName, String namespaceName, String name) { + deleteByNameAsync(resourceGroupName, namespaceName, name).block(); + } + + private EventHubDisasterRecoveryPairingImpl wrapModel(ArmDisasterRecoveryInner innerModel) { + return new EventHubDisasterRecoveryPairingImpl(innerModel.name(), innerModel, this.manager); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubImpl.java new file mode 100644 index 0000000000000..e1cd0094ed170 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubImpl.java @@ -0,0 +1,546 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.EventhubInner; +import com.azure.resourcemanager.eventhubs.models.CaptureDescription; +import com.azure.resourcemanager.eventhubs.models.Destination; +import com.azure.resourcemanager.eventhubs.models.EncodingCaptureDescription; +import com.azure.resourcemanager.eventhubs.models.EventHub; +import com.azure.resourcemanager.eventhubs.models.EventHubAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHubConsumerGroup; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespace; +import com.azure.resourcemanager.resources.fluentcore.dag.VoidIndexable; +import com.azure.resourcemanager.resources.fluentcore.model.Creatable; +import com.azure.resourcemanager.resources.fluentcore.model.Indexable; +import com.azure.resourcemanager.resources.fluentcore.utils.Utils; +import com.azure.resourcemanager.storage.StorageManager; +import com.azure.resourcemanager.storage.models.PublicAccess; +import com.azure.resourcemanager.storage.models.StorageAccount; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +import java.util.Collections; +import java.util.HashSet; +import java.util.Objects; +import java.util.Set; +import java.util.UUID; + +/** + * Implementation for {@link EventHub}. + */ +class EventHubImpl + extends NestedResourceImpl + implements EventHub, EventHub.Definition, EventHub.Update { + + private Ancestors.OneAncestor ancestor; + private CaptureSettings captureSettings; + private StorageManager storageManager; + private Flux postRunTasks; + + private final ClientLogger logger = new ClientLogger(EventHubImpl.class); + + EventHubImpl(String name, EventhubInner inner, EventHubsManager manager, StorageManager storageManager) { + super(name, inner, manager); + this.ancestor = new Ancestors().new OneAncestor(inner.id()); + this.captureSettings = new CaptureSettings(this.inner()); + this.storageManager = storageManager; + } + + EventHubImpl(String name, EventHubsManager manager, StorageManager storageManager) { + super(name, new EventhubInner(), manager); + this.storageManager = storageManager; + this.captureSettings = new CaptureSettings(this.inner()); + } + + @Override + public String namespaceResourceGroupName() { + return this.ancestor().resourceGroupName(); + } + + @Override + public String namespaceName() { + return this.ancestor().ancestor1Name(); + } + + @Override + public boolean isDataCaptureEnabled() { + if (this.inner().captureDescription() == null) { + return false; + } + return Utils.toPrimitiveBoolean(this.inner().captureDescription().enabled()); + } + + @Override + public int dataCaptureWindowSizeInSeconds() { + if (this.inner().captureDescription() == null) { + return 0; + } + return Utils.toPrimitiveInt(this.inner().captureDescription().intervalInSeconds()); + } + + @Override + public int dataCaptureWindowSizeInMB() { + if (this.inner().captureDescription() == null) { + return 0; + } + int inBytes = Utils.toPrimitiveInt(this.inner().captureDescription().sizeLimitInBytes()); + if (inBytes != 0) { + return inBytes / (1024 * 1024); + } else { + return 0; + } + } + + @Override + public boolean dataCaptureSkipEmptyArchives() { + if (this.inner().captureDescription() == null) { + return false; + } + return this.inner().captureDescription().skipEmptyArchives(); + } + + @Override + public String dataCaptureFileNameFormat() { + if (this.inner().captureDescription() == null) { + return null; + } else if (this.inner().captureDescription().destination() == null) { + return null; + } else { + return this.inner().captureDescription().destination().archiveNameFormat(); + } + } + + @Override + public Destination captureDestination() { + if (this.inner().captureDescription() == null) { + return null; + } else { + return this.inner().captureDescription().destination(); + } + } + + @Override + public Set partitionIds() { + if (this.inner().partitionIds() == null) { + return Collections.unmodifiableSet(new HashSet()); + } else { + return Collections.unmodifiableSet(new HashSet(this.inner().partitionIds())); + } + } + + @Override + public int messageRetentionPeriodInDays() { + return Utils.toPrimitiveInt(this.inner().messageRetentionInDays()); + } + + @Override + public EventHubImpl withNewNamespace(Creatable namespaceCreatable) { + this.addDependency(namespaceCreatable); + if (namespaceCreatable instanceof EventHubNamespaceImpl) { + EventHubNamespaceImpl namespace = ((EventHubNamespaceImpl) namespaceCreatable); + this.ancestor = new Ancestors().new OneAncestor(namespace.resourceGroupName(), namespaceCreatable.name()); + } else { + logger.logExceptionAsError(new IllegalArgumentException("The namespaceCreatable is invalid.")); + } + return this; + } + + @Override + public EventHubImpl withExistingNamespace(EventHubNamespace namespace) { + this.ancestor = new Ancestors().new OneAncestor(selfId(namespace.id())); + return this; + } + + @Override + public EventHubImpl withExistingNamespace(String resourceGroupName, String namespaceName) { + this.ancestor = new Ancestors().new OneAncestor(resourceGroupName, namespaceName); + return this; + } + + @Override + public EventHubImpl withExistingNamespaceId(String namespaceId) { + this.ancestor = new Ancestors().new OneAncestor(selfId(namespaceId)); + return this; + } + + @Override + public EventHubImpl withNewStorageAccountForCapturedData( + Creatable storageAccountCreatable, String containerName) { + this.captureSettings.withNewStorageAccountForCapturedData(storageAccountCreatable, containerName); + return this; + } + + @Override + public EventHubImpl withExistingStorageAccountForCapturedData( + StorageAccount storageAccount, String containerName) { + this.captureSettings.withExistingStorageAccountForCapturedData(storageAccount, containerName); + return this; + } + + @Override + public EventHubImpl withExistingStorageAccountForCapturedData( + String storageAccountId, String containerName) { + this.captureSettings.withExistingStorageAccountForCapturedData(storageAccountId, containerName); + return this; + } + + @Override + public EventHubImpl withDataCaptureEnabled() { + this.captureSettings.withDataCaptureEnabled(); + return this; + } + + @Override + public EventHubImpl withDataCaptureDisabled() { + this.captureSettings.withDataCaptureDisabled(); + return this; + } + + @Override + public EventHubImpl withDataCaptureWindowSizeInSeconds(int sizeInSeconds) { + this.captureSettings.withDataCaptureWindowSizeInSeconds(sizeInSeconds); + return this; + } + + @Override + public EventHubImpl withDataCaptureSkipEmptyArchives(Boolean skipEmptyArchives) { + this.captureSettings.withDataCaptureSkipEmptyArchives(skipEmptyArchives); + return this; + } + + @Override + public EventHubImpl withDataCaptureWindowSizeInMB(int sizeInMB) { + this.captureSettings.withDataCaptureWindowSizeInMB(sizeInMB); + return this; + } + + @Override + public EventHubImpl withDataCaptureFileNameFormat(String format) { + this.captureSettings.withDataCaptureFileNameFormat(format); + return this; + } + + @Override + public EventHubImpl withNewSendRule(final String ruleName) { + concatPostRunTask(manager().eventHubAuthorizationRules() + .define(ruleName) + .withExistingEventHub(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name()) + .withSendAccess() + .createAsync() + .last()); + return this; + } + + @Override + public EventHubImpl withNewListenRule(final String ruleName) { + concatPostRunTask(manager().eventHubAuthorizationRules() + .define(ruleName) + .withExistingEventHub(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name()) + .withListenAccess() + .createAsync() + .last()); + return this; + } + + @Override + public EventHubImpl withNewSendAndListenRule(final String ruleName) { + concatPostRunTask(manager().eventHubAuthorizationRules() + .define(ruleName) + .withExistingEventHub(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name()) + .withSendAndListenAccess() + .createAsync() + .last()); + return this; + } + + @Override + public EventHubImpl withNewManageRule(final String ruleName) { + concatPostRunTask(manager().eventHubAuthorizationRules() + .define(ruleName) + .withExistingEventHub(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name()) + .withManageAccess() + .createAsync() + .last()); + return this; + } + + @Override + public EventHubImpl withoutAuthorizationRule(final String ruleName) { + concatPostRunTask(manager().eventHubAuthorizationRules() + .deleteByNameAsync(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name(), ruleName) + .map(aVoid -> new VoidIndexable(UUID.randomUUID().toString()))); + return this; + } + + @Override + public EventHubImpl withNewConsumerGroup(final String name) { + concatPostRunTask(manager().consumerGroups() + .define(name) + .withExistingEventHub(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name()) + .createAsync() + .last()); + return this; + } + + @Override + public EventHubImpl withNewConsumerGroup(final String name, final String metadata) { + concatPostRunTask(manager().consumerGroups() + .define(name) + .withExistingEventHub(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name()) + .withUserMetadata(metadata) + .createAsync() + .last()); + return this; + } + + @Override + public EventHubImpl withoutConsumerGroup(final String name) { + concatPostRunTask(manager().consumerGroups() + .deleteByNameAsync(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name(), name) + .map(aVoid -> new VoidIndexable(UUID.randomUUID().toString()))); + return this; + } + + @Override + public EventHubImpl withPartitionCount(long count) { + this.inner().withPartitionCount(count); + return this; + } + + @Override + public EventHubImpl withRetentionPeriodInDays(long period) { + this.inner().withMessageRetentionInDays(period); + return this; + } + + @Override + public EventHubImpl update() { + this.captureSettings = new CaptureSettings(this.inner()); + return super.update(); + } + + @Override + public void beforeGroupCreateOrUpdate() { + if (postRunTasks != null) { + addPostRunDependent(context -> postRunTasks.last()); + } + this.inner().withCaptureDescription(this.captureSettings.validateAndGetSettings()); + } + + @Override + public Mono createResourceAsync() { + return this.manager.inner().getEventHubs() + .createOrUpdateAsync(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Mono afterPostRunAsync(boolean isGroupFaulted) { + postRunTasks = null; + return Mono.empty(); + } + + @Override + protected Mono getInnerAsync() { + return this.manager.inner().getEventHubs().getAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor1Name(), + this.name()); + } + + @Override + public PagedFlux listConsumerGroupsAsync() { + return this.manager.consumerGroups() + .listByEventHubAsync(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name()); + } + + @Override + public PagedFlux listAuthorizationRulesAsync() { + return this.manager.eventHubAuthorizationRules() + .listByEventHubAsync(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name()); + } + + @Override + public PagedIterable listConsumerGroups() { + return this.manager.consumerGroups() + .listByEventHub(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name()); + } + + @Override + public PagedIterable listAuthorizationRules() { + return this.manager.eventHubAuthorizationRules() + .listByEventHub(ancestor().resourceGroupName(), ancestor().ancestor1Name(), name()); + } + + private Ancestors.OneAncestor ancestor() { + Objects.requireNonNull(this.ancestor); + return this.ancestor; + } + + private String selfId(String parentId) { + return String.format("%s/eventhubs/%s", parentId, this.name()); + } + + private void concatPostRunTask(Mono task) { + if (postRunTasks == null) { + postRunTasks = Flux.empty(); + } + postRunTasks = postRunTasks.concatWith(task); + } + + private class CaptureSettings { + private final CaptureDescription currentSettings; + private CaptureDescription newSettings; + + CaptureSettings(final EventhubInner eventhubInner) { + this.currentSettings = eventhubInner.captureDescription(); + } + + public CaptureSettings withNewStorageAccountForCapturedData( + final Creatable creatableStorageAccount, final String containerName) { + this.ensureSettings().destination().withStorageAccountResourceId("temp-id"); + this.ensureSettings().destination().withBlobContainer(containerName); + // + // Schedule task to create storage account and container. + // + addDependency(context -> creatableStorageAccount + .createAsync() + .last() + .flatMap(indexable -> { + StorageAccount storageAccount = (StorageAccount) indexable; + ensureSettings().destination().withStorageAccountResourceId(storageAccount.id()); + return createContainerIfNotExistsAsync(storageAccount, containerName); + })); + return this; + } + + public CaptureSettings withExistingStorageAccountForCapturedData( + final StorageAccount storageAccount, final String containerName) { + this.ensureSettings().destination().withStorageAccountResourceId(storageAccount.id()); + this.ensureSettings().destination().withBlobContainer(containerName); + // + // Schedule task to create container if not exists. + // + addDependency(context -> createContainerIfNotExistsAsync(storageAccount, containerName)); + return this; + } + + public CaptureSettings withExistingStorageAccountForCapturedData( + final String storageAccountId, final String containerName) { + this.ensureSettings().destination().withStorageAccountResourceId(storageAccountId); + this.ensureSettings().destination().withBlobContainer(containerName); + // + // Schedule task to create container if not exists. + // + addDependency(context -> storageManager.storageAccounts() + .getByIdAsync(storageAccountId) + .flatMap(storageAccount -> { + ensureSettings().destination().withStorageAccountResourceId(storageAccount.id()); + return createContainerIfNotExistsAsync(storageAccount, containerName); + })); + return this; + } + + public CaptureSettings withDataCaptureEnabled() { + this.ensureSettings().withEnabled(true); + return this; + } + + public CaptureSettings withDataCaptureDisabled() { + this.ensureSettings().withEnabled(false); + return this; + } + + public CaptureSettings withDataCaptureSkipEmptyArchives(Boolean skipEmptyArchives) { + this.ensureSettings().withSkipEmptyArchives(skipEmptyArchives); + return this; + } + + public CaptureSettings withDataCaptureWindowSizeInSeconds(int sizeInSeconds) { + this.ensureSettings().withIntervalInSeconds(sizeInSeconds); + return this; + } + + public CaptureSettings withDataCaptureWindowSizeInMB(int sizeInMB) { + this.ensureSettings().withSizeLimitInBytes(sizeInMB * 1024 * 1024); + return this; + } + + public CaptureSettings withDataCaptureFileNameFormat(String format) { + this.ensureSettings().destination().withArchiveNameFormat(format); + return this; + } + + public CaptureDescription validateAndGetSettings() { + if (this.newSettings == null) { + return this.currentSettings; + } else if (this.newSettings.destination() == null + || this.newSettings.destination().storageAccountResourceId() == null + || this.newSettings.destination().blobContainer() == null) { + throw logger.logExceptionAsError(new IllegalStateException( + "Setting any of the capture properties requires " + + "capture destination [StorageAccount, DataLake] to be specified")); + } + if (this.newSettings.destination().name() == null) { + this.newSettings.destination().withName("EventHubArchive.AzureBlockBlob"); + } + if (this.newSettings.encoding() == null) { + this.newSettings.withEncoding(EncodingCaptureDescription.AVRO); + } + return this.newSettings; + } + + private CaptureDescription ensureSettings() { + if (this.newSettings != null) { + return this.newSettings; + } else if (this.currentSettings == null) { + this.newSettings = new CaptureDescription().withDestination(new Destination()); + return this.newSettings; + } else { + // Clone the current settings to new settings (one time) + // + this.newSettings = cloneCurrentSettings(); + return this.newSettings; + } + } + + private Mono createContainerIfNotExistsAsync(final StorageAccount storageAccount, + final String containerName) { + return storageManager.blobContainers() + .getAsync(storageAccount.resourceGroupName(), storageAccount.name(), containerName) + .cast(Indexable.class) + .onErrorResume(throwable -> storageManager.blobContainers() + .defineContainer(containerName) + .withExistingBlobService(storageAccount.resourceGroupName(), storageAccount.name()) + .withPublicAccess(PublicAccess.CONTAINER) + .createAsync() + .last()); + } + + private CaptureDescription cloneCurrentSettings() { + Objects.requireNonNull(this.currentSettings); + CaptureDescription clone = new CaptureDescription(); + clone.withSizeLimitInBytes(this.currentSettings.sizeLimitInBytes()); + clone.withSkipEmptyArchives(this.currentSettings.skipEmptyArchives()); + clone.withIntervalInSeconds(this.currentSettings.intervalInSeconds()); + clone.withEnabled(this.currentSettings.enabled()); + clone.withEncoding(this.currentSettings.encoding()); + if (this.currentSettings.destination() != null) { + clone.withDestination(new Destination()); + clone.destination().withArchiveNameFormat(this.currentSettings.destination().archiveNameFormat()); + clone.destination().withBlobContainer(this.currentSettings.destination().blobContainer()); + clone.destination().withName(this.currentSettings.destination().name()); + clone.destination().withStorageAccountResourceId( + this.currentSettings.destination().storageAccountResourceId()); + } else { + clone.withDestination(new Destination()); + } + return clone; + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespaceAuthorizationRuleImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespaceAuthorizationRuleImpl.java new file mode 100644 index 0000000000000..97d09ce791ea8 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespaceAuthorizationRuleImpl.java @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.AccessKeysInner; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespace; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaceAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.KeyType; +import com.azure.resourcemanager.eventhubs.models.RegenerateAccessKeyParameters; +import reactor.core.publisher.Mono; + +import java.util.Objects; + +/** + * Implementation for {@link EventHubNamespaceAuthorizationRule}. + */ +class EventHubNamespaceAuthorizationRuleImpl extends AuthorizationRuleBaseImpl + implements + EventHubNamespaceAuthorizationRule, + EventHubNamespaceAuthorizationRule.Definition, + EventHubNamespaceAuthorizationRule.Update { + + private Ancestors.OneAncestor ancestor; + + EventHubNamespaceAuthorizationRuleImpl(String name, AuthorizationRuleInner inner, EventHubsManager manager) { + super(name, inner, manager); + this.ancestor = new Ancestors().new OneAncestor(inner.id()); + } + + EventHubNamespaceAuthorizationRuleImpl(String name, EventHubsManager manager) { + super(name, new AuthorizationRuleInner(), manager); + } + + @Override + public String namespaceResourceGroupName() { + return this.ancestor().resourceGroupName(); + } + + @Override + public String namespaceName() { + return this.ancestor().ancestor1Name(); + } + + @Override + public EventHubNamespaceAuthorizationRuleImpl withExistingNamespaceId(String namespaceResourceId) { + this.ancestor = new Ancestors().new OneAncestor(selfId(namespaceResourceId)); + return this; + } + + @Override + public EventHubNamespaceAuthorizationRuleImpl withExistingNamespace( + String resourceGroupName, String namespaceName) { + this.ancestor = new Ancestors().new OneAncestor(resourceGroupName, namespaceName); + return this; + } + + @Override + public EventHubNamespaceAuthorizationRuleImpl withExistingNamespace(EventHubNamespace namespace) { + this.ancestor = new Ancestors().new OneAncestor(selfId(namespace.id())); + return this; + } + + @Override + protected Mono getInnerAsync() { + return this.manager.inner().getNamespaces() + .getAuthorizationRuleAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor1Name(), + this.name()); + } + + @Override + public Mono createResourceAsync() { + return this.manager.inner().getNamespaces() + .createOrUpdateAuthorizationRuleAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor1Name(), + this.name(), + this.inner().rights()) + .map(innerToFluentMap(this)); + } + + @Override + protected Mono getKeysInnerAsync() { + return this.manager.inner().getNamespaces() + .listKeysAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor1Name(), + this.name()); + } + + @Override + protected Mono regenerateKeysInnerAsync(KeyType keyType) { + final RegenerateAccessKeyParameters regenKeyInner = new RegenerateAccessKeyParameters() + .withKeyType(keyType); + return this.manager.inner().getNamespaces() + .regenerateKeysAsync(this.ancestor().resourceGroupName(), + this.ancestor().ancestor1Name(), + this.name(), + regenKeyInner); + } + + private Ancestors.OneAncestor ancestor() { + Objects.requireNonNull(this.ancestor); + return this.ancestor; + } + + private String selfId(String parentId) { + return String.format("%s/authorizationRules/%s", parentId, this.name()); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespaceAuthorizationRulesImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespaceAuthorizationRulesImpl.java new file mode 100644 index 0000000000000..ea153525d3305 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespaceAuthorizationRulesImpl.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.NamespacesClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaceAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaceAuthorizationRules; +import com.azure.resourcemanager.resources.fluentcore.arm.ResourceId; +import reactor.core.publisher.Mono; + +import java.util.Objects; + +/** + * Implementation for {@link EventHubNamespaceAuthorizationRules}. + */ +public final class EventHubNamespaceAuthorizationRulesImpl + extends AuthorizationRulesBaseImpl + implements EventHubNamespaceAuthorizationRules { + + public EventHubNamespaceAuthorizationRulesImpl(EventHubsManager manager) { + super(manager, manager.inner().getNamespaces()); + } + + @Override + public EventHubNamespaceAuthorizationRuleImpl define(String name) { + return new EventHubNamespaceAuthorizationRuleImpl(name, this.manager); + } + + @Override + public Mono getByIdAsync(String id) { + Objects.requireNonNull(id); + ResourceId resourceId = ResourceId.fromString(id); + return getByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().name(), + resourceId.name()); + } + + @Override + public EventHubNamespaceAuthorizationRule getByName(String resourceGroupName, String namespaceName, String name) { + return getByNameAsync(resourceGroupName, namespaceName, name).block(); + } + + @Override + public Mono getByNameAsync( + String resourceGroupName, String namespaceName, String name) { + return this.inner().getAuthorizationRuleAsync(resourceGroupName, + namespaceName, + name) + .map(this::wrapModel); + } + + @Override + public PagedIterable listByNamespace( + final String resourceGroupName, final String namespaceName) { + return inner() + .listAuthorizationRules(resourceGroupName, namespaceName) + .mapPage(this::wrapModel); + } + + @Override + public PagedFlux listByNamespaceAsync( + String resourceGroupName, String namespaceName) { + return this.inner() + .listAuthorizationRulesAsync(resourceGroupName, namespaceName) + .mapPage(this::wrapModel); + } + + @Override + public Mono deleteByIdAsync(String id) { + Objects.requireNonNull(id); + ResourceId resourceId = ResourceId.fromString(id); + + return deleteByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().name(), + resourceId.name()); + } + + @Override + public Mono deleteByNameAsync(String resourceGroupName, String namespaceName, String name) { + return this.inner().deleteAuthorizationRuleAsync(resourceGroupName, + namespaceName, + name); + } + + @Override + public void deleteByName(String resourceGroupName, String namespaceName, String name) { + deleteByNameAsync(resourceGroupName, namespaceName, name).block(); + } + + @Override + protected EventHubNamespaceAuthorizationRuleImpl wrapModel(AuthorizationRuleInner innerModel) { + return new EventHubNamespaceAuthorizationRuleImpl(innerModel.name(), innerModel, this.manager); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespaceImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespaceImpl.java new file mode 100644 index 0000000000000..53d6e781c40eb --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespaceImpl.java @@ -0,0 +1,272 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.EHNamespaceInner; +import com.azure.resourcemanager.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; +import com.azure.resourcemanager.resources.fluentcore.dag.VoidIndexable; +import com.azure.resourcemanager.resources.fluentcore.model.Indexable; +import com.azure.resourcemanager.resources.fluentcore.utils.Utils; +import com.azure.resourcemanager.eventhubs.models.EventHub; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespace; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaceAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaceSkuType; +import com.azure.resourcemanager.eventhubs.models.Sku; +import com.azure.resourcemanager.eventhubs.models.SkuName; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +import java.time.OffsetDateTime; +import java.util.UUID; + +/** + * Implementation for {@link EventHubNamespace}. + */ +class EventHubNamespaceImpl + extends GroupableResourceImpl + implements + EventHubNamespace, + EventHubNamespace.Definition, + EventHubNamespace.Update { + + private Flux postRunTasks; + + protected EventHubNamespaceImpl(String name, EHNamespaceInner innerObject, EventHubsManager manager) { + super(name, innerObject, manager); + } + + @Override + public EventHubNamespaceSkuType sku() { + return new EventHubNamespaceSkuType(this.inner().sku()); + } + + @Override + public String azureInsightMetricId() { + return this.inner().metricId(); + } + + @Override + public String serviceBusEndpoint() { + return this.inner().serviceBusEndpoint(); + } + + @Override + public OffsetDateTime createdAt() { + return this.inner().createdAt(); + } + + @Override + public OffsetDateTime updatedAt() { + return this.inner().updatedAt(); + } + + @Override + public String provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public boolean isAutoScaleEnabled() { + return Utils.toPrimitiveBoolean(this.inner().isAutoInflateEnabled()); + } + + @Override + public int currentThroughputUnits() { + return Utils.toPrimitiveInt(this.inner().sku().capacity()); + } + + @Override + public int throughputUnitsUpperLimit() { + return Utils.toPrimitiveInt(this.inner().maximumThroughputUnits()); + } + + @Override + public EventHubNamespaceImpl withNewEventHub(final String eventHubName) { + concatPostRunTask(manager().eventHubs() + .define(eventHubName) + .withExistingNamespace(resourceGroupName(), name()) + .createAsync() + .last()); + return this; + } + + @Override + public EventHubNamespaceImpl withNewEventHub(final String eventHubName, final int partitionCount) { + concatPostRunTask(manager().eventHubs() + .define(eventHubName) + .withExistingNamespace(resourceGroupName(), name()) + .withPartitionCount(partitionCount) + .createAsync() + .last()); + return this; + } + + @Override + public EventHubNamespaceImpl withNewEventHub( + final String eventHubName, final int partitionCount, final int retentionPeriodInDays) { + concatPostRunTask(manager().eventHubs() + .define(eventHubName) + .withExistingNamespace(resourceGroupName(), name()) + .withPartitionCount(partitionCount) + .withRetentionPeriodInDays(retentionPeriodInDays) + .createAsync() + .last()); + return this; + } + + @Override + public Update withoutEventHub(final String eventHubName) { + concatPostRunTask(manager().eventHubs() + .deleteByNameAsync(resourceGroupName(), name(), eventHubName) + .map(aVoid -> new VoidIndexable(UUID.randomUUID().toString()))); + return this; + } + + @Override + public EventHubNamespaceImpl withNewSendRule(final String ruleName) { + concatPostRunTask(manager().namespaceAuthorizationRules() + .define(ruleName) + .withExistingNamespace(resourceGroupName(), name()) + .withSendAccess() + .createAsync() + .last()); + return this; + } + + @Override + public EventHubNamespaceImpl withNewListenRule(final String ruleName) { + concatPostRunTask(manager().namespaceAuthorizationRules() + .define(ruleName) + .withExistingNamespace(resourceGroupName(), name()) + .withListenAccess() + .createAsync() + .last()); + return this; + } + + @Override + public EventHubNamespaceImpl withNewManageRule(final String ruleName) { + concatPostRunTask(manager().namespaceAuthorizationRules() + .define(ruleName) + .withExistingNamespace(resourceGroupName(), name()) + .withManageAccess() + .createAsync() + .last()); + return this; + } + + @Override + public EventHubNamespaceImpl withoutAuthorizationRule(final String ruleName) { + concatPostRunTask(manager().namespaceAuthorizationRules() + .deleteByNameAsync(resourceGroupName(), name(), ruleName) + .map(aVoid -> new VoidIndexable(UUID.randomUUID().toString()))); + return this; + } + + @Override + public EventHubNamespaceImpl withAutoScaling() { + // Auto-inflate requires a Sku > 'Basic' with capacity. + this.setDefaultSkuIfNotSet(); + this.inner().withIsAutoInflateEnabled(true); + if (this.inner().maximumThroughputUnits() == null) { + // Required when auto-inflate is set & use portal default. + this.withThroughputUnitsUpperLimit(20); + } + return this; + } + + @Override + public EventHubNamespaceImpl withSku(EventHubNamespaceSkuType namespaceSku) { + Sku newSkuInner = new Sku() + .withName(namespaceSku.name()) + .withTier(namespaceSku.tier()) + .withCapacity(null); + Sku currentSkuInner = this.inner().sku(); + + boolean isDifferent = currentSkuInner == null || !currentSkuInner.name().equals(newSkuInner.name()); + if (isDifferent) { + this.inner().withSku(newSkuInner); + if (newSkuInner.name().equals(SkuName.STANDARD)) { + newSkuInner.withCapacity(1); + } + } + return this; + } + + @Override + public EventHubNamespaceImpl withCurrentThroughputUnits(int units) { + this.setDefaultSkuIfNotSet(); + this.inner().sku().withCapacity(units); + return this; + } + + @Override + public EventHubNamespaceImpl withThroughputUnitsUpperLimit(int units) { + this.inner().withMaximumThroughputUnits(units); + return this; + } + + @Override + public void beforeGroupCreateOrUpdate() { + if (postRunTasks != null) { + addPostRunDependent(context -> postRunTasks.last()); + } + } + + @Override + public Mono createResourceAsync() { + return this.manager().inner().getNamespaces() + .createOrUpdateAsync(resourceGroupName(), name(), this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Mono afterPostRunAsync(boolean isGroupFaulted) { + postRunTasks = null; + return Mono.empty(); + } + + @Override + public PagedFlux listEventHubsAsync() { + return this.manager().eventHubs().listByNamespaceAsync(resourceGroupName(), name()); + } + + @Override + public PagedFlux listAuthorizationRulesAsync() { + return this.manager().namespaceAuthorizationRules() + .listByNamespaceAsync(this.resourceGroupName(), this.name()); + } + + @Override + public PagedIterable listEventHubs() { + return this.manager().eventHubs().listByNamespace(resourceGroupName(), name()); + } + + @Override + public PagedIterable listAuthorizationRules() { + return this.manager().namespaceAuthorizationRules() + .listByNamespace(this.resourceGroupName(), this.name()); + } + + @Override + protected Mono getInnerAsync() { + return this.manager().inner().getNamespaces().getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + private void setDefaultSkuIfNotSet() { + if (this.inner().sku() == null) { + this.withSku(EventHubNamespaceSkuType.STANDARD); + } + } + + private void concatPostRunTask(Mono task) { + if (postRunTasks == null) { + postRunTasks = Flux.empty(); + } + postRunTasks = postRunTasks.concatWith(task); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespacesImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespacesImpl.java new file mode 100644 index 0000000000000..73b0236118b01 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubNamespacesImpl.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.NamespacesClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.EHNamespaceInner; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespace; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaceAuthorizationRules; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaces; +import com.azure.resourcemanager.eventhubs.models.EventHubs; + +/** + * Implementation for {@link EventHubNamespaces}. + */ +public final class EventHubNamespacesImpl + extends TopLevelModifiableResourcesImpl< + EventHubNamespace, + EventHubNamespaceImpl, + EHNamespaceInner, + NamespacesClient, + EventHubsManager> + implements EventHubNamespaces { + + public EventHubNamespacesImpl(EventHubsManager manager) { + super(manager.inner().getNamespaces(), manager); + } + + @Override + protected EventHubNamespaceImpl wrapModel(String name) { + return new EventHubNamespaceImpl(name, new EHNamespaceInner(), this.manager()); + } + + @Override + protected EventHubNamespaceImpl wrapModel(EHNamespaceInner inner) { + return new EventHubNamespaceImpl(inner.name(), inner, this.manager()); + } + + @Override + public EventHubNamespaceImpl define(String name) { + return wrapModel(name); + } + + @Override + public EventHubNamespaceAuthorizationRules authorizationRules() { + return this.manager().namespaceAuthorizationRules(); + } + + @Override + public EventHubs eventHubs() { + return this.manager().eventHubs(); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubsImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubsImpl.java new file mode 100644 index 0000000000000..1bb8c3c577a50 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubsImpl.java @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.EventHubsClient; +import com.azure.resourcemanager.eventhubs.fluent.inner.EventhubInner; +import com.azure.resourcemanager.resources.fluentcore.arm.ResourceId; +import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl; +import com.azure.resourcemanager.storage.StorageManager; +import com.azure.resourcemanager.eventhubs.models.EventHub; +import com.azure.resourcemanager.eventhubs.models.EventHubAuthorizationRules; +import com.azure.resourcemanager.eventhubs.models.EventHubConsumerGroups; +import com.azure.resourcemanager.eventhubs.models.EventHubs; +import reactor.core.publisher.Mono; + +import java.util.Objects; + +/** + * Implementation for {@link EventHubs}. + */ +public final class EventHubsImpl extends WrapperImpl implements EventHubs { + private final EventHubsManager manager; + private final StorageManager storageManager; + + public EventHubsImpl(EventHubsManager manager, StorageManager storageManager) { + super(manager.inner().getEventHubs()); + this.manager = manager; + this.storageManager = storageManager; + } + + @Override + public EventHubsManager manager() { + return this.manager; + } + + @Override + public EventHubImpl define(String name) { + return new EventHubImpl(name, this.manager, this.storageManager); + } + + public EventHubAuthorizationRules authorizationRules() { + return this.manager().eventHubAuthorizationRules(); + } + + public EventHubConsumerGroups consumerGroups() { + return this.manager().consumerGroups(); + } + + @Override + public EventHub getById(String id) { + return getByIdAsync(id).block(); + } + + @Override + public Mono getByIdAsync(String id) { + Objects.requireNonNull(id); + ResourceId resourceId = ResourceId.fromString(id); + return getByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().name(), + resourceId.name()); + } + + @Override + public Mono getByNameAsync(String resourceGroupName, String namespaceName, String name) { + return this.inner().getAsync(resourceGroupName, + namespaceName, + name) + .map(this::wrapModel); + } + + @Override + public EventHub getByName(String resourceGroupName, String namespaceName, String name) { + return getByNameAsync(resourceGroupName, namespaceName, name).block(); + } + + @Override + public PagedIterable listByNamespace(String resourceGroupName, String namespaceName) { + return inner() + .listByNamespace(resourceGroupName, namespaceName) + .mapPage(this::wrapModel); + } + + @Override + public PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName) { + return inner() + .listByNamespaceAsync(resourceGroupName, namespaceName) + .mapPage(this::wrapModel); + } + + @Override + public void deleteById(String id) { + deleteByIdAsync(id).block(); + } + + @Override + public Mono deleteByIdAsync(String id) { + Objects.requireNonNull(id); + ResourceId resourceId = ResourceId.fromString(id); + return deleteByNameAsync(resourceId.resourceGroupName(), + resourceId.parent().name(), + resourceId.name()); + } + + @Override + public Mono deleteByNameAsync(String resourceGroupName, String namespaceName, String name) { + return this.inner().deleteAsync(resourceGroupName, + namespaceName, + name); + } + + @Override + public void deleteByName(String resourceGroupName, String namespaceName, String name) { + deleteByNameAsync(resourceGroupName, namespaceName, name).block(); + } + + private EventHubImpl wrapModel(EventhubInner innerModel) { + return new EventHubImpl(innerModel.name(), innerModel, this.manager, this.storageManager); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/NestedResourceImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/NestedResourceImpl.java new file mode 100644 index 0000000000000..76990ffffe50b --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/NestedResourceImpl.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.implementation; + +import com.azure.core.management.ProxyResource; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.model.Indexable; +import com.azure.resourcemanager.resources.fluentcore.model.implementation.CreatableUpdatableImpl; +import com.azure.resourcemanager.resources.fluentcore.model.implementation.IndexableRefreshableWrapperImpl; +import com.azure.resourcemanager.eventhubs.models.NestedResource; + +/** + * The implementation for {@link NestedResource}. + * (Internal use only) + * + * @param the fluent model of the nested resource + * @param the inner model of the nested resource + * @param the fluent model implementation of the nested resource + */ +public abstract class NestedResourceImpl< + FluentModelT extends Indexable, + InnerModelT extends ProxyResource, + FluentModelImplT extends IndexableRefreshableWrapperImpl> + extends CreatableUpdatableImpl + implements HasManager, NestedResource { + protected final EventHubsManager manager; + + NestedResourceImpl(final String name, final InnerModelT inner, EventHubsManager manager) { + super(name, inner); + this.manager = manager; + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String name() { + if (this.inner().name() == null) { + return super.name(); + } else { + return this.inner().name(); + } + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + @Override + public EventHubsManager manager() { + return this.manager; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/AccessRights.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/AccessRights.java new file mode 100644 index 0000000000000..8559de36833b9 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/AccessRights.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for AccessRights. */ +public final class AccessRights extends ExpandableStringEnum { + /** Static value Manage for AccessRights. */ + public static final AccessRights MANAGE = fromString("Manage"); + + /** Static value Send for AccessRights. */ + public static final AccessRights SEND = fromString("Send"); + + /** Static value Listen for AccessRights. */ + public static final AccessRights LISTEN = fromString("Listen"); + + /** + * Creates or finds a AccessRights from its string representation. + * + * @param name a name to look for. + * @return the corresponding AccessRights. + */ + @JsonCreator + public static AccessRights fromString(String name) { + return fromString(name, AccessRights.class); + } + + /** @return known AccessRights values. */ + public static Collection values() { + return values(AccessRights.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/AuthorizationRule.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/AuthorizationRule.java new file mode 100644 index 0000000000000..040f7bb79cb48 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/AuthorizationRule.java @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import com.azure.resourcemanager.resources.fluentcore.model.Refreshable; +import reactor.core.publisher.Mono; + +import java.util.List; + +/** + * The base type representing authorization rule of event hub namespace and event hub. + * + * @param the specific authorization rule type + */ +@Fluent +public interface AuthorizationRule> extends + NestedResource, HasInner, HasManager, + Refreshable { + /** + * @return rights associated with the authorization rule + */ + List rights(); + /** + * @return a representation of the deferred computation of this call, + * returning access keys (primary, secondary) and the connection strings + */ + Mono getKeysAsync(); + /** + * @return the access keys (primary, secondary) and the connection strings + */ + EventHubAuthorizationKey getKeys(); + /** + * Regenerates primary or secondary access keys. + * + * @param keyType the key to regenerate + * @return a representation of the deferred computation of this call, + * returning access keys (primary, secondary) and the connection strings + */ + Mono regenerateKeyAsync(KeyType keyType); + /** + * Regenerates primary or secondary keys. + * + * @param keyType the key to regenerate + * @return the access keys (primary, secondary) and the connection strings + */ + EventHubAuthorizationKey regenerateKey(KeyType keyType); + + /** + * Grouping of commons authorization rule definition stages shared + * between event hub namespace authorization rule and event hub authorization rule. + */ + interface DefinitionStages { + /** + * The stage of the event hub namespace or event hub authorization rule definition + * allowing to enable listen policy. + * + * @param the next stage of the definition + */ + interface WithListen { + /** + * Specifies that the rule should have listening access enabled. + * + * @return the next stage of the definition + */ + T withListenAccess(); + } + + /** + * The stage of the event hub namespace or event hub authorization rule definition + * allowing to enable send policy. + * + * @param the next stage of the definition + */ + interface WithSend { + /** + * Specifies that the rule should have sending access enabled. + * + * @return the next stage of the definition + */ + T withSendAccess(); + } + + /** + * The stage of the event hub namespace or event hub authorization rule definition + * allowing to enable manage policy. + * + * @param the next stage of the definition + */ + interface WithManage { + /** + * Specifies that the rule should have management access enabled. + * + * @return the next stage of the definition + */ + T withManageAccess(); + } + + /** + * The stage of the event hub namespace or event hub authorization rule definition + * allowing to enable send or manage policy. + * + * @param the next stage of the definition + */ + interface WithSendOrManage extends WithSend, WithManage { + } + + /** + * The stage of the event hub namespace or event hub authorization rule definition + * allowing to enable listen, send or manage policy. + * + * @param the next stage of the definition + */ + interface WithListenOrSendOrManage extends WithListen, WithSendOrManage { + /** + * Specifies that the rule should have sending and listening access enabled. + * + * @return the next stage of the definition + */ + T withSendAndListenAccess(); + } + } + + /** + * Grouping of commons authorization rule update stages shared + * between event hub namespace authorization rule and event hub authorization rule. + */ + interface UpdateStages { + /** + * The stage of the event hub namespace or event hub authorization rule update + * allowing to enable listen policy. + * + * @param the next stage of the update + */ + interface WithListen { + /** + * Specifies that the rule should have listening access enabled. + * + * @return the next stage of the update + */ + T withListenAccess(); + } + + /** + * The stage of the event hub namespace or event hub authorization rule update + * allowing to enable send policy. + * + * @param the next stage of the update + */ + interface WithSend { + /** + * Specifies that the rule should have sending access enabled. + * + * @return the next stage of the update + */ + T withSendAccess(); + } + + /** + * The stage of event hub namespace or event hub authorization rule update + * allowing to enable manage policy. + * + * @param the next stage of the update + */ + interface WithManage { + /** + * Specifies that the rule should have sending access enabled. + * + * @return the next stage of the update + */ + T withManageAccess(); + } + + /** + * The stage of the event hub namespace or event hub authorization rule update + * allowing to enable send or manage policy. + * + * @param the next stage of the update + */ + interface WithSendOrManage extends WithSend, WithManage { + } + + /** + * The stage of the event hub namespace or event hub authorization rule update + * allowing to enable listen, send or manage policy. + * + * @param the next stage of the update + */ + interface WithListenOrSendOrManage extends WithListen, WithSendOrManage { + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/CaptureDescription.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/CaptureDescription.java new file mode 100644 index 0000000000000..235a2e0a4995d --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/CaptureDescription.java @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CaptureDescription model. */ +@Fluent +public final class CaptureDescription { + @JsonIgnore private final ClientLogger logger = new ClientLogger(CaptureDescription.class); + + /* + * A value that indicates whether capture description is enabled. + */ + @JsonProperty(value = "enabled") + private Boolean enabled; + + /* + * Enumerates the possible values for the encoding format of capture + * description. Note: 'AvroDeflate' will be deprecated in New API Version + */ + @JsonProperty(value = "encoding") + private EncodingCaptureDescription encoding; + + /* + * The time window allows you to set the frequency with which the capture + * to Azure Blobs will happen, value should between 60 to 900 seconds + */ + @JsonProperty(value = "intervalInSeconds") + private Integer intervalInSeconds; + + /* + * The size window defines the amount of data built up in your Event Hub + * before an capture operation, value should be between 10485760 to + * 524288000 bytes + */ + @JsonProperty(value = "sizeLimitInBytes") + private Integer sizeLimitInBytes; + + /* + * Properties of Destination where capture will be stored. (Storage + * Account, Blob Names) + */ + @JsonProperty(value = "destination") + private Destination destination; + + /* + * A value that indicates whether to Skip Empty Archives + */ + @JsonProperty(value = "skipEmptyArchives") + private Boolean skipEmptyArchives; + + /** + * Get the enabled property: A value that indicates whether capture description is enabled. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: A value that indicates whether capture description is enabled. + * + * @param enabled the enabled value to set. + * @return the CaptureDescription object itself. + */ + public CaptureDescription withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get the encoding property: Enumerates the possible values for the encoding format of capture description. Note: + * 'AvroDeflate' will be deprecated in New API Version. + * + * @return the encoding value. + */ + public EncodingCaptureDescription encoding() { + return this.encoding; + } + + /** + * Set the encoding property: Enumerates the possible values for the encoding format of capture description. Note: + * 'AvroDeflate' will be deprecated in New API Version. + * + * @param encoding the encoding value to set. + * @return the CaptureDescription object itself. + */ + public CaptureDescription withEncoding(EncodingCaptureDescription encoding) { + this.encoding = encoding; + return this; + } + + /** + * Get the intervalInSeconds property: The time window allows you to set the frequency with which the capture to + * Azure Blobs will happen, value should between 60 to 900 seconds. + * + * @return the intervalInSeconds value. + */ + public Integer intervalInSeconds() { + return this.intervalInSeconds; + } + + /** + * Set the intervalInSeconds property: The time window allows you to set the frequency with which the capture to + * Azure Blobs will happen, value should between 60 to 900 seconds. + * + * @param intervalInSeconds the intervalInSeconds value to set. + * @return the CaptureDescription object itself. + */ + public CaptureDescription withIntervalInSeconds(Integer intervalInSeconds) { + this.intervalInSeconds = intervalInSeconds; + return this; + } + + /** + * Get the sizeLimitInBytes property: The size window defines the amount of data built up in your Event Hub before + * an capture operation, value should be between 10485760 to 524288000 bytes. + * + * @return the sizeLimitInBytes value. + */ + public Integer sizeLimitInBytes() { + return this.sizeLimitInBytes; + } + + /** + * Set the sizeLimitInBytes property: The size window defines the amount of data built up in your Event Hub before + * an capture operation, value should be between 10485760 to 524288000 bytes. + * + * @param sizeLimitInBytes the sizeLimitInBytes value to set. + * @return the CaptureDescription object itself. + */ + public CaptureDescription withSizeLimitInBytes(Integer sizeLimitInBytes) { + this.sizeLimitInBytes = sizeLimitInBytes; + return this; + } + + /** + * Get the destination property: Properties of Destination where capture will be stored. (Storage Account, Blob + * Names). + * + * @return the destination value. + */ + public Destination destination() { + return this.destination; + } + + /** + * Set the destination property: Properties of Destination where capture will be stored. (Storage Account, Blob + * Names). + * + * @param destination the destination value to set. + * @return the CaptureDescription object itself. + */ + public CaptureDescription withDestination(Destination destination) { + this.destination = destination; + return this; + } + + /** + * Get the skipEmptyArchives property: A value that indicates whether to Skip Empty Archives. + * + * @return the skipEmptyArchives value. + */ + public Boolean skipEmptyArchives() { + return this.skipEmptyArchives; + } + + /** + * Set the skipEmptyArchives property: A value that indicates whether to Skip Empty Archives. + * + * @param skipEmptyArchives the skipEmptyArchives value to set. + * @return the CaptureDescription object itself. + */ + public CaptureDescription withSkipEmptyArchives(Boolean skipEmptyArchives) { + this.skipEmptyArchives = skipEmptyArchives; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (destination() != null) { + destination().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/CheckNameAvailabilityParameter.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/CheckNameAvailabilityParameter.java new file mode 100644 index 0000000000000..4020d1bf78724 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/CheckNameAvailabilityParameter.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CheckNameAvailabilityParameter model. */ +@Fluent +public final class CheckNameAvailabilityParameter { + @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameAvailabilityParameter.class); + + /* + * Name to check the namespace name availability + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * Get the name property: Name to check the namespace name availability. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name to check the namespace name availability. + * + * @param name the name value to set. + * @return the CheckNameAvailabilityParameter object itself. + */ + public CheckNameAvailabilityParameter withName(String name) { + this.name = name; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (name() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property name in model CheckNameAvailabilityParameter")); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DefaultAction.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DefaultAction.java new file mode 100644 index 0000000000000..5d962ea58189f --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DefaultAction.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for DefaultAction. */ +public final class DefaultAction extends ExpandableStringEnum { + /** Static value Allow for DefaultAction. */ + public static final DefaultAction ALLOW = fromString("Allow"); + + /** Static value Deny for DefaultAction. */ + public static final DefaultAction DENY = fromString("Deny"); + + /** + * Creates or finds a DefaultAction from its string representation. + * + * @param name a name to look for. + * @return the corresponding DefaultAction. + */ + @JsonCreator + public static DefaultAction fromString(String name) { + return fromString(name, DefaultAction.class); + } + + /** @return known DefaultAction values. */ + public static Collection values() { + return values(DefaultAction.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/Destination.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/Destination.java new file mode 100644 index 0000000000000..7a854d7b75081 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/Destination.java @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Destination model. */ +@JsonFlatten +@Fluent +public class Destination { + @JsonIgnore private final ClientLogger logger = new ClientLogger(Destination.class); + + /* + * Name for capture destination + */ + @JsonProperty(value = "name") + private String name; + + /* + * Resource id of the storage account to be used to create the blobs + */ + @JsonProperty(value = "properties.storageAccountResourceId") + private String storageAccountResourceId; + + /* + * Blob container Name + */ + @JsonProperty(value = "properties.blobContainer") + private String blobContainer; + + /* + * Blob naming convention for archive, e.g. + * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. + * Here all the parameters (Namespace,EventHub .. etc) are mandatory + * irrespective of order + */ + @JsonProperty(value = "properties.archiveNameFormat") + private String archiveNameFormat; + + /** + * Get the name property: Name for capture destination. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name for capture destination. + * + * @param name the name value to set. + * @return the Destination object itself. + */ + public Destination withName(String name) { + this.name = name; + return this; + } + + /** + * Get the storageAccountResourceId property: Resource id of the storage account to be used to create the blobs. + * + * @return the storageAccountResourceId value. + */ + public String storageAccountResourceId() { + return this.storageAccountResourceId; + } + + /** + * Set the storageAccountResourceId property: Resource id of the storage account to be used to create the blobs. + * + * @param storageAccountResourceId the storageAccountResourceId value to set. + * @return the Destination object itself. + */ + public Destination withStorageAccountResourceId(String storageAccountResourceId) { + this.storageAccountResourceId = storageAccountResourceId; + return this; + } + + /** + * Get the blobContainer property: Blob container Name. + * + * @return the blobContainer value. + */ + public String blobContainer() { + return this.blobContainer; + } + + /** + * Set the blobContainer property: Blob container Name. + * + * @param blobContainer the blobContainer value to set. + * @return the Destination object itself. + */ + public Destination withBlobContainer(String blobContainer) { + this.blobContainer = blobContainer; + return this; + } + + /** + * Get the archiveNameFormat property: Blob naming convention for archive, e.g. + * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters + * (Namespace,EventHub .. etc) are mandatory irrespective of order. + * + * @return the archiveNameFormat value. + */ + public String archiveNameFormat() { + return this.archiveNameFormat; + } + + /** + * Set the archiveNameFormat property: Blob naming convention for archive, e.g. + * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters + * (Namespace,EventHub .. etc) are mandatory irrespective of order. + * + * @param archiveNameFormat the archiveNameFormat value to set. + * @return the Destination object itself. + */ + public Destination withArchiveNameFormat(String archiveNameFormat) { + this.archiveNameFormat = archiveNameFormat; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DisasterRecoveryPairingAuthorizationKey.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DisasterRecoveryPairingAuthorizationKey.java new file mode 100644 index 0000000000000..37757c5056e1c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DisasterRecoveryPairingAuthorizationKey.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.eventhubs.fluent.inner.AccessKeysInner; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; + +/** + * Type representing access key of {@link DisasterRecoveryPairingAuthorizationRule}. + */ +@Fluent +public interface DisasterRecoveryPairingAuthorizationKey + extends HasInner { + /** + * @return primary access key + */ + String primaryKey(); + + /** + * @return secondary access key + */ + String secondaryKey(); + + /** + * @return primary connection string + */ + String primaryConnectionString(); + + /** + * @return secondary connection string + */ + String secondaryConnectionString(); + + /** + * @return alias primary connection string + */ + String aliasPrimaryConnectionString(); + + /** + * @return alias secondary connection string + */ + String aliasSecondaryConnectionString(); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DisasterRecoveryPairingAuthorizationRule.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DisasterRecoveryPairingAuthorizationRule.java new file mode 100644 index 0000000000000..7d287437b2f02 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DisasterRecoveryPairingAuthorizationRule.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.AuthorizationRuleInner; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasName; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import reactor.core.publisher.Mono; + +import java.util.List; + +/** + * Type representing authorization rule of {@link EventHubDisasterRecoveryPairing}. + */ +@Fluent +public interface DisasterRecoveryPairingAuthorizationRule + extends HasName, HasInner, HasManager { + /** + * @return rights associated with the rule + */ + List rights(); + + /** + * @return an observable that emits a single entity containing access keys (primary and secondary) + */ + Mono getKeysAsync(); + /** + * @return entity containing access keys (primary and secondary) + */ + DisasterRecoveryPairingAuthorizationKey getKeys(); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DisasterRecoveryPairingAuthorizationRules.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DisasterRecoveryPairingAuthorizationRules.java new file mode 100644 index 0000000000000..faa733a81c2a3 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/DisasterRecoveryPairingAuthorizationRules.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.fluent.DisasterRecoveryConfigsClient; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import reactor.core.publisher.Mono; + +/** + * Entry point to manage disaster recovery pairing authorization rules. + */ +@Fluent +public interface DisasterRecoveryPairingAuthorizationRules extends + SupportsGettingById, + HasInner, + HasManager { + /** + * Lists the authorization rules that can be used to access the disaster recovery pairing. + * + * @param resourceGroupName resource group name + * @param namespaceName primary namespace name + * @param pairingName pairing name + * @return list of authorization rules + */ + PagedIterable listByDisasterRecoveryPairing( + String resourceGroupName, String namespaceName, String pairingName); + + /** + * Lists the authorization rules that can be used to access the disaster recovery pairing. + * + * @param resourceGroupName resource group name + * @param namespaceName primary namespace name + * @param pairingName pairing name + * @return observable that emits the authorization rules + */ + PagedFlux listByDisasterRecoveryPairingAsync( + String resourceGroupName, String namespaceName, String pairingName); + + /** + * Gets an authorization rule that can be used to access the disaster recovery pairing. + * + * @param resourceGroupName resource group name + * @param namespaceName primary namespace name + * @param pairingName pairing name + * @param name rule name + * @return observable that emits the authorization rule + */ + Mono getByNameAsync( + String resourceGroupName, String namespaceName, String pairingName, String name); + + /** + * Gets an authorization rule that can be used to access the disaster recovery pairing. + * + * @param resourceGroupName resource group name + * @param namespaceName primary namespace name + * @param pairingName pairing name + * @param name rule name + * @return the authorization rule + */ + DisasterRecoveryPairingAuthorizationRule getByName( + String resourceGroupName, String namespaceName, String pairingName, String name); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EncodingCaptureDescription.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EncodingCaptureDescription.java new file mode 100644 index 0000000000000..11764288e7607 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EncodingCaptureDescription.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for EncodingCaptureDescription. */ +public enum EncodingCaptureDescription { + /** Enum value Avro. */ + AVRO("Avro"), + + /** Enum value AvroDeflate. */ + AVRO_DEFLATE("AvroDeflate"); + + /** The actual serialized value for a EncodingCaptureDescription instance. */ + private final String value; + + EncodingCaptureDescription(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a EncodingCaptureDescription instance. + * + * @param value the serialized value to parse. + * @return the parsed EncodingCaptureDescription object, or null if unable to parse. + */ + @JsonCreator + public static EncodingCaptureDescription fromString(String value) { + EncodingCaptureDescription[] items = EncodingCaptureDescription.values(); + for (EncodingCaptureDescription item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EntityStatus.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EntityStatus.java new file mode 100644 index 0000000000000..79dcc844a38e5 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EntityStatus.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for EntityStatus. */ +public enum EntityStatus { + /** Enum value Active. */ + ACTIVE("Active"), + + /** Enum value Disabled. */ + DISABLED("Disabled"), + + /** Enum value Restoring. */ + RESTORING("Restoring"), + + /** Enum value SendDisabled. */ + SEND_DISABLED("SendDisabled"), + + /** Enum value ReceiveDisabled. */ + RECEIVE_DISABLED("ReceiveDisabled"), + + /** Enum value Creating. */ + CREATING("Creating"), + + /** Enum value Deleting. */ + DELETING("Deleting"), + + /** Enum value Renaming. */ + RENAMING("Renaming"), + + /** Enum value Unknown. */ + UNKNOWN("Unknown"); + + /** The actual serialized value for a EntityStatus instance. */ + private final String value; + + EntityStatus(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a EntityStatus instance. + * + * @param value the serialized value to parse. + * @return the parsed EntityStatus object, or null if unable to parse. + */ + @JsonCreator + public static EntityStatus fromString(String value) { + EntityStatus[] items = EntityStatus.values(); + for (EntityStatus item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHub.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHub.java new file mode 100644 index 0000000000000..d2017d3f269d2 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHub.java @@ -0,0 +1,548 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.EventhubInner; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.model.Appliable; +import com.azure.resourcemanager.resources.fluentcore.model.Creatable; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import com.azure.resourcemanager.resources.fluentcore.model.Refreshable; +import com.azure.resourcemanager.resources.fluentcore.model.Updatable; +import com.azure.resourcemanager.storage.models.StorageAccount; + +import java.util.Set; + +/** + * Type representing an Azure EventHub. + */ +@Fluent +public interface EventHub extends + NestedResource, + HasManager, + Refreshable, + Updatable, + HasInner { + /** + * @return the resource group of the parent namespace + */ + String namespaceResourceGroupName(); + + /** + * @return name of the parent namespace + */ + String namespaceName(); + + /** + * @return true if the data capture enabled for the event hub events, false otherwise + */ + boolean isDataCaptureEnabled(); + + /** + * @return configured window in seconds to be used for event capturing when capturing is enabled + */ + int dataCaptureWindowSizeInSeconds(); + + /** + * @return configured window in MB to be used for event capturing when capturing is enabled + */ + int dataCaptureWindowSizeInMB(); + + /** + * @return whether to skip empty archives when capturing is enabled + */ + boolean dataCaptureSkipEmptyArchives(); + + /** + * @return the format file name that stores captured data when capturing is enabled + */ + String dataCaptureFileNameFormat(); + + /** + * @return description of the destination where captured data will be stored + */ + Destination captureDestination(); + + /** + * @return the partition identifiers + */ + Set partitionIds(); + + /** + * @return retention period of events in days + */ + int messageRetentionPeriodInDays(); + + /** + * @return consumer group in the event hub + */ + PagedFlux listConsumerGroupsAsync(); + /** + * @return authorization rules enabled for the event hub + */ + PagedFlux listAuthorizationRulesAsync(); + /** + * @return consumer group in the event hub + */ + PagedIterable listConsumerGroups(); + /** + * @return authorization rules enabled for the event hub + */ + PagedIterable listAuthorizationRules(); + + /** + * The entirety of the event hub definition. + */ + interface Definition extends + DefinitionStages.Blank, + DefinitionStages.WithNamespace, + DefinitionStages.WithCaptureProviderOrCreate, + DefinitionStages.WithCaptureEnabledDisabled, + DefinitionStages.WithCaptureOptionalSettingsOrCreate, + DefinitionStages.WithCreate { + } + + /** + * Grouping of event hub definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a event hub definition. + */ + interface Blank extends WithNamespace { + } + + /** + * The stage of the event hub definition allowing to specify the name space in which + * event hub needs to be created. + */ + interface WithNamespace { + /** + * Specifies the new namespace in which event hub needs to be created. + * + * @param namespaceCreatable namespace creatable definition + * @return next stage of the event hub definition + */ + WithCaptureProviderOrCreate withNewNamespace(Creatable namespaceCreatable); + + /** + * Specifies an existing event hub namespace in which event hub needs to be created. + * + * @param namespace event hub namespace + * @return next stage of the event hub definition + */ + WithCaptureProviderOrCreate withExistingNamespace(EventHubNamespace namespace); + + /** + * Specifies an existing event hub namespace in which event hub needs to be created. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub namespace + * @return next stage of the event hub definition + */ + WithCaptureProviderOrCreate withExistingNamespace(String resourceGroupName, String namespaceName); + + /** + * Specifies id of an existing event hub namespace in which event hub needs to be created. + * + * @param namespaceId event hub namespace resource id + * @return next stage of the event hub definition + */ + WithCaptureProviderOrCreate withExistingNamespaceId(String namespaceId); + } + + /** + * The stage of the event hub definition allowing to specify provider to store captured data + * when data capturing is enabled. + */ + interface WithCaptureProviderOrCreate extends WithCreate { + /** + * Specifies a new storage account to store the captured data when data capturing is enabled. + * + * @param storageAccountCreatable creatable storage account definition + * @param containerName container to store the files containing captured data + * @return next stage of the event hub definition + */ + WithCaptureEnabledDisabled withNewStorageAccountForCapturedData( + Creatable storageAccountCreatable, String containerName); + + /** + * Specifies an existing storage account to store the captured data when data capturing is enabled. + * + * @param storageAccount storage account + * @param containerName an existing or new container to store the files containing captured data + * @return next stage of the event hub definition + */ + WithCaptureEnabledDisabled withExistingStorageAccountForCapturedData( + StorageAccount storageAccount, String containerName); + + /** + * Specifies an existing storage account to store the captured data when data capturing is enabled. + * + * @param storageAccountId storage account arm id + * @param containerName an existing or new container to store the files containing captured data + * @return next stage of the event hub definition + */ + WithCaptureEnabledDisabled withExistingStorageAccountForCapturedData( + String storageAccountId, String containerName); + } + + /** + * The stage of the event hub definition allowing to enable or disable data capturing. + */ + interface WithCaptureEnabledDisabled { + /** + * Specifies that data capture should be enabled for the event hub. + * + * @return next stage of the event hub definition + */ + WithCaptureOptionalSettingsOrCreate withDataCaptureEnabled(); + + /** + * Specifies that data capture should be disabled for the event hub. + * + * @return next stage of the event hub definition + */ + WithCaptureOptionalSettingsOrCreate withDataCaptureDisabled(); + } + + /** + * The stage of the event hub definition allowing to configure data capturing. + */ + interface WithCaptureOptionalSettingsOrCreate extends WithCreate { + /** + * Specifies the capture window size in seconds. + * + * @param sizeInSeconds window size in seconds + * @return next stage of the event hub definition + */ + WithCaptureOptionalSettingsOrCreate withDataCaptureWindowSizeInSeconds(int sizeInSeconds); + + /** + * Set a value that indicates whether to Skip Empty Archives. + * + * @param skipEmptyArchives the skipEmptyArchives value to set + * @return next stage of the event hub definition + */ + WithCaptureOptionalSettingsOrCreate withDataCaptureSkipEmptyArchives(Boolean skipEmptyArchives); + + /** + * Specifies the capture window size in MB. + * + * @param sizeInMB window size in MB + * @return next stage of the event hub definition + */ + WithCaptureOptionalSettingsOrCreate withDataCaptureWindowSizeInMB(int sizeInMB); + + /** + * Specifies file name format containing captured data. + * + * @param format the file name format + * @return next stage of the event hub definition + */ + WithCaptureOptionalSettingsOrCreate withDataCaptureFileNameFormat(String format); + } + + /** + * The stage of the event hub definition allowing to add authorization rule for accessing + * the event hub. + */ + interface WithAuthorizationRule { + /** + * Specifies that a new authorization rule should be created that has send access to the event hub. + * + * @param ruleName rule name + * @return next stage of the event hub definition + */ + WithCreate withNewSendRule(String ruleName); + + /** + * Specifies that a new authorization rule should be created that has listen access to the event hub. + * + * @param ruleName rule name + * @return next stage of the event hub definition + */ + WithCreate withNewListenRule(String ruleName); + + /** + * Specifies that a new authorization rule should be created + * that has send and listen access to the event hub. + * + * @param ruleName rule name + * @return next stage of the event hub definition + */ + WithCreate withNewSendAndListenRule(String ruleName); + + /** + * Specifies that a new authorization rule should be created that has manage access to the event hub. + * + * @param ruleName rule name + * @return next stage of the event hub definition + */ + WithCreate withNewManageRule(String ruleName); + } + + /** + * The stage of the event hub definition allowing to add consumer group for the event hub. + */ + interface WithConsumerGroup { + /** + * Specifies that a new consumer group should be created for the event hub. + * + * @param name consumer group name + * @return next stage of the event hub definition + */ + WithCreate withNewConsumerGroup(String name); + + /** + * Specifies that a new consumer group should be created for the event hub. + * + * @param name consumer group name + * @param metadata consumer group metadata + * @return next stage of the event hub definition + */ + WithCreate withNewConsumerGroup(String name, String metadata); + } + + /** + * The stage of the event hub definition allowing to specify partition count for event hub. + */ + interface WithPartitionCount { + /** + * Specifies the number of partitions in the event hub. + * + * @param count partitions count + * @return next stage of the event hub definition + */ + WithCreate withPartitionCount(long count); + } + + /** + * The stage of the event hub definition allowing to specify retention period for event hub events. + */ + interface WithRetentionPeriod { + /** + * Specifies the retention period for events in days. + * + * @param period retention period + * @return next stage of the event hub definition + */ + WithCreate withRetentionPeriodInDays(long period); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends + Creatable, + DefinitionStages.WithAuthorizationRule, + DefinitionStages.WithConsumerGroup, + DefinitionStages.WithPartitionCount, + DefinitionStages.WithRetentionPeriod { + } + } + + /** + * Grouping of event hub update stages. + */ + interface UpdateStages { + /** + * The stage of the event hub definition allowing to add an authorization rule for accessing + * the event hub. + */ + interface WithAuthorizationRule { + /** + * Specifies that a new authorization rule should be created that has send access to the event hub. + * + * @param name rule name + * @return next stage of the event hub update + */ + Update withNewSendRule(String name); + + /** + * Specifies that a new authorization rule should be created that has listen access to the event hub. + * + * @param name rule name + * @return next stage of the event hub update + */ + Update withNewListenRule(String name); + + /** + * Specifies that a new authorization rule should be created + * that has send and listen access to the event hub. + * + * @param name rule name + * @return next stage of the event hub update + */ + Update withNewSendAndListenRule(String name); + + /** + * Specifies that a new authorization rule should be created that has manage access to the event hub. + * + * @param name rule name + * @return next stage of the event hub update + */ + Update withNewManageRule(String name); + + /** + * Specifies that an authorization rule associated with the event hub should be deleted. + * + * @param ruleName rule name + * @return next stage of the event hub update + */ + Update withoutAuthorizationRule(String ruleName); + } + + /** + * The stage of the event hub update allowing to add consumer group for event hub. + */ + interface WithConsumerGroup { + /** + * Specifies that a new consumer group should be created for the event hub. + * + * @param name group name + * @return next stage of the event hub update + */ + Update withNewConsumerGroup(String name); + + /** + * Specifies that a new consumer group should be created for the event hub. + * + * @param name group name + * @param metadata group metadata + * @return next stage of the event hub update + */ + Update withNewConsumerGroup(String name, String metadata); + + /** + * Specifies that a consumer group associated with the event hub should be deleted. + * + * @param name group name + * @return next stage of the event hub update + */ + Update withoutConsumerGroup(String name); + } + + /** + * The stage of the event hub update allowing to configure data capture. + */ + interface WithCapture { + /** + * Specifies a new storage account to store the captured data when data capturing is enabled. + * + * @param storageAccountCreatable creatable storage account definition + * @param containerName container to store the files containing captured data + * @return next stage of the event hub update + */ + Update withNewStorageAccountForCapturedData( + Creatable storageAccountCreatable, String containerName); + + /** + * Specifies an existing storage account to store the captured data when data capturing is enabled. + * + * @param storageAccount storage account + * @param containerName an existing or new container to store the files containing captured data + * @return next stage of the event hub update + */ + Update withExistingStorageAccountForCapturedData(StorageAccount storageAccount, String containerName); + + /** + * Specifies an existing storage account to store the captured data when data capturing is enabled. + * + * @param storageAccountId storage account arm id + * @param containerName an existing or new container to store the files containing captured data + * @return next stage of the event hub update + */ + Update withExistingStorageAccountForCapturedData(String storageAccountId, String containerName); + + /** + * Specifies that data capture should be enabled for the event hub. + * + * @return next stage of the event hub update + */ + Update withDataCaptureEnabled(); + + /** + * Specifies that data capture should be disabled for the event hub. + * + * @return next stage of the event hub update + */ + Update withDataCaptureDisabled(); + + /** + * Specifies the capture window size in seconds. + * + * @param sizeInSeconds window size in seconds + * @return next stage of the event hub update + */ + Update withDataCaptureWindowSizeInSeconds(int sizeInSeconds); + + /** + * Specified the capture whether to Skip Empty Archives. + * + * @param skipEmptyArchives the skipEmptyArchives value to set + * @return next stage of the event hub update + */ + Update withDataCaptureSkipEmptyArchives(Boolean skipEmptyArchives); + + /** + * Specifies the capture window size in MB. + * + * @param sizeInMB window size in MB + * @return next stage of the event hub update + */ + Update withDataCaptureWindowSizeInMB(int sizeInMB); + /** + * Specifies the format of the file containing captured data. + * + * @param format the file name format + * @return next stage of the event hub update + */ + Update withDataCaptureFileNameFormat(String format); + } + + /** + * The stage of the event hub update allowing to specify partition count for event hub. + */ + interface WithPartitionCount { + /** + * Specifies the number of partitions in the event hub. + * + * @param count partitions count + * @return next stage of the event hub update + */ + Update withPartitionCount(long count); + } + + /** + * The stage of the event hub definition allowing to specify retention period for event hub events. + */ + interface WithRetentionPeriod { + /** + * Specifies the retention period for events in days. + * + * @param period retention period + * @return next stage of the event hub update + */ + Update withRetentionPeriodInDays(long period); + } + } + + /** + * The template for a event hub update operation, containing all the settings that can be modified. + */ + interface Update extends + Appliable, + UpdateStages.WithConsumerGroup, + UpdateStages.WithAuthorizationRule, + UpdateStages.WithCapture, + UpdateStages.WithPartitionCount, + UpdateStages.WithRetentionPeriod { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubAuthorizationKey.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubAuthorizationKey.java new file mode 100644 index 0000000000000..2f80d57916014 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubAuthorizationKey.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.eventhubs.fluent.inner.AccessKeysInner; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; + +/** + * Type representing access key of {@link EventHubNamespaceAuthorizationRule}. + */ +@Fluent +public interface EventHubAuthorizationKey + extends HasInner { + /** + * @return primary access key + */ + String primaryKey(); + + /** + * @return secondary access key + */ + String secondaryKey(); + + /** + * @return primary connection string + */ + String primaryConnectionString(); + + /** + * @return secondary connection string + */ + String secondaryConnectionString(); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubAuthorizationRule.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubAuthorizationRule.java new file mode 100644 index 0000000000000..b53c2c0f6b56d --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubAuthorizationRule.java @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.resources.fluentcore.model.Appliable; +import com.azure.resourcemanager.resources.fluentcore.model.Creatable; + +/** + * Type representing authorization rule of an event hub. + */ +@Fluent +public interface EventHubAuthorizationRule + extends + AuthorizationRule { + /** + * @return the resource group of the namespace where parent event hub resides + */ + String namespaceResourceGroupName(); + /** + * @return the namespace name of parent event hub + */ + String namespaceName(); + /** + * @return the name of the parent event hub + */ + String eventHubName(); + + /** + * Grouping of event hub authorization rule definition stages. + */ + interface DefinitionStages { + /** + * The first stage of event hub authorization rule definition. + */ + interface Blank extends WithEventHub { + } + + /** + * Stage of the authorization rule definition allowing to specify the event for which rule needs to be created. + */ + interface WithEventHub { + /** + * Specifies that authorization rule needs to be created for the given event hub. + * + * @param eventHubResourceId the resource id of the event Hub + * @return the next stage of the definition + */ + WithAccessPolicy withExistingEventHubId(String eventHubResourceId); + /** + * Specifies that authorization rule needs to be created for the given event hub. + * + * @param resourceGroupName event hub namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @return the next stage of the definition + */ + WithAccessPolicy withExistingEventHub(String resourceGroupName, String namespaceName, String eventHubName); + /** + * Specifies that authorization rule needs to be created for the given event hub. + * + * @param eventHub the event hub + * @return the next stage of the definition + */ + WithAccessPolicy withExistingEventHub(EventHub eventHub); + } + + /** + * Stage of the authorization rule definition allowing to specify access policy. + */ + interface WithAccessPolicy extends AuthorizationRule + .DefinitionStages + .WithListenOrSendOrManage { + + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + + /** + * The entirety of the event hub namespace authorization rule definition. + */ + interface Definition extends + DefinitionStages.Blank, + DefinitionStages.WithEventHub, + DefinitionStages.WithAccessPolicy, + DefinitionStages.WithCreate { + } + + /** + * The entirety of the event hub authorization rule update. + */ + interface Update extends + Appliable, + UpdateStages.WithListenOrSendOrManage { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubAuthorizationRules.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubAuthorizationRules.java new file mode 100644 index 0000000000000..367d708b6efce --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubAuthorizationRules.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.EventHubsClient; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import reactor.core.publisher.Mono; + +/** + * Entry point to manage event hub authorization rules. + */ +@Fluent +public interface EventHubAuthorizationRules extends + SupportsCreating, + SupportsDeletingById, + SupportsGettingById, + HasInner, + HasManager { + /** + * Lists the authorization rules of an event hub in a namespace under a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @return list of authorization rules + */ + PagedIterable listByEventHub( + String resourceGroupName, String namespaceName, String eventHubName); + /** + * Lists the authorization rules of an event hub in a namespace under a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @return observable that emits the authorization rules + */ + PagedFlux listByEventHubAsync( + String resourceGroupName, String namespaceName, String eventHubName); + /** + * Gets an authorization rule of an event hub in a namespace in a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @param name authorization rule name + * @return observable that emits the authorization rule + */ + Mono getByNameAsync( + String resourceGroupName, String namespaceName, String eventHubName, String name); + /** + * Gets an authorization rule of an event hub in a namespace under a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @param name authorization rule name + * @return the authorization rule + */ + EventHubAuthorizationRule getByName( + String resourceGroupName, String namespaceName, String eventHubName, String name); + + /** + * Deletes an authorization rule of an event hub in a namespace under a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @param name authorization rule name + * @return the completable representing the task + */ + Mono deleteByNameAsync( + String resourceGroupName, String namespaceName, String eventHubName, String name); + + /** + * Deletes an authorization rule of an event hub in a namespace under a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @param name authorization rule name + */ + void deleteByName(String resourceGroupName, String namespaceName, String eventHubName, String name); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubConsumerGroup.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubConsumerGroup.java new file mode 100644 index 0000000000000..f4de8cf4bc5b7 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubConsumerGroup.java @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.inner.ConsumerGroupInner; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.model.Appliable; +import com.azure.resourcemanager.resources.fluentcore.model.Creatable; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import com.azure.resourcemanager.resources.fluentcore.model.Refreshable; +import com.azure.resourcemanager.resources.fluentcore.model.Updatable; + +import java.time.OffsetDateTime; + +/** + * Type representing consumer group of an event hub. + */ +@Fluent +public interface EventHubConsumerGroup extends + NestedResource, + HasManager, + Refreshable, + HasInner, + Updatable { + /** + * @return the resource group of the namespace where parent event hub resides + */ + String namespaceResourceGroupName(); + + /** + * @return the namespace name of parent event hub + */ + String namespaceName(); + + /** + * @return the name of the parent event hub + */ + String eventHubName(); + + /** + * @return creation time of the consumer group + */ + OffsetDateTime createdAt(); + + /** + * @return last modified time of the consumer group + */ + OffsetDateTime updatedAt(); + + /** + * @return user metadata associated with the consumer group + */ + String userMetadata(); + + /** + * The entirety of the consumer group definition. + */ + interface Definition extends + DefinitionStages.Blank, + DefinitionStages.WithEventHub, + DefinitionStages.WithUserMetadata, + DefinitionStages.WithCreate { + } + + /** + * Grouping of consumer group definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a event hub definition. + */ + interface Blank extends WithEventHub { + } + + /** + * The stage of the consumer group definition allowing to specify the event + * hub to be associated with it. + */ + interface WithEventHub { + /** + * Specifies the event hub for which consumer group needs to be created. + * + * @param eventHub event hub + * @return next stage of the consumer group definition + */ + WithCreate withExistingEventHub(EventHub eventHub); + + /** + * Specifies the event hub for which consumer group needs to be created. + * + * @param eventHubId ARM resource id of event hub + * @return next stage of the consumer group definition + */ + WithCreate withExistingEventHubId(String eventHubId); + + /** + * Specifies the event hub for which consumer group needs to be created. + * + * @param resourceGroupName event hub namespace resource group name + * @param namespaceName event hub namespace name + * @param eventHubName event hub name + * @return next stage of the consumer group definition + */ + WithCreate withExistingEventHub(String resourceGroupName, String namespaceName, String eventHubName); + } + + /** + * The stage of the consumer group definition allowing to specify user metadata. + */ + interface WithUserMetadata { + /** + * Specifies user metadata. + * + * @param metadata the metadata + * @return next stage of the consumer group definition + */ + WithCreate withUserMetadata(String metadata); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends + Creatable, + DefinitionStages.WithUserMetadata { + } + } + + /** + * The template for a consumer group update operation, containing all the settings + * that can be modified. + */ + interface Update extends + Appliable, + UpdateStages.WithUserMetadata { + } + + /** + * Grouping of consumer group update stages. + */ + interface UpdateStages { + /** + * The stage of the consumer group update allowing to specify user metadata. + */ + interface WithUserMetadata { + /** + * Specifies user metadata. + * + * @param metadata the metadata + * @return next stage of the consumer group update + */ + Update withUserMetadata(String metadata); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubConsumerGroups.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubConsumerGroups.java new file mode 100644 index 0000000000000..06d8bf59c5362 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubConsumerGroups.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.ConsumerGroupsClient; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import reactor.core.publisher.Mono; + +/** + * Entry point to manage event hub consumer groups. + */ +@Fluent +public interface EventHubConsumerGroups extends + SupportsCreating, + SupportsDeletingById, + SupportsGettingById, + HasInner, + HasManager { + /** + * Lists the consumer groups of an event hub in a namespace under a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @return list of consumer groups + */ + PagedIterable listByEventHub( + String resourceGroupName, String namespaceName, String eventHubName); + + /** + * Lists the consumer groups of an event hub in a namespace under a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @return observable that emits the consumer groups + */ + PagedFlux listByEventHubAsync( + String resourceGroupName, String namespaceName, String eventHubName); + + /** + * Gets a consumer group of an event hub in a namespace in a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @param name consumer group name + * @return observable that emits the consumer group + */ + Mono getByNameAsync( + String resourceGroupName, String namespaceName, String eventHubName, String name); + + /** + * Gets a consumer group of an event hub in a namespace under a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @param name consumer group name + * @return the consumer group + */ + EventHubConsumerGroup getByName( + String resourceGroupName, String namespaceName, String eventHubName, String name); + + /** + * Deletes a consumer group of an event hub in a namespace under a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @param name consumer group name + * @return the completable representing the task + */ + Mono deleteByNameAsync( + String resourceGroupName, String namespaceName, String eventHubName, String name); + + /** + * Deletes a consumer group of an event hub in a namespace under a resource group. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName event hub parent namespace name + * @param eventHubName event hub name + * @param name consumer group name + */ + void deleteByName( + String resourceGroupName, String namespaceName, String eventHubName, String name); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubDisasterRecoveryPairing.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubDisasterRecoveryPairing.java new file mode 100644 index 0000000000000..e83cad48ebc05 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubDisasterRecoveryPairing.java @@ -0,0 +1,226 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.fluent.inner.ArmDisasterRecoveryInner; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.model.Appliable; +import com.azure.resourcemanager.resources.fluentcore.model.Creatable; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import com.azure.resourcemanager.resources.fluentcore.model.Refreshable; +import com.azure.resourcemanager.resources.fluentcore.model.Updatable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import reactor.core.publisher.Mono; + +/** + * Type representing disaster recovery pairing for event hub namespaces. + */ +@Fluent +public interface EventHubDisasterRecoveryPairing extends + NestedResource, + HasManager, + Refreshable, + Updatable, + HasInner { + /** + * @return primary event hub namespace resource group + */ + String primaryNamespaceResourceGroupName(); + + /** + * @return primary event hub namespace in the pairing + */ + String primaryNamespaceName(); + + /** + * @return secondary event hub namespace in the pairing + */ + String secondaryNamespaceId(); + + /** + * @return the namespace role + */ + RoleDisasterRecovery namespaceRole(); + + /** + * @return provisioning state of the pairing + */ + ProvisioningStateDR provisioningState(); + + /** + * Break the pairing between a primary and secondary namespace. + * + * @return completable representing the pairing break action + */ + Mono breakPairingAsync(); + + /** + * Break the pairing between a primary and secondary namespace. + */ + void breakPairing(); + + /** + * Perform fail over so that the secondary namespace becomes the primary. + * + * @return completable representing the fail-over action + */ + Mono failOverAsync(); + + /** + * Perform fail over so that the secondary namespace becomes the primary. + */ + void failOver(); + + /** + * @return the authorization rules for the event hub disaster recovery pairing + */ + PagedFlux listAuthorizationRulesAsync(); + + /** + * @return the authorization rules for the event hub disaster recovery pairing + */ + PagedIterable listAuthorizationRules(); + + /** + * The entirety of the event hub disaster recovery pairing definition. + */ + interface Definition extends + DefinitionStages.Blank, + DefinitionStages.WithPrimaryNamespace, + DefinitionStages.WithSecondaryNamespace, + DefinitionStages.WithCreate { + } + + /** + * Grouping of disaster recovery pairing definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a disaster recovery pairing definition. + */ + interface Blank extends WithPrimaryNamespace { + } + + /** + * The stage of the disaster recovery pairing definition allowing to specify primary event hub namespace. + */ + interface WithPrimaryNamespace { + /** + * Specifies that the given namespace should be used as primary namespace in disaster recovery pairing. + * + * @param namespaceCreatable creatable definition for the primary namespace + * @return next stage of the disaster recovery pairing definition + */ + WithSecondaryNamespace withNewPrimaryNamespace(Creatable namespaceCreatable); + + /** + * Specifies that the given namespace should be used as primary namespace in disaster recovery pairing. + * + * @param namespace the primary event hub namespace + * @return next stage of the disaster recovery pairing definition + */ + WithSecondaryNamespace withExistingPrimaryNamespace(EventHubNamespace namespace); + + /** + * Specifies that the given namespace should be used as primary namespace in disaster recovery pairing. + * + * @param resourceGroupName resource group name of primary namespace + * @param namespaceName the primary namespace + * @return next stage of the disaster recovery pairing definition + */ + WithSecondaryNamespace withExistingPrimaryNamespace(String resourceGroupName, String namespaceName); + + /** + * Specifies that the given namespace should be used as primary namespace in disaster recovery pairing. + * + * @param namespaceId the primary namespace + * @return next stage of the disaster recovery pairing definition + */ + WithSecondaryNamespace withExistingPrimaryNamespaceId(String namespaceId); + } + + /** + * The stage of the disaster recovery pairing definition allowing to specify the secondary event hub namespace. + */ + interface WithSecondaryNamespace { + /** + * Specifies that the given namespace should be used as secondary namespace in disaster recovery pairing. + * + * @param namespaceCreatable creatable definition for the primary namespace + * @return next stage of the event hub definition + */ + WithCreate withNewSecondaryNamespace(Creatable namespaceCreatable); + + /** + * Specifies that the given namespace should be used as secondary namespace in disaster recovery pairing. + * + * @param namespace the secondary namespace + * @return next stage of the disaster recovery pairing definition + */ + WithCreate withExistingSecondaryNamespace(EventHubNamespace namespace); + + /** + * Specifies that the given namespace should be used as secondary namespace in disaster recovery pairing. + * + * @param namespaceId the secondary namespace + * @return next stage of the disaster recovery pairing definition + */ + WithCreate withExistingSecondaryNamespaceId(String namespaceId); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends + Creatable { + } + } + + /** + * Grouping of disaster recovery pairing update stages. + */ + interface UpdateStages { + /** + * The stage of the disaster recovery pairing definition allowing to specify primary event hub namespace. + */ + interface WithSecondaryNamespace { + /** + * Specifies that the given namespace should be used as secondary namespace in disaster recovery pairing. + * + * @param namespaceCreatable creatable definition for the secondary namespace + * @return next stage of the disaster recovery pairing update + */ + Update withNewSecondaryNamespace(Creatable namespaceCreatable); + + /** + * Specifies that the given namespace should be used as secondary namespace in disaster recovery pairing. + * + * @param namespace the secondary event hub namespace + * @return next stage of the disaster recovery pairing update + */ + Update withExistingSecondaryNamespace(EventHubNamespace namespace); + + /** + * Specifies that the given namespace should be used as secondary namespace in disaster recovery pairing. + * + * @param namespaceId the secondary namespace + * @return next stage of the disaster recovery pairing update + */ + Update withExistingSecondaryNamespaceId(String namespaceId); + } + } + + /** + * The template for a disaster recovery pairing update operation, containing all the settings + * that can be modified. + */ + interface Update extends + UpdateStages.WithSecondaryNamespace, + Appliable { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubDisasterRecoveryPairings.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubDisasterRecoveryPairings.java new file mode 100644 index 0000000000000..9ab2149b9cedc --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubDisasterRecoveryPairings.java @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.fluent.DisasterRecoveryConfigsClient; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import reactor.core.publisher.Mono; + +/** + * Entry point to manage disaster recovery pairing of event hub namespaces. + */ +@Fluent +public interface EventHubDisasterRecoveryPairings extends + SupportsCreating, + SupportsDeletingById, + SupportsGettingById, + HasInner, + HasManager { + /** + * @return entry point to manage authorization rules of a disaster recovery pairing. + */ + DisasterRecoveryPairingAuthorizationRules authorizationRules(); + /** + * Lists the disaster recovery pairings of a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @return list of disaster recovery pairings + */ + PagedIterable listByNamespace(String resourceGroupName, String namespaceName); + /** + * Lists the disaster recovery pairings of a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @return observable that emits disaster recovery pairings + */ + PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName); + /** + * Gets a disaster recovery pairings of a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name disaster recovery pairing name + * @return observable that emits disaster recovery pairings + */ + Mono getByNameAsync(String resourceGroupName, String namespaceName, String name); + + /** + * Gets a disaster recovery pairings of a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name disaster recovery pairing name + * @return the disaster recovery pairing + */ + EventHubDisasterRecoveryPairing getByName(String resourceGroupName, String namespaceName, String name); + + /** + * Deletes a disaster recovery pairings of a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name disaster recovery pairing name + * @return the completable representing the task + */ + Mono deleteByNameAsync(String resourceGroupName, String namespaceName, String name); + + /** + * Deletes a disaster recovery pairings of a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name disaster recovery pairing + */ + void deleteByName(String resourceGroupName, String namespaceName, String name); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespace.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespace.java new file mode 100644 index 0000000000000..0e0365c7e3512 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespace.java @@ -0,0 +1,376 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.fluent.inner.EHNamespaceInner; +import com.azure.resourcemanager.resources.fluentcore.arm.models.GroupableResource; +import com.azure.resourcemanager.resources.fluentcore.arm.models.Resource; +import com.azure.resourcemanager.resources.fluentcore.model.Appliable; +import com.azure.resourcemanager.resources.fluentcore.model.Creatable; +import com.azure.resourcemanager.resources.fluentcore.model.Refreshable; +import com.azure.resourcemanager.resources.fluentcore.model.Updatable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; + +import java.time.OffsetDateTime; + +/** + * Type representing an Azure EventHub namespace. + */ +@Fluent +public interface EventHubNamespace extends + GroupableResource, + Refreshable, + Updatable { + /** + * @return namespace sku + */ + EventHubNamespaceSkuType sku(); + + /** + * @return resource id of the Azure Insights metrics associated with the namespace + */ + String azureInsightMetricId(); + + /** + * @return the service bus endpoint associated with the namespace + */ + String serviceBusEndpoint(); + + /** + * @return namespace created time + */ + OffsetDateTime createdAt(); + + /** + * @return namespace last modified time + */ + OffsetDateTime updatedAt(); + + /** + * @return provisioning state of the namespace + */ + String provisioningState(); + + /** + * @return true if auto-scale is enabled for the namespace, false otherwise + */ + boolean isAutoScaleEnabled(); + + /** + * @return current throughput units set for the namespace + */ + int currentThroughputUnits(); + + /** + * @return maximum throughput unit that auto-scalar is allowed to set + */ + int throughputUnitsUpperLimit(); + + /** + * @return the event hubs in the namespace + */ + PagedFlux listEventHubsAsync(); + + /** + * @return the authorization rules for the event hub namespace + */ + PagedFlux listAuthorizationRulesAsync(); + + /** + * @return list of event hubs in the namespace + */ + PagedIterable listEventHubs(); + + /** + * @return list of authorization rules for the event hub namespace + */ + PagedIterable listAuthorizationRules(); + + /** + * The entirety of the event hub namespace definition. + */ + interface Definition extends + EventHubNamespace.DefinitionStages.Blank, + EventHubNamespace.DefinitionStages.WithGroup, + EventHubNamespace.DefinitionStages.WithCreate { + } + + /** + * Grouping of event hub namespace definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a event hub namespace definition. + */ + interface Blank extends GroupableResource.DefinitionWithRegion { + } + + /** + * The stage of the event hub namespace definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResource.DefinitionStages.WithGroup { + } + + /** + * The stage of the event hub namespace definition allowing to specify the sku. + */ + interface WithSku { + /** + * Specifies the namespace sku. + * + * @param namespaceSku the sku + * @return next stage of the event hub namespace definition + */ + WithCreate withSku(EventHubNamespaceSkuType namespaceSku); + } + + /** + * The stage of the event hub namespace definition allowing to add new event hub in the namespace. + */ + interface WithEventHub { + /** + * Specifies that a new event hub should be created in the namespace. + * + * @param eventHubName event hub name + * @return next stage of the event hub namespace definition + */ + WithCreate withNewEventHub(String eventHubName); + + /** + * Specifies that a new event hub should be created in the namespace. + * + * @param eventHubName event hub name + * @param partitionCount the number of partitions in the event hub + * @return next stage of the event hub namespace definition + */ + WithCreate withNewEventHub(String eventHubName, int partitionCount); + + /** + * Specifies that a new event hub should be created in the namespace. + * + * @param eventHubName event hub name + * @param partitionCount the number of partitions in the event hub + * @param retentionPeriodInDays the retention period for events in days + * @return next stage of the event hub namespace definition + */ + WithCreate withNewEventHub(String eventHubName, int partitionCount, int retentionPeriodInDays); + } + + /** + * The stage of the event hub namespace definition allowing to add authorization rule for accessing + * the event hub. + */ + interface WithAuthorizationRule { + /** + * Specifies that a new authorization rule should be created + * that has send access to the event hub namespace. + * + * @param ruleName rule name + * @return next stage of the event hub namespace definition + */ + WithCreate withNewSendRule(String ruleName); + + /** + * Specifies that a new authorization rule should be created + * that has listen access to the event hub namespace. + * + * @param ruleName rule name + * @return next stage of the event hub namespace definition + */ + WithCreate withNewListenRule(String ruleName); + + /** + * Specifies that a new authorization rule should be created + * that has manage access to the event hub namespace. + * + * @param ruleName rule name + * @return next stage of the event hub namespace definition + */ + WithCreate withNewManageRule(String ruleName); + } + + /** + * The stage of the event hub namespace definition + * allowing to specify the throughput unit settings. + */ + interface WithThroughputConfiguration { + /** + * Enables the scaling up the throughput units automatically based on load. + * + * @return next stage of the event hub namespace definition + */ + WithCreate withAutoScaling(); + /** + * Specifies the current throughput units. + * + * @param units throughput units + * @return next stage of the event hub namespace definition + */ + WithCreate withCurrentThroughputUnits(int units); + + /** + * Specifies the maximum throughput units that auto-scalar is allowed to scale-up. + * + * @param units throughput units + * @return next stage of the event hub namespace definition + */ + WithCreate withThroughputUnitsUpperLimit(int units); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends + Creatable, + Resource.DefinitionWithTags, + EventHubNamespace.DefinitionStages.WithSku, + EventHubNamespace.DefinitionStages.WithEventHub, + EventHubNamespace.DefinitionStages.WithAuthorizationRule, + EventHubNamespace.DefinitionStages.WithThroughputConfiguration { + } + } + + /** + * The template for a event hub namespace update operation, containing all the settings that can be modified. + */ + interface Update extends + Appliable, + Resource.UpdateWithTags, + EventHubNamespace.UpdateStages.WithSku, + EventHubNamespace.UpdateStages.WithEventHub, + EventHubNamespace.UpdateStages.WithAuthorizationRule, + EventHubNamespace.UpdateStages.WithThroughputConfiguration { + } + + /** + * Grouping of all the event hub namespace update stages. + */ + interface UpdateStages { + /** + * The stage of the event hub namespace update allowing to change the sku. + */ + interface WithSku { + /** + * Specifies the namespace sku. + * + * @param namespaceSku the sku + * @return next stage of the event hub namespace update + */ + Update withSku(EventHubNamespaceSkuType namespaceSku); + } + + /** + * The stage of the event hub namespace update allowing to add new event hub in the namespace. + */ + interface WithEventHub { + /** + * Specifies that a new event hub should be created in the namespace. + * + * @param eventHubName event hub name + * @return next stage of the event hub namespace update + */ + Update withNewEventHub(String eventHubName); + + /** + * Specifies that a new event hub should be created in the namespace. + * + * @param eventHubName event hub name + * @param partitionCount the number of partitions in the event hub + * @return next stage of the event hub namespace update + */ + Update withNewEventHub(String eventHubName, int partitionCount); + + /** + * Specifies that a new event hub should be created in the namespace. + * + * @param eventHubName event hub name + * @param partitionCount the number of partitions in the event hub + * @param retentionPeriodInDays the retention period for events in days + * @return next stage of the event hub namespace update + */ + Update withNewEventHub(String eventHubName, int partitionCount, int retentionPeriodInDays); + + /** + * Deletes an event hub in the event hub namespace. + * + * @param eventHubName event hub name + * @return next stage of the event hub namespace update + */ + Update withoutEventHub(String eventHubName); + } + + /** + * The stage of the event hub namespace update allowing to add authorization rule for accessing + * the event hub. + */ + interface WithAuthorizationRule { + /** + * Specifies that a new authorization rule should be created + * that has send access to the event hub namespace. + * + * @param ruleName rule name + * @return next stage of the event hub namespace update + */ + Update withNewSendRule(String ruleName); + + /** + * Specifies that a new authorization rule should be created + * that has listen access to the event hub namespace. + * + * @param ruleName rule name + * @return next stage of the event hub namespace update + */ + Update withNewListenRule(String ruleName); + + /** + * Specifies that a new authorization rule should be created + * that has manage access to the event hub namespace. + * + * @param ruleName rule name + * @return next stage of the event hub namespace update + */ + Update withNewManageRule(String ruleName); + + /** + * Deletes an authorization rule associated with the event hub namespace. + * + * @param ruleName rule name + * @return next stage of the event hub namespace update + */ + Update withoutAuthorizationRule(String ruleName); + } + + /** + * The stage of the event hub namespace update allowing to specify the throughput unit settings. + */ + interface WithThroughputConfiguration { + /** + * Enables the scaling up the throughput units automatically based on load. + * + * @return next stage of the event hub namespace update + */ + Update withAutoScaling(); + + /** + * Specifies the current throughput units. + * + * @param units throughput units + * @return next stage of the event hub namespace update + */ + Update withCurrentThroughputUnits(int units); + + /** + * Specifies the maximum throughput units that auto-scalar is allowed to scale-up. + * + * @param units throughput units + * @return next stage of the event hub namespace update + */ + Update withThroughputUnitsUpperLimit(int units); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaceAuthorizationRule.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaceAuthorizationRule.java new file mode 100644 index 0000000000000..4f38078cdc5f3 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaceAuthorizationRule.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.resources.fluentcore.model.Appliable; +import com.azure.resourcemanager.resources.fluentcore.model.Creatable; + +/** + * Type representing authorization rule of an event hub namespace. + */ +@Fluent +public interface EventHubNamespaceAuthorizationRule + extends AuthorizationRule { + /** + * @return the resource group of the namespace where parent event hub resides. + */ + String namespaceResourceGroupName(); + + /** + * @return the name of the event hub namespace. + */ + String namespaceName(); + + /** + * Grouping of Event Hub namespace authorization rule definition stages. + */ + interface DefinitionStages { + /** + * The first stage of event hub namespace authorization rule definition. + */ + interface Blank extends WithNamespace { + } + + /** + * Stage of the authorization rule definition allowing to specify + * the event namespace for which rule needs to be created. + */ + interface WithNamespace { + /** + * Specifies that authorization rule needs to be created for the given event hub namespace. + * + * @param namespaceResourceId the resource id of the event Hub namespace + * @return the next stage of the definition + */ + WithAccessPolicy withExistingNamespaceId(String namespaceResourceId); + + /** + * Specifies that authorization rule needs to be created for the given event hub namespace. + * + * @param resourceGroupName namespace resource group name + * @param namespaceName namespace name + * @return the next stage of the definition + */ + WithAccessPolicy withExistingNamespace(String resourceGroupName, String namespaceName); + + /** + * Specifies that authorization rule needs to be created for the given event hub namespace. + * + * @param namespace the namespace + * @return the next stage of the definition + */ + WithAccessPolicy withExistingNamespace(EventHubNamespace namespace); + } + + /** + * Stage of the authorization rule definition allowing to specify access policy. + */ + interface WithAccessPolicy extends AuthorizationRule + .DefinitionStages + .WithListenOrSendOrManage { + + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + + /** + * The entirety of the event hub namespace authorization rule definition. + */ + interface Definition extends + DefinitionStages.Blank, + DefinitionStages.WithNamespace, + DefinitionStages.WithAccessPolicy, + DefinitionStages.WithCreate { + } + + /** + * The entirety of the event hub namespace authorization rule update. + */ + interface Update extends + Appliable, + AuthorizationRule.UpdateStages.WithListenOrSendOrManage { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaceAuthorizationRules.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaceAuthorizationRules.java new file mode 100644 index 0000000000000..60b79ad594f6e --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaceAuthorizationRules.java @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.fluent.NamespacesClient; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import reactor.core.publisher.Mono; + +/** + * Entry point to manage event hub namespace authorization rules. + */ +@Fluent +public interface EventHubNamespaceAuthorizationRules extends + SupportsCreating, + SupportsDeletingById, + SupportsGettingById, + HasInner, + HasManager { + /** + * Lists the authorization rules under a namespace in a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @return list of authorization rules + */ + PagedIterable listByNamespace(String resourceGroupName, String namespaceName); + + /** + * Lists the authorization rules under a namespace in a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @return observable that emits the authorization rules + */ + PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName); + + /** + * Gets an authorization rule under a namespace in a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name authorization rule name + * @return observable that emits the authorization rule + */ + Mono getByNameAsync( + String resourceGroupName, String namespaceName, String name); + + /** + * Gets an authorization rule under a namespace in a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name authorization rule name + * @return the authorization rule + */ + EventHubNamespaceAuthorizationRule getByName(String resourceGroupName, String namespaceName, String name); + + /** + * Deletes an authorization rule under a namespace in a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name authorization rule name + * @return the completable representing the task + */ + Mono deleteByNameAsync(String resourceGroupName, String namespaceName, String name); + + /** + * Deletes an authorization rule under a namespace in a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name authorization rule name + */ + void deleteByName(String resourceGroupName, String namespaceName, String name); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaceSkuType.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaceSkuType.java new file mode 100644 index 0000000000000..1650f4688d42c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaceSkuType.java @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import com.azure.resourcemanager.resources.fluentcore.utils.Utils; + +/** + * Defines values for EventHubNamespaceSkuType. + */ +public class EventHubNamespaceSkuType implements HasInner { + /** Static value NamespaceSku for BASIC. */ + public static final EventHubNamespaceSkuType BASIC = + new EventHubNamespaceSkuType(new Sku().withName(SkuName.BASIC).withTier(SkuTier.BASIC)); + /** Static value NamespaceSku for STANDARD. */ + public static final EventHubNamespaceSkuType STANDARD = + new EventHubNamespaceSkuType(new Sku().withName(SkuName.STANDARD).withTier(SkuTier.STANDARD)); + + private final Sku sku; + + /** + * Creates event hub namespace sku. + * + * @param sku inner sku model instance + */ + public EventHubNamespaceSkuType(Sku sku) { + this.sku = sku; + } + + /** + * Creates event hub namespace sku. + * + * @param name sku name + * @param tier sku tier + */ + public EventHubNamespaceSkuType(SkuName name, SkuTier tier) { + this(new Sku().withName(name).withTier(tier).withCapacity(null)); + } + + @Override + public Sku inner() { + return this.sku; + } + + /** + * @return sku tier + */ + public SkuName name() { + return this.sku.name(); + } + + /** + * @return sku tier + */ + public SkuTier tier() { + return this.sku.tier(); + } + + /** + * @return sku capacity + */ + public int capacity() { + return Utils.toPrimitiveInt(this.sku.capacity()); + } + + @Override + public String toString() { + return String.format("%s_%s", this.sku.name(), this.sku.tier()); + } + + @Override + public int hashCode() { + return this.toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (!(obj instanceof EventHubNamespaceSkuType)) { + return false; + } else if (obj == this) { + return true; + } else { + EventHubNamespaceSkuType rhs = (EventHubNamespaceSkuType) obj; + if (sku == null) { + return rhs.sku == null; + } else { + return this.toString().equalsIgnoreCase(rhs.toString()); + } + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaces.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaces.java new file mode 100644 index 0000000000000..19bc8b08dd33e --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubNamespaces.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.eventhubs.fluent.NamespacesClient; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsBatchDeletion; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsListingByResourceGroup; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsBatchCreation; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import com.azure.resourcemanager.eventhubs.EventHubsManager; + +/** + * Entry point to manage EventHub namespaces. + */ +@Fluent +public interface EventHubNamespaces extends + SupportsCreating, + SupportsListing, + SupportsListingByResourceGroup, + SupportsGettingByResourceGroup, + SupportsGettingById, + SupportsDeletingById, + SupportsDeletingByResourceGroup, + SupportsBatchCreation, + SupportsBatchDeletion, + HasManager, + HasInner { + /** + * @return entry point to manage authorization rules of event hub namespaces. + */ + EventHubNamespaceAuthorizationRules authorizationRules(); + + /** + * @return entry point to manage event hubs of event hub namespaces. + */ + EventHubs eventHubs(); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubs.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubs.java new file mode 100644 index 0000000000000..da7d5b5a655c4 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/EventHubs.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.fluent.EventHubsClient; +import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById; +import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating; +import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById; +import com.azure.resourcemanager.resources.fluentcore.model.HasInner; +import reactor.core.publisher.Mono; + +/** + * Entry point to manage event hubs. + */ +@Fluent +public interface EventHubs extends + SupportsCreating, + SupportsDeletingById, + SupportsGettingById, + HasInner, + HasManager { + /** + * @return entry point to manage authorization rules of event hubs. + */ + EventHubAuthorizationRules authorizationRules(); + + /** + * @return entry point to manage consumer group of event hubs. + */ + + EventHubConsumerGroups consumerGroups(); + /** + * Lists the event hubs in a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @return list of event hubs + */ + PagedIterable listByNamespace(String resourceGroupName, String namespaceName); + + /** + * Lists the event hubs in a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @return observable that emits the event hubs + */ + PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName); + + /** + * Gets an event hub in a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name event hub name + * @return observable that emits the event hubs + */ + Mono getByNameAsync(String resourceGroupName, String namespaceName, String name); + + /** + * Gets an event hub in a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name event hub name + * @return the event hubs + */ + EventHub getByName(String resourceGroupName, String namespaceName, String name); + + /** + * Deletes an event hub in a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name event hub name + * @return the completable representing the task + */ + Mono deleteByNameAsync(String resourceGroupName, String namespaceName, String name); + + /** + * Deletes an event hub in a namespace under a resource group. + * + * @param resourceGroupName resource group name + * @param namespaceName namespace name + * @param name event hub name + */ + void deleteByName(String resourceGroupName, String namespaceName, String name); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/KeyType.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/KeyType.java new file mode 100644 index 0000000000000..3f9f99308370b --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/KeyType.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for KeyType. */ +public enum KeyType { + /** Enum value PrimaryKey. */ + PRIMARY_KEY("PrimaryKey"), + + /** Enum value SecondaryKey. */ + SECONDARY_KEY("SecondaryKey"); + + /** The actual serialized value for a KeyType instance. */ + private final String value; + + KeyType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a KeyType instance. + * + * @param value the serialized value to parse. + * @return the parsed KeyType object, or null if unable to parse. + */ + @JsonCreator + public static KeyType fromString(String value) { + KeyType[] items = KeyType.values(); + for (KeyType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/MessagingRegionsProperties.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/MessagingRegionsProperties.java new file mode 100644 index 0000000000000..aa6e87dcaf93c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/MessagingRegionsProperties.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The MessagingRegionsProperties model. */ +@Immutable +public final class MessagingRegionsProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(MessagingRegionsProperties.class); + + /* + * Region code + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /* + * Full name of the region + */ + @JsonProperty(value = "fullName", access = JsonProperty.Access.WRITE_ONLY) + private String fullName; + + /** + * Get the code property: Region code. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Get the fullName property: Full name of the region. + * + * @return the fullName value. + */ + public String fullName() { + return this.fullName; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NWRuleSetIpRules.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NWRuleSetIpRules.java new file mode 100644 index 0000000000000..a46c5e8184635 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NWRuleSetIpRules.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The NWRuleSetIpRules model. */ +@Fluent +public final class NWRuleSetIpRules { + @JsonIgnore private final ClientLogger logger = new ClientLogger(NWRuleSetIpRules.class); + + /* + * IP Mask + */ + @JsonProperty(value = "ipMask") + private String ipMask; + + /* + * The IP Filter Action + */ + @JsonProperty(value = "action") + private NetworkRuleIpAction action; + + /** + * Get the ipMask property: IP Mask. + * + * @return the ipMask value. + */ + public String ipMask() { + return this.ipMask; + } + + /** + * Set the ipMask property: IP Mask. + * + * @param ipMask the ipMask value to set. + * @return the NWRuleSetIpRules object itself. + */ + public NWRuleSetIpRules withIpMask(String ipMask) { + this.ipMask = ipMask; + return this; + } + + /** + * Get the action property: The IP Filter Action. + * + * @return the action value. + */ + public NetworkRuleIpAction action() { + return this.action; + } + + /** + * Set the action property: The IP Filter Action. + * + * @param action the action value to set. + * @return the NWRuleSetIpRules object itself. + */ + public NWRuleSetIpRules withAction(NetworkRuleIpAction action) { + this.action = action; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NWRuleSetVirtualNetworkRules.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NWRuleSetVirtualNetworkRules.java new file mode 100644 index 0000000000000..21c312dcff955 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NWRuleSetVirtualNetworkRules.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The NWRuleSetVirtualNetworkRules model. */ +@Fluent +public final class NWRuleSetVirtualNetworkRules { + @JsonIgnore private final ClientLogger logger = new ClientLogger(NWRuleSetVirtualNetworkRules.class); + + /* + * Subnet properties + */ + @JsonProperty(value = "subnet") + private Subnet subnet; + + /* + * Value that indicates whether to ignore missing VNet Service Endpoint + */ + @JsonProperty(value = "ignoreMissingVnetServiceEndpoint") + private Boolean ignoreMissingVnetServiceEndpoint; + + /** + * Get the subnet property: Subnet properties. + * + * @return the subnet value. + */ + public Subnet subnet() { + return this.subnet; + } + + /** + * Set the subnet property: Subnet properties. + * + * @param subnet the subnet value to set. + * @return the NWRuleSetVirtualNetworkRules object itself. + */ + public NWRuleSetVirtualNetworkRules withSubnet(Subnet subnet) { + this.subnet = subnet; + return this; + } + + /** + * Get the ignoreMissingVnetServiceEndpoint property: Value that indicates whether to ignore missing VNet Service + * Endpoint. + * + * @return the ignoreMissingVnetServiceEndpoint value. + */ + public Boolean ignoreMissingVnetServiceEndpoint() { + return this.ignoreMissingVnetServiceEndpoint; + } + + /** + * Set the ignoreMissingVnetServiceEndpoint property: Value that indicates whether to ignore missing VNet Service + * Endpoint. + * + * @param ignoreMissingVnetServiceEndpoint the ignoreMissingVnetServiceEndpoint value to set. + * @return the NWRuleSetVirtualNetworkRules object itself. + */ + public NWRuleSetVirtualNetworkRules withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint) { + this.ignoreMissingVnetServiceEndpoint = ignoreMissingVnetServiceEndpoint; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (subnet() != null) { + subnet().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NestedResource.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NestedResource.java new file mode 100644 index 0000000000000..a959199a3c4d3 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NestedResource.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.resources.fluentcore.model.Indexable; + +/** + * A type contains subset of ARM envelop properties + * in {@link com.azure.core.management.Resource} namely id, name and type. + */ +@Fluent +public interface NestedResource extends Indexable { + /** + * @return resource id. + */ + String id(); + + /** + * @return the resource name. + */ + String name(); + + /** + * + * @return the resource type. + */ + String type(); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NetworkRuleIpAction.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NetworkRuleIpAction.java new file mode 100644 index 0000000000000..954b1692ed2d1 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/NetworkRuleIpAction.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for NetworkRuleIpAction. */ +public final class NetworkRuleIpAction extends ExpandableStringEnum { + /** Static value Allow for NetworkRuleIpAction. */ + public static final NetworkRuleIpAction ALLOW = fromString("Allow"); + + /** + * Creates or finds a NetworkRuleIpAction from its string representation. + * + * @param name a name to look for. + * @return the corresponding NetworkRuleIpAction. + */ + @JsonCreator + public static NetworkRuleIpAction fromString(String name) { + return fromString(name, NetworkRuleIpAction.class); + } + + /** @return known NetworkRuleIpAction values. */ + public static Collection values() { + return values(NetworkRuleIpAction.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/OperationDisplay.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/OperationDisplay.java new file mode 100644 index 0000000000000..77fa7e2cd2420 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/OperationDisplay.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The OperationDisplay model. */ +@Immutable +public final class OperationDisplay { + @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDisplay.class); + + /* + * Service provider: Microsoft.EventHub + */ + @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) + private String provider; + + /* + * Resource on which the operation is performed: Invoice, etc. + */ + @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY) + private String resource; + + /* + * Operation type: Read, write, delete, etc. + */ + @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) + private String operation; + + /** + * Get the provider property: Service provider: Microsoft.EventHub. + * + * @return the provider value. + */ + public String provider() { + return this.provider; + } + + /** + * Get the resource property: Resource on which the operation is performed: Invoice, etc. + * + * @return the resource value. + */ + public String resource() { + return this.resource; + } + + /** + * Get the operation property: Operation type: Read, write, delete, etc. + * + * @return the operation value. + */ + public String operation() { + return this.operation; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/ProvisioningStateDR.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/ProvisioningStateDR.java new file mode 100644 index 0000000000000..33954f68b0206 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/ProvisioningStateDR.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for ProvisioningStateDR. */ +public enum ProvisioningStateDR { + /** Enum value Accepted. */ + ACCEPTED("Accepted"), + + /** Enum value Succeeded. */ + SUCCEEDED("Succeeded"), + + /** Enum value Failed. */ + FAILED("Failed"); + + /** The actual serialized value for a ProvisioningStateDR instance. */ + private final String value; + + ProvisioningStateDR(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a ProvisioningStateDR instance. + * + * @param value the serialized value to parse. + * @return the parsed ProvisioningStateDR object, or null if unable to parse. + */ + @JsonCreator + public static ProvisioningStateDR fromString(String value) { + ProvisioningStateDR[] items = ProvisioningStateDR.values(); + for (ProvisioningStateDR item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/RegenerateAccessKeyParameters.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/RegenerateAccessKeyParameters.java new file mode 100644 index 0000000000000..be6d7c55ecbcf --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/RegenerateAccessKeyParameters.java @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The RegenerateAccessKeyParameters model. */ +@Fluent +public final class RegenerateAccessKeyParameters { + @JsonIgnore private final ClientLogger logger = new ClientLogger(RegenerateAccessKeyParameters.class); + + /* + * The access key to regenerate. + */ + @JsonProperty(value = "keyType", required = true) + private KeyType keyType; + + /* + * Optional, if the key value provided, is set for KeyType or autogenerated + * Key value set for keyType + */ + @JsonProperty(value = "key") + private String key; + + /** + * Get the keyType property: The access key to regenerate. + * + * @return the keyType value. + */ + public KeyType keyType() { + return this.keyType; + } + + /** + * Set the keyType property: The access key to regenerate. + * + * @param keyType the keyType value to set. + * @return the RegenerateAccessKeyParameters object itself. + */ + public RegenerateAccessKeyParameters withKeyType(KeyType keyType) { + this.keyType = keyType; + return this; + } + + /** + * Get the key property: Optional, if the key value provided, is set for KeyType or autogenerated Key value set for + * keyType. + * + * @return the key value. + */ + public String key() { + return this.key; + } + + /** + * Set the key property: Optional, if the key value provided, is set for KeyType or autogenerated Key value set for + * keyType. + * + * @param key the key value to set. + * @return the RegenerateAccessKeyParameters object itself. + */ + public RegenerateAccessKeyParameters withKey(String key) { + this.key = key; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (keyType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property keyType in model RegenerateAccessKeyParameters")); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/RoleDisasterRecovery.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/RoleDisasterRecovery.java new file mode 100644 index 0000000000000..a647ac29502b7 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/RoleDisasterRecovery.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for RoleDisasterRecovery. */ +public enum RoleDisasterRecovery { + /** Enum value Primary. */ + PRIMARY("Primary"), + + /** Enum value PrimaryNotReplicating. */ + PRIMARY_NOT_REPLICATING("PrimaryNotReplicating"), + + /** Enum value Secondary. */ + SECONDARY("Secondary"); + + /** The actual serialized value for a RoleDisasterRecovery instance. */ + private final String value; + + RoleDisasterRecovery(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a RoleDisasterRecovery instance. + * + * @param value the serialized value to parse. + * @return the parsed RoleDisasterRecovery object, or null if unable to parse. + */ + @JsonCreator + public static RoleDisasterRecovery fromString(String value) { + RoleDisasterRecovery[] items = RoleDisasterRecovery.values(); + for (RoleDisasterRecovery item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/Sku.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/Sku.java new file mode 100644 index 0000000000000..a32eacb3d687f --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/Sku.java @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Sku model. */ +@Fluent +public final class Sku { + @JsonIgnore private final ClientLogger logger = new ClientLogger(Sku.class); + + /* + * Name of this SKU. + */ + @JsonProperty(value = "name", required = true) + private SkuName name; + + /* + * The billing tier of this particular SKU. + */ + @JsonProperty(value = "tier") + private SkuTier tier; + + /* + * The Event Hubs throughput units, value should be 0 to 20 throughput + * units. + */ + @JsonProperty(value = "capacity") + private Integer capacity; + + /** + * Get the name property: Name of this SKU. + * + * @return the name value. + */ + public SkuName name() { + return this.name; + } + + /** + * Set the name property: Name of this SKU. + * + * @param name the name value to set. + * @return the Sku object itself. + */ + public Sku withName(SkuName name) { + this.name = name; + return this; + } + + /** + * Get the tier property: The billing tier of this particular SKU. + * + * @return the tier value. + */ + public SkuTier tier() { + return this.tier; + } + + /** + * Set the tier property: The billing tier of this particular SKU. + * + * @param tier the tier value to set. + * @return the Sku object itself. + */ + public Sku withTier(SkuTier tier) { + this.tier = tier; + return this; + } + + /** + * Get the capacity property: The Event Hubs throughput units, value should be 0 to 20 throughput units. + * + * @return the capacity value. + */ + public Integer capacity() { + return this.capacity; + } + + /** + * Set the capacity property: The Event Hubs throughput units, value should be 0 to 20 throughput units. + * + * @param capacity the capacity value to set. + * @return the Sku object itself. + */ + public Sku withCapacity(Integer capacity) { + this.capacity = capacity; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (name() == null) { + throw logger + .logExceptionAsError(new IllegalArgumentException("Missing required property name in model Sku")); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/SkuName.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/SkuName.java new file mode 100644 index 0000000000000..9f6fad6a24951 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/SkuName.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for SkuName. */ +public final class SkuName extends ExpandableStringEnum { + /** Static value Basic for SkuName. */ + public static final SkuName BASIC = fromString("Basic"); + + /** Static value Standard for SkuName. */ + public static final SkuName STANDARD = fromString("Standard"); + + /** + * Creates or finds a SkuName from its string representation. + * + * @param name a name to look for. + * @return the corresponding SkuName. + */ + @JsonCreator + public static SkuName fromString(String name) { + return fromString(name, SkuName.class); + } + + /** @return known SkuName values. */ + public static Collection values() { + return values(SkuName.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/SkuTier.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/SkuTier.java new file mode 100644 index 0000000000000..f522977f21d2c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/SkuTier.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for SkuTier. */ +public final class SkuTier extends ExpandableStringEnum { + /** Static value Basic for SkuTier. */ + public static final SkuTier BASIC = fromString("Basic"); + + /** Static value Standard for SkuTier. */ + public static final SkuTier STANDARD = fromString("Standard"); + + /** + * Creates or finds a SkuTier from its string representation. + * + * @param name a name to look for. + * @return the corresponding SkuTier. + */ + @JsonCreator + public static SkuTier fromString(String name) { + return fromString(name, SkuTier.class); + } + + /** @return known SkuTier values. */ + public static Collection values() { + return values(SkuTier.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/Subnet.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/Subnet.java new file mode 100644 index 0000000000000..09267361ac0fb --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/Subnet.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Subnet model. */ +@Fluent +public final class Subnet { + @JsonIgnore private final ClientLogger logger = new ClientLogger(Subnet.class); + + /* + * Resource ID of Virtual Network Subnet + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** + * Get the id property: Resource ID of Virtual Network Subnet. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Resource ID of Virtual Network Subnet. + * + * @param id the id value to set. + * @return the Subnet object itself. + */ + public Subnet withId(String id) { + this.id = id; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (id() == null) { + throw logger + .logExceptionAsError(new IllegalArgumentException("Missing required property id in model Subnet")); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/UnavailableReason.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/UnavailableReason.java new file mode 100644 index 0000000000000..6310e714e6e43 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/UnavailableReason.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.eventhubs.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for UnavailableReason. */ +public enum UnavailableReason { + /** Enum value None. */ + NONE("None"), + + /** Enum value InvalidName. */ + INVALID_NAME("InvalidName"), + + /** Enum value SubscriptionIsDisabled. */ + SUBSCRIPTION_IS_DISABLED("SubscriptionIsDisabled"), + + /** Enum value NameInUse. */ + NAME_IN_USE("NameInUse"), + + /** Enum value NameInLockdown. */ + NAME_IN_LOCKDOWN("NameInLockdown"), + + /** Enum value TooManyNamespaceInCurrentSubscription. */ + TOO_MANY_NAMESPACE_IN_CURRENT_SUBSCRIPTION("TooManyNamespaceInCurrentSubscription"); + + /** The actual serialized value for a UnavailableReason instance. */ + private final String value; + + UnavailableReason(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a UnavailableReason instance. + * + * @param value the serialized value to parse. + * @return the parsed UnavailableReason object, or null if unable to parse. + */ + @JsonCreator + public static UnavailableReason fromString(String value) { + UnavailableReason[] items = UnavailableReason.values(); + for (UnavailableReason item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/package-info.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/package-info.java new file mode 100644 index 0000000000000..873a61441795c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/models/package-info.java @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** Package containing the data models for EventHubManagementClient. Azure Event Hubs client. */ +package com.azure.resourcemanager.eventhubs.models; diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/package-info.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/package-info.java new file mode 100644 index 0000000000000..1fb40769c55ca --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/package-info.java @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** Package containing the classes for EventHubManagementClient. Azure Event Hubs client. */ +package com.azure.resourcemanager.eventhubs; diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/java/com/azure/resourcemanager/eventhubs/EventHubTests.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/java/com/azure/resourcemanager/eventhubs/EventHubTests.java new file mode 100644 index 0000000000000..755053ce109c5 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/java/com/azure/resourcemanager/eventhubs/EventHubTests.java @@ -0,0 +1,577 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.eventhubs; + +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.rest.PagedIterable; +import com.azure.resourcemanager.eventhubs.models.AccessRights; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationKey; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHub; +import com.azure.resourcemanager.eventhubs.models.EventHubAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHubConsumerGroup; +import com.azure.resourcemanager.eventhubs.models.EventHubDisasterRecoveryPairing; +import com.azure.resourcemanager.eventhubs.models.EventHubDisasterRecoveryPairings; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespace; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaceAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaceSkuType; +import com.azure.resourcemanager.eventhubs.models.ProvisioningStateDR; +import com.azure.resourcemanager.resources.ResourceManager; +import com.azure.resourcemanager.resources.core.TestBase; +import com.azure.resourcemanager.resources.core.TestUtilities; +import com.azure.resourcemanager.resources.fluentcore.arm.Region; +import com.azure.resourcemanager.resources.fluentcore.model.Creatable; +import com.azure.resourcemanager.resources.fluentcore.profile.AzureProfile; +import com.azure.resourcemanager.resources.fluentcore.utils.SdkContext; +import com.azure.resourcemanager.storage.StorageManager; +import com.azure.resourcemanager.storage.models.StorageAccount; +import com.azure.resourcemanager.storage.models.StorageAccountSkuType; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.Exceptions; + +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +public class EventHubTests extends TestBase { + protected EventHubsManager eventHubsManager; + protected StorageManager storageManager; + protected ResourceManager resourceManager; + private String rgName = ""; + private final Region region = Region.US_EAST; + + @Override + protected void initializeClients(HttpPipeline httpPipeline, AzureProfile profile) { + eventHubsManager = EventHubsManager.authenticate(httpPipeline, profile); + storageManager = StorageManager.authenticate(httpPipeline, profile); + resourceManager = ResourceManager + .authenticate(httpPipeline, profile) + .withDefaultSubscription(); + } + + @Override + protected void cleanUpResources() { + if (rgName != null && !rgName.isEmpty()) { + resourceManager.resourceGroups().deleteByName(rgName); + } + } + + @Test + public void canManageEventHubNamespaceBasicSettings() { + rgName = generateRandomResourceName("javacsmrg", 15); + final String namespaceName1 = generateRandomResourceName("ns", 14); + final String namespaceName2 = generateRandomResourceName("ns", 14); + final String namespaceName3 = generateRandomResourceName("ns", 14); + + EventHubNamespace namespace1 = eventHubsManager.namespaces() + .define(namespaceName1) + .withRegion(region) + .withNewResourceGroup(rgName) + // SDK should use Sku as 'Standard' and set capacity.capacity in it as 1 + .withAutoScaling() + .create(); + + Assertions.assertNotNull(namespace1); + Assertions.assertNotNull(namespace1.inner()); + Assertions.assertNotNull(namespace1.sku()); + Assertions.assertTrue(namespace1.sku().equals(EventHubNamespaceSkuType.STANDARD)); + Assertions.assertTrue(namespace1.isAutoScaleEnabled()); + Assertions.assertNotNull(namespace1.inner().maximumThroughputUnits()); + Assertions.assertNotNull(namespace1.inner().sku().capacity()); + + EventHubNamespace namespace2 = eventHubsManager.namespaces() + .define(namespaceName2) + .withRegion(region) + .withExistingResourceGroup(rgName) + // SDK should use Sku as 'Standard' and set capacity.capacity in it as 11 + .withCurrentThroughputUnits(11) + .create(); + + Assertions.assertNotNull(namespace2); + Assertions.assertNotNull(namespace2.inner()); + Assertions.assertNotNull(namespace2.sku()); + Assertions.assertTrue(namespace2.sku().equals(EventHubNamespaceSkuType.STANDARD)); + Assertions.assertNotNull(namespace2.inner().maximumThroughputUnits()); + Assertions.assertNotNull(namespace2.inner().sku().capacity()); + Assertions.assertEquals(11, namespace2.currentThroughputUnits()); + + EventHubNamespace namespace3 = eventHubsManager.namespaces() + .define(namespaceName3) + .withRegion(region) + .withExistingResourceGroup(rgName) + .withSku(EventHubNamespaceSkuType.BASIC) + .create(); + + Assertions.assertNotNull(namespace3); + Assertions.assertNotNull(namespace3.inner()); + Assertions.assertNotNull(namespace3.sku()); + Assertions.assertTrue(namespace3.sku().equals(EventHubNamespaceSkuType.BASIC)); + + namespace3.update() + .withSku(EventHubNamespaceSkuType.STANDARD) + .withTag("aa", "bb") + .apply(); + + Assertions.assertNotNull(namespace3.sku()); + Assertions.assertTrue(namespace3.sku().equals(EventHubNamespaceSkuType.STANDARD)); + Assertions.assertNotNull(namespace3.tags()); + Assertions.assertTrue(namespace3.tags().size() > 0); + } + + @Test + public void canManageEventHubNamespaceEventHubs() { + rgName = generateRandomResourceName("javacsmrg", 15); + final String namespaceName = generateRandomResourceName("ns", 14); + final String eventHubName1 = generateRandomResourceName("eh", 14); + final String eventHubName2 = generateRandomResourceName("eh", 14); + final String eventHubName3 = generateRandomResourceName("eh", 14); + + EventHubNamespace namespace = eventHubsManager.namespaces() + .define(namespaceName) + .withRegion(region) + .withNewResourceGroup(rgName) + .withNewEventHub(eventHubName1) + .withNewEventHub(eventHubName2) + .create(); + + Assertions.assertNotNull(namespace); + Assertions.assertNotNull(namespace.inner()); + + PagedIterable hubs = namespace.listEventHubs(); + HashSet set = new HashSet<>(); + for (EventHub hub : hubs) { + set.add(hub.name()); + } + Assertions.assertTrue(set.contains(eventHubName1)); + Assertions.assertTrue(set.contains(eventHubName2)); + + hubs = eventHubsManager.namespaces() + .eventHubs() + .listByNamespace(namespace.resourceGroupName(), namespace.name()); + + set.clear(); + for (EventHub hub : hubs) { + set.add(hub.name()); + } + Assertions.assertTrue(set.contains(eventHubName1)); + Assertions.assertTrue(set.contains(eventHubName2)); + + eventHubsManager.namespaces() + .eventHubs() + .define(eventHubName3) + .withExistingNamespaceId(namespace.id()) + .withPartitionCount(5) + .withRetentionPeriodInDays(6) + .create(); + + hubs = namespace.listEventHubs(); + set.clear(); + for (EventHub hub : hubs) { + set.add(hub.name()); + } + Assertions.assertTrue(set.contains(eventHubName1)); + Assertions.assertTrue(set.contains(eventHubName2)); + Assertions.assertTrue(set.contains(eventHubName3)); + } + + @Test + public void canManageEventHubNamespaceAuthorizationRules() { + rgName = generateRandomResourceName("javacsmrg", 15); + final String namespaceName = generateRandomResourceName("ns", 14); + + EventHubNamespace namespace = eventHubsManager.namespaces() + .define(namespaceName) + .withRegion(region) + .withNewResourceGroup(rgName) + .withNewManageRule("mngRule1") + .withNewSendRule("sndRule1") + .create(); + + Assertions.assertNotNull(namespace); + Assertions.assertNotNull(namespace.inner()); + + PagedIterable rules = namespace.listAuthorizationRules(); + HashSet set = new HashSet<>(); + for (EventHubNamespaceAuthorizationRule rule : rules) { + set.add(rule.name()); + } + Assertions.assertTrue(set.contains("mngRule1")); + Assertions.assertTrue(set.contains("sndRule1")); + + rules = eventHubsManager.namespaces() + .authorizationRules() + .listByNamespace(namespace.resourceGroupName(), namespace.name()); + + set.clear(); + for (EventHubNamespaceAuthorizationRule rule : rules) { + set.add(rule.name()); + } + Assertions.assertTrue(set.contains("mngRule1")); + Assertions.assertTrue(set.contains("sndRule1")); + + eventHubsManager.namespaces() + .authorizationRules() + .define("sndRule2") + .withExistingNamespaceId(namespace.id()) + .withSendAccess() + .create(); + + rules = namespace.listAuthorizationRules(); + set.clear(); + for (EventHubNamespaceAuthorizationRule rule : rules) { + set.add(rule.name()); + } + Assertions.assertTrue(set.contains("mngRule1")); + Assertions.assertTrue(set.contains("sndRule1")); + Assertions.assertTrue(set.contains("sndRule2")); + + eventHubsManager.namespaces() + .authorizationRules() + .define("sndLsnRule3") + .withExistingNamespaceId(namespace.id()) + .withSendAndListenAccess() + .create(); + + rules = namespace.listAuthorizationRules(); + Map rulesMap = new HashMap<>(); + for (EventHubNamespaceAuthorizationRule rule : rules) { + rulesMap.put(rule.name(), rule); + } + Assertions.assertTrue(rulesMap.containsKey("sndLsnRule3")); + Assertions.assertEquals( + new HashSet<>(Arrays.asList(AccessRights.SEND, AccessRights.LISTEN)), + new HashSet<>(rulesMap.get("sndLsnRule3").rights())); + } + + @Test + public void canManageEventHubConsumerGroups() { + rgName = generateRandomResourceName("javacsmrg", 15); + final String namespaceName = generateRandomResourceName("ns", 14); + final String eventHubName = generateRandomResourceName("eh", 14); + + Creatable namespaceCreatable = eventHubsManager.namespaces() + .define(namespaceName) + .withRegion(region) + .withNewResourceGroup(rgName); + + EventHub eventHub = eventHubsManager.eventHubs() + .define(eventHubName) + .withNewNamespace(namespaceCreatable) + .withNewConsumerGroup("grp1") + .withNewConsumerGroup("grp2", "metadata111") + .create(); + + Assertions.assertNotNull(eventHub); + Assertions.assertNotNull(eventHub.inner()); + + PagedIterable cGroups = eventHub.listConsumerGroups(); + HashSet set = new HashSet<>(); + for (EventHubConsumerGroup grp : cGroups) { + set.add(grp.name()); + } + Assertions.assertTrue(set.contains("grp1")); + Assertions.assertTrue(set.contains("grp2")); + + cGroups = eventHubsManager.eventHubs() + .consumerGroups() + .listByEventHub(eventHub.namespaceResourceGroupName(), eventHub.namespaceName(), eventHub.name()); + + set.clear(); + for (EventHubConsumerGroup rule : cGroups) { + set.add(rule.name()); + } + Assertions.assertTrue(set.contains("grp1")); + Assertions.assertTrue(set.contains("grp2")); + + eventHubsManager.eventHubs() + .consumerGroups() + .define("grp3") + .withExistingEventHubId(eventHub.id()) + .withUserMetadata("metadata222") + .create(); + + cGroups = eventHub.listConsumerGroups(); + set.clear(); + for (EventHubConsumerGroup grp : cGroups) { + set.add(grp.name()); + } + Assertions.assertTrue(set.contains("grp1")); + Assertions.assertTrue(set.contains("grp2")); + Assertions.assertTrue(set.contains("grp3")); + } + + @Test + public void canManageEventHubAuthorizationRules() { + rgName = generateRandomResourceName("javacsmrg", 15); + final String namespaceName = generateRandomResourceName("ns", 14); + final String eventHubName = generateRandomResourceName("eh", 14); + + Creatable namespaceCreatable = eventHubsManager.namespaces() + .define(namespaceName) + .withRegion(region) + .withNewResourceGroup(rgName); + + EventHub eventHub = eventHubsManager.eventHubs() + .define(eventHubName) + .withNewNamespace(namespaceCreatable) + .withNewManageRule("mngRule1") + .withNewSendRule("sndRule1") + .create(); + + Assertions.assertNotNull(eventHub); + Assertions.assertNotNull(eventHub.inner()); + + PagedIterable rules = eventHub.listAuthorizationRules(); + HashSet set = new HashSet<>(); + for (EventHubAuthorizationRule rule : rules) { + set.add(rule.name()); + } + Assertions.assertTrue(set.contains("mngRule1")); + Assertions.assertTrue(set.contains("sndRule1")); + + rules = eventHubsManager.eventHubs() + .authorizationRules() + .listByEventHub(eventHub.namespaceResourceGroupName(), eventHub.namespaceName(), eventHub.name()); + + set.clear(); + for (EventHubAuthorizationRule rule : rules) { + set.add(rule.name()); + } + Assertions.assertTrue(set.contains("mngRule1")); + Assertions.assertTrue(set.contains("sndRule1")); + + eventHubsManager.eventHubs() + .authorizationRules() + .define("sndRule2") + .withExistingEventHubId(eventHub.id()) + .withSendAccess() + .create(); + + rules = eventHub.listAuthorizationRules(); + set.clear(); + for (EventHubAuthorizationRule rule : rules) { + set.add(rule.name()); + } + Assertions.assertTrue(set.contains("mngRule1")); + Assertions.assertTrue(set.contains("sndRule1")); + Assertions.assertTrue(set.contains("sndRule2")); + } + + @Test + public void canConfigureEventHubDataCapturing() { + rgName = generateRandomResourceName("javacsmrg", 15); + final String stgName = generateRandomResourceName("stg", 14); + final String namespaceName = generateRandomResourceName("ns", 14); + final String eventHubName1 = generateRandomResourceName("eh", 14); + final String eventHubName2 = generateRandomResourceName("eh", 14); + + Creatable storageAccountCreatable = storageManager.storageAccounts() + .define(stgName) + .withRegion(region) + .withNewResourceGroup(rgName) + .withSku(StorageAccountSkuType.STANDARD_LRS); + + Creatable namespaceCreatable = eventHubsManager.namespaces() + .define(namespaceName) + .withRegion(region) + .withNewResourceGroup(rgName); + + final String containerName1 = "eventsctr1"; + + EventHub eventHub1 = eventHubsManager.eventHubs() + .define(eventHubName1) + .withNewNamespace(namespaceCreatable) + .withNewStorageAccountForCapturedData(storageAccountCreatable, containerName1) + .withDataCaptureEnabled() + // Window config is optional if not set service will choose default for it2 + // + .withDataCaptureWindowSizeInSeconds(120) + .withDataCaptureWindowSizeInMB(300) + .withDataCaptureSkipEmptyArchives(true) + .create(); + + Assertions.assertNotNull(eventHub1); + Assertions.assertNotNull(eventHub1.inner()); + + Assertions.assertNotNull(eventHub1.name()); + Assertions.assertTrue(eventHub1.name().equalsIgnoreCase(eventHubName1)); + + Assertions.assertNotNull(eventHub1.partitionIds()); + + Assertions.assertTrue(eventHub1.isDataCaptureEnabled()); + Assertions.assertNotNull(eventHub1.captureDestination()); + Assertions.assertTrue(eventHub1.captureDestination().storageAccountResourceId().contains("/storageAccounts/")); + Assertions.assertTrue(eventHub1.captureDestination().storageAccountResourceId().contains(stgName)); + Assertions.assertTrue(eventHub1.captureDestination().blobContainer().equalsIgnoreCase(containerName1)); + Assertions.assertTrue(eventHub1.dataCaptureSkipEmptyArchives()); + + // Create another event Hub in the same namespace with data capture uses the same storage account + // + String stgAccountId = eventHub1.captureDestination().storageAccountResourceId(); + final String containerName2 = "eventsctr2"; + + EventHub eventHub2 = eventHubsManager.eventHubs() + .define(eventHubName2) + .withNewNamespace(namespaceCreatable) + .withExistingStorageAccountForCapturedData(stgAccountId, containerName2) + .withDataCaptureEnabled() + .create(); + + Assertions.assertTrue(eventHub2.isDataCaptureEnabled()); + Assertions.assertNotNull(eventHub2.captureDestination()); + Assertions.assertTrue(eventHub2.captureDestination().storageAccountResourceId().contains("/storageAccounts/")); + Assertions.assertTrue(eventHub2.captureDestination().storageAccountResourceId().contains(stgName)); + Assertions.assertTrue(eventHub2.captureDestination().blobContainer().equalsIgnoreCase(containerName2)); + + eventHub2.update() + .withDataCaptureDisabled() + .apply(); + + Assertions.assertFalse(eventHub2.isDataCaptureEnabled()); + } + + @Test + public void canEnableEventHubDataCaptureOnUpdate() { + rgName = generateRandomResourceName("javacsmrg", 15); + final String stgName = generateRandomResourceName("stg", 14); + final String namespaceName = generateRandomResourceName("ns", 14); + final String eventHubName = generateRandomResourceName("eh", 14); + + Creatable namespaceCreatable = eventHubsManager.namespaces() + .define(namespaceName) + .withRegion(region) + .withNewResourceGroup(rgName); + + EventHub eventHub = eventHubsManager.eventHubs() + .define(eventHubName) + .withNewNamespace(namespaceCreatable) + .create(); + + boolean exceptionThrown = false; + try { + eventHub.update() + .withDataCaptureEnabled() + .apply(); + } catch (IllegalStateException ex) { + exceptionThrown = true; + } + Assertions.assertTrue(exceptionThrown, "Expected IllegalStateException is not thrown"); + + eventHub = eventHub.refresh(); + + Creatable storageAccountCreatable = storageManager.storageAccounts() + .define(stgName) + .withRegion(region) + .withNewResourceGroup(rgName) + .withSku(StorageAccountSkuType.STANDARD_LRS); + + eventHub.update() + .withDataCaptureEnabled() + .withNewStorageAccountForCapturedData(storageAccountCreatable, "eventctr") + .apply(); + + Assertions.assertTrue(eventHub.isDataCaptureEnabled()); + Assertions.assertNotNull(eventHub.captureDestination()); + Assertions.assertTrue(eventHub.captureDestination().storageAccountResourceId().contains("/storageAccounts/")); + Assertions.assertTrue(eventHub.captureDestination().storageAccountResourceId().contains(stgName)); + Assertions.assertTrue(eventHub.captureDestination().blobContainer().equalsIgnoreCase("eventctr")); + } + + @Test + public void canManageGeoDisasterRecoveryPairing() throws Throwable { + rgName = generateRandomResourceName("javacsmrg", 15); + final String geodrName = generateRandomResourceName("geodr", 14); + final String namespaceName1 = generateRandomResourceName("ns", 14); + final String namespaceName2 = generateRandomResourceName("ns", 14); + + EventHubNamespace primaryNamespace = eventHubsManager.namespaces() + .define(namespaceName1) + .withRegion(Region.US_SOUTH_CENTRAL) + .withNewResourceGroup(rgName) + .create(); + + EventHubNamespace secondaryNamespace = eventHubsManager.namespaces() + .define(namespaceName2) + .withRegion(Region.US_NORTH_CENTRAL) + .withExistingResourceGroup(rgName) + .create(); + + Exception exception = null; + Exception breakingFailed = null; + EventHubDisasterRecoveryPairing pairing = null; + try { + pairing = eventHubsManager.eventHubDisasterRecoveryPairings() + .define(geodrName) + .withExistingPrimaryNamespace(primaryNamespace) + .withExistingSecondaryNamespace(secondaryNamespace) + .create(); + + while (pairing.provisioningState() != ProvisioningStateDR.SUCCEEDED) { + pairing = pairing.refresh(); + SdkContext.sleep(15 * 1000); + if (pairing.provisioningState() == ProvisioningStateDR.FAILED) { + Assertions.assertTrue(false, "Provisioning state of the pairing is FAILED"); + } + } + + + Assertions.assertTrue(pairing.name().equalsIgnoreCase(geodrName)); + Assertions.assertTrue(pairing.primaryNamespaceResourceGroupName().equalsIgnoreCase(rgName)); + Assertions.assertTrue(pairing.primaryNamespaceName().equalsIgnoreCase(primaryNamespace.name())); + Assertions.assertTrue(pairing.secondaryNamespaceId().equalsIgnoreCase(secondaryNamespace.id())); + + PagedIterable rules = pairing.listAuthorizationRules(); + Assertions.assertTrue(TestUtilities.getSize(rules) > 0); + for (DisasterRecoveryPairingAuthorizationRule rule : rules) { + DisasterRecoveryPairingAuthorizationKey keys = rule.getKeys(); + Assertions.assertNotNull(keys.aliasPrimaryConnectionString()); + Assertions.assertNotNull(keys.aliasPrimaryConnectionString()); + Assertions.assertNotNull(keys.primaryKey()); + Assertions.assertNotNull(keys.secondaryKey()); + } + + EventHubDisasterRecoveryPairings pairingsCol = eventHubsManager.eventHubDisasterRecoveryPairings(); + PagedIterable pairings = pairingsCol + .listByNamespace(primaryNamespace.resourceGroupName(), primaryNamespace.name()); + + Assertions.assertTrue(TestUtilities.getSize(pairings) > 0); + + boolean found = false; + for (EventHubDisasterRecoveryPairing pairing1 : pairings) { + if (pairing1.name().equalsIgnoreCase(pairing.name())) { + found = true; + Assertions.assertTrue(pairing1.primaryNamespaceResourceGroupName().equalsIgnoreCase(rgName)); + Assertions.assertTrue(pairing1.primaryNamespaceName().equalsIgnoreCase(primaryNamespace.name())); + Assertions.assertTrue(pairing1.secondaryNamespaceId().equalsIgnoreCase(secondaryNamespace.id())); + } + } + Assertions.assertTrue(found); + } catch (Exception ex) { + exception = ex; + } finally { + if (exception != null && pairing != null) { + // Resource group cannot be deleted if the pairing-replication is progress so + // pairing must forcefully break. + try { + pairing.breakPairing(); + } catch (Exception ex) { + breakingFailed = ex; + } + } + } + if (exception != null && breakingFailed != null) { + throw Exceptions.addSuppressed(exception, breakingFailed); + } + if (exception != null) { + throw exception; + } + if (breakingFailed != null) { + throw breakingFailed; + } + pairing.refresh(); + pairing.failOver(); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canConfigureEventHubDataCapturing.json b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canConfigureEventHubDataCapturing.json new file mode 100644 index 0000000000000..3fb51f24a5b9a --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canConfigureEventHubDataCapturing.json @@ -0,0 +1,569 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg75599?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:34 GMT", + "content-length" : "315", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d6cfe00a-4922-4a30-a641-5d22ec2eda6e", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063234Z:d6cfe00a-4922-4a30-a641-5d22ec2eda6e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d6cfe00a-4922-4a30-a641-5d22ec2eda6e", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599\",\"name\":\"javacsmrg75599\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2020-08-28T06:32:31.908316300Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg75599?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:33 GMT", + "content-length" : "315", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "88ac9eb3-34f6-43ff-9c2a-a4432bfe0689", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063234Z:88ac9eb3-34f6-43ff-9c2a-a4432bfe0689", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "88ac9eb3-34f6-43ff-9c2a-a4432bfe0689", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599\",\"name\":\"javacsmrg75599\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2020-08-28T06:32:31.893356500Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:40 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "ff2c3048-1b3d-4852-9dec-d1079567a7a1", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063240Z:ff2c3048-1b3d-4852-9dec-d1079567a7a1", + "content-type" : "text/plain; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/702e74fb-997e-448c-800b-56b0cd26982a?monitor=true&api-version=2019-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "702e74fb-997e-448c-800b-56b0cd26982a", + "Body" : "" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:41 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "646", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "ea18d183-e9b1-43e2-b239-b1017e48533e", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "48", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063241Z:ea18d183-e9b1-43e2-b239-b1017e48533e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "c4825712-1926-4709-91ed-edcb84de489d_M11CH3_M11CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728\",\"name\":\"nsfbd2101728\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsfbd2101728\",\"createdAt\":\"2020-08-28T06:32:39.96Z\",\"updatedAt\":\"2020-08-28T06:32:39.96Z\",\"serviceBusEndpoint\":\"https://nsfbd2101728.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/702e74fb-997e-448c-800b-56b0cd26982a?monitor=true&api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:58 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "1107", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "6423c0d5-4b11-4868-b119-8b772abcf80f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063258Z:6423c0d5-4b11-4868-b119-8b772abcf80f", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "bb15ff1e-1830-41d4-a61c-80b50a55510d", + "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000\",\"name\":\"stgb3c522000\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:32:40.3511954Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:32:40.3511954Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2020-08-28T06:32:40.2574414Z\",\"primaryEndpoints\":{\"blob\":\"https://stgb3c522000.blob.core.windows.net/\",\"queue\":\"https://stgb3c522000.queue.core.windows.net/\",\"table\":\"https://stgb3c522000.table.core.windows.net/\",\"file\":\"https://stgb3c522000.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:58 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "1107", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11965", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a8307579-f38d-4a59-8197-8406c39fc31c", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063259Z:a8307579-f38d-4a59-8197-8406c39fc31c", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "7b51abb6-7b46-4689-8059-b406900c1b9c", + "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000\",\"name\":\"stgb3c522000\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:32:40.3511954Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:32:40.3511954Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2020-08-28T06:32:40.2574414Z\",\"primaryEndpoints\":{\"blob\":\"https://stgb3c522000.blob.core.windows.net/\",\"queue\":\"https://stgb3c522000.queue.core.windows.net/\",\"table\":\"https://stgb3c522000.table.core.windows.net/\",\"file\":\"https://stgb3c522000.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000/blobServices/default/containers/eventsctr1?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:59 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "181", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11989", + "StatusCode" : "404", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "29140169-35c8-4d82-98ac-7e9bf873d394", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063259Z:29140169-35c8-4d82-98ac-7e9bf873d394", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "2034165d-2456-45ea-b65c-f33704de307a", + "Body" : "{\"error\":{\"code\":\"ContainerOperationFailure\",\"message\":\"The specified container does not exist.\\nRequestId:73eb3dfc-501e-007b-3805-7da262000000\\nTime:2020-08-28T06:32:59.4670052Z\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000/blobServices/default/containers/eventsctr1?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:59 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "413", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "012fd9e9-964a-4b0e-a1f0-95d6ed10607a", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063300Z:012fd9e9-964a-4b0e-a1f0-95d6ed10607a", + "etag" : "\"0x8D84B1C356D7E89\"", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "d03dba51-bdcc-4526-8f85-cd225237155f", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000/blobServices/default/containers/eventsctr1\",\"name\":\"eventsctr1\",\"type\":\"Microsoft.Storage/storageAccounts/blobServices/containers\",\"properties\":{\"deleted\":false,\"remainingRetentionDays\":0,\"publicAccess\":\"Container\",\"hasImmutabilityPolicy\":false,\"hasLegalHold\":false}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:11 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "646", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "83c54e8a-f1e0-4484-b6ac-c9e2955440fe", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063312Z:83c54e8a-f1e0-4484-b6ac-c9e2955440fe", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "4e36245f-a2a7-4708-9d63-af2a1ad26e9a_M7SN1_M7SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728\",\"name\":\"nsfbd2101728\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsfbd2101728\",\"createdAt\":\"2020-08-28T06:32:39.96Z\",\"updatedAt\":\"2020-08-28T06:32:39.96Z\",\"serviceBusEndpoint\":\"https://nsfbd2101728.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "645", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "56e228ac-d2e9-4830-8565-54514e3a4232", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063342Z:56e228ac-d2e9-4830-8565-54514e3a4232", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "5d33ce26-aa72-4f7f-87a9-e011d51ccb93_M11CH3_M11CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728\",\"name\":\"nsfbd2101728\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsfbd2101728\",\"createdAt\":\"2020-08-28T06:32:39.96Z\",\"updatedAt\":\"2020-08-28T06:33:29.907Z\",\"serviceBusEndpoint\":\"https://nsfbd2101728.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728/eventhubs/eh1658418986?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:45 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "955", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "99d89e80-f126-4715-98d8-ab310cadb2fc", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063345Z:99d89e80-f126-4715-98d8-ab310cadb2fc", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "08b22bde-61f7-4f55-ba9e-7c7202405440_M2SN1_M2SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728/eventhubs/eh1658418986\",\"name\":\"eh1658418986\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:44.447Z\",\"updatedAt\":\"2020-08-28T06:33:44.773Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"],\"captureDescription\":{\"enabled\":true,\"encoding\":\"Avro\",\"destination\":{\"name\":\"EventHubArchive.AzureBlockBlob\",\"properties\":{\"storageAccountResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000\",\"blobContainer\":\"eventsctr1\",\"archiveNameFormat\":\"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}\"}},\"intervalInSeconds\":120,\"sizeLimitInBytes\":314572800,\"skipEmptyArchives\":true}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:45 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "1107", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11995", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "21042529-2c19-46bd-9aff-1143fceb9640", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063345Z:21042529-2c19-46bd-9aff-1143fceb9640", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "46e86267-60f1-42d3-8e5c-4662009f1afa", + "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000\",\"name\":\"stgb3c522000\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:32:40.3511954Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:32:40.3511954Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2020-08-28T06:32:40.2574414Z\",\"primaryEndpoints\":{\"blob\":\"https://stgb3c522000.blob.core.windows.net/\",\"queue\":\"https://stgb3c522000.queue.core.windows.net/\",\"table\":\"https://stgb3c522000.table.core.windows.net/\",\"file\":\"https://stgb3c522000.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000/blobServices/default/containers/eventsctr2?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:46 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "181", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "StatusCode" : "404", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0a9b2a2b-2bea-432c-8180-8c18548609fa", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063346Z:0a9b2a2b-2bea-432c-8180-8c18548609fa", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "6d5cffe7-7f81-4af2-a8c3-6e491da3596c", + "Body" : "{\"error\":{\"code\":\"ContainerOperationFailure\",\"message\":\"The specified container does not exist.\\nRequestId:73ec11e5-501e-007b-7305-7da262000000\\nTime:2020-08-28T06:33:46.0452328Z\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000/blobServices/default/containers/eventsctr2?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:46 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "413", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a96092e9-2c18-46e6-a7b4-746e91e8415b", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063346Z:a96092e9-2c18-46e6-a7b4-746e91e8415b", + "etag" : "\"0x8D84B1C512DA65C\"", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "6030c6af-bfce-4794-bb6c-22ef2890d2bf", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000/blobServices/default/containers/eventsctr2\",\"name\":\"eventsctr2\",\"type\":\"Microsoft.Storage/storageAccounts/blobServices/containers\",\"properties\":{\"deleted\":false,\"remainingRetentionDays\":0,\"publicAccess\":\"Container\",\"hasImmutabilityPolicy\":false,\"hasLegalHold\":false}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728/eventhubs/eh146414972c?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:49 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "928", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "52aabefe-35bf-4965-b6f5-2b9e100b2aa3", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063349Z:52aabefe-35bf-4965-b6f5-2b9e100b2aa3", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "ea50e5e2-1269-4d00-b787-650882d6aa61_M7SN1_M7SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728/eventhubs/eh146414972c\",\"name\":\"eh146414972c\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:48.88Z\",\"updatedAt\":\"2020-08-28T06:33:49.22Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"],\"captureDescription\":{\"enabled\":true,\"encoding\":\"Avro\",\"destination\":{\"name\":\"EventHubArchive.AzureBlockBlob\",\"properties\":{\"storageAccountResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000\",\"blobContainer\":\"eventsctr2\",\"archiveNameFormat\":\"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}\"}},\"intervalInSeconds\":300,\"sizeLimitInBytes\":104857600}}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728/eventhubs/eh146414972c?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:50 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "906", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1191", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "edf52203-fad2-4f08-bab3-ced147bb9bf7", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063350Z:edf52203-fad2-4f08-bab3-ced147bb9bf7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "2d2bc102-45ca-4bc8-afe4-e6470b768f0a_M6CH3_M6CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.EventHub/namespaces/nsfbd2101728/eventhubs/eh146414972c\",\"name\":\"eh146414972c\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"0001-01-01T00:00:00\",\"updatedAt\":\"0001-01-01T00:00:00\",\"partitionIds\":[],\"captureDescription\":{\"enabled\":false,\"encoding\":\"Avro\",\"destination\":{\"name\":\"EventHubArchive.AzureBlockBlob\",\"properties\":{\"storageAccountResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg75599/providers/Microsoft.Storage/storageAccounts/stgb3c522000\",\"blobContainer\":\"eventsctr2\",\"archiveNameFormat\":\"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}\"}},\"intervalInSeconds\":300,\"sizeLimitInBytes\":104857600}}}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg75599?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:55 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-deletes" : "14999", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5588c296-3e2e-42eb-a26d-67d9f64245e5", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063355Z:5588c296-3e2e-42eb-a26d-67d9f64245e5", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "5588c296-3e2e-42eb-a26d-67d9f64245e5", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:10 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11993", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "4802825f-4e94-4f57-a8b6-bd76ca8554c3", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063411Z:4802825f-4e94-4f57-a8b6-bd76ca8554c3", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "4802825f-4e94-4f57-a8b6-bd76ca8554c3", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:26 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11996", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "95cec205-4354-4b2c-a66b-ada8155ec7ea", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063426Z:95cec205-4354-4b2c-a66b-ada8155ec7ea", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "95cec205-4354-4b2c-a66b-ada8155ec7ea", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:41 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11996", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d7f1ca3a-6ad7-451c-b38d-a51588e115ce", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063442Z:d7f1ca3a-6ad7-451c-b38d-a51588e115ce", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "d7f1ca3a-6ad7-451c-b38d-a51588e115ce", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:57 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11983", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e1f47439-be12-4caa-b3db-9c9e0763d775", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063457Z:e1f47439-be12-4caa-b3db-9c9e0763d775", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "e1f47439-be12-4caa-b3db-9c9e0763d775", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:13 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11982", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b547292a-4961-4c27-944a-692c6d41adac", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063513Z:b547292a-4961-4c27-944a-692c6d41adac", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "b547292a-4961-4c27-944a-692c6d41adac", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3NTU5OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:28 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11985", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "44350f60-79f0-43c4-ab6c-916bc2a05ada", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063528Z:44350f60-79f0-43c4-ab6c-916bc2a05ada", + "cache-control" : "no-cache", + "x-ms-request-id" : "44350f60-79f0-43c4-ab6c-916bc2a05ada", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg75599", "stgb3c522000", "nsfbd2101728", "eh1658418986", "eh146414972c" ] +} \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canEnableEventHubDataCaptureOnUpdate.json b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canEnableEventHubDataCaptureOnUpdate.json new file mode 100644 index 0000000000000..c828bfab14227 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canEnableEventHubDataCaptureOnUpdate.json @@ -0,0 +1,516 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg19977?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:34 GMT", + "content-length" : "315", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "c0761014-c635-4f3e-ab40-d24d4237d465", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063234Z:c0761014-c635-4f3e-ab40-d24d4237d465", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "c0761014-c635-4f3e-ab40-d24d4237d465", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977\",\"name\":\"javacsmrg19977\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2020-08-28T06:32:31.919286600Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:41 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "646", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b8e03b5b-8f17-4d4a-9e7f-fe285f59d097", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "49", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063241Z:b8e03b5b-8f17-4d4a-9e7f-fe285f59d097", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "81ef151b-29fd-4128-8c1c-30baa05518b0_M6SN1_M6SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247\",\"name\":\"ns8808166247\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns8808166247\",\"createdAt\":\"2020-08-28T06:32:40.11Z\",\"updatedAt\":\"2020-08-28T06:32:40.11Z\",\"serviceBusEndpoint\":\"https://ns8808166247.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:11 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "646", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "30111295-b46a-4865-b1bc-68220780a00c", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063312Z:30111295-b46a-4865-b1bc-68220780a00c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "be9d78dc-3e5f-4407-9a12-c10619306b52_M11CH3_M11CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247\",\"name\":\"ns8808166247\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns8808166247\",\"createdAt\":\"2020-08-28T06:32:40.11Z\",\"updatedAt\":\"2020-08-28T06:32:40.11Z\",\"serviceBusEndpoint\":\"https://ns8808166247.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:41 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "644", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "26a68512-141c-4573-aee1-ead091767151", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063342Z:26a68512-141c-4573-aee1-ead091767151", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8c8ab952-c861-4d28-b654-f8d64c32d0e8_M7SN1_M7SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247\",\"name\":\"ns8808166247\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns8808166247\",\"createdAt\":\"2020-08-28T06:32:40.11Z\",\"updatedAt\":\"2020-08-28T06:33:26.23Z\",\"serviceBusEndpoint\":\"https://ns8808166247.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247/eventhubs/ehcdc85575b3?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:44 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "447", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "4808ba2b-fe3d-45b8-9fd2-c549c82779ed", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063344Z:4808ba2b-fe3d-45b8-9fd2-c549c82779ed", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8832cb30-8424-49f3-be45-7d3d96d0426c_M6CH3_M6CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247/eventhubs/ehcdc85575b3\",\"name\":\"ehcdc85575b3\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:43.907Z\",\"updatedAt\":\"2020-08-28T06:33:44.07Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247/eventhubs/ehcdc85575b3?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:44 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "445", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11996", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "69e08f09-18a4-4c7d-81d6-4decb2945bc2", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063345Z:69e08f09-18a4-4c7d-81d6-4decb2945bc2", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "7abd546d-3d3b-44de-9842-c990fc4b7ebc_M7SN1_M7SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247/eventhubs/ehcdc85575b3\",\"name\":\"ehcdc85575b3\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:43.907\",\"updatedAt\":\"2020-08-28T06:33:44.07\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg19977?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:46 GMT", + "content-length" : "315", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1193", + "retry-after" : "0", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "799a8064-9a16-4feb-8e66-3f4b70d2e5e4", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063347Z:799a8064-9a16-4feb-8e66-3f4b70d2e5e4", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "799a8064-9a16-4feb-8e66-3f4b70d2e5e4", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977\",\"name\":\"javacsmrg19977\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2020-08-28T06:33:45.227072500Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.Storage/storageAccounts/stg73481328c?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:52 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e377c9b2-7808-4e81-876a-e61190a90265", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063353Z:e377c9b2-7808-4e81-876a-e61190a90265", + "content-type" : "text/plain; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/e8ccc480-e3d3-4074-a9b3-54182949e1fb?monitor=true&api-version=2019-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "e8ccc480-e3d3-4074-a9b3-54182949e1fb", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/e8ccc480-e3d3-4074-a9b3-54182949e1fb?monitor=true&api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:10 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "1107", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11978", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "36660d35-7b24-4e47-81c7-c3274ca26b9c", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063411Z:36660d35-7b24-4e47-81c7-c3274ca26b9c", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "55239240-abff-47e3-aa03-7d2ae8b4ac24", + "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.Storage/storageAccounts/stg73481328c\",\"name\":\"stg73481328c\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:33:53.2115538Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:33:53.2115538Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2020-08-28T06:33:53.1178062Z\",\"primaryEndpoints\":{\"blob\":\"https://stg73481328c.blob.core.windows.net/\",\"queue\":\"https://stg73481328c.queue.core.windows.net/\",\"table\":\"https://stg73481328c.table.core.windows.net/\",\"file\":\"https://stg73481328c.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.Storage/storageAccounts/stg73481328c?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:11 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "1107", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11992", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e4a36ec5-8494-4625-8b00-0aa03773a2b4", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063412Z:e4a36ec5-8494-4625-8b00-0aa03773a2b4", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "438d4eac-8d4d-4de8-a9aa-bb168e28e7a4", + "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.Storage/storageAccounts/stg73481328c\",\"name\":\"stg73481328c\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:33:53.2115538Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:33:53.2115538Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2020-08-28T06:33:53.1178062Z\",\"primaryEndpoints\":{\"blob\":\"https://stg73481328c.blob.core.windows.net/\",\"queue\":\"https://stg73481328c.queue.core.windows.net/\",\"table\":\"https://stg73481328c.table.core.windows.net/\",\"file\":\"https://stg73481328c.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.Storage/storageAccounts/stg73481328c/blobServices/default/containers/eventctr?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:12 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "181", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11986", + "StatusCode" : "404", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "ad8cc00a-f28a-46d1-9097-602d1badd91c", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063413Z:ad8cc00a-f28a-46d1-9097-602d1badd91c", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "e7010ec8-c9ae-4b6c-b89a-2b60fdffd923", + "Body" : "{\"error\":{\"code\":\"ContainerOperationFailure\",\"message\":\"The specified container does not exist.\\nRequestId:b7b5ab49-d01e-003f-2905-7d5fc5000000\\nTime:2020-08-28T06:34:12.9093053Z\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.Storage/storageAccounts/stg73481328c/blobServices/default/containers/eventctr?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:13 GMT", + "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "409", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1192", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "96c241da-847c-44ff-98f1-a3a6b17cddd0", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063413Z:96c241da-847c-44ff-98f1-a3a6b17cddd0", + "etag" : "\"0x8D84B1C61341F52\"", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "2bb64375-5076-4f65-9558-22e1d3a3ced2", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.Storage/storageAccounts/stg73481328c/blobServices/default/containers/eventctr\",\"name\":\"eventctr\",\"type\":\"Microsoft.Storage/storageAccounts/blobServices/containers\",\"properties\":{\"deleted\":false,\"remainingRetentionDays\":0,\"publicAccess\":\"Container\",\"hasImmutabilityPolicy\":false,\"hasLegalHold\":false}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247/eventhubs/ehcdc85575b3?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:13 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "903", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "75a9a382-bbb6-4dbe-b6ac-b1e14886a92c", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063414Z:75a9a382-bbb6-4dbe-b6ac-b1e14886a92c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "3188d2be-48ca-455d-afe0-e60efdb7b44b_M7SN1_M7SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.EventHub/namespaces/ns8808166247/eventhubs/ehcdc85575b3\",\"name\":\"ehcdc85575b3\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"0001-01-01T00:00:00\",\"updatedAt\":\"0001-01-01T00:00:00\",\"partitionIds\":[],\"captureDescription\":{\"enabled\":true,\"encoding\":\"Avro\",\"destination\":{\"name\":\"EventHubArchive.AzureBlockBlob\",\"properties\":{\"storageAccountResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19977/providers/Microsoft.Storage/storageAccounts/stg73481328c\",\"blobContainer\":\"eventctr\",\"archiveNameFormat\":\"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}\"}},\"intervalInSeconds\":300,\"sizeLimitInBytes\":104857600}}}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg19977?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:15 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-deletes" : "14998", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "294ab68d-0d87-40a4-b80d-eeaae8c306f7", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063416Z:294ab68d-0d87-40a4-b80d-eeaae8c306f7", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "294ab68d-0d87-40a4-b80d-eeaae8c306f7", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:31 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11990", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "408b5ccb-cd70-4fef-b25d-ebfa03e4b0de", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063432Z:408b5ccb-cd70-4fef-b25d-ebfa03e4b0de", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "408b5ccb-cd70-4fef-b25d-ebfa03e4b0de", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:47 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11995", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "9c5cdfca-d1c5-43d1-9b33-48cb04d60d2e", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063447Z:9c5cdfca-d1c5-43d1-9b33-48cb04d60d2e", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "9c5cdfca-d1c5-43d1-9b33-48cb04d60d2e", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:02 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11988", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0606f6fd-2f92-495f-9762-8047b8ba6965", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063503Z:0606f6fd-2f92-495f-9762-8047b8ba6965", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "0606f6fd-2f92-495f-9762-8047b8ba6965", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:17 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11993", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "cad12b62-bb86-4a1b-99b9-b2246893fa59", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063518Z:cad12b62-bb86-4a1b-99b9-b2246893fa59", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "cad12b62-bb86-4a1b-99b9-b2246893fa59", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:33 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11975", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a3bf753c-42cd-40a9-a66d-2ecf593878b5", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063534Z:a3bf753c-42cd-40a9-a66d-2ecf593878b5", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "a3bf753c-42cd-40a9-a66d-2ecf593878b5", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:49 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11986", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "9d73d744-94cd-4200-84ad-3c7b6c378423", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063549Z:9d73d744-94cd-4200-84ad-3c7b6c378423", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "9d73d744-94cd-4200-84ad-3c7b6c378423", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTk3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:36:05 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11956", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d697f51a-3253-4474-ab48-7cce018b337d", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063605Z:d697f51a-3253-4474-ab48-7cce018b337d", + "cache-control" : "no-cache", + "x-ms-request-id" : "d697f51a-3253-4474-ab48-7cce018b337d", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg19977", "stg73481328c", "ns8808166247", "ehcdc85575b3" ] +} \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubAuthorizationRules.json b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubAuthorizationRules.json new file mode 100644 index 0000000000000..ae3f9a30bc26e --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubAuthorizationRules.json @@ -0,0 +1,447 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg89263?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:33 GMT", + "content-length" : "315", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "be7027fe-eeb3-4116-8258-f38dbffb83b2", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063234Z:be7027fe-eeb3-4116-8258-f38dbffb83b2", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "be7027fe-eeb3-4116-8258-f38dbffb83b2", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263\",\"name\":\"javacsmrg89263\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2020-08-28T06:32:31.876401600Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "648", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f9db4ba5-b293-4de5-bc15-85d8f6bea6c7", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "49", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063242Z:f9db4ba5-b293-4de5-bc15-85d8f6bea6c7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "66c55575-1fcf-4038-8fb7-7777cff1c060_M4CH3_M4CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f\",\"name\":\"ns9bd229844f\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9bd229844f\",\"createdAt\":\"2020-08-28T06:32:40.877Z\",\"updatedAt\":\"2020-08-28T06:32:40.877Z\",\"serviceBusEndpoint\":\"https://ns9bd229844f.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:12 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "648", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11979", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "2f2bc40b-7686-4234-83cc-1f2bc67727ed", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063313Z:2f2bc40b-7686-4234-83cc-1f2bc67727ed", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "893cde07-24b3-40ef-adac-7840d550fed8_M6CH3_M6CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f\",\"name\":\"ns9bd229844f\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9bd229844f\",\"createdAt\":\"2020-08-28T06:32:40.877Z\",\"updatedAt\":\"2020-08-28T06:32:40.877Z\",\"serviceBusEndpoint\":\"https://ns9bd229844f.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "645", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0812a647-df0c-41ac-b525-54b703abecb8", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063343Z:0812a647-df0c-41ac-b525-54b703abecb8", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "c86a2263-1b31-4aab-90c4-a3c9a05afc5f_M7CH3_M7CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f\",\"name\":\"ns9bd229844f\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9bd229844f\",\"createdAt\":\"2020-08-28T06:32:40.877Z\",\"updatedAt\":\"2020-08-28T06:33:34.31Z\",\"serviceBusEndpoint\":\"https://ns9bd229844f.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:45 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "447", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5a198578-07d5-4af4-b281-dc013eac2fb5", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063346Z:5a198578-07d5-4af4-b281-dc013eac2fb5", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "3e4a0540-e289-4487-9024-9c1f5d8ff7e7_M6SN1_M6SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6\",\"name\":\"ehd6690694e6\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:45.177Z\",\"updatedAt\":\"2020-08-28T06:33:45.42Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/mngRule1?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:46 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "352", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "6c37b849-3960-4f3a-8785-4abdf50eb695", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063346Z:6c37b849-3960-4f3a-8785-4abdf50eb695", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "7cb64d04-b139-4484-a363-d25ad7467753_M6SN1_M6SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/mngRule1\",\"name\":\"mngRule1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\",\"Manage\"]}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/sndRule1?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:46 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "334", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "c9ded3fa-37d4-4e82-b518-ab7f78f62e6e", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063347Z:c9ded3fa-37d4-4e82-b518-ab7f78f62e6e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "9f01e357-1212-4285-a31a-ba1c9c0ee202_M7SN1_M7SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/sndRule1\",\"name\":\"sndRule1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:48 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "699", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11995", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "25ffd8f3-b4b0-4a4f-96d1-edf23679d9c4", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063348Z:25ffd8f3-b4b0-4a4f-96d1-edf23679d9c4", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "7191dc75-23ce-4e5e-94a4-2c030e6a6c6e_M7CH3_M7CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/mngRule1\",\"name\":\"mngRule1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\",\"Manage\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/sndRule1\",\"name\":\"sndRule1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}}]}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:48 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "699", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11996", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "7d24b09e-8f8a-4bcf-9862-eb5a9cf2b898", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063348Z:7d24b09e-8f8a-4bcf-9862-eb5a9cf2b898", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "0cb467b8-cad6-464a-9ea3-062bc0310723_M10CH3_M10CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/mngRule1\",\"name\":\"mngRule1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\",\"Manage\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/sndRule1\",\"name\":\"sndRule1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}}]}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/sndRule2?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:48 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "334", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "ba17abd1-2ff1-4e00-a8c8-083fd78c62b3", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063349Z:ba17abd1-2ff1-4e00-a8c8-083fd78c62b3", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8dba7b31-f33f-4ec1-a459-003f68950c6e_M7SN1_M7SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/sndRule2\",\"name\":\"sndRule2\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:49 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1034", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11993", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1025ce36-eb7b-4cfc-9744-28e392128477", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063349Z:1025ce36-eb7b-4cfc-9744-28e392128477", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "fc1d626f-be54-4ac8-82d7-74a21df5efaa_M7CH3_M7CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/mngRule1\",\"name\":\"mngRule1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\",\"Manage\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/sndRule1\",\"name\":\"sndRule1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg89263/providers/Microsoft.EventHub/namespaces/ns9bd229844f/eventhubs/ehd6690694e6/authorizationRules/sndRule2\",\"name\":\"sndRule2\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}}]}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg89263?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:54 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-deletes" : "14999", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "466bcb3b-b6d2-48c3-9bfc-fa10a5c0ef91", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063354Z:466bcb3b-b6d2-48c3-9bfc-fa10a5c0ef91", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "466bcb3b-b6d2-48c3-9bfc-fa10a5c0ef91", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:10 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11992", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0df42f36-1ded-4e94-a622-3dfaf0d86054", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063410Z:0df42f36-1ded-4e94-a622-3dfaf0d86054", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "0df42f36-1ded-4e94-a622-3dfaf0d86054", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:26 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11961", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "8d58b65c-a64d-4edc-a6c2-3e283ae69237", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063426Z:8d58b65c-a64d-4edc-a6c2-3e283ae69237", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "8d58b65c-a64d-4edc-a6c2-3e283ae69237", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:41 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11977", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e35d6b75-a942-4ede-8588-0316f49e141f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063442Z:e35d6b75-a942-4ede-8588-0316f49e141f", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "e35d6b75-a942-4ede-8588-0316f49e141f", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:56 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11995", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b64771b1-f76b-4a37-a212-3a8114bce1ca", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063457Z:b64771b1-f76b-4a37-a212-3a8114bce1ca", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "b64771b1-f76b-4a37-a212-3a8114bce1ca", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:13 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11994", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "20fbef10-1790-41c2-a57e-be5b4839ac03", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063513Z:20fbef10-1790-41c2-a57e-be5b4839ac03", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "20fbef10-1790-41c2-a57e-be5b4839ac03", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4OTI2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:28 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11987", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1bdb0285-5df7-4a8d-97b0-081b058b0c40", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063528Z:1bdb0285-5df7-4a8d-97b0-081b058b0c40", + "cache-control" : "no-cache", + "x-ms-request-id" : "1bdb0285-5df7-4a8d-97b0-081b058b0c40", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg89263", "ns9bd229844f", "ehd6690694e6" ] +} \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubConsumerGroups.json b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubConsumerGroups.json new file mode 100644 index 0000000000000..a8dbc54c02dbc --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubConsumerGroups.json @@ -0,0 +1,450 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg00463?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:33 GMT", + "content-length" : "315", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "7514927c-1303-4003-b505-b08c6923713a", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063234Z:7514927c-1303-4003-b505-b08c6923713a", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "7514927c-1303-4003-b505-b08c6923713a", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463\",\"name\":\"javacsmrg00463\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2020-08-28T06:32:31.881388100Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "648", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e5c8977c-0d3e-47bb-865f-293689122df8", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "49", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063243Z:e5c8977c-0d3e-47bb-865f-293689122df8", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "85d614a0-a0c9-4cd5-80a6-2ed4fcd75b06_M2CH3_M2CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c\",\"name\":\"ns5a9322645c\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns5a9322645c\",\"createdAt\":\"2020-08-28T06:32:40.773Z\",\"updatedAt\":\"2020-08-28T06:32:40.773Z\",\"serviceBusEndpoint\":\"https://ns5a9322645c.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:12 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "648", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "35ed7692-c84f-4622-a767-a4995b9e30a3", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063313Z:35ed7692-c84f-4622-a767-a4995b9e30a3", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "125dc89e-d5ad-410f-8808-ba3d42e59098_M7CH3_M7CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c\",\"name\":\"ns5a9322645c\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns5a9322645c\",\"createdAt\":\"2020-08-28T06:32:40.773Z\",\"updatedAt\":\"2020-08-28T06:32:40.773Z\",\"serviceBusEndpoint\":\"https://ns5a9322645c.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:43 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "646", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "323445a5-cbdd-43b7-bdfd-e40e970a2163", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063344Z:323445a5-cbdd-43b7-bdfd-e40e970a2163", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "6009d6c6-9be0-4f98-8e5f-2894c6f3e726_M7SN1_M7SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c\",\"name\":\"ns5a9322645c\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns5a9322645c\",\"createdAt\":\"2020-08-28T06:32:40.773Z\",\"updatedAt\":\"2020-08-28T06:33:33.177Z\",\"serviceBusEndpoint\":\"https://ns5a9322645c.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:47 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "447", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d7ab0c56-0a08-453f-8b5c-76c5eaef085d", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063347Z:d7ab0c56-0a08-453f-8b5c-76c5eaef085d", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "4ccfc211-0313-4850-8322-84a9c7163989_M10CH3_M10CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5\",\"name\":\"ehf6425585d5\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:46.657Z\",\"updatedAt\":\"2020-08-28T06:33:46.92Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp1?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:49 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "386", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1192", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "4ea2562d-0ec0-47fc-93c1-0bfebaf025bb", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063349Z:4ea2562d-0ec0-47fc-93c1-0bfebaf025bb", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "ca49157f-89c7-403d-bfdb-2fc4043b48e9_M6CH3_M6CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp1\",\"name\":\"grp1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:49.3839272Z\",\"updatedAt\":\"2020-08-28T06:33:49.3839272Z\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp2?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:50 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "415", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e7426f9b-8112-4b8d-952a-b8b442cc92df", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063351Z:e7426f9b-8112-4b8d-952a-b8b442cc92df", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "0da9b598-3459-4cec-bfb7-c5146eed1f11_M7SN1_M7SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp2\",\"name\":\"grp2\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:51.1427763Z\",\"updatedAt\":\"2020-08-28T06:33:51.1427763Z\",\"userMetadata\":\"metadata111\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:50 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1183", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11962", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b5664150-9589-46dc-b17a-c72663c13486", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063351Z:b5664150-9589-46dc-b17a-c72663c13486", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-inline-count" : "", + "x-ms-request-id" : "4208b72f-3687-4f52-b24a-aaab1267af1b_M1SN1_M1SN1", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/$Default\",\"name\":\"$Default\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:46.702Z\",\"updatedAt\":\"2020-08-28T06:33:46.702Z\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp1\",\"name\":\"grp1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:49.421Z\",\"updatedAt\":\"2020-08-28T06:33:49.421Z\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp2\",\"name\":\"grp2\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:51.14Z\",\"updatedAt\":\"2020-08-28T06:33:51.14Z\",\"userMetadata\":\"metadata111\"}}]}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:51 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1185", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11993", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0197403b-d263-44a2-9dda-03d773cee36d", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063352Z:0197403b-d263-44a2-9dda-03d773cee36d", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-inline-count" : "", + "x-ms-request-id" : "cdba4ed5-f461-470a-a50f-49da92a8c229_M7SN1_M7SN1", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/$Default\",\"name\":\"$Default\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:46.701Z\",\"updatedAt\":\"2020-08-28T06:33:46.701Z\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp1\",\"name\":\"grp1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:49.421Z\",\"updatedAt\":\"2020-08-28T06:33:49.421Z\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp2\",\"name\":\"grp2\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:51.141Z\",\"updatedAt\":\"2020-08-28T06:33:51.141Z\",\"userMetadata\":\"metadata111\"}}]}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp3?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:53 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "415", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "caa8f1db-7242-4bd7-90df-d751266729be", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063354Z:caa8f1db-7242-4bd7-90df-d751266729be", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "bc1b0143-e7c8-48e0-9a5e-27329a431671_M1SN1_M1SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp3\",\"name\":\"grp3\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:53.7964577Z\",\"updatedAt\":\"2020-08-28T06:33:53.7964577Z\",\"userMetadata\":\"metadata222\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:53 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1593", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11992", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "97743505-2567-4455-aa32-d824cfe2fc62", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063354Z:97743505-2567-4455-aa32-d824cfe2fc62", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-inline-count" : "", + "x-ms-request-id" : "7d0a0ab4-ecca-421f-90c9-e580d60ded5f_M7SN1_M7SN1", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/$Default\",\"name\":\"$Default\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:46.701Z\",\"updatedAt\":\"2020-08-28T06:33:46.701Z\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp1\",\"name\":\"grp1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:49.421Z\",\"updatedAt\":\"2020-08-28T06:33:49.421Z\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp2\",\"name\":\"grp2\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:51.141Z\",\"updatedAt\":\"2020-08-28T06:33:51.141Z\",\"userMetadata\":\"metadata111\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00463/providers/Microsoft.EventHub/namespaces/ns5a9322645c/eventhubs/ehf6425585d5/consumergroups/grp3\",\"name\":\"grp3\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US\",\"properties\":{\"createdAt\":\"2020-08-28T06:33:53.798Z\",\"updatedAt\":\"2020-08-28T06:33:53.798Z\",\"userMetadata\":\"metadata222\"}}]}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg00463?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:59 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-deletes" : "14999", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "26575d51-bfa8-4242-8b5e-cf33d67c9aaf", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063400Z:26575d51-bfa8-4242-8b5e-cf33d67c9aaf", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "26575d51-bfa8-4242-8b5e-cf33d67c9aaf", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:15 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11991", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "14e4ad4d-a4a8-4d44-97a9-24d5a15ec48f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063416Z:14e4ad4d-a4a8-4d44-97a9-24d5a15ec48f", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "14e4ad4d-a4a8-4d44-97a9-24d5a15ec48f", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:31 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11990", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "736ec049-8b08-4c8a-81a9-142f008674f6", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063431Z:736ec049-8b08-4c8a-81a9-142f008674f6", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "736ec049-8b08-4c8a-81a9-142f008674f6", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:46 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11960", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1693add2-4963-4315-b8f2-cbbcbb8470c0", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063447Z:1693add2-4963-4315-b8f2-cbbcbb8470c0", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "1693add2-4963-4315-b8f2-cbbcbb8470c0", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:02 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11988", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b66f8e11-8918-498e-94c6-a296a9109f78", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063502Z:b66f8e11-8918-498e-94c6-a296a9109f78", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "b66f8e11-8918-498e-94c6-a296a9109f78", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:18 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11976", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "4af6b0fc-cd4b-4bf6-854d-bf53c05ea490", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063518Z:4af6b0fc-cd4b-4bf6-854d-bf53c05ea490", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "4af6b0fc-cd4b-4bf6-854d-bf53c05ea490", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDQ2My1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:33 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11957", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "abf3c02a-c893-411e-955b-49c0fbb5eb6b", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063534Z:abf3c02a-c893-411e-955b-49c0fbb5eb6b", + "cache-control" : "no-cache", + "x-ms-request-id" : "abf3c02a-c893-411e-955b-49c0fbb5eb6b", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg00463", "ns5a9322645c", "ehf6425585d5" ] +} \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubNamespaceAuthorizationRules.json b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubNamespaceAuthorizationRules.json new file mode 100644 index 0000000000000..7c73360ff3837 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubNamespaceAuthorizationRules.json @@ -0,0 +1,496 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg61079?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:35 GMT", + "content-length" : "315", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "9a225d75-bb34-43db-b02f-d51e75b7b149", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063235Z:9a225d75-bb34-43db-b02f-d51e75b7b149", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "9a225d75-bb34-43db-b02f-d51e75b7b149", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079\",\"name\":\"javacsmrg61079\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2020-08-28T06:32:31.876401600Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:43 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "646", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "7736deec-a179-40a2-b794-2b30150ed5aa", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "49", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063243Z:7736deec-a179-40a2-b794-2b30150ed5aa", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "868557b7-3483-471c-8542-f4f56c3f57bd_M6CH3_M6CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a\",\"name\":\"nsc84517966a\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsc84517966a\",\"createdAt\":\"2020-08-28T06:32:42.12Z\",\"updatedAt\":\"2020-08-28T06:32:42.12Z\",\"serviceBusEndpoint\":\"https://nsc84517966a.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:13 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "646", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11964", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1d0ec513-717a-4069-8206-0f6830530c44", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063314Z:1d0ec513-717a-4069-8206-0f6830530c44", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "2fd354bf-7638-4264-93ec-e9c298789267_M1SN1_M1SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a\",\"name\":\"nsc84517966a\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsc84517966a\",\"createdAt\":\"2020-08-28T06:32:42.12Z\",\"updatedAt\":\"2020-08-28T06:32:42.12Z\",\"serviceBusEndpoint\":\"https://nsc84517966a.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:44 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "645", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11996", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "c30bedcb-c53b-4462-9c6f-bd87afb7c132", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063344Z:c30bedcb-c53b-4462-9c6f-bd87afb7c132", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "216a55f3-ff15-40dd-b1f2-786ee6d9dd47_M7CH3_M7CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a\",\"name\":\"nsc84517966a\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsc84517966a\",\"createdAt\":\"2020-08-28T06:32:42.12Z\",\"updatedAt\":\"2020-08-28T06:33:37.043Z\",\"serviceBusEndpoint\":\"https://nsc84517966a.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/mngRule1?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:50 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "319", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "56635464-8e9b-452f-aa22-f40870e9fa1f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063351Z:56635464-8e9b-452f-aa22-f40870e9fa1f", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "4f2d92e5-ae30-45bf-961e-e08c2fa1ffed_M1SN1_M1SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/mngRule1\",\"name\":\"mngRule1\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\",\"Manage\"]}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndRule1?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:56 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "301", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1190", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e0be3ca2-fa9f-4343-a53e-31c5c675e58e", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063357Z:e0be3ca2-fa9f-4343-a53e-31c5c675e58e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "1a4b34eb-fc21-4788-a789-096ffec0bedb_M2SN1_M2SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndRule1\",\"name\":\"sndRule1\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:58 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "987", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11994", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "cd52134d-220f-43e8-a7d5-9957f36690c9", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063358Z:cd52134d-220f-43e8-a7d5-9957f36690c9", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "dfb04855-4136-4249-a6ec-8727dfd438b5_M11CH3_M11CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/mngRule1\",\"name\":\"mngRule1\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\",\"Manage\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndRule1\",\"name\":\"sndRule1\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}}]}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:58 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "987", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11987", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "7024a9bf-8c33-472e-a5b3-f74694bf6d8e", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063359Z:7024a9bf-8c33-472e-a5b3-f74694bf6d8e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "9ccec6c4-94aa-492f-9871-7e496f4ba748_M6SN1_M6SN1", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/mngRule1\",\"name\":\"mngRule1\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\",\"Manage\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndRule1\",\"name\":\"sndRule1\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}}]}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndRule2?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:05 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "301", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "x-ms-ratelimit-remaining-subscription-writes" : "1193", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5ce421ce-c787-42c7-9895-2ef011f5f2d7", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063405Z:5ce421ce-c787-42c7-9895-2ef011f5f2d7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "5ec90de1-c8ad-409b-8148-dc1bf42de787_M1SN1_M1SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndRule2\",\"name\":\"sndRule2\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:06 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1289", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11991", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "cb4aa580-7c49-4594-8ae2-ae30db4cb42f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063407Z:cb4aa580-7c49-4594-8ae2-ae30db4cb42f", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8d24b2e2-87cf-4dae-8867-613a67ea8cd8_M1SN1_M1SN1", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/mngRule1\",\"name\":\"mngRule1\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\",\"Manage\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndRule1\",\"name\":\"sndRule1\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndRule2\",\"name\":\"sndRule2\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}}]}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndLsnRule3?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:13 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "316", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1cba839e-4e8f-4ae0-8faa-b49e0dae9cfb", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063413Z:1cba839e-4e8f-4ae0-8faa-b49e0dae9cfb", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "62148ae3-01a3-457c-a3f8-6dae313323d7_M2CH3_M2CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndLsnRule3\",\"name\":\"sndLsnRule3\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:14 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1606", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11991", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d3171647-d3f2-4536-9536-fdb4e4309705", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063414Z:d3171647-d3f2-4536-9536-fdb4e4309705", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "3c9caae5-2da6-4b6e-899b-1f64299c4bf0_M7CH3_M7CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/mngRule1\",\"name\":\"mngRule1\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\",\"Manage\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndRule1\",\"name\":\"sndRule1\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndRule2\",\"name\":\"sndRule2\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Send\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg61079/providers/Microsoft.EventHub/namespaces/nsc84517966a/authorizationRules/sndLsnRule3\",\"name\":\"sndLsnRule3\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}]}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg61079?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:16 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-deletes" : "14997", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "36f6a6ca-3013-42c2-a77b-cb36c5e7d420", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063417Z:36f6a6ca-3013-42c2-a77b-cb36c5e7d420", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "36f6a6ca-3013-42c2-a77b-cb36c5e7d420", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:32 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11989", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b9191745-6711-4d1d-b8ee-ead7a27db292", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063433Z:b9191745-6711-4d1d-b8ee-ead7a27db292", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "b9191745-6711-4d1d-b8ee-ead7a27db292", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:48 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11989", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "eefd1f21-5da2-4d1f-b0d5-652fdcd661f1", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063448Z:eefd1f21-5da2-4d1f-b0d5-652fdcd661f1", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "eefd1f21-5da2-4d1f-b0d5-652fdcd661f1", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:03 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11987", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "83a493a0-31f8-4145-aedb-8c3742d1057e", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063504Z:83a493a0-31f8-4145-aedb-8c3742d1057e", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "83a493a0-31f8-4145-aedb-8c3742d1057e", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:19 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11987", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "cc87b638-ab36-47aa-9000-5d8badbbf1d4", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063519Z:cc87b638-ab36-47aa-9000-5d8badbbf1d4", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "cc87b638-ab36-47aa-9000-5d8badbbf1d4", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:34 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11992", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "afd9a1db-b831-4690-80a7-503c0818f4fd", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063535Z:afd9a1db-b831-4690-80a7-503c0818f4fd", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "afd9a1db-b831-4690-80a7-503c0818f4fd", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:50 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11983", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "37492173-66e8-4099-a039-16d80724284a", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063550Z:37492173-66e8-4099-a039-16d80724284a", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "37492173-66e8-4099-a039-16d80724284a", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MTA3OS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:36:05 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11974", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d5bffa9c-ca8e-482b-a667-848ccd0dba9e", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063606Z:d5bffa9c-ca8e-482b-a667-848ccd0dba9e", + "cache-control" : "no-cache", + "x-ms-request-id" : "d5bffa9c-ca8e-482b-a667-848ccd0dba9e", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg61079", "nsc84517966a" ] +} \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubNamespaceBasicSettings.json b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubNamespaceBasicSettings.json new file mode 100644 index 0000000000000..50d733c0e5998 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubNamespaceBasicSettings.json @@ -0,0 +1,468 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg19177?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:35 GMT", + "content-length" : "315", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "befc3c64-d50f-4f56-8786-d528e859eca0", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063235Z:befc3c64-d50f-4f56-8786-d528e859eca0", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "befc3c64-d50f-4f56-8786-d528e859eca0", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177\",\"name\":\"javacsmrg19177\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2020-08-28T06:32:31.888369500Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns1e936151fd?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "646", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "bfe87a24-c606-41d0-a624-8484f54b6b10", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "48", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063242Z:bfe87a24-c606-41d0-a624-8484f54b6b10", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "de3c3bc4-b566-4e12-b0d0-0274e5b06956_M8CH3_M8CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns1e936151fd\",\"name\":\"ns1e936151fd\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":true,\"maximumThroughputUnits\":20,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns1e936151fd\",\"createdAt\":\"2020-08-28T06:32:40.98Z\",\"updatedAt\":\"2020-08-28T06:32:40.98Z\",\"serviceBusEndpoint\":\"https://ns1e936151fd.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns1e936151fd?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:13 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "646", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "2a0b5cd2-5137-48c3-a5de-6db527c01e8a", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063313Z:2a0b5cd2-5137-48c3-a5de-6db527c01e8a", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "95e3d60a-2b9e-4b83-b913-7711fb720c96_M3SN1_M3SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns1e936151fd\",\"name\":\"ns1e936151fd\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":true,\"maximumThroughputUnits\":20,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns1e936151fd\",\"createdAt\":\"2020-08-28T06:32:40.98Z\",\"updatedAt\":\"2020-08-28T06:32:40.98Z\",\"serviceBusEndpoint\":\"https://ns1e936151fd.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns1e936151fd?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "645", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11963", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "32408ca1-003b-49e2-ad0e-2d0116cb9476", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063343Z:32408ca1-003b-49e2-ad0e-2d0116cb9476", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "c6c78a8e-c5ee-4cc4-b45f-feef9e4bd4d7_M1SN1_M1SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns1e936151fd\",\"name\":\"ns1e936151fd\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":true,\"maximumThroughputUnits\":20,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns1e936151fd\",\"createdAt\":\"2020-08-28T06:32:40.98Z\",\"updatedAt\":\"2020-08-28T06:33:32.973Z\",\"serviceBusEndpoint\":\"https://ns1e936151fd.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns0dd1001546?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:51 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "649", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a36e9551-9066-41d5-8a40-b6eb746bfb00", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "47", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063351Z:a36e9551-9066-41d5-8a40-b6eb746bfb00", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "b220849b-2425-4367-a09c-88e90d3de368_M11CH3_M11CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":11},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns0dd1001546\",\"name\":\"ns0dd1001546\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns0dd1001546\",\"createdAt\":\"2020-08-28T06:33:49.543Z\",\"updatedAt\":\"2020-08-28T06:33:49.543Z\",\"serviceBusEndpoint\":\"https://ns0dd1001546.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns0dd1001546?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:21 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "649", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1743f944-f8f5-4615-861a-d0c57d6d8e53", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063421Z:1743f944-f8f5-4615-861a-d0c57d6d8e53", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "fa49e117-0a13-4394-b34e-767ee51f10f3_M2SN1_M2SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":11},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns0dd1001546\",\"name\":\"ns0dd1001546\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns0dd1001546\",\"createdAt\":\"2020-08-28T06:33:49.543Z\",\"updatedAt\":\"2020-08-28T06:33:49.543Z\",\"serviceBusEndpoint\":\"https://ns0dd1001546.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns0dd1001546?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:51 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "647", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11989", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f28460a0-351e-49be-b85c-ac86a23289ec", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063452Z:f28460a0-351e-49be-b85c-ac86a23289ec", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "e33f698c-93aa-496d-a619-acce0c736272_M7CH3_M7CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":11},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns0dd1001546\",\"name\":\"ns0dd1001546\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns0dd1001546\",\"createdAt\":\"2020-08-28T06:33:49.543Z\",\"updatedAt\":\"2020-08-28T06:34:35.677Z\",\"serviceBusEndpoint\":\"https://ns0dd1001546.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns9f34263976?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:59 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "643", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0d916684-ed5c-4eda-bd6e-3fc2d0de6fe5", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "46", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063500Z:0d916684-ed5c-4eda-bd6e-3fc2d0de6fe5", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8f6481d2-c3bb-4e11-9dc1-cdee5cc77387_M3CH3_M3CH3", + "Body" : "{\"sku\":{\"name\":\"Basic\",\"tier\":\"Basic\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns9f34263976\",\"name\":\"ns9f34263976\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":false,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9f34263976\",\"createdAt\":\"2020-08-28T06:34:58.477Z\",\"updatedAt\":\"2020-08-28T06:34:58.477Z\",\"serviceBusEndpoint\":\"https://ns9f34263976.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns9f34263976?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:31 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "643", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11993", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "249e63f8-515b-4eb9-a307-177f95e0f0a4", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063531Z:249e63f8-515b-4eb9-a307-177f95e0f0a4", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "60149745-660d-4c8d-b1ad-6956e7eb77d4_M3CH3_M3CH3", + "Body" : "{\"sku\":{\"name\":\"Basic\",\"tier\":\"Basic\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns9f34263976\",\"name\":\"ns9f34263976\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":false,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9f34263976\",\"createdAt\":\"2020-08-28T06:34:58.477Z\",\"updatedAt\":\"2020-08-28T06:34:58.477Z\",\"serviceBusEndpoint\":\"https://ns9f34263976.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns9f34263976?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:36:01 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "640", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11992", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e0d8e0b7-b9e0-4408-880b-41f4bc3e7319", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063602Z:e0d8e0b7-b9e0-4408-880b-41f4bc3e7319", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "0051866b-d4d3-42f7-8456-21ae6055d3ab_M6CH3_M6CH3", + "Body" : "{\"sku\":{\"name\":\"Basic\",\"tier\":\"Basic\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns9f34263976\",\"name\":\"ns9f34263976\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":false,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9f34263976\",\"createdAt\":\"2020-08-28T06:34:58.477Z\",\"updatedAt\":\"2020-08-28T06:35:50.21Z\",\"serviceBusEndpoint\":\"https://ns9f34263976.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns9f34263976?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:36:13 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "656", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "67f8e4f0-1761-40cb-af54-e2e1da20d93a", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "48", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063613Z:67f8e4f0-1761-40cb-af54-e2e1da20d93a", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "e2d96097-adbc-4522-99b4-75cf5a12fa91_M11CH3_M11CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns9f34263976\",\"name\":\"ns9f34263976\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{\"aa\":\"bb\"},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Updating\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9f34263976\",\"createdAt\":\"2020-08-28T06:34:58.477Z\",\"updatedAt\":\"2020-08-28T06:36:09.7Z\",\"serviceBusEndpoint\":\"https://ns9f34263976.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns9f34263976?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:36:44 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "655", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11985", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1f4aaabc-7b23-4ae9-8dd5-649bd39732c6", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063644Z:1f4aaabc-7b23-4ae9-8dd5-649bd39732c6", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "2bf74b8d-a70f-471c-a067-0bb83a2bb2fe_M9CH3_M9CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg19177/providers/Microsoft.EventHub/namespaces/ns9f34263976\",\"name\":\"ns9f34263976\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{\"aa\":\"bb\"},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9f34263976\",\"createdAt\":\"2020-08-28T06:34:58.477Z\",\"updatedAt\":\"2020-08-28T06:36:12.013Z\",\"serviceBusEndpoint\":\"https://ns9f34263976.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg19177?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:36:47 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-deletes" : "14997", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f9873a8f-34f1-4e74-aa72-bea13ddbbaf1", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063648Z:f9873a8f-34f1-4e74-aa72-bea13ddbbaf1", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "f9873a8f-34f1-4e74-aa72-bea13ddbbaf1", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:03 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11981", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f202e417-e9a6-4cc1-9666-743f40ea0566", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063704Z:f202e417-e9a6-4cc1-9666-743f40ea0566", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "f202e417-e9a6-4cc1-9666-743f40ea0566", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:18 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11954", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f9a8556e-595a-4151-abc1-fbec01c2d7a9", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063719Z:f9a8556e-595a-4151-abc1-fbec01c2d7a9", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "f9a8556e-595a-4151-abc1-fbec01c2d7a9", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:35 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11980", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d87c8e62-e1a4-466f-9e4f-6132bd1186eb", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063735Z:d87c8e62-e1a4-466f-9e4f-6132bd1186eb", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "d87c8e62-e1a4-466f-9e4f-6132bd1186eb", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:50 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11983", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "bcf21fe5-41e5-420d-bf4d-3aa2fc7e3afe", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063751Z:bcf21fe5-41e5-420d-bf4d-3aa2fc7e3afe", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "bcf21fe5-41e5-420d-bf4d-3aa2fc7e3afe", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:38:07 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11980", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5e4a4dfc-9f43-4cfc-b198-dcbb45c8484f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063807Z:5e4a4dfc-9f43-4cfc-b198-dcbb45c8484f", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "5e4a4dfc-9f43-4cfc-b198-dcbb45c8484f", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxOTE3Ny1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:38:22 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11979", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a92abb9a-46fd-496e-b003-08046d44b845", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063823Z:a92abb9a-46fd-496e-b003-08046d44b845", + "cache-control" : "no-cache", + "x-ms-request-id" : "a92abb9a-46fd-496e-b003-08046d44b845", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg19177", "ns1e936151fd", "ns0dd1001546", "ns9f34263976" ] +} \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubNamespaceEventHubs.json b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubNamespaceEventHubs.json new file mode 100644 index 0000000000000..cc43fd61b4b6e --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageEventHubNamespaceEventHubs.json @@ -0,0 +1,424 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg15778?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:34 GMT", + "content-length" : "315", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "8e6d28a6-4fb3-4751-a388-2ecf72b237a8", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063234Z:8e6d28a6-4fb3-4751-a388-2ecf72b237a8", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8e6d28a6-4fb3-4751-a388-2ecf72b237a8", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778\",\"name\":\"javacsmrg15778\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2020-08-28T06:32:31.876401600Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:40 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "648", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "376d588d-59e0-4c8a-969f-0299dd501c2c", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "49", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063241Z:376d588d-59e0-4c8a-969f-0299dd501c2c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "9adf43e6-4483-449c-9891-e5eb16f956a7_M1SN1_M1SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398\",\"name\":\"ns4b69445398\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns4b69445398\",\"createdAt\":\"2020-08-28T06:32:39.917Z\",\"updatedAt\":\"2020-08-28T06:32:39.917Z\",\"serviceBusEndpoint\":\"https://ns4b69445398.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:11 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "648", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "72b2df81-8c83-42a1-ae41-6979c19cf144", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063311Z:72b2df81-8c83-42a1-ae41-6979c19cf144", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "aa79d16d-3ca7-4e8b-b11f-3649cccd4a89_M7SN1_M7SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398\",\"name\":\"ns4b69445398\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns4b69445398\",\"createdAt\":\"2020-08-28T06:32:39.917Z\",\"updatedAt\":\"2020-08-28T06:32:39.917Z\",\"serviceBusEndpoint\":\"https://ns4b69445398.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "646", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "3bb9ed83-664f-4234-92f8-2a7b7e81b29a", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063342Z:3bb9ed83-664f-4234-92f8-2a7b7e81b29a", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "f5d5c5e0-d19b-44bd-837f-49140a1e1143_M11CH3_M11CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398\",\"name\":\"ns4b69445398\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns4b69445398\",\"createdAt\":\"2020-08-28T06:32:39.917Z\",\"updatedAt\":\"2020-08-28T06:33:26.517Z\",\"serviceBusEndpoint\":\"https://ns4b69445398.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/ehddb96382c9?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:44 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "447", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e347acb8-0e33-4486-aaf5-267569db1b38", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063344Z:e347acb8-0e33-4486-aaf5-267569db1b38", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "a1dbfe77-08d8-4fa8-83c3-36c7d87bab5b_M2CH3_M2CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/ehddb96382c9\",\"name\":\"ehddb96382c9\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:43.97Z\",\"updatedAt\":\"2020-08-28T06:33:44.147Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/ehf0036654ab?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:47 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "448", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "db141457-d507-40c4-8f4b-4cece2a8012d", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063347Z:db141457-d507-40c4-8f4b-4cece2a8012d", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "6814accf-5824-4f20-b650-8b70929f3e2f_M7CH3_M7CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/ehf0036654ab\",\"name\":\"ehf0036654ab\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:46.677Z\",\"updatedAt\":\"2020-08-28T06:33:46.917Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:47 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "904", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11994", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "995ddddd-c111-4d07-8afb-b084baa3394e", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063348Z:995ddddd-c111-4d07-8afb-b084baa3394e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-inline-count" : "", + "x-ms-request-id" : "98b2e7be-9086-4cdf-9184-a5a630b19f39_M7SN1_M7SN1", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/ehddb96382c9\",\"name\":\"ehddb96382c9\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:43.97\",\"updatedAt\":\"2020-08-28T06:33:44.147\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/ehf0036654ab\",\"name\":\"ehf0036654ab\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:46.677\",\"updatedAt\":\"2020-08-28T06:33:46.917\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}]}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:49 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "904", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11994", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1d1958e9-e7e8-4554-969c-5e9c81ae5bae", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063349Z:1d1958e9-e7e8-4554-969c-5e9c81ae5bae", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-inline-count" : "", + "x-ms-request-id" : "81df4f72-8133-485d-96e2-025d5538a33a_M7CH3_M7CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/ehddb96382c9\",\"name\":\"ehddb96382c9\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:43.97\",\"updatedAt\":\"2020-08-28T06:33:44.147\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/ehf0036654ab\",\"name\":\"ehf0036654ab\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:46.677\",\"updatedAt\":\"2020-08-28T06:33:46.917\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}]}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/eh4a2627573d?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:51 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "451", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5dc5b665-8002-4077-91fe-38cb312ed79c", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063351Z:5dc5b665-8002-4077-91fe-38cb312ed79c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "30adc0e1-44b1-4d71-8e6d-a11818aa0bc4_M10CH3_M10CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/eh4a2627573d\",\"name\":\"eh4a2627573d\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":6,\"partitionCount\":5,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:51.06Z\",\"updatedAt\":\"2020-08-28T06:33:51.243Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\",\"4\"]}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:52 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1354", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11995", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5172c113-30a8-4f71-9b6e-fcbdd639f6d0", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063352Z:5172c113-30a8-4f71-9b6e-fcbdd639f6d0", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-inline-count" : "", + "x-ms-request-id" : "58fe6214-600a-4e77-a10a-8469b614a8bb_M11CH3_M11CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/eh4a2627573d\",\"name\":\"eh4a2627573d\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":6,\"partitionCount\":5,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:51.06\",\"updatedAt\":\"2020-08-28T06:33:51.243\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\",\"4\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/ehddb96382c9\",\"name\":\"ehddb96382c9\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:43.97\",\"updatedAt\":\"2020-08-28T06:33:44.147\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg15778/providers/Microsoft.EventHub/namespaces/ns4b69445398/eventhubs/ehf0036654ab\",\"name\":\"ehf0036654ab\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:33:46.677\",\"updatedAt\":\"2020-08-28T06:33:46.917\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}]}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg15778?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:57 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-deletes" : "14999", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "13627b7a-b173-4576-8c09-a072bf99c0ee", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063357Z:13627b7a-b173-4576-8c09-a072bf99c0ee", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "13627b7a-b173-4576-8c09-a072bf99c0ee", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:12 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "67534934-3bae-4310-a004-ba5c98fad5bb", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063412Z:67534934-3bae-4310-a004-ba5c98fad5bb", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "67534934-3bae-4310-a004-ba5c98fad5bb", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:28 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11990", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "db4ff242-380f-4872-977a-22482f64ea27", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063429Z:db4ff242-380f-4872-977a-22482f64ea27", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "db4ff242-380f-4872-977a-22482f64ea27", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:45 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11984", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e106c450-4ced-4290-ae5d-b72704bf7164", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063445Z:e106c450-4ced-4290-ae5d-b72704bf7164", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "e106c450-4ced-4290-ae5d-b72704bf7164", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:00 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11959", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "98201373-e52c-4d29-b064-3e4b68e3f584", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063501Z:98201373-e52c-4d29-b064-3e4b68e3f584", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "98201373-e52c-4d29-b064-3e4b68e3f584", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:16 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11986", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "29d38992-475b-47d0-8839-dafbf9ee6e03", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063516Z:29d38992-475b-47d0-8839-dafbf9ee6e03", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "29d38992-475b-47d0-8839-dafbf9ee6e03", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNTc3OC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:31 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11981", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "da8d6bde-10df-4fdd-b4ab-a41397dd59e2", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063532Z:da8d6bde-10df-4fdd-b4ab-a41397dd59e2", + "cache-control" : "no-cache", + "x-ms-request-id" : "da8d6bde-10df-4fdd-b4ab-a41397dd59e2", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg15778", "ns4b69445398", "ehddb96382c9", "ehf0036654ab", "eh4a2627573d" ] +} \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageGeoDisasterRecoveryPairing.json b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageGeoDisasterRecoveryPairing.json new file mode 100644 index 0000000000000..1029e9ec61a20 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/test/resources/session-records/canManageGeoDisasterRecoveryPairing.json @@ -0,0 +1,874 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg14317?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:36 GMT", + "content-length" : "323", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f548a365-b787-4eb7-870d-54e6adb8e469", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063236Z:f548a365-b787-4eb7-870d-54e6adb8e469", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "f548a365-b787-4eb7-870d-54e6adb8e469", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317\",\"name\":\"javacsmrg14317\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"southcentralus\",\"tags\":{\"date\":\"2020-08-28T06:32:32.054925200Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:32:44 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "657", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "cd90b006-6d2d-46b0-88ab-a4dc2b5eecc8", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "49", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063244Z:cd90b006-6d2d-46b0-88ab-a4dc2b5eecc8", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "1f5d22d5-7a6f-4511-a8df-60cee71597e1_M2SN1_M2SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4\",\"name\":\"ns71b85515a4\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"South Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns71b85515a4\",\"createdAt\":\"2020-08-28T06:32:43.443Z\",\"updatedAt\":\"2020-08-28T06:32:43.443Z\",\"serviceBusEndpoint\":\"https://ns71b85515a4.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:14 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "657", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11988", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "7f26c2ef-fd2d-4442-888e-40c3c75ba410", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063315Z:7f26c2ef-fd2d-4442-888e-40c3c75ba410", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "79885955-deae-444a-909f-e0b812606273_M6SN1_M6SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4\",\"name\":\"ns71b85515a4\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"South Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns71b85515a4\",\"createdAt\":\"2020-08-28T06:32:43.443Z\",\"updatedAt\":\"2020-08-28T06:32:43.443Z\",\"serviceBusEndpoint\":\"https://ns71b85515a4.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:45 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "653", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5fa4afd4-888a-437c-9a0b-77e86cbdc294", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063345Z:5fa4afd4-888a-437c-9a0b-77e86cbdc294", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "a07d5516-abd9-4a43-9378-c0b7d17f2b4d_M2CH3_M2CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4\",\"name\":\"ns71b85515a4\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"South Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns71b85515a4\",\"createdAt\":\"2020-08-28T06:32:43.443Z\",\"updatedAt\":\"2020-08-28T06:33:32.1Z\",\"serviceBusEndpoint\":\"https://ns71b85515a4.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:33:51 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "655", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1fc07365-b5ab-4ca4-a69e-5167b6e4718e", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "48", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063352Z:1fc07365-b5ab-4ca4-a69e-5167b6e4718e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d53af3bd-b5fb-44cd-8f37-d1d6adca0677_M2SN1_M2SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"name\":\"ns2e2617078a\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"North Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns2e2617078a\",\"createdAt\":\"2020-08-28T06:33:50.83Z\",\"updatedAt\":\"2020-08-28T06:33:50.83Z\",\"serviceBusEndpoint\":\"https://ns2e2617078a.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:21 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "655", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11985", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0a4dd881-237b-4ab9-8768-dd89e31644ff", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063422Z:0a4dd881-237b-4ab9-8768-dd89e31644ff", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "322bf2af-cf9d-4687-99ec-39820b7399ee_M6SN1_M6SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"name\":\"ns2e2617078a\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"North Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns2e2617078a\",\"createdAt\":\"2020-08-28T06:33:50.83Z\",\"updatedAt\":\"2020-08-28T06:33:50.83Z\",\"serviceBusEndpoint\":\"https://ns2e2617078a.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:34:53 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "653", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11988", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "188999bb-37f4-48d3-a092-b49aca70ce0b", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063454Z:188999bb-37f4-48d3-a092-b49aca70ce0b", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d93796af-c456-4a86-aaec-067bbf4025e6_M3CH3_M3CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"name\":\"ns2e2617078a\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"North Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns2e2617078a\",\"createdAt\":\"2020-08-28T06:33:50.83Z\",\"updatedAt\":\"2020-08-28T06:34:37.61Z\",\"serviceBusEndpoint\":\"https://ns2e2617078a.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:01 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "515", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1189", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0c9bb942-7fb1-4fb4-a741-f70b45d757f8", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063501Z:0c9bb942-7fb1-4fb4-a741-f70b45d757f8", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "a417b5c2-d434-4784-b708-3c80adccb408_M6CH3_M6CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:01 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "515", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11994", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "abb97b26-ca3f-4bec-af9f-897c268ad6b2", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063502Z:abb97b26-ca3f-4bec-af9f-897c268ad6b2", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "5633214f-ce41-408e-bbea-aec65082401e_M1SN1_M1SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:16 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "515", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11958", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "c729b9a5-af82-4e8a-bd6d-2ee8bc47ef9f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063517Z:c729b9a5-af82-4e8a-bd6d-2ee8bc47ef9f", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "4b779ea5-e1ae-40cd-a6ea-b164c4b6d289_M1SN1_M1SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:32 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "515", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11984", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "43087eaf-c2d6-435b-b63f-ca23ee8cc844", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063532Z:43087eaf-c2d6-435b-b63f-ca23ee8cc844", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "658f8de5-a07c-4288-b6e9-7ec7dcdf62b2_M4CH3_M4CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:35:47 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "515", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11986", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "af3b803d-12e4-4be2-a360-bd3888486f26", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063548Z:af3b803d-12e4-4be2-a360-bd3888486f26", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d824a575-fac1-402b-b961-80ed62848c01_M9CH3_M9CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:36:03 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "515", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11982", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a119d124-5f9b-4e36-ba6f-2d79c0324865", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063603Z:a119d124-5f9b-4e36-ba6f-2d79c0324865", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "55f3cd5b-7a96-447a-884f-4752345fc600_M4CH3_M4CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:36:18 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "515", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11991", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f6a50282-d345-4511-9386-07dbe43cb12f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063619Z:f6a50282-d345-4511-9386-07dbe43cb12f", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "c598dab1-6e19-4f8d-96d3-02383cf90529_M11CH3_M11CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:36:34 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "515", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11985", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "c0ce557b-424c-4ad3-8378-b5c6753f35e5", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063634Z:c0ce557b-424c-4ad3-8378-b5c6753f35e5", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "3e8bb614-9943-47ab-936b-1f84ce889f28_M9CH3_M9CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:36:50 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "554", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11991", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1be7cc0a-a564-4888-9947-871f81ad57b5", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063650Z:1be7cc0a-a564-4888-9947-871f81ad57b5", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "b7a878fe-5a82-4238-b72e-0a25866b51f9_M6CH3_M6CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821/authorizationRules?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:06 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "412", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11955", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "4dcb5e56-b4ec-4db9-b951-578badc215a7", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063706Z:4dcb5e56-b4ec-4db9-b951-578badc215a7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "6ad302dd-519a-49fe-8264-3dca794e9432_M4CH3_M4CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821/authorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"South Central US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}]}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821/authorizationRules?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:07 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "412", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/SN1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11973", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "ca0aeef8-0964-4854-9dcc-0ce47968171e", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063707Z:ca0aeef8-0964-4854-9dcc-0ce47968171e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "6e703628-5b5f-493d-aedf-c7c29f31f2ff_M2SN1_M2SN1", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821/authorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"South Central US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}]}" + } + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821/authorizationRules/RootManageSharedAccessKey/listKeys?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:08 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "547", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "575d69e0-a0d0-4b29-8d79-5966a074697c", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063708Z:575d69e0-a0d0-4b29-8d79-5966a074697c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "eed9796e-9983-4d4e-b2f1-ca54e60db770_M5CH3_M5CH3", + "Body" : "{\"aliasPrimaryConnectionString\":\"Endpoint=sb://geodreed90821.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"aliasSecondaryConnectionString\":\"Endpoint=sb://geodreed90821.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\",\"keyName\":\"RootManageSharedAccessKey\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:08 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "528", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11990", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f28e305c-2378-4222-8ceb-393119c724a2", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063708Z:f28e305c-2378-4222-8ceb-393119c724a2", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "f092eba9-1dd0-442d-846d-c06fbf039db4_M11CH3_M11CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}]}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:09 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "528", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11984", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "78fe84e3-ec1d-4bba-bf22-9479ce2dc241", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063709Z:78fe84e3-ec1d-4bba-bf22-9479ce2dc241", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "942af240-b52e-41cb-a44f-78334dc3d7d9_M9CH3_M9CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}]}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:09 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "554", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11984", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "263cc735-39d7-4fcc-aa5c-58a7915ea0e7", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063710Z:263cc735-39d7-4fcc-aa5c-58a7915ea0e7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "7ce27601-fab4-4914-9fc8-b0db656fc4aa_M9CH3_M9CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}" + } + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a/disasterRecoveryConfigs/geodreed90821/failover?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:10 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "0", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5fa4a220-9d12-42fb-8458-00a17ddb3ae9", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063710Z:5fa4a220-9d12-42fb-8458-00a17ddb3ae9", + "cache-control" : "no-cache", + "x-ms-request-id" : "b3998811-3aae-4f2f-be5d-5dd8d6ac9c72_M4CH3_M4CH3", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821?api-version=2017-04-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:10 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "515", + "expires" : "-1", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11990", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "7cf47949-58ce-44ed-b2b5-5f83a8b470e8", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063711Z:7cf47949-58ce-44ed-b2b5-5f83a8b470e8", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "f549ac77-b4c2-4232-8464-67c3d60b9893_M6CH3_M6CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns71b85515a4/disasterRecoveryConfigs/geodreed90821\",\"name\":\"geodreed90821\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg14317/providers/Microsoft.EventHub/namespaces/ns2e2617078a\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg14317?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:14 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-deletes" : "14996", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "75f908a0-bd03-45b4-b785-6bc7312b495e", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063715Z:75f908a0-bd03-45b4-b785-6bc7312b495e", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "75f908a0-bd03-45b4-b785-6bc7312b495e", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:30 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11972", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "8529931e-7969-4762-a413-ba42b9976e6f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063731Z:8529931e-7969-4762-a413-ba42b9976e6f", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "8529931e-7969-4762-a413-ba42b9976e6f", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:37:47 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11989", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0cefff57-f689-457c-b3cb-09a5d5a6cdac", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063747Z:0cefff57-f689-457c-b3cb-09a5d5a6cdac", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "0cefff57-f689-457c-b3cb-09a5d5a6cdac", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:38:02 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11983", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "70efd13d-0f1a-43e3-9feb-f9b37e2fc9d5", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063803Z:70efd13d-0f1a-43e3-9feb-f9b37e2fc9d5", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "70efd13d-0f1a-43e3-9feb-f9b37e2fc9d5", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:38:19 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11989", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0ec2b480-8980-4f90-ad57-bab2953264a2", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063819Z:0ec2b480-8980-4f90-ad57-bab2953264a2", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "0ec2b480-8980-4f90-ad57-bab2953264a2", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:38:35 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11953", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "6e28c898-b8c2-41e6-90f8-3ee0b5fcdfb5", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063835Z:6e28c898-b8c2-41e6-90f8-3ee0b5fcdfb5", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "6e28c898-b8c2-41e6-90f8-3ee0b5fcdfb5", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:38:51 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11971", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "08014086-6b2c-478e-825a-c8e0ac60473b", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063851Z:08014086-6b2c-478e-825a-c8e0ac60473b", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "08014086-6b2c-478e-825a-c8e0ac60473b", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:39:07 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11979", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "4ddcdb54-fb59-40e5-8654-b4e86f72d31f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063907Z:4ddcdb54-fb59-40e5-8654-b4e86f72d31f", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "4ddcdb54-fb59-40e5-8654-b4e86f72d31f", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:39:23 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11988", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5becd0b8-9754-40fa-85e7-c8241a1e0a3c", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063923Z:5becd0b8-9754-40fa-85e7-c8241a1e0a3c", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "5becd0b8-9754-40fa-85e7-c8241a1e0a3c", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:39:39 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11982", + "StatusCode" : "202", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "83f80121-1f74-44da-b52a-fb83873d3509", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063939Z:83f80121-1f74-44da-b52a-fb83873d3509", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "cache-control" : "no-cache", + "x-ms-request-id" : "83f80121-1f74-44da-b52a-fb83873d3509", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcxNDMxNy1TT1VUSENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoic291dGhjZW50cmFsdXMifQ?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:39:55 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11982", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "bc39a2c4-8918-48a9-a7f7-b66d1df2876e", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T063956Z:bc39a2c4-8918-48a9-a7f7-b66d1df2876e", + "cache-control" : "no-cache", + "x-ms-request-id" : "bc39a2c4-8918-48a9-a7f7-b66d1df2876e", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg14317", "geodreed90821", "ns71b85515a4", "ns2e2617078a" ] +} \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-privatedns/README.md b/sdk/resourcemanager/azure-resourcemanager-privatedns/README.md index 698889684ee20..85bfd8a464583 100644 --- a/sdk/resourcemanager/azure-resourcemanager-privatedns/README.md +++ b/sdk/resourcemanager/azure-resourcemanager-privatedns/README.md @@ -2,6 +2,8 @@ Azure Resource Manager Private DNS client library for Java +For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azure-sdk-java-mgmt). + ## Getting started ### Prerequisites diff --git a/sdk/resourcemanager/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java b/sdk/resourcemanager/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java index b635676d521b5..c43bb652d86cd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java +++ b/sdk/resourcemanager/azure-resourcemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java @@ -123,11 +123,13 @@ public void canCRUDRedisCache() throws Exception { Assertions.assertNotNull(oldKeys); Assertions.assertNotNull(updatedPrimaryKey); Assertions.assertNotNull(updatedSecondaryKey); - Assertions.assertNotEquals(oldKeys.primaryKey(), updatedPrimaryKey.primaryKey()); - Assertions.assertEquals(oldKeys.secondaryKey(), updatedPrimaryKey.secondaryKey()); - Assertions.assertNotEquals(oldKeys.secondaryKey(), updatedSecondaryKey.secondaryKey()); - Assertions.assertNotEquals(updatedPrimaryKey.secondaryKey(), updatedSecondaryKey.secondaryKey()); - Assertions.assertEquals(updatedPrimaryKey.primaryKey(), updatedSecondaryKey.primaryKey()); + if (isRecordMode()) { + Assertions.assertNotEquals(oldKeys.primaryKey(), updatedPrimaryKey.primaryKey()); + Assertions.assertEquals(oldKeys.secondaryKey(), updatedPrimaryKey.secondaryKey()); + Assertions.assertNotEquals(oldKeys.secondaryKey(), updatedSecondaryKey.secondaryKey()); + Assertions.assertNotEquals(updatedPrimaryKey.secondaryKey(), updatedSecondaryKey.secondaryKey()); + Assertions.assertEquals(updatedPrimaryKey.primaryKey(), updatedSecondaryKey.primaryKey()); + } // Update to STANDARD Sku from BASIC SKU redisCache = redisCache.update().withStandardSku().apply(); diff --git a/sdk/resourcemanager/azure-resourcemanager-redis/src/test/resources/session-records/canCRUDLinkedServers.json b/sdk/resourcemanager/azure-resourcemanager-redis/src/test/resources/session-records/canCRUDLinkedServers.json index b6fdf9f114967..569416a912b28 100644 --- a/sdk/resourcemanager/azure-resourcemanager-redis/src/test/resources/session-records/canCRUDLinkedServers.json +++ b/sdk/resourcemanager/azure-resourcemanager-redis/src/test/resources/session-records/canCRUDLinkedServers.json @@ -100,7 +100,7 @@ "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg65142Second/providers/Microsoft.Cache/redis/javacsmrc87925Third?api-version=2018-03-01", "cache-control" : "no-cache", "x-ms-request-id" : "caaf8476-fed3-4116-8f06-eec50efa5b22", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg65142Second/providers/Microsoft.Cache/Redis/javacsmrc87925Third\",\"location\":\"Central US\",\"name\":\"javacsmrc87925Third\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":2},\"enableNonSslPort\":true,\"redisConfiguration\":{\"maxclients\":\"15000\",\"maxmemory-reserved\":\"500\",\"maxfragmentationmemory-reserved\":\"650\",\"maxmemory-delta\":\"500\"},\"accessKeys\":{\"primaryKey\":\"+sKNdk9KJ9CKkAUKU4IQf+FNq6dMhrBOgy7SOiqUoq8=\",\"secondaryKey\":\"75TebVHPNoVC6jHuDIeINFwfV5IfdGaiB4nl8TMpbbU=\"},\"hostName\":\"javacsmrc87925Third.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg65142Second/providers/Microsoft.Cache/Redis/javacsmrc87925Third\",\"location\":\"Central US\",\"name\":\"javacsmrc87925Third\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":2},\"enableNonSslPort\":true,\"redisConfiguration\":{\"maxclients\":\"15000\",\"maxmemory-reserved\":\"500\",\"maxfragmentationmemory-reserved\":\"650\",\"maxmemory-delta\":\"500\"},\"accessKeys\":{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"},\"hostName\":\"javacsmrc87925Third.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" } }, { "Method" : "GET", @@ -1254,7 +1254,7 @@ "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg65142Second/providers/Microsoft.Cache/redis/javacsmrc87925Second?api-version=2018-03-01", "cache-control" : "no-cache", "x-ms-request-id" : "a24310c3-5181-428a-9f6e-c24259b670b4", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg65142Second/providers/Microsoft.Cache/Redis/javacsmrc87925Second\",\"location\":\"East US\",\"name\":\"javacsmrc87925Second\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":2},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"15000\",\"maxmemory-reserved\":\"500\",\"maxfragmentationmemory-reserved\":\"650\",\"maxmemory-delta\":\"500\"},\"accessKeys\":{\"primaryKey\":\"HY0l+aHU+DbLqobixJ1g0gFO3Y7DrBAckv+MFa6pea8=\",\"secondaryKey\":\"9Pk6r9DgaHiYHzYWZzvTbIiogKDXusdLNaUOcAV5axs=\"},\"hostName\":\"javacsmrc87925Second.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg65142Second/providers/Microsoft.Cache/Redis/javacsmrc87925Second\",\"location\":\"East US\",\"name\":\"javacsmrc87925Second\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":2},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"15000\",\"maxmemory-reserved\":\"500\",\"maxfragmentationmemory-reserved\":\"650\",\"maxmemory-delta\":\"500\"},\"accessKeys\":{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"},\"hostName\":\"javacsmrc87925Second.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" } }, { "Method" : "GET", diff --git a/sdk/resourcemanager/azure-resourcemanager-redis/src/test/resources/session-records/canCRUDRedisCache.json b/sdk/resourcemanager/azure-resourcemanager-redis/src/test/resources/session-records/canCRUDRedisCache.json index 6564cc8012374..d1bfa84659597 100644 --- a/sdk/resourcemanager/azure-resourcemanager-redis/src/test/resources/session-records/canCRUDRedisCache.json +++ b/sdk/resourcemanager/azure-resourcemanager-redis/src/test/resources/session-records/canCRUDRedisCache.json @@ -125,7 +125,7 @@ "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83807/providers/Microsoft.Cache/redis/javacsmrc51721?api-version=2018-03-01", "cache-control" : "no-cache", "x-ms-request-id" : "61fad7f2-b1d3-4c49-a1b0-3c379bb6b032", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83807/providers/Microsoft.Cache/Redis/javacsmrc51721\",\"location\":\"East Asia\",\"name\":\"javacsmrc51721\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Basic\",\"family\":\"C\",\"capacity\":0},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"256\",\"maxmemory-reserved\":\"2\",\"maxfragmentationmemory-reserved\":\"12\",\"maxmemory-delta\":\"2\"},\"accessKeys\":{\"primaryKey\":\"AdyeDAYVPtgKLJ4cQMAw+ALEPXdovvKckW2H1a5ejZE=\",\"secondaryKey\":\"4fVc+AWXu5Sgf0iaViLUb+IOZzQXzyAR2eGjXn0dlqo=\"},\"hostName\":\"javacsmrc51721.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83807/providers/Microsoft.Cache/Redis/javacsmrc51721\",\"location\":\"East Asia\",\"name\":\"javacsmrc51721\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Basic\",\"family\":\"C\",\"capacity\":0},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"256\",\"maxmemory-reserved\":\"2\",\"maxfragmentationmemory-reserved\":\"12\",\"maxmemory-delta\":\"2\"},\"accessKeys\":{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"},\"hostName\":\"javacsmrc51721.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" } }, { "Method" : "PUT", @@ -153,7 +153,7 @@ "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83807Second/providers/Microsoft.Cache/redis/javacsmrc51721Second?api-version=2018-03-01", "cache-control" : "no-cache", "x-ms-request-id" : "dc1c4311-6392-4fc8-9ed3-dc11902be76e", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83807Second/providers/Microsoft.Cache/Redis/javacsmrc51721Second\",\"location\":\"Central US\",\"name\":\"javacsmrc51721Second\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":1},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"7500\",\"maxmemory-reserved\":\"200\",\"maxfragmentationmemory-reserved\":\"300\",\"maxmemory-delta\":\"200\"},\"accessKeys\":{\"primaryKey\":\"ZFNTIZCby8pbpEoUlH1an2wuFTFv1f9j4+a53lMfAg8=\",\"secondaryKey\":\"K8mPCdzUjA3qbhjjmLHhXvn9cUhvzBwNB7KyGEf+Zvg=\"},\"hostName\":\"javacsmrc51721Second.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"shardCount\":10,\"linkedServers\":[]}}" + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83807Second/providers/Microsoft.Cache/Redis/javacsmrc51721Second\",\"location\":\"Central US\",\"name\":\"javacsmrc51721Second\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":1},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"7500\",\"maxmemory-reserved\":\"200\",\"maxfragmentationmemory-reserved\":\"300\",\"maxmemory-delta\":\"200\"},\"accessKeys\":{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"},\"hostName\":\"javacsmrc51721Second.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"shardCount\":10,\"linkedServers\":[]}}" } }, { "Method" : "PUT", @@ -181,7 +181,7 @@ "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83807Second/providers/Microsoft.Cache/redis/javacsmrc51721Third?api-version=2018-03-01", "cache-control" : "no-cache", "x-ms-request-id" : "35e5322b-43c6-4ece-9973-dfe066519caa", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83807Second/providers/Microsoft.Cache/Redis/javacsmrc51721Third\",\"location\":\"Central US\",\"name\":\"javacsmrc51721Third\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":2},\"enableNonSslPort\":true,\"redisConfiguration\":{\"maxclients\":\"15000\",\"maxmemory-reserved\":\"500\",\"maxfragmentationmemory-reserved\":\"650\",\"maxmemory-delta\":\"500\"},\"accessKeys\":{\"primaryKey\":\"qVQgSW448ddB4oanNNFJQrduy+5JLGBRcWqEZ5FEeNw=\",\"secondaryKey\":\"cJfVKjyQfZXMkfvhAEhPYhaKUFSE4yFK82qS5s0W6oc=\"},\"hostName\":\"javacsmrc51721Third.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83807Second/providers/Microsoft.Cache/Redis/javacsmrc51721Third\",\"location\":\"Central US\",\"name\":\"javacsmrc51721Third\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":2},\"enableNonSslPort\":true,\"redisConfiguration\":{\"maxclients\":\"15000\",\"maxmemory-reserved\":\"500\",\"maxfragmentationmemory-reserved\":\"650\",\"maxmemory-delta\":\"500\"},\"accessKeys\":{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"},\"hostName\":\"javacsmrc51721Third.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" } }, { "Method" : "GET", @@ -3289,7 +3289,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "1e2dc122-d8d2-4dbb-98a8-551ac8bb6849", - "Body" : "{\"primaryKey\":\"AdyeDAYVPtgKLJ4cQMAw+ALEPXdovvKckW2H1a5ejZE=\",\"secondaryKey\":\"4fVc+AWXu5Sgf0iaViLUb+IOZzQXzyAR2eGjXn0dlqo=\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -3316,7 +3316,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "62600221-9f9c-451a-a42c-d6859834f6dd", - "Body" : "{\"primaryKey\":\"AdyeDAYVPtgKLJ4cQMAw+ALEPXdovvKckW2H1a5ejZE=\",\"secondaryKey\":\"4fVc+AWXu5Sgf0iaViLUb+IOZzQXzyAR2eGjXn0dlqo=\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -3343,7 +3343,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "b5ec5f70-4b84-4249-b503-9e5626f8f2a0", - "Body" : "{\"primaryKey\":\"ga00lm2mNftTeV8BedCDwq77Mzr4x7wfH9yHumasP8U=\",\"secondaryKey\":\"4fVc+AWXu5Sgf0iaViLUb+IOZzQXzyAR2eGjXn0dlqo=\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -3370,7 +3370,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "3a4df646-5377-44e5-8865-92a64b309ddc", - "Body" : "{\"primaryKey\":\"ga00lm2mNftTeV8BedCDwq77Mzr4x7wfH9yHumasP8U=\",\"secondaryKey\":\"bRZoakksfS7oetXsnBhjsZkxwQF+wSctjArqvKL8+NA=\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "PATCH", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/ManageEventHub.java b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/ManageEventHub.java new file mode 100644 index 0000000000000..dae848ecb8da8 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/ManageEventHub.java @@ -0,0 +1,207 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.samples; + +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.policy.HttpLogDetailLevel; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.identity.DefaultAzureCredentialBuilder; +import com.azure.resourcemanager.Azure; +import com.azure.resourcemanager.eventhubs.models.EventHub; +import com.azure.resourcemanager.eventhubs.models.EventHubConsumerGroup; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespace; +import com.azure.resourcemanager.resources.fluentcore.arm.Region; +import com.azure.resourcemanager.resources.fluentcore.model.Creatable; +import com.azure.resourcemanager.resources.fluentcore.profile.AzureProfile; +import com.azure.resourcemanager.samples.Utils; +import com.azure.resourcemanager.storage.models.StorageAccount; +import com.azure.resourcemanager.storage.models.StorageAccountSkuType; + +/** + * Azure Event Hub sample for managing event hub - + * - Create an event hub namespace + * - Create an event hub in the namespace with data capture enabled along with a consumer group and rule + * - List consumer groups in the event hub + * - Create a second event hub in the namespace + * - Create a consumer group in the second event hub + * - List consumer groups in the second event hub + * - Create an event hub namespace along with event hub. + */ +public class ManageEventHub { + /** + * Main function which runs the actual sample. + * @param azure instance of the azure client + * @return true if sample runs successfully + */ + public static boolean runSample(Azure azure) { + final String rgName = azure.sdkContext().randomResourceName("rgNEMV_", 24); + final String namespaceName1 = azure.sdkContext().randomResourceName("ns", 14); + final String namespaceName2 = azure.sdkContext().randomResourceName("ns", 14); + final String storageAccountName = azure.sdkContext().randomResourceName("stg", 14); + final String eventHubName1 = azure.sdkContext().randomResourceName("eh", 14); + final String eventHubName2 = azure.sdkContext().randomResourceName("eh", 14); + try { + + //============================================================ + // Create an event hub namespace + // + System.out.println("Creating a namespace"); + + EventHubNamespace namespace1 = azure.eventHubNamespaces() + .define(namespaceName1) + .withRegion(Region.US_EAST2) + .withNewResourceGroup(rgName) + .create(); + + Utils.print(namespace1); + System.out.println("Created a namespace"); + //============================================================ + // Create an event hub in the namespace with data capture enabled, with consumer group and auth rule + // + + Creatable storageAccountCreatable = azure.storageAccounts() + .define(storageAccountName) + .withRegion(Region.US_EAST2) + .withExistingResourceGroup(rgName) + .withSku(StorageAccountSkuType.STANDARD_LRS); + + System.out.println("Creating an event hub with data capture enabled with a consumer group and rule in it"); + + EventHub eventHub1 = azure.eventHubs() + .define(eventHubName1) + .withExistingNamespace(namespace1) + // Optional - configure data capture + .withNewStorageAccountForCapturedData(storageAccountCreatable, "datacpt") + .withDataCaptureEnabled() + // Optional - create one consumer group in event hub + .withNewConsumerGroup("cg1", "sometadata") + // Optional - create an authorization rule for event hub + .withNewListenRule("listenrule1") + .create(); + + System.out.println("Created an event hub with data capture enabled with a consumer group and rule in it"); + Utils.print(eventHub1); + + //============================================================ + // Retrieve consumer groups in the event hub + // + System.out.println("Retrieving consumer groups"); + + PagedIterable consumerGroups = eventHub1.listConsumerGroups(); + + System.out.println("Retrieved consumer groups"); + for (EventHubConsumerGroup group : consumerGroups) { + Utils.print(group); + } + + //============================================================ + // Create another event hub in the namespace using event hub accessor in namespace accessor + // + + System.out.println("Creating another event hub in the namespace"); + + EventHub eventHub2 = azure.eventHubNamespaces() + .eventHubs() + .define(eventHubName2) + .withExistingNamespace(namespace1) + .create(); + + System.out.println("Created second event hub"); + Utils.print(eventHub2); + + //============================================================ + // Create a consumer group in the event hub using consumer group accessor in event hub accessor + // + + System.out.println("Creating a consumer group in the second event hub"); + + EventHubConsumerGroup consumerGroup2 = azure.eventHubNamespaces() + .eventHubs() + .consumerGroups() + .define("cg2") + .withExistingEventHub(eventHub2) + // Optional + .withUserMetadata("sometadata") + .create(); + + System.out.println("Created a consumer group in the second event hub"); + Utils.print(consumerGroup2); + + //============================================================ + // Retrieve consumer groups in the event hub + // + System.out.println("Retrieving consumer groups in the second event hub"); + + consumerGroups = eventHub2.listConsumerGroups(); + + System.out.println("Retrieved consumer groups in the seoond event hub"); + for (EventHubConsumerGroup group : consumerGroups) { + Utils.print(group); + } + + //============================================================ + // Create an event hub namespace with event hub + // + + System.out.println("Creating an event hub namespace along with event hub"); + + EventHubNamespace namespace2 = azure.eventHubNamespaces() + .define(namespaceName2) + .withRegion(Region.US_EAST2) + .withExistingResourceGroup(rgName) + .withNewEventHub(eventHubName2) + .create(); + + System.out.println("Created an event hub namespace along with event hub"); + Utils.print(namespace2); + for (EventHub eh : namespace2.listEventHubs()) { + Utils.print(eh); + } + return true; + } catch (Exception e) { + System.err.println(e.getMessage()); + e.printStackTrace(); + } finally { + try { + System.out.println("Deleting Resource Group: " + rgName); + azure.resourceGroups().deleteByName(rgName); + System.out.println("Deleted Resource Group: " + rgName); + } catch (NullPointerException npe) { + System.out.println("Did not create any resources in Azure. No clean up is necessary"); + } catch (Exception g) { + g.printStackTrace(); + } + } + return false; + } + + /** + * Main entry point. + * @param args the parameters + */ + public static void main(String[] args) { + try { + //============================================================= + // Authenticate + + final AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); + final TokenCredential credential = new DefaultAzureCredentialBuilder() + .build(); + + Azure azure = Azure + .configure() + .withLogLevel(HttpLogDetailLevel.BASIC) + .authenticate(credential, profile) + .withDefaultSubscription(); + + // Print selected subscription + System.out.println("Selected subscription: " + azure.subscriptionId()); + + runSample(azure); + } catch (Exception e) { + System.out.println(e.getMessage()); + e.printStackTrace(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/ManageEventHubEvents.java b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/ManageEventHubEvents.java new file mode 100644 index 0000000000000..3570ce08736c7 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/ManageEventHubEvents.java @@ -0,0 +1,161 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.samples; + +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.policy.HttpLogDetailLevel; +import com.azure.core.management.AzureEnvironment; +import com.azure.identity.DefaultAzureCredentialBuilder; +import com.azure.resourcemanager.Azure; +import com.azure.resourcemanager.cosmos.models.CosmosDBAccount; +import com.azure.resourcemanager.cosmos.models.DatabaseAccountKind; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespace; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaceAuthorizationRule; +import com.azure.resourcemanager.monitor.models.DiagnosticSetting; +import com.azure.resourcemanager.resources.fluentcore.arm.Region; +import com.azure.resourcemanager.resources.fluentcore.profile.AzureProfile; +import com.azure.resourcemanager.samples.Utils; + +import java.time.Duration; + +/** + * Stream Azure Service Logs and Metrics for consumption through Event Hub. + * - Create a DocumentDB instance + * - Creates a Event Hub namespace and an Event Hub in it + * - Retrieve the root namespace authorization rule + * - Enable diagnostics on a existing cosmosDB to stream events to event hub + */ +public class ManageEventHubEvents { + /** + * Main function which runs the actual sample. + * + * @param azure instance of the azure client + * @return true if sample runs successfully + */ + public static boolean runSample(Azure azure) { + final Region region = Region.US_EAST; + final String rgName = azure.sdkContext().randomResourceName("rgEvHb", 24); + final String namespaceName = azure.sdkContext().randomResourceName("ns", 24); + final String eventHubName = "FirstEventHub"; + String diagnosticSettingId = null; + + try { + //============================================================= + // Creates a Cosmos DB. + // + CosmosDBAccount docDb = azure.cosmosDBAccounts() + .define(namespaceName) + .withRegion(region) + .withNewResourceGroup(rgName) + .withKind(DatabaseAccountKind.MONGO_DB) + .withEventualConsistency() + .withWriteReplication(Region.US_WEST) + .withReadReplication(Region.US_CENTRAL) + .create(); + + System.out.println("Created a DocumentDb instance."); + Utils.print(docDb); + //============================================================= + // Creates a Event Hub namespace and an Event Hub in it. + // + + System.out.println("Creating event hub namespace and event hub"); + + EventHubNamespace namespace = azure.eventHubNamespaces() + .define(namespaceName) + .withRegion(region) + .withExistingResourceGroup(rgName) + .withNewEventHub(eventHubName) + .create(); + + System.out.println(String.format("Created event hub namespace %s and event hub %s ", namespace.name(), eventHubName)); + System.out.println(); + Utils.print(namespace); + + //============================================================= + // Retrieve the root namespace authorization rule. + // + + System.out.println("Retrieving the namespace authorization rule"); + + EventHubNamespaceAuthorizationRule eventHubAuthRule = azure.eventHubNamespaces().authorizationRules() + .getByName(namespace.resourceGroupName(), namespace.name(), "RootManageSharedAccessKey"); + + System.out.println("Namespace authorization rule Retrieved"); + + //============================================================= + // Enable diagnostics on a cosmosDB to stream events to event hub + // + + System.out.println("Enabling diagnostics events of a cosmosdb to stream to event hub"); + + // Store Id of created Diagnostic settings only for clean-up + DiagnosticSetting ds = azure.diagnosticSettings() + .define("DiaEventHub") + .withResource(docDb.id()) + .withEventHub(eventHubAuthRule.id(), eventHubName) + .withLog("DataPlaneRequests", 0) + .withLog("MongoRequests", 0) + .withMetric("AllMetrics", Duration.ofMinutes(5), 0) + .create(); + + Utils.print(ds); + diagnosticSettingId = ds.id(); + + System.out.println("Streaming of diagnostics events to event hub is enabled"); + + //============================================================= + // Listen for events from event hub using Event Hub dataplane APIs. + + return true; + } catch (Exception f) { + System.out.println(f.getMessage()); + f.printStackTrace(); + } finally { + try { + if (diagnosticSettingId != null) { + System.out.println("Deleting Diagnostic Setting: " + diagnosticSettingId); + azure.diagnosticSettings().deleteById(diagnosticSettingId); + } + System.out.println("Deleting Resource Group: " + rgName); + azure.resourceGroups().beginDeleteByName(rgName); + System.out.println("Deleted Resource Group: " + rgName); + } catch (NullPointerException npe) { + System.out.println("Did not create any resources in Azure. No clean up is necessary"); + } catch (Exception g) { + g.printStackTrace(); + } + } + + return false; + } + + /** + * Main entry point. + * @param args the parameters + */ + public static void main(String[] args) { + try { + //============================================================= + // Authenticate + + final AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); + final TokenCredential credential = new DefaultAzureCredentialBuilder() + .build(); + + Azure azure = Azure + .configure() + .withLogLevel(HttpLogDetailLevel.BASIC) + .authenticate(credential, profile) + .withDefaultSubscription(); + + // Print selected subscription + System.out.println("Selected subscription: " + azure.subscriptionId()); + + runSample(azure); + } catch (Exception e) { + System.out.println(e.getMessage()); + e.printStackTrace(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/ManageEventHubGeoDisasterRecovery.java b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/ManageEventHubGeoDisasterRecovery.java new file mode 100644 index 0000000000000..a472257cd6d3f --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/ManageEventHubGeoDisasterRecovery.java @@ -0,0 +1,195 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.eventhubs.samples; + +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.policy.HttpLogDetailLevel; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.identity.DefaultAzureCredentialBuilder; +import com.azure.resourcemanager.Azure; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationKey; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHub; +import com.azure.resourcemanager.eventhubs.models.EventHubDisasterRecoveryPairing; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespace; +import com.azure.resourcemanager.eventhubs.models.ProvisioningStateDR; +import com.azure.resourcemanager.resources.fluentcore.arm.Region; +import com.azure.resourcemanager.resources.fluentcore.profile.AzureProfile; +import com.azure.resourcemanager.resources.fluentcore.utils.SdkContext; +import com.azure.resourcemanager.resources.models.ResourceGroup; +import com.azure.resourcemanager.samples.Utils; + +/** + * Azure Event Hub sample for managing geo disaster recovery pairing - + * - Create two event hub namespaces + * - Create a pairing between two namespaces + * - Create an event hub in the primary namespace and retrieve it from the secondary namespace + * - Retrieve the pairing connection string + * - Fail over so that secondary namespace become primary. + */ +public class ManageEventHubGeoDisasterRecovery { + /** + * Main function which runs the actual sample. + * @param azure instance of the azure client + * @return true if sample runs successfully + */ + public static boolean runSample(Azure azure) { + final String rgName = azure.sdkContext().randomResourceName("rgNEMV_", 24); + final String primaryNamespaceName = azure.sdkContext().randomResourceName("ns", 14); + final String secondaryNamespaceName = azure.sdkContext().randomResourceName("ns", 14); + final String geoDRName = azure.sdkContext().randomResourceName("geodr", 14); + final String eventHubName = azure.sdkContext().randomResourceName("eh", 14); + boolean isFailOverSucceeded = false; + EventHubDisasterRecoveryPairing pairing = null; + + try { + + //============================================================ + // Create resource group for the namespaces and recovery pairings + // + ResourceGroup resourceGroup = azure.resourceGroups().define(rgName) + .withRegion(Region.US_SOUTH_CENTRAL) + .create(); + + System.out.println("Creating primary event hub namespace " + primaryNamespaceName); + + EventHubNamespace primaryNamespace = azure.eventHubNamespaces() + .define(primaryNamespaceName) + .withRegion(Region.US_SOUTH_CENTRAL) + .withExistingResourceGroup(resourceGroup) + .create(); + + System.out.println("Primary event hub namespace created"); + Utils.print(primaryNamespace); + + System.out.println("Creating secondary event hub namespace " + primaryNamespaceName); + + EventHubNamespace secondaryNamespace = azure.eventHubNamespaces() + .define(secondaryNamespaceName) + .withRegion(Region.US_NORTH_CENTRAL) + .withExistingResourceGroup(resourceGroup) + .create(); + + System.out.println("Secondary event hub namespace created"); + Utils.print(secondaryNamespace); + + //============================================================ + // Create primary and secondary namespaces and recovery pairing + // + System.out.println("Creating geo-disaster recovery pairing " + geoDRName); + + pairing = azure.eventHubDisasterRecoveryPairings() + .define(geoDRName) + .withExistingPrimaryNamespace(primaryNamespace) + .withExistingSecondaryNamespace(secondaryNamespace) + .create(); + + while (pairing.provisioningState() != ProvisioningStateDR.SUCCEEDED) { + pairing = pairing.refresh(); + SdkContext.sleep(15 * 1000); + if (pairing.provisioningState() == ProvisioningStateDR.FAILED) { + throw new Exception("Provisioning state of the pairing is FAILED"); + } + } + + System.out.println("Created geo-disaster recovery pairing " + geoDRName); + Utils.print(pairing); + + //============================================================ + // Create an event hub and consumer group in primary namespace + // + + System.out.println("Creating an event hub and consumer group in primary namespace"); + + EventHub eventHubInPrimaryNamespace = azure.eventHubs() + .define(eventHubName) + .withExistingNamespace(primaryNamespace) + .withNewConsumerGroup("consumerGrp1") + .create(); + + System.out.println("Created event hub and consumer group in primary namespace"); + Utils.print(eventHubInPrimaryNamespace); + + System.out.println("Waiting for 60 seconds to allow metadata to sync across primary and secondary"); + SdkContext.sleep(60 * 1000); // Wait for syncing to finish + + System.out.println("Retrieving the event hubs in secondary namespace"); + + EventHub eventHubInSecondaryNamespace = azure.eventHubs().getByName(rgName, secondaryNamespaceName, eventHubName); + + System.out.println("Retrieved the event hubs in secondary namespace"); + Utils.print(eventHubInSecondaryNamespace); + + //============================================================ + // Retrieving the connection string + // + PagedIterable rules = pairing.listAuthorizationRules(); + for (DisasterRecoveryPairingAuthorizationRule rule : rules) { + DisasterRecoveryPairingAuthorizationKey key = rule.getKeys(); + Utils.print(key); + } + + System.out.println("Initiating fail over"); + + pairing.failOver(); + isFailOverSucceeded = true; + + System.out.println("Fail over initiated"); + return true; + } catch (Exception e) { + System.err.println(e.getMessage()); + e.printStackTrace(); + } finally { + try { + try { + // It is necessary to break pairing before deleting resource group + // + if (pairing != null && !isFailOverSucceeded) { + pairing.breakPairing(); + } + } catch (Exception ex) { + System.out.println("Pairing breaking failed:" + ex.getMessage()); + } + + System.out.println("Deleting Resource Group: " + rgName); + azure.resourceGroups().beginDeleteByName(rgName); + System.out.println("Deleted Resource Group: " + rgName); + } catch (NullPointerException npe) { + System.out.println("Did not create any resources in Azure. No clean up is necessary"); + } catch (Exception g) { + g.printStackTrace(); + } + } + return false; + } + + /** + * Main entry point. + * @param args the parameters + */ + public static void main(String[] args) { + try { + //============================================================= + // Authenticate + + final AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); + final TokenCredential credential = new DefaultAzureCredentialBuilder() + .build(); + + Azure azure = Azure + .configure() + .withLogLevel(HttpLogDetailLevel.BASIC) + .authenticate(credential, profile) + .withDefaultSubscription(); + + // Print selected subscription + System.out.println("Selected subscription: " + azure.subscriptionId()); + + runSample(azure); + } catch (Exception e) { + System.out.println(e.getMessage()); + e.printStackTrace(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/package-info.java b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/package-info.java new file mode 100644 index 0000000000000..2ed4a762d8e9c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/eventhubs/samples/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * This package contains the classes for eventhubs samples. + */ +package com.azure.resourcemanager.eventhubs.samples; diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/Utils.java b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/Utils.java index 8e23e7b0decd4..3e3f709a06dc2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/Utils.java +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/Utils.java @@ -81,6 +81,13 @@ import com.azure.resourcemanager.dns.models.SrvRecordSet; import com.azure.resourcemanager.dns.models.TxtRecord; import com.azure.resourcemanager.dns.models.TxtRecordSet; +import com.azure.resourcemanager.eventhubs.models.AccessRights; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationKey; +import com.azure.resourcemanager.eventhubs.models.DisasterRecoveryPairingAuthorizationRule; +import com.azure.resourcemanager.eventhubs.models.EventHub; +import com.azure.resourcemanager.eventhubs.models.EventHubConsumerGroup; +import com.azure.resourcemanager.eventhubs.models.EventHubDisasterRecoveryPairing; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespace; import com.azure.resourcemanager.keyvault.models.AccessPolicy; import com.azure.resourcemanager.keyvault.models.CertificatePermissions; import com.azure.resourcemanager.keyvault.models.KeyPermissions; @@ -2779,116 +2786,116 @@ public static void print(ContainerGroup resource) { System.out.println(info.toString()); } -// /** -// * Print event hub namespace. -// * -// * @param resource a virtual machine -// */ -// public static void print(EventHubNamespace resource) { -// StringBuilder info = new StringBuilder(); -// info.append("Eventhub Namespace: ").append(resource.id()) -// .append("\n\tName: ").append(resource.name()) -// .append("\n\tRegion: ").append(resource.region()) -// .append("\n\tTags: ").append(resource.tags()) -// .append("\n\tAzureInsightMetricId: ").append(resource.azureInsightMetricId()) -// .append("\n\tIsAutoScale enabled: ").append(resource.isAutoScaleEnabled()) -// .append("\n\tServiceBus endpoint: ").append(resource.serviceBusEndpoint()) -// .append("\n\tThroughPut upper limit: ").append(resource.throughputUnitsUpperLimit()) -// .append("\n\tCurrent ThroughPut: ").append(resource.currentThroughputUnits()) -// .append("\n\tCreated time: ").append(resource.createdAt()) -// .append("\n\tUpdated time: ").append(resource.updatedAt()); -// -// System.out.println(info.toString()); -// } -// -// /** -// * Print event hub. -// * -// * @param resource event hub -// */ -// public static void print(EventHub resource) { -// StringBuilder info = new StringBuilder(); -// info.append("Eventhub: ").append(resource.id()) -// .append("\n\tName: ").append(resource.name()) -// .append("\n\tNamespace resource group: ").append(resource.namespaceResourceGroupName()) -// .append("\n\tNamespace: ").append(resource.namespaceName()) -// .append("\n\tIs data capture enabled: ").append(resource.isDataCaptureEnabled()) -// .append("\n\tPartition ids: ").append(resource.partitionIds()); -// if (resource.isDataCaptureEnabled()) { -// info.append("\n\t\t\tData capture window size in MB: ").append(resource.dataCaptureWindowSizeInMB()); -// info.append("\n\t\t\tData capture window size in seconds: ").append(resource.dataCaptureWindowSizeInSeconds()); -// if (resource.captureDestination() != null) { -// info.append("\n\t\t\tData capture storage account: ").append(resource.captureDestination().storageAccountResourceId()); -// info.append("\n\t\t\tData capture storage container: ").append(resource.captureDestination().blobContainer()); -// } -// } -// System.out.println(info.toString()); -// } -// -// /** -// * Print event hub namespace recovery pairing. -// * -// * @param resource event hub namespace disaster recovery pairing -// */ -// public static void print(EventHubDisasterRecoveryPairing resource) { -// StringBuilder info = new StringBuilder(); -// info.append("DisasterRecoveryPairing: ").append(resource.id()) -// .append("\n\tName: ").append(resource.name()) -// .append("\n\tPrimary namespace resource group name: ").append(resource.primaryNamespaceResourceGroupName()) -// .append("\n\tPrimary namespace name: ").append(resource.primaryNamespaceName()) -// .append("\n\tSecondary namespace: ").append(resource.secondaryNamespaceId()) -// .append("\n\tNamespace role: ").append(resource.namespaceRole()); -// System.out.println(info.toString()); -// } -// -// /** -// * Print event hub namespace recovery pairing auth rules. -// * -// * @param resource event hub namespace disaster recovery pairing auth rule -// */ -// public static void print(DisasterRecoveryPairingAuthorizationRule resource) { -// StringBuilder info = new StringBuilder(); -// info.append("DisasterRecoveryPairing auth rule: ").append(resource.name()); -// List rightsStr = new ArrayList<>(); -// for (com.microsoft.azure.management.eventhub.AccessRights rights : resource.rights()) { -// rightsStr.add(rights.toString()); -// } -// info.append("\n\tRights: ").append(rightsStr); -// System.out.println(info.toString()); -// } -// -// /** -// * Print event hub namespace recovery pairing auth rule key. -// * -// * @param resource event hub namespace disaster recovery pairing auth rule key -// */ -// public static void print(DisasterRecoveryPairingAuthorizationKey resource) { -// StringBuilder info = new StringBuilder(); -// info.append("DisasterRecoveryPairing auth key: ") -// .append("\n\t Alias primary connection string: ").append(resource.aliasPrimaryConnectionString()) -// .append("\n\t Alias secondary connection string: ").append(resource.aliasSecondaryConnectionString()) -// .append("\n\t Primary key: ").append(resource.primaryKey()) -// .append("\n\t Secondary key: ").append(resource.secondaryKey()) -// .append("\n\t Primary connection string: ").append(resource.primaryConnectionString()) -// .append("\n\t Secondary connection string: ").append(resource.secondaryConnectionString()); -// System.out.println(info.toString()); -// } -// -// /** -// * Print event hub consumer group. -// * -// * @param resource event hub consumer group -// */ -// public static void print(EventHubConsumerGroup resource) { -// StringBuilder info = new StringBuilder(); -// info.append("Event hub consumer group: ").append(resource.id()) -// .append("\n\tName: ").append(resource.name()) -// .append("\n\tNamespace resource group: ").append(resource.namespaceResourceGroupName()) -// .append("\n\tNamespace: ").append(resource.namespaceName()) -// .append("\n\tEvent hub name: ").append(resource.eventHubName()) -// .append("\n\tUser metadata: ").append(resource.userMetadata()); -// System.out.println(info.toString()); -// } + /** + * Print event hub namespace. + * + * @param resource a virtual machine + */ + public static void print(EventHubNamespace resource) { + StringBuilder info = new StringBuilder(); + info.append("Eventhub Namespace: ").append(resource.id()) + .append("\n\tName: ").append(resource.name()) + .append("\n\tRegion: ").append(resource.region()) + .append("\n\tTags: ").append(resource.tags()) + .append("\n\tAzureInsightMetricId: ").append(resource.azureInsightMetricId()) + .append("\n\tIsAutoScale enabled: ").append(resource.isAutoScaleEnabled()) + .append("\n\tServiceBus endpoint: ").append(resource.serviceBusEndpoint()) + .append("\n\tThroughPut upper limit: ").append(resource.throughputUnitsUpperLimit()) + .append("\n\tCurrent ThroughPut: ").append(resource.currentThroughputUnits()) + .append("\n\tCreated time: ").append(resource.createdAt()) + .append("\n\tUpdated time: ").append(resource.updatedAt()); + + System.out.println(info.toString()); + } + + /** + * Print event hub. + * + * @param resource event hub + */ + public static void print(EventHub resource) { + StringBuilder info = new StringBuilder(); + info.append("Eventhub: ").append(resource.id()) + .append("\n\tName: ").append(resource.name()) + .append("\n\tNamespace resource group: ").append(resource.namespaceResourceGroupName()) + .append("\n\tNamespace: ").append(resource.namespaceName()) + .append("\n\tIs data capture enabled: ").append(resource.isDataCaptureEnabled()) + .append("\n\tPartition ids: ").append(resource.partitionIds()); + if (resource.isDataCaptureEnabled()) { + info.append("\n\t\t\tData capture window size in MB: ").append(resource.dataCaptureWindowSizeInMB()); + info.append("\n\t\t\tData capture window size in seconds: ").append(resource.dataCaptureWindowSizeInSeconds()); + if (resource.captureDestination() != null) { + info.append("\n\t\t\tData capture storage account: ").append(resource.captureDestination().storageAccountResourceId()); + info.append("\n\t\t\tData capture storage container: ").append(resource.captureDestination().blobContainer()); + } + } + System.out.println(info.toString()); + } + + /** + * Print event hub namespace recovery pairing. + * + * @param resource event hub namespace disaster recovery pairing + */ + public static void print(EventHubDisasterRecoveryPairing resource) { + StringBuilder info = new StringBuilder(); + info.append("DisasterRecoveryPairing: ").append(resource.id()) + .append("\n\tName: ").append(resource.name()) + .append("\n\tPrimary namespace resource group name: ").append(resource.primaryNamespaceResourceGroupName()) + .append("\n\tPrimary namespace name: ").append(resource.primaryNamespaceName()) + .append("\n\tSecondary namespace: ").append(resource.secondaryNamespaceId()) + .append("\n\tNamespace role: ").append(resource.namespaceRole()); + System.out.println(info.toString()); + } + + /** + * Print event hub namespace recovery pairing auth rules. + * + * @param resource event hub namespace disaster recovery pairing auth rule + */ + public static void print(DisasterRecoveryPairingAuthorizationRule resource) { + StringBuilder info = new StringBuilder(); + info.append("DisasterRecoveryPairing auth rule: ").append(resource.name()); + List rightsStr = new ArrayList<>(); + for (AccessRights rights : resource.rights()) { + rightsStr.add(rights.toString()); + } + info.append("\n\tRights: ").append(rightsStr); + System.out.println(info.toString()); + } + + /** + * Print event hub namespace recovery pairing auth rule key. + * + * @param resource event hub namespace disaster recovery pairing auth rule key + */ + public static void print(DisasterRecoveryPairingAuthorizationKey resource) { + StringBuilder info = new StringBuilder(); + info.append("DisasterRecoveryPairing auth key: ") + .append("\n\t Alias primary connection string: ").append(resource.aliasPrimaryConnectionString()) + .append("\n\t Alias secondary connection string: ").append(resource.aliasSecondaryConnectionString()) + .append("\n\t Primary key: ").append(resource.primaryKey()) + .append("\n\t Secondary key: ").append(resource.secondaryKey()) + .append("\n\t Primary connection string: ").append(resource.primaryConnectionString()) + .append("\n\t Secondary connection string: ").append(resource.secondaryConnectionString()); + System.out.println(info.toString()); + } + + /** + * Print event hub consumer group. + * + * @param resource event hub consumer group + */ + public static void print(EventHubConsumerGroup resource) { + StringBuilder info = new StringBuilder(); + info.append("Event hub consumer group: ").append(resource.id()) + .append("\n\tName: ").append(resource.name()) + .append("\n\tNamespace resource group: ").append(resource.namespaceResourceGroupName()) + .append("\n\tNamespace: ").append(resource.namespaceName()) + .append("\n\tEvent hub name: ").append(resource.eventHubName()) + .append("\n\tUser metadata: ").append(resource.userMetadata()); + System.out.println(info.toString()); + } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/java/com/azure/resourcemanager/samples/EventHubsSampleTests.java b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/java/com/azure/resourcemanager/samples/EventHubsSampleTests.java new file mode 100644 index 0000000000000..333ac59ec7bad --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/java/com/azure/resourcemanager/samples/EventHubsSampleTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.resourcemanager.samples; + +import com.azure.resourcemanager.eventhubs.samples.ManageEventHub; +import com.azure.resourcemanager.eventhubs.samples.ManageEventHubEvents; +import com.azure.resourcemanager.eventhubs.samples.ManageEventHubGeoDisasterRecovery; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +public class EventHubsSampleTests extends SamplesTestBase { + @Test + public void testManageEventHub() { + Assertions.assertTrue(ManageEventHub.runSample(azure)); + } + + @Test + public void testManageEventHubEvents() { + Assertions.assertTrue(ManageEventHubEvents.runSample(azure)); + } + + @Test + public void testManageEventHubGeoDisasterRecovery() { + Assertions.assertTrue(ManageEventHubGeoDisasterRecovery.runSample(azure)); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBTableWithVirtualNetworkRule.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBTableWithVirtualNetworkRule.json index 96d9649a2e378..81c599a1ef9dd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBTableWithVirtualNetworkRule.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBTableWithVirtualNetworkRule.json @@ -1226,7 +1226,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "49b5ad5e-45e9-4ea8-a0a3-03e54fdc5aed", - "Body" : "{\"primaryMasterKey\":\"cgx8Z7uUVMw2aREIvsSQA2tyrg7PZKjQanzskb0SWaqy8XPBRBimSa9dFtLyOd1388B41X7N6V0CjL7Oh4ROiw==\",\"secondaryMasterKey\":\"f1DwDXFCAA3zPUdvzSDaO5K8HZOQckR9R32AnoVSXvBnWEeRFaxhZBrpmqF4VXpOjzun1p5fZ8DcCas78aY6pQ==\",\"primaryReadonlyMasterKey\":\"LeNhbFOrT5uEGEQhwRTlI4MXAq2fMuG5MKkkTOysO9ypuF2gp0wAViUcnI14eWeWnRb9aenEzMHFwfFcfH74rA==\",\"secondaryReadonlyMasterKey\":\"RE7ipJ8EDlZg2GAnmmvvWtK2UmRsOfRFYoIqH7I3hdhyMY19rW836itaClImqcu6v3sVxpTgQ3uKm1taGB0jLg==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -1252,7 +1252,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "5561a47e-c093-4a18-8ef6-1154a72e3f0c", - "Body" : "{\"primaryReadonlyMasterKey\":\"LeNhbFOrT5uEGEQhwRTlI4MXAq2fMuG5MKkkTOysO9ypuF2gp0wAViUcnI14eWeWnRb9aenEzMHFwfFcfH74rA==\",\"secondaryReadonlyMasterKey\":\"RE7ipJ8EDlZg2GAnmmvvWtK2UmRsOfRFYoIqH7I3hdhyMY19rW836itaClImqcu6v3sVxpTgQ3uKm1taGB0jLg==\"}" + "Body" : "{\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "PATCH", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithEventualConsistency.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithEventualConsistency.json index 468f7e5a9eef3..8f49e98a86843 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithEventualConsistency.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithEventualConsistency.json @@ -1186,7 +1186,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "91e0b032-5421-4d0e-94e0-ea91e70bf766", - "Body" : "{\"primaryMasterKey\":\"1sXgABJwWdUBFwG0XSpO0EtO8c6ceXmNmZyWdsGHzxzFWQ9war1NsyVD4yXryDB15UwL78DzPkqRPUIwKnUJcA==\",\"secondaryMasterKey\":\"l2WRGtDJ2B6owmlJafEwELZZrJM59v95fgoCsVkQ1a2OOfaZLjr46stdyqtDVDrtcXiWpNo16MVm3TsE1StyLg==\",\"primaryReadonlyMasterKey\":\"HdEhuaOhDvI02QdkwZaqIO00G6TkR57T2hRo1akRrJHR2EYfHLXOivQZUbvZiZPQoxWlgsmYidKbsQtNrtzXoA==\",\"secondaryReadonlyMasterKey\":\"Y8mbhGDr1gpp2GmBr3mr3UqcsyPD4JozNnNk5eK52uhVoEuuHbGueeXpaBd4LRUr7U5kUXkD9OwphoyeiUguIQ==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -1213,7 +1213,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "d403b17b-fbe2-4802-af43-917e3b4602a2", - "Body" : "{\"primaryReadonlyMasterKey\":\"HdEhuaOhDvI02QdkwZaqIO00G6TkR57T2hRo1akRrJHR2EYfHLXOivQZUbvZiZPQoxWlgsmYidKbsQtNrtzXoA==\",\"secondaryReadonlyMasterKey\":\"Y8mbhGDr1gpp2GmBr3mr3UqcsyPD4JozNnNk5eK52uhVoEuuHbGueeXpaBd4LRUr7U5kUXkD9OwphoyeiUguIQ==\"}" + "Body" : "{\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -1240,7 +1240,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "f2b5b00a-1eef-4975-aee1-92239227b071", - "Body" : "{\"primaryMasterKey\":\"1sXgABJwWdUBFwG0XSpO0EtO8c6ceXmNmZyWdsGHzxzFWQ9war1NsyVD4yXryDB15UwL78DzPkqRPUIwKnUJcA==\",\"secondaryMasterKey\":\"l2WRGtDJ2B6owmlJafEwELZZrJM59v95fgoCsVkQ1a2OOfaZLjr46stdyqtDVDrtcXiWpNo16MVm3TsE1StyLg==\",\"primaryReadonlyMasterKey\":\"HdEhuaOhDvI02QdkwZaqIO00G6TkR57T2hRo1akRrJHR2EYfHLXOivQZUbvZiZPQoxWlgsmYidKbsQtNrtzXoA==\",\"secondaryReadonlyMasterKey\":\"Y8mbhGDr1gpp2GmBr3mr3UqcsyPD4JozNnNk5eK52uhVoEuuHbGueeXpaBd4LRUr7U5kUXkD9OwphoyeiUguIQ==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "DELETE", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithIPRange.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithIPRange.json index d04a94237a75f..02089df452a41 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithIPRange.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithIPRange.json @@ -1268,7 +1268,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "8d8ddc23-f484-404e-9562-e2b853e98e36", - "Body" : "{\"primaryMasterKey\":\"v0tDudm3GbrUFmroSZ8OrPDMDRDBXKnFTCASLPKQBa7lwUyGpqOTKqWRXLU4PduhNPndN1RAwFdyD5a9HoLUSw==\",\"secondaryMasterKey\":\"eelokRguKR3yslgJwVemq5t2UVLupPLrQiM9Je8KC8aWY77qdfi5EH5ld6bX2Le00d4LB3CwJPNpHy6HzYJMsA==\",\"primaryReadonlyMasterKey\":\"FlsRhs6yXEJUKl3vzT12dGarjcOaB1M1cmI5MRJidaT6CVEhDu3wA6bnkZklBNrI0SbZ33IJENEhtFSy3fl1Mw==\",\"secondaryReadonlyMasterKey\":\"OUhyx3qdnLQwOpWw6qlEB4LW0Hx7QjoGEOPZVyeaQdHHD4jc4mdsoMeSlOvuDCCdfJEu6iUPPW0Xuh9uc8kYRg==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -1294,7 +1294,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "cec1719c-a57a-47b0-99ab-e9ac266b8958", - "Body" : "{\"primaryReadonlyMasterKey\":\"FlsRhs6yXEJUKl3vzT12dGarjcOaB1M1cmI5MRJidaT6CVEhDu3wA6bnkZklBNrI0SbZ33IJENEhtFSy3fl1Mw==\",\"secondaryReadonlyMasterKey\":\"OUhyx3qdnLQwOpWw6qlEB4LW0Hx7QjoGEOPZVyeaQdHHD4jc4mdsoMeSlOvuDCCdfJEu6iUPPW0Xuh9uc8kYRg==\"}" + "Body" : "{\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "DELETE", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithKindMongoDB.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithKindMongoDB.json index e8ca2a86f0ecb..2e0953850746b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithKindMongoDB.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testCreateCosmosDBWithKindMongoDB.json @@ -1321,7 +1321,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "104b58f0-955a-4193-96c9-c204c5ed4a19", - "Body" : "{\"primaryMasterKey\":\"RotZNwxj9u3CpTdXcsb2KVlUmXMSDUMSYGcgewz3BjuxNKooZSFixezwgZc0T8Y7KHCpyCTmkesvJs8izAzGBQ==\",\"secondaryMasterKey\":\"7BrIEgcMhzmQMS5h30wVOuzKU2m8ARnw9JZU7vXLcmNXnUxebzBWSvxPlRGSO8rd4FsWxAQzSBDu9nQBEm2mAg==\",\"primaryReadonlyMasterKey\":\"jUOPOrThCxA17gfIPCbkU5TTeHQf4KWX6HR2W217ZkU8heNWCJsvpK6VNy072FfWhzlQi1bBvLRipfgqopqAgA==\",\"secondaryReadonlyMasterKey\":\"SXbdOGw6jZPoJp17aaKAxmEeMw0xBBdFj1oETSU3kIdPFLXM85CZ1npFWbeRbOVOXRRY9Me1YiFxnHHwOYEN1A==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -1348,7 +1348,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "7eea78d2-8f3e-47ee-867f-4d1e25c2bd71", - "Body" : "{\"primaryReadonlyMasterKey\":\"jUOPOrThCxA17gfIPCbkU5TTeHQf4KWX6HR2W217ZkU8heNWCJsvpK6VNy072FfWhzlQi1bBvLRipfgqopqAgA==\",\"secondaryReadonlyMasterKey\":\"SXbdOGw6jZPoJp17aaKAxmEeMw0xBBdFj1oETSU3kIdPFLXM85CZ1npFWbeRbOVOXRRY9Me1YiFxnHHwOYEN1A==\"}" + "Body" : "{\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHub.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHub.json index 89c924784f75a..2cad3d66e7233 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHub.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHub.json @@ -1,810 +1,752 @@ { "networkCallRecords" : [ { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgnemv_263763384311?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgnemv_0d844955bd37?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:42:10 GMT", - "content-length" : "192", + "date" : "Fri, 28 Aug 2020 06:01:30 GMT", + "content-length" : "326", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1199", "retry-after" : "0", "StatusCode" : "201", - "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "8944c5e4-d96f-4a89-8dfe-23876562734c", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "2270dcb2-fe7f-4ede-aa50-32566a993bb7", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004211Z:8944c5e4-d96f-4a89-8dfe-23876562734c", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060131Z:2270dcb2-fe7f-4ede-aa50-32566a993bb7", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "8944c5e4-d96f-4a89-8dfe-23876562734c", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311\",\"name\":\"rgnemv_263763384311\",\"location\":\"eastus2\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" + "x-ms-request-id" : "2270dcb2-fe7f-4ede-aa50-32566a993bb7", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37\",\"name\":\"rgnemv_0d844955bd37\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus2\",\"tags\":{\"date\":\"2020-08-28T06:01:27.477412700Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:42:12 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "635", + "date" : "Fri, 28 Aug 2020 06:01:40 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "651", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "server-sb" : "Service-Bus-Resource-Provider/CH3", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5d00363f-69cb-49d8-81c8-7c0ef97e7e57", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "091398be-b5fc-4933-a813-45ebc263ff4b", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004213Z:091398be-b5fc-4933-a813-45ebc263ff4b", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "49", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060141Z:5d00363f-69cb-49d8-81c8-7c0ef97e7e57", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "523dd2cd-629a-47a1-a010-00aef6feeb97_M1SN1_M1SN1", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa\",\"name\":\"nsba561500fa\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsba561500fa\",\"createdAt\":\"2018-02-23T00:42:10.847Z\",\"updatedAt\":\"2018-02-23T00:42:10.847Z\",\"serviceBusEndpoint\":\"https://nsba561500fa.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "dd9023ad-5d68-4d20-8f5e-bd592b9345de_M8CH3_M8CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968\",\"name\":\"ns0b03701968\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns0b03701968\",\"createdAt\":\"2020-08-28T06:01:38.7Z\",\"updatedAt\":\"2020-08-28T06:01:38.7Z\",\"serviceBusEndpoint\":\"https://ns0b03701968.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:42:13 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "635", + "date" : "Fri, 28 Aug 2020 06:02:11 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "651", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", + "server-sb" : "Service-Bus-Resource-Provider/CH3", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14998", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0582e022-fcde-4b1d-9402-383a1373393d", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "58672c2c-1b82-47c6-8373-ad5c55526a96", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004214Z:58672c2c-1b82-47c6-8373-ad5c55526a96", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060212Z:0582e022-fcde-4b1d-9402-383a1373393d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "5682ac20-d09f-42a4-82f3-155f488e5b8e_M1SN1_M1SN1", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa\",\"name\":\"nsba561500fa\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsba561500fa\",\"createdAt\":\"2018-02-23T00:42:10.847Z\",\"updatedAt\":\"2018-02-23T00:42:10.847Z\",\"serviceBusEndpoint\":\"https://nsba561500fa.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "31180da4-faf6-4060-81d4-3e841374a3f5_M4CH3_M4CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968\",\"name\":\"ns0b03701968\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns0b03701968\",\"createdAt\":\"2020-08-28T06:01:38.7Z\",\"updatedAt\":\"2020-08-28T06:01:38.7Z\",\"serviceBusEndpoint\":\"https://ns0b03701968.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:42:43 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "633", + "date" : "Fri, 28 Aug 2020 06:02:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "651", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14997", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a2e427cd-36cf-4fee-98ba-100d4115a4bd", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ee36506a-f329-4e53-bcf3-a2df0cc1d3c5", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004244Z:ee36506a-f329-4e53-bcf3-a2df0cc1d3c5", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060242Z:a2e427cd-36cf-4fee-98ba-100d4115a4bd", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "36f89d60-7731-47ab-ab0f-85ae68378d97_M1SN1_M1SN1", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa\",\"name\":\"nsba561500fa\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsba561500fa\",\"createdAt\":\"2018-02-23T00:42:10.847Z\",\"updatedAt\":\"2018-02-23T00:42:37.973Z\",\"serviceBusEndpoint\":\"https://nsba561500fa.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + "x-ms-request-id" : "9f055c25-04b0-4c98-af3e-5d5d15e1aa11_M1SN1_M1SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968\",\"name\":\"ns0b03701968\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns0b03701968\",\"createdAt\":\"2020-08-28T06:01:38.7Z\",\"updatedAt\":\"2020-08-28T06:02:29.683Z\",\"serviceBusEndpoint\":\"https://ns0b03701968.servicebus.windows.net:443/\",\"status\":\"Active\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.Storage/storageAccounts/stg0b6106413?api-version=2017-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.Storage/storageAccounts/stg328161738?api-version=2019-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (StorageManagementClient, 2017-10-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:42:45 GMT", - "content-length" : "0", + "date" : "Fri, 28 Aug 2020 06:02:52 GMT", "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "0", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", "retry-after" : "0", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5b200a24-1563-4b84-a34c-a9148b393de9", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "5f2cc419-1199-484d-9d6f-5b5852093770", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004246Z:5f2cc419-1199-484d-9d6f-5b5852093770", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060252Z:5b200a24-1563-4b84-a34c-a9148b393de9", "content-type" : "text/plain; charset=utf-8", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/5de2e0bd-6d0c-4463-95d0-e629d5865291?monitor=true&api-version=2017-10-01", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/6fac29af-8281-4fb7-870b-d13ac8568015?monitor=true&api-version=2019-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "5de2e0bd-6d0c-4463-95d0-e629d5865291", + "x-ms-request-id" : "6fac29af-8281-4fb7-870b-d13ac8568015", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/5de2e0bd-6d0c-4463-95d0-e629d5865291?monitor=true&api-version=2017-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/6fac29af-8281-4fb7-870b-d13ac8568015?monitor=true&api-version=2019-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (StorageManagementClient, 2017-10-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:42:45 GMT", - "content-length" : "0", + "date" : "Fri, 28 Aug 2020 06:03:08 GMT", "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "0", "expires" : "-1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14996", + "x-ms-ratelimit-remaining-subscription-reads" : "11996", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d1c8061c-1a49-4b91-b0f7-f9ddf7b768df", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d257ca3f-37b2-4e87-88b1-dbcc0c7c6c00", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004246Z:d257ca3f-37b2-4e87-88b1-dbcc0c7c6c00", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060309Z:d1c8061c-1a49-4b91-b0f7-f9ddf7b768df", "content-type" : "text/plain; charset=utf-8", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/5de2e0bd-6d0c-4463-95d0-e629d5865291?monitor=true&api-version=2017-10-01", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/6fac29af-8281-4fb7-870b-d13ac8568015?monitor=true&api-version=2019-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "fc484adf-5c4f-4292-98d5-48ba64e8c2e6", + "x-ms-request-id" : "9ed88ae5-d618-4516-b6bd-0a1b83dc7559", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/5de2e0bd-6d0c-4463-95d0-e629d5865291?monitor=true&api-version=2017-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/6fac29af-8281-4fb7-870b-d13ac8568015?monitor=true&api-version=2019-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (StorageManagementClient, 2017-10-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:03 GMT", - "content-length" : "0", + "date" : "Fri, 28 Aug 2020 06:03:12 GMT", "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "content-length" : "1114", "expires" : "-1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14995", - "StatusCode" : "202", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "8fa4016d-e41e-415d-a2e1-e42653906996", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "3fe2ef1b-9cc9-44ee-a7f3-4e82c87d0f0e", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004303Z:3fe2ef1b-9cc9-44ee-a7f3-4e82c87d0f0e", - "content-type" : "text/plain; charset=utf-8", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/5de2e0bd-6d0c-4463-95d0-e629d5865291?monitor=true&api-version=2017-10-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060313Z:8fa4016d-e41e-415d-a2e1-e42653906996", + "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "334b8dad-5e47-4e53-871e-058983d7cf6c", - "Body" : "" + "x-ms-request-id" : "56e8a8f4-43ad-405b-9572-1d19582c272a", + "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.Storage/storageAccounts/stg328161738\",\"name\":\"stg328161738\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus2\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:02:51.7676050Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:02:51.7676050Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2020-08-28T06:02:51.6738252Z\",\"primaryEndpoints\":{\"blob\":\"https://stg328161738.blob.core.windows.net/\",\"queue\":\"https://stg328161738.queue.core.windows.net/\",\"table\":\"https://stg328161738.table.core.windows.net/\",\"file\":\"https://stg328161738.file.core.windows.net/\"},\"primaryLocation\":\"eastus2\",\"statusOfPrimary\":\"available\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/5de2e0bd-6d0c-4463-95d0-e629d5865291?monitor=true&api-version=2017-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.Storage/storageAccounts/stg328161738?api-version=2019-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (StorageManagementClient, 2017-10-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:20 GMT", + "date" : "Fri, 28 Aug 2020 06:03:12 GMT", "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "content-length" : "1105", + "content-length" : "1114", "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14994", + "x-ms-ratelimit-remaining-subscription-reads" : "11985", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "fb4e8473-0506-4dbe-8305-cddb59e2f028", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "5af1b3b6-037d-41a0-a09f-69e31e2f0f8a", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004320Z:5af1b3b6-037d-41a0-a09f-69e31e2f0f8a", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060313Z:fb4e8473-0506-4dbe-8305-cddb59e2f028", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "ec5dc401-4a28-4618-be59-b247ad843fa0", - "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.Storage/storageAccounts/stg0b6106413\",\"name\":\"stg0b6106413\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus2\",\"tags\":{},\"properties\":{\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"trustedDirectories\":[\"00000000-0000-0000-0000-000000000000\"],\"supportsHttpsTrafficOnly\":false,\"encryption\":{\"services\":{\"file\":{\"enabled\":true,\"lastEnabledTime\":\"2018-02-23T00:42:46.5547986Z\"},\"blob\":{\"enabled\":true,\"lastEnabledTime\":\"2018-02-23T00:42:46.5547986Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2018-02-23T00:42:46.5235455Z\",\"primaryEndpoints\":{\"blob\":\"https://stg0b6106413.blob.core.windows.net/\",\"queue\":\"https://stg0b6106413.queue.core.windows.net/\",\"table\":\"https://stg0b6106413.table.core.windows.net/\",\"file\":\"https://stg0b6106413.file.core.windows.net/\"},\"primaryLocation\":\"eastus2\",\"statusOfPrimary\":\"available\"}}" + "x-ms-request-id" : "0cca187e-b004-4662-a9e2-c5fdc91743a1", + "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.Storage/storageAccounts/stg328161738\",\"name\":\"stg328161738\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus2\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:02:51.7676050Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-08-28T06:02:51.7676050Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2020-08-28T06:02:51.6738252Z\",\"primaryEndpoints\":{\"blob\":\"https://stg328161738.blob.core.windows.net/\",\"queue\":\"https://stg328161738.queue.core.windows.net/\",\"table\":\"https://stg328161738.table.core.windows.net/\",\"file\":\"https://stg328161738.file.core.windows.net/\"},\"primaryLocation\":\"eastus2\",\"statusOfPrimary\":\"available\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.Storage/storageAccounts/stg0b6106413?api-version=2017-10-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.Storage/storageAccounts/stg328161738/blobServices/default/containers/datacpt?api-version=2019-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (StorageManagementClient, 2017-10-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:20 GMT", + "date" : "Fri, 28 Aug 2020 06:03:13 GMT", "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "content-length" : "1105", + "content-length" : "181", "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14993", - "StatusCode" : "200", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "StatusCode" : "404", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "9069871a-6d7e-4e3e-a61c-20bb84ea3814", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "21c39ddc-47ea-4407-b13a-d1bfb1085f6c", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004321Z:21c39ddc-47ea-4407-b13a-d1bfb1085f6c", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060313Z:9069871a-6d7e-4e3e-a61c-20bb84ea3814", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "82ae133e-844d-4a9d-bd5a-98d32ef111f8", - "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.Storage/storageAccounts/stg0b6106413\",\"name\":\"stg0b6106413\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus2\",\"tags\":{},\"properties\":{\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"trustedDirectories\":[\"00000000-0000-0000-0000-000000000000\"],\"supportsHttpsTrafficOnly\":false,\"encryption\":{\"services\":{\"file\":{\"enabled\":true,\"lastEnabledTime\":\"2018-02-23T00:42:46.5547986Z\"},\"blob\":{\"enabled\":true,\"lastEnabledTime\":\"2018-02-23T00:42:46.5547986Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2018-02-23T00:42:46.5235455Z\",\"primaryEndpoints\":{\"blob\":\"https://stg0b6106413.blob.core.windows.net/\",\"queue\":\"https://stg0b6106413.queue.core.windows.net/\",\"table\":\"https://stg0b6106413.table.core.windows.net/\",\"file\":\"https://stg0b6106413.file.core.windows.net/\"},\"primaryLocation\":\"eastus2\",\"statusOfPrimary\":\"available\"}}" + "x-ms-request-id" : "fa4e003c-46cd-494d-a6d5-8822907444d4", + "Body" : "{\"error\":{\"code\":\"ContainerOperationFailure\",\"message\":\"The specified container does not exist.\\nRequestId:a4902940-f01e-005b-2f00-7deeb4000000\\nTime:2020-08-28T06:03:13.6925491Z\"}}" } }, { - "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.Storage/storageAccounts/stg0b6106413/listKeys?api-version=2017-10-01", + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.Storage/storageAccounts/stg328161738/blobServices/default/containers/datacpt?api-version=2019-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (StorageManagementClient, 2017-10-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:21 GMT", + "date" : "Fri, 28 Aug 2020 06:03:14 GMT", "server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "content-length" : "288", + "content-length" : "412", "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", "retry-after" : "0", - "StatusCode" : "200", + "StatusCode" : "201", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e87c2093-29af-45b7-991d-a0b6eb6f39ae", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "7a4c0261-9059-47a5-9e39-e16169a525e6", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004321Z:7a4c0261-9059-47a5-9e39-e16169a525e6", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060314Z:e87c2093-29af-45b7-991d-a0b6eb6f39ae", + "etag" : "\"0x8D84B180D0D2A76\"", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "c174ab01-deb2-400b-8d08-d92c2f7b1958", - "Body" : "{\"keys\":[{\"keyName\":\"key1\",\"value\":\"***REMOVED***\",\"permissions\":\"FULL\"},{\"keyName\":\"key2\",\"value\":\"***REMOVED***\",\"permissions\":\"FULL\"}]}" + "x-ms-request-id" : "9b9ced5d-a521-400f-9cc7-6e8d95a91b31", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.Storage/storageAccounts/stg328161738/blobServices/default/containers/datacpt\",\"name\":\"datacpt\",\"type\":\"Microsoft.Storage/storageAccounts/blobServices/containers\",\"properties\":{\"deleted\":false,\"remainingRetentionDays\":0,\"publicAccess\":\"Container\",\"hasImmutabilityPolicy\":false,\"hasLegalHold\":false}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/ehde106942d5?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh85878709e9?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:35 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", + "date" : "Fri, 28 Aug 2020 06:03:17 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "939", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "3e90c452-d41e-4127-8ab4-d08410af44a8", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "581d996c-d130-4f9e-b96e-26a742d3d6a6", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004336Z:581d996c-d130-4f9e-b96e-26a742d3d6a6", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060317Z:3e90c452-d41e-4127-8ab4-d08410af44a8", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "0621dc06-c362-476a-b311-68df2698cfea_M1SN1_M1SN1", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/ehde106942d5\",\"name\":\"ehde106942d5\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US 2\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2018-02-23T00:43:26.993Z\",\"updatedAt\":\"2018-02-23T00:43:37.277Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"],\"captureDescription\":{\"enabled\":true,\"encoding\":\"Avro\",\"destination\":{\"name\":\"EventHubArchive.AzureBlockBlob\",\"properties\":{\"storageAccountResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.Storage/storageAccounts/stg0b6106413\",\"blobContainer\":\"datacpt\",\"archiveNameFormat\":\"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}\"}},\"intervalInSeconds\":300,\"sizeLimitInBytes\":104857600}}}" + "x-ms-request-id" : "1e38bcfb-8572-4a56-a279-25458a3f2af4_M10CH3_M10CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh85878709e9\",\"name\":\"eh85878709e9\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US 2\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:03:16.467Z\",\"updatedAt\":\"2020-08-28T06:03:16.773Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"],\"captureDescription\":{\"enabled\":true,\"encoding\":\"Avro\",\"destination\":{\"name\":\"EventHubArchive.AzureBlockBlob\",\"properties\":{\"storageAccountResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.Storage/storageAccounts/stg328161738\",\"blobContainer\":\"datacpt\",\"archiveNameFormat\":\"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}\"}},\"intervalInSeconds\":300,\"sizeLimitInBytes\":104857600}}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/ehde106942d5/consumergroups/cg1?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh85878709e9/consumergroups/cg1?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:36 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", + "date" : "Fri, 28 Aug 2020 06:03:18 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "419", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "6f9e5577-cfed-4dd2-8f0f-3c9789f2a82a", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "697af20c-da84-4d4c-80b6-f9692524600f", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004337Z:697af20c-da84-4d4c-80b6-f9692524600f", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060319Z:6f9e5577-cfed-4dd2-8f0f-3c9789f2a82a", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "8cad65de-6b50-49e2-8263-8d365d2d65b5_M1SN1_M1SN1", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/ehde106942d5/consumergroups/cg1\",\"name\":\"cg1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2018-02-23T00:43:37.8459399Z\",\"updatedAt\":\"2018-02-23T00:43:37.8459399Z\",\"userMetadata\":\"sometadata\"}}" + "x-ms-request-id" : "9d8a7db6-fe1e-4841-949b-da8f6a9f6ff9_M1SN1_M1SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh85878709e9/consumergroups/cg1\",\"name\":\"cg1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2020-08-28T06:03:19.2749937Z\",\"updatedAt\":\"2020-08-28T06:03:19.2749937Z\",\"userMetadata\":\"sometadata\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/ehde106942d5/authorizationRules/listenrule1?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh85878709e9/authorizationRules/listenrule1?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:38 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", + "date" : "Fri, 28 Aug 2020 06:03:21 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "349", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1193", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d01bf3f2-8ec5-4d60-8208-c3b6cc45c26d", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "053ebe8a-e537-4ac5-a2db-8869753b10e4", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004338Z:053ebe8a-e537-4ac5-a2db-8869753b10e4", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060321Z:d01bf3f2-8ec5-4d60-8208-c3b6cc45c26d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "c7b7fe3b-6a43-4f17-8248-f4025098aa3d_M1SN1_M1SN1", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/ehde106942d5/authorizationRules/listenrule1\",\"name\":\"listenrule1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US 2\",\"properties\":{\"rights\":[\"Listen\"]}}" + "x-ms-request-id" : "dc2e2c46-49a1-4b41-b249-514872c4667c_M7CH3_M7CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh85878709e9/authorizationRules/listenrule1\",\"name\":\"listenrule1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules\",\"location\":\"East US 2\",\"properties\":{\"rights\":[\"Listen\"]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/ehde106942d5/consumergroups?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh85878709e9/consumergroups?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:39 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "829", + "date" : "Fri, 28 Aug 2020 06:03:21 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "813", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14992", + "x-ms-ratelimit-remaining-subscription-reads" : "11994", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "84fb8ead-5e84-47c7-8ee7-4b3c55b1fc98", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "992ef541-d514-45c0-9cf6-40de063b7bd9", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004339Z:992ef541-d514-45c0-9cf6-40de063b7bd9", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060322Z:84fb8ead-5e84-47c7-8ee7-4b3c55b1fc98", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-inline-count" : "", - "x-ms-request-id" : "3efcce6f-985f-4335-8c91-98549d1a2592_M1SN1_M1SN1", - "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/ehde106942d5/consumergroups/$Default\",\"name\":\"$Default\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2018-02-23T00:43:32.6102444\",\"updatedAt\":\"2018-02-23T00:43:32.6102444\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/ehde106942d5/consumergroups/cg1\",\"name\":\"cg1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2018-02-23T00:43:37.8447883\",\"updatedAt\":\"2018-02-23T00:43:37.8447883\",\"userMetadata\":\"sometadata\"}}]}" + "x-ms-request-id" : "55ab8038-ec76-4c00-9609-b8d03b1ab7d6_M1SN1_M1SN1", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh85878709e9/consumergroups/$Default\",\"name\":\"$Default\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2020-08-28T06:03:16.5Z\",\"updatedAt\":\"2020-08-28T06:03:16.5Z\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh85878709e9/consumergroups/cg1\",\"name\":\"cg1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2020-08-28T06:03:19.265Z\",\"updatedAt\":\"2020-08-28T06:03:19.265Z\",\"userMetadata\":\"sometadata\"}}]}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/eh17a4325774?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh0c329685b9?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:41 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "455", + "date" : "Fri, 28 Aug 2020 06:03:25 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "454", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1192", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f484b63e-e791-4dde-9c5a-5ab6bb2b4957", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "7920cbe8-531a-4211-a65f-c1b632a9a497", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004341Z:7920cbe8-531a-4211-a65f-c1b632a9a497", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060325Z:f484b63e-e791-4dde-9c5a-5ab6bb2b4957", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "4a41b8fb-ba5e-4299-b679-00207c7ee07c_M1SN1_M1SN1", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/eh17a4325774\",\"name\":\"eh17a4325774\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US 2\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2018-02-23T00:43:42.213Z\",\"updatedAt\":\"2018-02-23T00:43:42.417Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + "x-ms-request-id" : "78b22b2a-7817-42be-972e-c5221668f11d_M1CH3_M1CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh0c329685b9\",\"name\":\"eh0c329685b9\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US 2\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:03:25.053Z\",\"updatedAt\":\"2020-08-28T06:03:25.25Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/eh17a4325774/consumergroups/cg2?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh0c329685b9/consumergroups/cg2?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:42 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", + "date" : "Fri, 28 Aug 2020 06:03:27 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "419", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1191", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "3cc6da05-03a7-4ae4-86e1-b8eb6416dd3f", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "715a48af-fdd3-49dc-a46b-03116e048dca", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004342Z:715a48af-fdd3-49dc-a46b-03116e048dca", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060327Z:3cc6da05-03a7-4ae4-86e1-b8eb6416dd3f", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "538e78a0-eb5d-4eed-aa77-6ece1590172d_M1SN1_M1SN1", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/eh17a4325774/consumergroups/cg2\",\"name\":\"cg2\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2018-02-23T00:43:42.9725475Z\",\"updatedAt\":\"2018-02-23T00:43:42.9725475Z\",\"userMetadata\":\"sometadata\"}}" + "x-ms-request-id" : "791c9c53-f8f3-4517-8a94-2c921c070726_M10CH3_M10CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh0c329685b9/consumergroups/cg2\",\"name\":\"cg2\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2020-08-28T06:03:27.3593283Z\",\"updatedAt\":\"2020-08-28T06:03:27.3593283Z\",\"userMetadata\":\"sometadata\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/eh17a4325774/consumergroups?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh0c329685b9/consumergroups?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:43 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "829", + "date" : "Fri, 28 Aug 2020 06:03:27 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "817", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14991", + "x-ms-ratelimit-remaining-subscription-reads" : "11993", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "27e14388-babe-4748-98a4-bea90f5c834b", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "7d541223-c063-4809-9a47-2914c516a5eb", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004343Z:7d541223-c063-4809-9a47-2914c516a5eb", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060328Z:27e14388-babe-4748-98a4-bea90f5c834b", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-inline-count" : "", - "x-ms-request-id" : "fe390df6-66e7-4f3a-a998-7795e4b6c791_M1SN1_M1SN1", - "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/eh17a4325774/consumergroups/$Default\",\"name\":\"$Default\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2018-02-23T00:43:40.7166475\",\"updatedAt\":\"2018-02-23T00:43:40.7166475\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/nsba561500fa/eventhubs/eh17a4325774/consumergroups/cg2\",\"name\":\"cg2\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2018-02-23T00:43:42.9826852\",\"updatedAt\":\"2018-02-23T00:43:42.9826852\",\"userMetadata\":\"sometadata\"}}]}" + "x-ms-request-id" : "c9b0823d-4dce-4cfe-ba4c-203f77c23f76_M1SN1_M1SN1", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh0c329685b9/consumergroups/$Default\",\"name\":\"$Default\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2020-08-28T06:03:25.109Z\",\"updatedAt\":\"2020-08-28T06:03:25.109Z\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/ns0b03701968/eventhubs/eh0c329685b9/consumergroups/cg2\",\"name\":\"cg2\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"East US 2\",\"properties\":{\"createdAt\":\"2020-08-28T06:03:27.359Z\",\"updatedAt\":\"2020-08-28T06:03:27.359Z\",\"userMetadata\":\"sometadata\"}}]}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/ns7eb947293b?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/nse5d368290c?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:44 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "633", + "date" : "Fri, 28 Aug 2020 06:03:35 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "655", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1190", + "server-sb" : "Service-Bus-Resource-Provider/CH3", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "47f51ff6-874f-4f67-bd0e-9db59a7e77db", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a3158bdb-41ea-4071-9742-6dfd57be0bfe", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004344Z:a3158bdb-41ea-4071-9742-6dfd57be0bfe", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "48", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060336Z:47f51ff6-874f-4f67-bd0e-9db59a7e77db", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "8b214332-326b-4342-b16a-6c6eac7e0eac_M1SN1_M1SN1", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/ns7eb947293b\",\"name\":\"ns7eb947293b\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns7eb947293b\",\"createdAt\":\"2018-02-23T00:43:42.51Z\",\"updatedAt\":\"2018-02-23T00:43:42.51Z\",\"serviceBusEndpoint\":\"https://ns7eb947293b.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "563bf712-25fc-4c27-bde0-413d2cb3dbc4_M6CH3_M6CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/nse5d368290c\",\"name\":\"nse5d368290c\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nse5d368290c\",\"createdAt\":\"2020-08-28T06:03:33.943Z\",\"updatedAt\":\"2020-08-28T06:03:33.943Z\",\"serviceBusEndpoint\":\"https://nse5d368290c.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/ns7eb947293b?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/nse5d368290c?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:43:44 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "633", + "date" : "Fri, 28 Aug 2020 06:04:06 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "655", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", + "server-sb" : "Service-Bus-Resource-Provider/CH3", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14990", + "x-ms-ratelimit-remaining-subscription-reads" : "11991", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "2d3694d1-259f-43fd-88f4-05dbc82062c3", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b053dae3-94e8-41d0-8f81-ef2f3f887af6", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004344Z:b053dae3-94e8-41d0-8f81-ef2f3f887af6", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060406Z:2d3694d1-259f-43fd-88f4-05dbc82062c3", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "6c802091-1a98-4efd-af6d-446a78c1ea31_M1SN1_M1SN1", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/ns7eb947293b\",\"name\":\"ns7eb947293b\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns7eb947293b\",\"createdAt\":\"2018-02-23T00:43:42.51Z\",\"updatedAt\":\"2018-02-23T00:43:42.51Z\",\"serviceBusEndpoint\":\"https://ns7eb947293b.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "f6124deb-9b07-40ab-a4f8-a586566b491e_M3CH3_M3CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/nse5d368290c\",\"name\":\"nse5d368290c\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nse5d368290c\",\"createdAt\":\"2020-08-28T06:03:33.943Z\",\"updatedAt\":\"2020-08-28T06:03:33.943Z\",\"serviceBusEndpoint\":\"https://nse5d368290c.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/ns7eb947293b?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/nse5d368290c?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:44:17 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "632", + "date" : "Fri, 28 Aug 2020 06:04:36 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "653", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", + "server-sb" : "Service-Bus-Resource-Provider/CH3", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14989", + "x-ms-ratelimit-remaining-subscription-reads" : "11983", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "06f02bd0-0861-42a9-ae34-a45145797af1", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "685c9bd2-7218-47e9-95f6-50f1585505fd", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004417Z:685c9bd2-7218-47e9-95f6-50f1585505fd", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060436Z:06f02bd0-0861-42a9-ae34-a45145797af1", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "1f9c1593-0c29-458a-83ad-b74d5ce39a01_M1SN1_M1SN1", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/ns7eb947293b\",\"name\":\"ns7eb947293b\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns7eb947293b\",\"createdAt\":\"2018-02-23T00:43:42.51Z\",\"updatedAt\":\"2018-02-23T00:44:08.557Z\",\"serviceBusEndpoint\":\"https://ns7eb947293b.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + "x-ms-request-id" : "cef3c39f-39d0-467c-a8f2-c688db66e2fd_M4CH3_M4CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/nse5d368290c\",\"name\":\"nse5d368290c\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US 2\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nse5d368290c\",\"createdAt\":\"2020-08-28T06:03:33.943Z\",\"updatedAt\":\"2020-08-28T06:04:21.447Z\",\"serviceBusEndpoint\":\"https://nse5d368290c.servicebus.windows.net:443/\",\"status\":\"Active\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/ns7eb947293b/eventhubs/eh17a4325774?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/nse5d368290c/eventhubs/eh0c329685b9?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:44:24 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "454", + "date" : "Fri, 28 Aug 2020 06:04:40 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "453", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1189", + "server-sb" : "Service-Bus-Resource-Provider/CH3", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "108df65e-f219-421c-aad7-026cede0c9ea", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e17d3069-1a0d-4a71-a32f-8aceaefd7fd4", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004424Z:e17d3069-1a0d-4a71-a32f-8aceaefd7fd4", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060440Z:108df65e-f219-421c-aad7-026cede0c9ea", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "eda64847-adf0-4f57-ab0c-04f72cd34860_M1SN1_M1SN1", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/ns7eb947293b/eventhubs/eh17a4325774\",\"name\":\"eh17a4325774\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US 2\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2018-02-23T00:44:21.433Z\",\"updatedAt\":\"2018-02-23T00:44:25.56Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + "x-ms-request-id" : "d21f554b-816b-4599-abb0-b99bdb7b0963_M4CH3_M4CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/nse5d368290c/eventhubs/eh0c329685b9\",\"name\":\"eh0c329685b9\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US 2\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:04:39.77Z\",\"updatedAt\":\"2020-08-28T06:04:40.01Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/ns7eb947293b/eventhubs?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/nse5d368290c/eventhubs?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:44:25 GMT", - "server" : "Service-Bus-Resource-Provider/SN1", - "content-length" : "464", + "date" : "Fri, 28 Aug 2020 06:04:41 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "463", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/SN1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", + "server-sb" : "Service-Bus-Resource-Provider/CH3", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14988", + "x-ms-ratelimit-remaining-subscription-reads" : "11989", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5911bfb7-93cc-4c84-bfc5-73441d9c3def", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "95bc3768-9655-4cd8-8a2f-3e4726eaed55", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004425Z:95bc3768-9655-4cd8-8a2f-3e4726eaed55", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060441Z:5911bfb7-93cc-4c84-bfc5-73441d9c3def", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-inline-count" : "", - "x-ms-request-id" : "6e81602f-f7e3-4a83-bae3-784123f813e6_M1SN1_M1SN1", - "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_263763384311/providers/Microsoft.EventHub/namespaces/ns7eb947293b/eventhubs/eh17a4325774\",\"name\":\"eh17a4325774\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US 2\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2018-02-23T00:44:21.433\",\"updatedAt\":\"2018-02-23T00:44:25.56\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}]}" + "x-ms-request-id" : "fd5a1ddf-7827-4c15-9e8c-925e183a342b_M11CH3_M11CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0d844955bd37/providers/Microsoft.EventHub/namespaces/nse5d368290c/eventhubs/eh0c329685b9\",\"name\":\"eh0c329685b9\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US 2\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:04:39.77\",\"updatedAt\":\"2020-08-28T06:04:40.01\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}]}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgnemv_263763384311?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgnemv_0d844955bd37?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:44:26 GMT", + "date" : "Fri, 28 Aug 2020 06:04:46 GMT", "content-length" : "0", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1188", + "x-ms-ratelimit-remaining-subscription-deletes" : "14998", "retry-after" : "0", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f646b8aa-6708-4f9d-bb30-eaf2d78913b0", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "22c69290-0b94-4139-b00e-4776cec73df7", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004426Z:22c69290-0b94-4139-b00e-4776cec73df7", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060446Z:f646b8aa-6708-4f9d-bb30-eaf2d78913b0", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "22c69290-0b94-4139-b00e-4776cec73df7", + "x-ms-request-id" : "f646b8aa-6708-4f9d-bb30-eaf2d78913b0", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:44:26 GMT", + "date" : "Fri, 28 Aug 2020 06:05:01 GMT", "content-length" : "0", "expires" : "-1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14987", + "x-ms-ratelimit-remaining-subscription-reads" : "11993", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "af33aacc-1a3c-4bc0-9c20-9269c67c757f", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "4058dfcf-a284-4109-96bb-5399f19cad7e", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004426Z:4058dfcf-a284-4109-96bb-5399f19cad7e", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060501Z:af33aacc-1a3c-4bc0-9c20-9269c67c757f", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "4058dfcf-a284-4109-96bb-5399f19cad7e", + "x-ms-request-id" : "af33aacc-1a3c-4bc0-9c20-9269c67c757f", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:44:41 GMT", + "date" : "Fri, 28 Aug 2020 06:05:17 GMT", "content-length" : "0", "expires" : "-1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14986", + "x-ms-ratelimit-remaining-subscription-reads" : "11992", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "ae37c438-bb95-4517-8c9a-ac7b43553d39", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "27ccae37-a88a-437b-b4da-5ad3466d779b", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004442Z:27ccae37-a88a-437b-b4da-5ad3466d779b", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060517Z:ae37c438-bb95-4517-8c9a-ac7b43553d39", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "27ccae37-a88a-437b-b4da-5ad3466d779b", + "x-ms-request-id" : "ae37c438-bb95-4517-8c9a-ac7b43553d39", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:44:56 GMT", + "date" : "Fri, 28 Aug 2020 06:05:32 GMT", "content-length" : "0", "expires" : "-1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14985", + "x-ms-ratelimit-remaining-subscription-reads" : "11986", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "ead70dce-c541-4ed4-b751-841ca5560273", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "4b407bfe-aefd-4fe4-bd22-1ec269823816", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004457Z:4b407bfe-aefd-4fe4-bd22-1ec269823816", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060533Z:ead70dce-c541-4ed4-b751-841ca5560273", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "4b407bfe-aefd-4fe4-bd22-1ec269823816", + "x-ms-request-id" : "ead70dce-c541-4ed4-b751-841ca5560273", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:45:11 GMT", + "date" : "Fri, 28 Aug 2020 06:05:48 GMT", "content-length" : "0", "expires" : "-1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14984", + "x-ms-ratelimit-remaining-subscription-reads" : "11985", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "949e43c9-341e-4980-8450-2ab9907c0089", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "63353f34-cc41-422e-bfff-b10553de15cc", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004512Z:63353f34-cc41-422e-bfff-b10553de15cc", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060549Z:949e43c9-341e-4980-8450-2ab9907c0089", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "63353f34-cc41-422e-bfff-b10553de15cc", + "x-ms-request-id" : "949e43c9-341e-4980-8450-2ab9907c0089", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:45:26 GMT", + "date" : "Fri, 28 Aug 2020 06:06:04 GMT", "content-length" : "0", "expires" : "-1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14983", + "x-ms-ratelimit-remaining-subscription-reads" : "11984", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "60be1720-9f56-45cb-bf03-4c521228daf8", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "daeb34cd-33d7-4521-b201-a06aee249228", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004527Z:daeb34cd-33d7-4521-b201-a06aee249228", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060604Z:60be1720-9f56-45cb-bf03-4c521228daf8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "daeb34cd-33d7-4521-b201-a06aee249228", + "x-ms-request-id" : "60be1720-9f56-45cb-bf03-4c521228daf8", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:45:42 GMT", + "date" : "Fri, 28 Aug 2020 06:06:20 GMT", "content-length" : "0", "expires" : "-1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14982", + "x-ms-ratelimit-remaining-subscription-reads" : "11988", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "dc469fed-f33b-4c02-9968-9e282ef55c06", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b7cc17bb-0ba0-4fa7-968c-c9759f34c83f", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004542Z:b7cc17bb-0ba0-4fa7-968c-c9759f34c83f", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060620Z:dc469fed-f33b-4c02-9968-9e282ef55c06", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "b7cc17bb-0ba0-4fa7-968c-c9759f34c83f", + "x-ms-request-id" : "dc469fed-f33b-4c02-9968-9e282ef55c06", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwRDg0NDk1NUJEMzctRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 23 Feb 2018 00:45:57 GMT", + "date" : "Fri, 28 Aug 2020 06:06:36 GMT", "content-length" : "0", "expires" : "-1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14981", - "StatusCode" : "202", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "964f62c4-3a24-4d1c-9304-bc58486deb7e", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004557Z:964f62c4-3a24-4d1c-9304-bc58486deb7e", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", - "cache-control" : "no-cache", - "x-ms-request-id" : "964f62c4-3a24-4d1c-9304-bc58486deb7e", - "Body" : "" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYyNjM3NjMzODQzMTEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)" - }, - "Response" : { - "date" : "Fri, 23 Feb 2018 00:46:12 GMT", - "content-length" : "0", - "expires" : "-1", - "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14980", + "x-ms-ratelimit-remaining-subscription-reads" : "11983", "StatusCode" : "200", - "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "0948c661-b826-42ce-b92d-e97865952622", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "3e85a3ae-3ca3-4bd7-b195-b1c1fd7fa4a6", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180223T004613Z:0948c661-b826-42ce-b92d-e97865952622", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060636Z:3e85a3ae-3ca3-4bd7-b195-b1c1fd7fa4a6", "cache-control" : "no-cache", - "x-ms-request-id" : "0948c661-b826-42ce-b92d-e97865952622", + "x-ms-request-id" : "3e85a3ae-3ca3-4bd7-b195-b1c1fd7fa4a6", "Body" : "" } } ], - "variables" : [ "rgnemv_263763384311", "nsba561500fa", "ns7eb947293b", "stg0b6106413", "ehde106942d5", "eh17a4325774", "80ac137e-e7f1-40ed-bd2c-6a9cddb6f423", "d2081e5e-da8b-42f1-a6c8-4e14b27b7b8a", "74225f15-502b-4cc4-a645-7341483ccf90", "87d32f48-ab6e-420e-9c41-da1d12a30957", "317309ea-6614-452d-b720-edc46dbfee2d", "7031b36a-bd52-4640-a091-449d1702caa3", "7cc9f9f9-1a31-46a1-910f-46ad9015b5ac", "d682d080-9d5f-4ad8-9fec-d21db46e4f3a", "7d16eae9-5d94-4cb5-ada9-b8f75a1df9f6", "bc7fd634-5072-4641-b36c-4704807e60d7", "2edf7357-8a20-4ec5-be53-da88618e14f3", "fb802d58-bdad-4a89-aa15-abd558f97a93", "0a0eb84f-613b-47c4-b8a2-aa24a7b3a08e", "663ae923-1e37-4450-acbc-98236f9bd120", "7e6c4cdb-f7e0-4dc3-b1be-625d7230f989", "c84e5aab-9a93-4b78-82c8-98a7fb97d3d9", "f730a413-5741-41c4-bfa8-f88d7045f3aa", "f329d904-636d-49d9-b251-df5ca7c5a578", "3950aa53-6220-47c5-b19b-127a875ce9d5" ] + "variables" : [ "rgnemv_0d844955bd37", "ns0b03701968", "nse5d368290c", "stg328161738", "eh85878709e9", "eh0c329685b9" ] } \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHubEvents.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHubEvents.json index 99cf26d5a1996..bbdc906b60e73 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHubEvents.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHubEvents.json @@ -1,1123 +1,1628 @@ { "networkCallRecords" : [ { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgevhbb2f4031237a7751b?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgevhb05f3496656b8b?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (ResourceManagementClient, 2019-08-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:37:31 GMT", + "date" : "Fri, 28 Aug 2020 06:01:30 GMT", "content-length" : "325", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1199", "retry-after" : "0", "StatusCode" : "201", - "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "76de8b6a-b011-4b92-9c40-bd79cce5dcd2", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "9c481e31-72bc-4f27-84f3-bf3df3b659fa", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T113731Z:76de8b6a-b011-4b92-9c40-bd79cce5dcd2", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060131Z:9c481e31-72bc-4f27-84f3-bf3df3b659fa", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "76de8b6a-b011-4b92-9c40-bd79cce5dcd2", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b\",\"name\":\"rgevhbb2f4031237a7751b\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2019-11-15T11:37:27.090Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + "x-ms-request-id" : "9c481e31-72bc-4f27-84f3-bf3df3b659fa", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b\",\"name\":\"rgevhb05f3496656b8b\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"tags\":{\"date\":\"2020-08-28T06:01:27.477412700Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:37:36 GMT", + "date" : "Fri, 28 Aug 2020 06:01:41 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "1435", - "vary" : "Accept-Encoding", + "content-length" : "1753", "x-ms-ratelimit-remaining-subscription-writes" : "1198", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "80073468-2ebb-4971-b28a-61c994945801", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "4f2ca2f7-799a-4245-add0-7dff2e07d3c2", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T113737Z:4f2ca2f7-799a-4245-add0-7dff2e07d3c2", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060141Z:80073468-2ebb-4971-b28a-61c994945801", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25/operationResults/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563/operationResults/124436f6-a662-4113-9786-ada6e9db8c92?api-version=2019-08-01", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "af679c9c-868d-42c4-bf81-fdfb8d5634bf", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25\",\"name\":\"nsa0d23658d1a8d1ec25\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"properties\":{\"provisioningState\":\"Initializing\",\"ipRangeFilter\":\"\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Initializing\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Initializing\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Initializing\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[]}}", - "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01" + "x-ms-request-id" : "124436f6-a662-4113-9786-ada6e9db8c92", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/124436f6-a662-4113-9786-ada6e9db8c92?api-version=2019-08-01" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:37:37 GMT", + "date" : "Fri, 28 Aug 2020 06:02:12 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1753", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11999", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "280af9b0-2b41-4d62-a151-3ff07de08185", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e2960b4d-a785-444a-9bc8-a03836f3ff47", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T113737Z:e2960b4d-a785-444a-9bc8-a03836f3ff47", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060212Z:280af9b0-2b41-4d62-a151-3ff07de08185", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "e2960b4d-a785-444a-9bc8-a03836f3ff47", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "280af9b0-2b41-4d62-a151-3ff07de08185", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:38:07 GMT", + "date" : "Fri, 28 Aug 2020 06:02:42 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1753", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "cb216361-8ddc-4cae-98ca-58b0fc55ba30", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "438b8d63-079a-4c50-b11e-03c68dd2e535", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T113807Z:438b8d63-079a-4c50-b11e-03c68dd2e535", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060243Z:cb216361-8ddc-4cae-98ca-58b0fc55ba30", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "438b8d63-079a-4c50-b11e-03c68dd2e535", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "cb216361-8ddc-4cae-98ca-58b0fc55ba30", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:38:39 GMT", + "date" : "Fri, 28 Aug 2020 06:03:13 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1753", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "x-ms-ratelimit-remaining-subscription-reads" : "11995", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f2a96bbf-a33f-4ff9-a36b-43e10442cae3", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "6346bd36-fbab-4278-be60-3dbb32402006", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T113839Z:6346bd36-fbab-4278-be60-3dbb32402006", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060314Z:f2a96bbf-a33f-4ff9-a36b-43e10442cae3", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "6346bd36-fbab-4278-be60-3dbb32402006", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "f2a96bbf-a33f-4ff9-a36b-43e10442cae3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:39:10 GMT", + "date" : "Fri, 28 Aug 2020 06:03:44 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1753", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11996", + "x-ms-ratelimit-remaining-subscription-reads" : "11995", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "4a8bd40b-848a-4527-9a31-320debb19a55", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "3ae4da95-a0d9-4440-a3f0-0ace7a4eb7bb", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T113910Z:3ae4da95-a0d9-4440-a3f0-0ace7a4eb7bb", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060344Z:4a8bd40b-848a-4527-9a31-320debb19a55", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "3ae4da95-a0d9-4440-a3f0-0ace7a4eb7bb", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "4a8bd40b-848a-4527-9a31-320debb19a55", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:39:40 GMT", + "date" : "Fri, 28 Aug 2020 06:04:14 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1753", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11995", + "x-ms-ratelimit-remaining-subscription-reads" : "11984", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a4c1154e-598a-4655-a475-bac9b8908c41", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "fb5f0025-f4c8-452c-918d-85a841578b44", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T113941Z:fb5f0025-f4c8-452c-918d-85a841578b44", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060415Z:a4c1154e-598a-4655-a475-bac9b8908c41", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "fb5f0025-f4c8-452c-918d-85a841578b44", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "a4c1154e-598a-4655-a475-bac9b8908c41", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:40:10 GMT", + "date" : "Fri, 28 Aug 2020 06:04:46 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1753", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11994", + "x-ms-ratelimit-remaining-subscription-reads" : "11992", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d7ad6340-108c-4705-af48-37af97971f59", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "5d3e5ca2-23d2-45a2-a734-ed9d13fdab02", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114011Z:5d3e5ca2-23d2-45a2-a734-ed9d13fdab02", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060446Z:d7ad6340-108c-4705-af48-37af97971f59", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "5d3e5ca2-23d2-45a2-a734-ed9d13fdab02", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "d7ad6340-108c-4705-af48-37af97971f59", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:40:41 GMT", + "date" : "Fri, 28 Aug 2020 06:05:16 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1753", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11993", + "x-ms-ratelimit-remaining-subscription-reads" : "11987", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "3f892e9f-88e4-46c1-97ee-e93aca67a7d8", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a5da014e-42a9-4940-b968-43b146b8370c", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114041Z:a5da014e-42a9-4940-b968-43b146b8370c", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060516Z:3f892e9f-88e4-46c1-97ee-e93aca67a7d8", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "a5da014e-42a9-4940-b968-43b146b8370c", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "3f892e9f-88e4-46c1-97ee-e93aca67a7d8", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:41:11 GMT", + "date" : "Fri, 28 Aug 2020 06:05:46 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1990", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11992", + "x-ms-ratelimit-remaining-subscription-reads" : "11989", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5f57c13e-618f-4851-a7fb-2784f3253357", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d67db21f-3884-4860-ac57-64fd149f46c0", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114112Z:d67db21f-3884-4860-ac57-64fd149f46c0", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060547Z:5f57c13e-618f-4851-a7fb-2784f3253357", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "d67db21f-3884-4860-ac57-64fd149f46c0", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "5f57c13e-618f-4851-a7fb-2784f3253357", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:41:42 GMT", + "date" : "Fri, 28 Aug 2020 06:06:17 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1990", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11991", + "x-ms-ratelimit-remaining-subscription-reads" : "11990", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b242c0fe-7053-4814-84c5-fd2bd86ee279", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e8029110-c485-444b-98c8-764c37ce24f6", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114143Z:e8029110-c485-444b-98c8-764c37ce24f6", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060617Z:b242c0fe-7053-4814-84c5-fd2bd86ee279", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "e8029110-c485-444b-98c8-764c37ce24f6", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "b242c0fe-7053-4814-84c5-fd2bd86ee279", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:42:13 GMT", + "date" : "Fri, 28 Aug 2020 06:06:47 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1990", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11990", + "x-ms-ratelimit-remaining-subscription-reads" : "11989", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d3cd0d00-029f-4b8d-9ac4-d67448eed997", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b347aa37-cea6-4dc0-9dd9-ceb42eed6e25", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114213Z:b347aa37-cea6-4dc0-9dd9-ceb42eed6e25", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060647Z:d3cd0d00-029f-4b8d-9ac4-d67448eed997", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "b347aa37-cea6-4dc0-9dd9-ceb42eed6e25", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "d3cd0d00-029f-4b8d-9ac4-d67448eed997", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:42:43 GMT", + "date" : "Fri, 28 Aug 2020 06:07:18 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1990", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11989", + "x-ms-ratelimit-remaining-subscription-reads" : "11986", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f7849dde-4f69-401f-84d3-cb4c283e5eb7", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b01861f2-cb3c-4ebf-99d2-0772ec5b9988", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114244Z:b01861f2-cb3c-4ebf-99d2-0772ec5b9988", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060718Z:f7849dde-4f69-401f-84d3-cb4c283e5eb7", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "b01861f2-cb3c-4ebf-99d2-0772ec5b9988", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "f7849dde-4f69-401f-84d3-cb4c283e5eb7", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:43:13 GMT", + "date" : "Fri, 28 Aug 2020 06:07:48 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1990", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11980", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "7102d9b0-3ccc-419e-b230-8864ebd8a4b0", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060748Z:7102d9b0-3ccc-419e-b230-8864ebd8a4b0", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "7102d9b0-3ccc-419e-b230-8864ebd8a4b0", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:08:19 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1990", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11988", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "95afb05b-a277-4d93-bb67-2d1a4d14fae5", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "3bc2d497-c9ce-4412-b504-b9f3dc5874b2", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114314Z:3bc2d497-c9ce-4412-b504-b9f3dc5874b2", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060819Z:95afb05b-a277-4d93-bb67-2d1a4d14fae5", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "3bc2d497-c9ce-4412-b504-b9f3dc5874b2", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "95afb05b-a277-4d93-bb67-2d1a4d14fae5", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:43:44 GMT", + "date" : "Fri, 28 Aug 2020 06:08:48 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1990", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11987", + "x-ms-ratelimit-remaining-subscription-reads" : "11985", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "19973904-8869-47cb-8fa2-84a1f2ca5d03", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ca4906ba-aa9b-4522-8ed4-114dc01c39a3", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114344Z:ca4906ba-aa9b-4522-8ed4-114dc01c39a3", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060849Z:19973904-8869-47cb-8fa2-84a1f2ca5d03", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "ca4906ba-aa9b-4522-8ed4-114dc01c39a3", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "19973904-8869-47cb-8fa2-84a1f2ca5d03", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:44:14 GMT", + "date" : "Fri, 28 Aug 2020 06:09:19 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1990", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11986", + "x-ms-ratelimit-remaining-subscription-reads" : "11979", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "143f93f5-fe56-49c3-aa7d-7f7d4d2e2e6b", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "0e5f7a44-a920-4f5a-8a32-06d0c66f47ff", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114414Z:0e5f7a44-a920-4f5a-8a32-06d0c66f47ff", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060919Z:143f93f5-fe56-49c3-aa7d-7f7d4d2e2e6b", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "0e5f7a44-a920-4f5a-8a32-06d0c66f47ff", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "143f93f5-fe56-49c3-aa7d-7f7d4d2e2e6b", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:44:44 GMT", + "date" : "Fri, 28 Aug 2020 06:09:49 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1990", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11985", + "x-ms-ratelimit-remaining-subscription-reads" : "11987", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5387be79-efa7-4c18-8dae-0013c55510a4", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "4b0852db-8fc8-4c31-b50e-49f069ceae4d", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114445Z:4b0852db-8fc8-4c31-b50e-49f069ceae4d", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060950Z:5387be79-efa7-4c18-8dae-0013c55510a4", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "4b0852db-8fc8-4c31-b50e-49f069ceae4d", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "5387be79-efa7-4c18-8dae-0013c55510a4", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:45:15 GMT", + "date" : "Fri, 28 Aug 2020 06:10:20 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "1990", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11984", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "66e645a5-b53f-4452-9747-acf97a0d7029", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "c3cd0b68-7b3c-451d-b604-421f839ad1a5", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114516Z:c3cd0b68-7b3c-451d-b604-421f839ad1a5", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061020Z:66e645a5-b53f-4452-9747-acf97a0d7029", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "c3cd0b68-7b3c-451d-b604-421f839ad1a5", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "66e645a5-b53f-4452-9747-acf97a0d7029", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:45:48 GMT", + "date" : "Fri, 28 Aug 2020 06:10:49 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2015", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11978", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b799cbe3-7423-4cd8-8035-3816cfe2f9bc", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061050Z:b799cbe3-7423-4cd8-8035-3816cfe2f9bc", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "b799cbe3-7423-4cd8-8035-3816cfe2f9bc", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:11:20 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2015", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11987", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "fdbce81e-0b65-4934-8f93-c4180b30cd61", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061121Z:fdbce81e-0b65-4934-8f93-c4180b30cd61", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "fdbce81e-0b65-4934-8f93-c4180b30cd61", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:11:51 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2015", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11983", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "43387a2c-7927-4138-b72f-9488c668e58b", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061151Z:43387a2c-7927-4138-b72f-9488c668e58b", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "43387a2c-7927-4138-b72f-9488c668e58b", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:12:21 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2015", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11977", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b5e64464-bb59-4c9d-836d-edcea67577b4", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "9663f864-132a-460c-993f-ed922354bc60", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114548Z:9663f864-132a-460c-993f-ed922354bc60", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061221Z:b5e64464-bb59-4c9d-836d-edcea67577b4", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "9663f864-132a-460c-993f-ed922354bc60", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "b5e64464-bb59-4c9d-836d-edcea67577b4", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:46:19 GMT", + "date" : "Fri, 28 Aug 2020 06:12:52 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2015", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11986", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "95d40ea2-058f-44ea-aaa0-71aa73cec98f", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061252Z:95d40ea2-058f-44ea-aaa0-71aa73cec98f", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "95d40ea2-058f-44ea-aaa0-71aa73cec98f", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:13:22 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2015", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11982", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a0bcaf4e-06e1-468a-8599-a1aa8ce284bc", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061323Z:a0bcaf4e-06e1-468a-8599-a1aa8ce284bc", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "a0bcaf4e-06e1-468a-8599-a1aa8ce284bc", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:13:53 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2015", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11976", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "73455419-2642-4f66-8b94-173d66a5fa82", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061354Z:73455419-2642-4f66-8b94-173d66a5fa82", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "73455419-2642-4f66-8b94-173d66a5fa82", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:14:23 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2015", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11985", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "3d2c82ae-cbf2-418a-b865-046a817b60d8", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "80d08ea8-b46c-47b5-aca6-8681beb306c3", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114619Z:80d08ea8-b46c-47b5-aca6-8681beb306c3", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061424Z:3d2c82ae-cbf2-418a-b865-046a817b60d8", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "80d08ea8-b46c-47b5-aca6-8681beb306c3", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "3d2c82ae-cbf2-418a-b865-046a817b60d8", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:46:49 GMT", + "date" : "Fri, 28 Aug 2020 06:14:54 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2015", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11981", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "63abfff0-2802-4f83-8545-8cd5f96b3667", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061454Z:63abfff0-2802-4f83-8545-8cd5f96b3667", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "63abfff0-2802-4f83-8545-8cd5f96b3667", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:15:25 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2015", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11975", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0ae1cc59-d4bf-4e9d-9c61-839a5d0ab5d0", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061526Z:0ae1cc59-d4bf-4e9d-9c61-839a5d0ab5d0", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "0ae1cc59-d4bf-4e9d-9c61-839a5d0ab5d0", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:15:56 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2015", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11984", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f8bd18b2-a4c3-499d-82f6-809c43faf5e3", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "fbb052b3-5bb5-4ea4-ad0d-f21f09dfda9c", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114649Z:fbb052b3-5bb5-4ea4-ad0d-f21f09dfda9c", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061556Z:f8bd18b2-a4c3-499d-82f6-809c43faf5e3", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "fbb052b3-5bb5-4ea4-ad0d-f21f09dfda9c", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "f8bd18b2-a4c3-499d-82f6-809c43faf5e3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:47:20 GMT", + "date" : "Fri, 28 Aug 2020 06:16:26 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2015", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11980", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "cd6290b6-b9eb-43e1-a881-479099a28214", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061626Z:cd6290b6-b9eb-43e1-a881-479099a28214", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "cd6290b6-b9eb-43e1-a881-479099a28214", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:16:57 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2015", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11974", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "61a1998e-ac42-41ff-b182-2967d47443fd", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061657Z:61a1998e-ac42-41ff-b182-2967d47443fd", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "61a1998e-ac42-41ff-b182-2967d47443fd", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:01:38.1802154Z\"},\"properties\":{\"provisioningState\":\"Creating\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Creating\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:17:27 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2459", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11983", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "131f1038-419c-42ce-862f-ad7065484428", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e5cea504-5684-48ba-8360-34a809d608f1", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114720Z:e5cea504-5684-48ba-8360-34a809d608f1", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061727Z:131f1038-419c-42ce-862f-ad7065484428", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "e5cea504-5684-48ba-8360-34a809d608f1", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "131f1038-419c-42ce-862f-ad7065484428", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"failoverPriority\":1}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:47:49 GMT", + "date" : "Fri, 28 Aug 2020 06:17:27 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2459", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11979", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1e72fb21-da57-45f1-a895-87d696a8048d", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "8a083724-36da-4be7-bc7b-56d7822b8baf", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114750Z:8a083724-36da-4be7-bc7b-56d7822b8baf", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061728Z:1e72fb21-da57-45f1-a895-87d696a8048d", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "8a083724-36da-4be7-bc7b-56d7822b8baf", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "1e72fb21-da57-45f1-a895-87d696a8048d", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"failoverPriority\":1}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:48:21 GMT", + "date" : "Fri, 28 Aug 2020 06:17:57 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2459", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11978", + "x-ms-ratelimit-remaining-subscription-reads" : "11973", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "ddc1033e-3f69-4b27-8377-f2e0e23b6906", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "6e2a6a43-0633-43bd-88aa-edbdc1f259e6", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114821Z:6e2a6a43-0633-43bd-88aa-edbdc1f259e6", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061758Z:ddc1033e-3f69-4b27-8377-f2e0e23b6906", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "6e2a6a43-0633-43bd-88aa-edbdc1f259e6", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "ddc1033e-3f69-4b27-8377-f2e0e23b6906", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"failoverPriority\":1}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:48:52 GMT", + "date" : "Fri, 28 Aug 2020 06:18:27 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2459", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11977", + "x-ms-ratelimit-remaining-subscription-reads" : "11982", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "03717043-e396-43fa-abc8-46877b5c7b9d", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "99bd1e62-171e-4b13-936f-c0d161934ad1", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114852Z:99bd1e62-171e-4b13-936f-c0d161934ad1", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061828Z:03717043-e396-43fa-abc8-46877b5c7b9d", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "99bd1e62-171e-4b13-936f-c0d161934ad1", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "03717043-e396-43fa-abc8-46877b5c7b9d", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"failoverPriority\":1}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:49:22 GMT", + "date" : "Fri, 28 Aug 2020 06:18:58 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2459", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11976", + "x-ms-ratelimit-remaining-subscription-reads" : "11978", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "7e37f5bb-d366-4e0a-a92e-e7939a028818", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "590af619-5716-4fd1-bc7e-debad4c76ba8", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114922Z:590af619-5716-4fd1-bc7e-debad4c76ba8", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061859Z:7e37f5bb-d366-4e0a-a92e-e7939a028818", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "590af619-5716-4fd1-bc7e-debad4c76ba8", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "7e37f5bb-d366-4e0a-a92e-e7939a028818", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"failoverPriority\":1}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:49:51 GMT", + "date" : "Fri, 28 Aug 2020 06:19:29 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2459", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11975", + "x-ms-ratelimit-remaining-subscription-reads" : "11972", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "3e9415b0-0bc0-4ac0-a3a7-22ae9097fa1e", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a6e13e79-c5b8-493d-9f1e-6e103dc263a4", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T114952Z:a6e13e79-c5b8-493d-9f1e-6e103dc263a4", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061929Z:3e9415b0-0bc0-4ac0-a3a7-22ae9097fa1e", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "a6e13e79-c5b8-493d-9f1e-6e103dc263a4", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "3e9415b0-0bc0-4ac0-a3a7-22ae9097fa1e", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"provisioningState\":\"Creating\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0},{\"id\":\"nsf1493750fdd5563-centralus\",\"locationName\":\"Central US\",\"failoverPriority\":1}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:50:22 GMT", + "date" : "Fri, 28 Aug 2020 06:19:59 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2091", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11974", + "x-ms-ratelimit-remaining-subscription-reads" : "11981", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "53f46da0-97d7-4a47-b633-f74727d900b2", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a3114ce9-2ffb-4271-9ef3-4eb0cef0c64f", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115023Z:a3114ce9-2ffb-4271-9ef3-4eb0cef0c64f", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T061959Z:53f46da0-97d7-4a47-b633-f74727d900b2", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "a3114ce9-2ffb-4271-9ef3-4eb0cef0c64f", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "53f46da0-97d7-4a47-b633-f74727d900b2", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:50:52 GMT", + "date" : "Fri, 28 Aug 2020 06:20:29 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "32", - "vary" : "Accept-Encoding", + "content-length" : "2091", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11973", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "80790310-e976-442e-8811-76cb484a2fcf", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "51e3c06a-5e50-4d5e-a39a-d4f06f629a44", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115053Z:51e3c06a-5e50-4d5e-a39a-d4f06f629a44", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062030Z:80790310-e976-442e-8811-76cb484a2fcf", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "51e3c06a-5e50-4d5e-a39a-d4f06f629a44", - "Body" : "{\"status\":\"Dequeued\",\"error\":{}}" + "x-ms-request-id" : "80790310-e976-442e-8811-76cb484a2fcf", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:51:22 GMT", + "date" : "Fri, 28 Aug 2020 06:21:01 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "33", - "vary" : "Accept-Encoding", + "content-length" : "2091", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11972", + "x-ms-ratelimit-remaining-subscription-reads" : "11971", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b7783e32-2edf-4487-99be-35693488506a", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "721f3d17-7c18-485e-81c3-f4ea6274b470", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115123Z:721f3d17-7c18-485e-81c3-f4ea6274b470", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/af679c9c-868d-42c4-bf81-fdfb8d5634bf?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062101Z:b7783e32-2edf-4487-99be-35693488506a", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "721f3d17-7c18-485e-81c3-f4ea6274b470", - "Body" : "{\"status\":\"Succeeded\",\"error\":{}}" + "x-ms-request-id" : "b7783e32-2edf-4487-99be-35693488506a", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:51:23 GMT", + "date" : "Fri, 28 Aug 2020 06:21:31 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "2318", - "vary" : "Accept-Encoding", + "content-length" : "2091", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11980", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "55ffe548-98fd-4a0f-92d9-455c04068f86", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062132Z:55ffe548-98fd-4a0f-92d9-455c04068f86", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "55ffe548-98fd-4a0f-92d9-455c04068f86", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:22:02 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2091", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11971", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "aa8bba5f-6033-4270-b674-dd7b48e42866", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "25bc45bf-e61f-46d1-ad29-8511d76bcab4", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115124Z:25bc45bf-e61f-46d1-ad29-8511d76bcab4", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062202Z:aa8bba5f-6033-4270-b674-dd7b48e42866", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "25bc45bf-e61f-46d1-ad29-8511d76bcab4", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25\",\"name\":\"nsa0d23658d1a8d1ec25\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25.documents.azure.com:443/\",\"ipRangeFilter\":\"\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsa0d23658d1a8d1ec25-centralus\",\"locationName\":\"Central US\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25-centralus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsa0d23658d1a8d1ec25-centralus\",\"locationName\":\"Central US\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25-centralus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"failoverPriority\":0},{\"id\":\"nsa0d23658d1a8d1ec25-centralus\",\"locationName\":\"Central US\",\"failoverPriority\":1}],\"cors\":[],\"capabilities\":[]}}" + "x-ms-request-id" : "aa8bba5f-6033-4270-b674-dd7b48e42866", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:51:23 GMT", + "date" : "Fri, 28 Aug 2020 06:22:33 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "2318", - "vary" : "Accept-Encoding", + "content-length" : "2091", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11970", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "6f7f306e-883d-418a-b08d-ce5652d80076", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "c8d57c06-f7c3-481f-8d66-8872c04f531a", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115124Z:c8d57c06-f7c3-481f-8d66-8872c04f531a", - "x-ms-gatewayversion" : "version=2.7.0", - "content-location" : "https://management.documents.azure.com:450/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062234Z:6f7f306e-883d-418a-b08d-ce5652d80076", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "c8d57c06-f7c3-481f-8d66-8872c04f531a", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25\",\"name\":\"nsa0d23658d1a8d1ec25\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25.documents.azure.com:443/\",\"ipRangeFilter\":\"\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsa0d23658d1a8d1ec25-centralus\",\"locationName\":\"Central US\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25-centralus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false},{\"id\":\"nsa0d23658d1a8d1ec25-centralus\",\"locationName\":\"Central US\",\"documentEndpoint\":\"https://nsa0d23658d1a8d1ec25-centralus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":1,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsa0d23658d1a8d1ec25-westus\",\"locationName\":\"West US\",\"failoverPriority\":0},{\"id\":\"nsa0d23658d1a8d1ec25-centralus\",\"locationName\":\"Central US\",\"failoverPriority\":1}],\"cors\":[],\"capabilities\":[]}}" + "x-ms-request-id" : "6f7f306e-883d-418a-b08d-ce5652d80076", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { - "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25/listKeys?api-version=2019-08-01", + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:51:25 GMT", + "date" : "Fri, 28 Aug 2020 06:23:03 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "461", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "content-length" : "2091", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11979", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "f6ebcdc3-5f28-4705-a858-24222654af3d", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062304Z:f6ebcdc3-5f28-4705-a858-24222654af3d", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "f6ebcdc3-5f28-4705-a858-24222654af3d", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:23:36 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2091", "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11970", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "0773aa1e-52b6-48c3-82c2-3ea977ac3ea7", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d8fc9097-4128-4194-85af-07fd25840b8d", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115125Z:d8fc9097-4128-4194-85af-07fd25840b8d", - "x-ms-gatewayversion" : "version=2.7.0", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062336Z:0773aa1e-52b6-48c3-82c2-3ea977ac3ea7", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "d8fc9097-4128-4194-85af-07fd25840b8d", - "Body" : "{\"primaryMasterKey\":\"ci6vsQPSIHEhRN5PICmODAcu4gysTzTzoPdtHLF0F869gp8o7fd5TNziEsoaG3FoozF1CwuEofbDcEkeCEzsXw==\",\"secondaryMasterKey\":\"iRS2s7ZIxhEEObKFrJoBWrT0UarRxiacyJp5DE7esIIuZOom5o1y70qDi9LIsXV8EGuw9DylbywFr2tQwk9D0w==\",\"primaryReadonlyMasterKey\":\"9i4Lub6MMzen4H9aCgGV8GUWOvfNTY1YZG9GDzkNNzWGBtBUc968xzhW5TH3lLBqqayltIeEcoy2YD5mXompjA==\",\"secondaryReadonlyMasterKey\":\"s9imgcyNqiNvgSVMtY3jk5n3NaQm2KqodZRNrllkNh7hvc1BpaIwcCt2x6GfYFcZB7hOgXTUWgGLiDOjAgvvoQ==\"}" + "x-ms-request-id" : "0773aa1e-52b6-48c3-82c2-3ea977ac3ea7", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:24:06 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2091", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11969", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "eca307ac-6f0a-4438-b2f5-ccc2bd46e169", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062406Z:eca307ac-6f0a-4438-b2f5-ccc2bd46e169", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "eca307ac-6f0a-4438-b2f5-ccc2bd46e169", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:24:36 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2091", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11978", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "394444ac-b0b2-4c6f-be8a-afd82e6cb916", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062437Z:394444ac-b0b2-4c6f-be8a-afd82e6cb916", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "394444ac-b0b2-4c6f-be8a-afd82e6cb916", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:25:06 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2091", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11969", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "336093b6-3d4f-4b59-a7bd-ee2bc87a1896", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062507Z:336093b6-3d4f-4b59-a7bd-ee2bc87a1896", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "336093b6-3d4f-4b59-a7bd-ee2bc87a1896", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:25:37 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2091", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11968", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a2e67f51-90a2-4582-ac4e-5332c6929325", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062537Z:a2e67f51-90a2-4582-ac4e-5332c6929325", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "a2e67f51-90a2-4582-ac4e-5332c6929325", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:26:08 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2091", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11977", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "27700088-2a89-4ae8-b14c-b52abbe5aeb3", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062608Z:27700088-2a89-4ae8-b14c-b52abbe5aeb3", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "27700088-2a89-4ae8-b14c-b52abbe5aeb3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:26:38 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2091", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11968", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "66dcedaf-f9bb-4cad-9cf1-6cfb039ac716", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062639Z:66dcedaf-f9bb-4cad-9cf1-6cfb039ac716", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "66dcedaf-f9bb-4cad-9cf1-6cfb039ac716", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:27:10 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2091", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11967", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "fd6caa63-fba3-4907-b7b6-2e4094886f12", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062710Z:fd6caa63-fba3-4907-b7b6-2e4094886f12", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "fd6caa63-fba3-4907-b7b6-2e4094886f12", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" + }, + "Response" : { + "date" : "Fri, 28 Aug 2020 06:27:40 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "2091", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11976", + "StatusCode" : "200", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "3251f17f-48b1-47b7-b9fa-b60782a34c62", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062741Z:3251f17f-48b1-47b7-b9fa-b60782a34c62", + "x-ms-gatewayversion" : "version=2.11.0", + "content-location" : "https://management.documents.azure.com:450/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563?api-version=2019-08-01", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "3251f17f-48b1-47b7-b9fa-b60782a34c62", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"location\":\"East US\",\"type\":\"Microsoft.DocumentDB/databaseAccounts\",\"kind\":\"MongoDB\",\"tags\":{},\"systemData\":{\"createdAt\":\"2020-08-28T06:17:00.1760491Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"documentEndpoint\":\"https://nsf1493750fdd5563.documents.azure.com:443/\",\"enableAutomaticFailover\":false,\"enableMultipleWriteLocations\":false,\"enablePartitionKeyMonitor\":false,\"isVirtualNetworkFilterEnabled\":false,\"virtualNetworkRules\":[],\"EnabledApiTypes\":\"MongoDB\",\"disableKeyBasedMetadataWriteAccess\":false,\"enableFreeTier\":false,\"enableAnalyticalStorage\":false,\"instanceId\":\"c06288fe-2faa-47ca-8bd5-cf0ab33927eb\",\"createMode\":\"Default\",\"databaseAccountOfferType\":\"Standard\",\"enableCassandraConnector\":false,\"connectorOffer\":\"\",\"ipRangeFilter\":\"\",\"consistencyPolicy\":{\"defaultConsistencyLevel\":\"Eventual\",\"maxIntervalInSeconds\":5,\"maxStalenessPrefix\":100},\"apiProperties\":{\"serverVersion\":\"3.2\"},\"configurationOverrides\":{\"EnableBsonSchema\":\"True\"},\"writeLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"readLocations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"locations\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"documentEndpoint\":\"https://nsf1493750fdd5563-westus.documents.azure.com:443/\",\"provisioningState\":\"Succeeded\",\"failoverPriority\":0,\"isZoneRedundant\":false}],\"failoverPolicies\":[{\"id\":\"nsf1493750fdd5563-westus\",\"locationName\":\"West US\",\"failoverPriority\":0}],\"cors\":[],\"capabilities\":[],\"backupPolicy\":{\"type\":\"Periodic\",\"periodicModeProperties\":{\"backupIntervalInMinutes\":240,\"backupRetentionIntervalInHours\":8}}}}" } }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25/readonlykeys?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563/listKeys?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (CosmosDB)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:51:25 GMT", + "date" : "Fri, 28 Aug 2020 06:27:42 GMT", "server" : "Microsoft-HTTPAPI/2.0", - "content-length" : "239", - "vary" : "Accept-Encoding", + "content-length" : "461", "x-ms-ratelimit-remaining-subscription-writes" : "1198", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "9991f294-4128-484f-b6e3-f7d9b1185201", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "9a80e5c4-6451-4ad3-b116-78002f0217bb", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115125Z:9a80e5c4-6451-4ad3-b116-78002f0217bb", - "x-ms-gatewayversion" : "version=2.7.0", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062743Z:9991f294-4128-484f-b6e3-f7d9b1185201", + "x-ms-gatewayversion" : "version=2.11.0", "content-type" : "application/json", "cache-control" : "no-store, no-cache", - "x-ms-request-id" : "9a80e5c4-6451-4ad3-b116-78002f0217bb", - "Body" : "{\"primaryReadonlyMasterKey\":\"9i4Lub6MMzen4H9aCgGV8GUWOvfNTY1YZG9GDzkNNzWGBtBUc968xzhW5TH3lLBqqayltIeEcoy2YD5mXompjA==\",\"secondaryReadonlyMasterKey\":\"s9imgcyNqiNvgSVMtY3jk5n3NaQm2KqodZRNrllkNh7hvc1BpaIwcCt2x6GfYFcZB7hOgXTUWgGLiDOjAgvvoQ==\"}" + "x-ms-request-id" : "9991f294-4128-484f-b6e3-f7d9b1185201", + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { - "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25?api-version=2017-04-01", + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563/readonlykeys?api-version=2019-08-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.cosmos/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:51:30 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "688", - "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/CH3", - "vary" : "Accept-Encoding", + "date" : "Fri, 28 Aug 2020 06:27:43 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "239", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "4b599eba-4110-4ab3-8655-889b98ecb2cf", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "212fc1c3-70de-4592-b7e9-ed04d26f741c", "x-content-type-options" : "nosniff", - "x-ms-ratelimit-remaining-subscription-resource-requests" : "49", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115130Z:212fc1c3-70de-4592-b7e9-ed04d26f741c", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "73e902e3-fab3-401f-b95b-21ec7523ac91_M1CH3_M1CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25\",\"name\":\"nsa0d23658d1a8d1ec25\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsa0d23658d1a8d1ec25\",\"createdAt\":\"2019-11-15T11:51:29.493Z\",\"updatedAt\":\"2019-11-15T11:51:29.493Z\",\"serviceBusEndpoint\":\"https://nsa0d23658d1a8d1ec25.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062743Z:4b599eba-4110-4ab3-8655-889b98ecb2cf", + "x-ms-gatewayversion" : "version=2.11.0", + "content-type" : "application/json", + "cache-control" : "no-store, no-cache", + "x-ms-request-id" : "4b599eba-4110-4ab3-8655-889b98ecb2cf", + "Body" : "{\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25?api-version=2017-04-01", + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:51:32 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "688", + "date" : "Fri, 28 Aug 2020 06:27:52 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "671", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11969", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "df30da25-6aa4-42d3-af5c-e5cc8cafe85a", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "deb0b3f9-8d0d-4a8e-80f0-0a0f8010c140", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115132Z:deb0b3f9-8d0d-4a8e-80f0-0a0f8010c140", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "49", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062752Z:df30da25-6aa4-42d3-af5c-e5cc8cafe85a", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "f627a3af-7621-429d-9e7e-71f0b613e9d2_M1CH3_M1CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25\",\"name\":\"nsa0d23658d1a8d1ec25\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsa0d23658d1a8d1ec25\",\"createdAt\":\"2019-11-15T11:51:29.493Z\",\"updatedAt\":\"2019-11-15T11:51:29.493Z\",\"serviceBusEndpoint\":\"https://nsa0d23658d1a8d1ec25.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "f0dca823-0548-46c9-82ac-117aea9afd6e_M4CH3_M4CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsf1493750fdd5563\",\"createdAt\":\"2020-08-28T06:27:50.01Z\",\"updatedAt\":\"2020-08-28T06:27:50.01Z\",\"serviceBusEndpoint\":\"https://nsf1493750fdd5563.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:52:01 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "688", + "date" : "Fri, 28 Aug 2020 06:28:23 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "671", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11968", + "x-ms-ratelimit-remaining-subscription-reads" : "11967", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "edba00f6-7016-4a5c-b39b-6e0bf38eca8f", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "31f77fbc-4ea1-47e8-8e50-65f9b350d00a", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115202Z:31f77fbc-4ea1-47e8-8e50-65f9b350d00a", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062824Z:edba00f6-7016-4a5c-b39b-6e0bf38eca8f", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "afa860fa-0efa-475c-9ca8-c38dac3f41b0_M2CH3_M2CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25\",\"name\":\"nsa0d23658d1a8d1ec25\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsa0d23658d1a8d1ec25\",\"createdAt\":\"2019-11-15T11:51:29.493Z\",\"updatedAt\":\"2019-11-15T11:51:29.493Z\",\"serviceBusEndpoint\":\"https://nsa0d23658d1a8d1ec25.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "d5f155ab-e6a9-4a93-947f-072863464b08_M8CH3_M8CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsf1493750fdd5563\",\"createdAt\":\"2020-08-28T06:27:50.01Z\",\"updatedAt\":\"2020-08-28T06:27:50.01Z\",\"serviceBusEndpoint\":\"https://nsf1493750fdd5563.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:52:32 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "686", + "date" : "Fri, 28 Aug 2020 06:28:54 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "670", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11967", + "x-ms-ratelimit-remaining-subscription-reads" : "11966", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "7c612437-0e82-4605-b6a5-5bf52c8e8d2a", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "3b793ae1-aa80-4b44-be11-0602d2c14135", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115232Z:3b793ae1-aa80-4b44-be11-0602d2c14135", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062854Z:7c612437-0e82-4605-b6a5-5bf52c8e8d2a", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "fa0205b6-236a-4da2-ba91-c9aea4c98a6e_M9CH3_M9CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25\",\"name\":\"nsa0d23658d1a8d1ec25\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsa0d23658d1a8d1ec25\",\"createdAt\":\"2019-11-15T11:51:29.493Z\",\"updatedAt\":\"2019-11-15T11:52:15.553Z\",\"serviceBusEndpoint\":\"https://nsa0d23658d1a8d1ec25.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + "x-ms-request-id" : "cdea6a07-7d1c-46f3-8ec5-74bdf40f7fa6_M5CH3_M5CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563\",\"name\":\"nsf1493750fdd5563\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsf1493750fdd5563\",\"createdAt\":\"2020-08-28T06:27:50.01Z\",\"updatedAt\":\"2020-08-28T06:28:38.293Z\",\"serviceBusEndpoint\":\"https://nsf1493750fdd5563.servicebus.windows.net:443/\",\"status\":\"Active\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25/eventhubs/FirstEventHub?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563/eventhubs/FirstEventHub?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:52:36 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "465", + "date" : "Fri, 28 Aug 2020 06:28:57 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "459", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "x-ms-ratelimit-remaining-subscription-writes" : "1192", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "6ec72501-1ed0-40c4-a9a9-f40ca9f84352", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b6d41794-4ec2-4b80-9565-303e585f97de", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115237Z:b6d41794-4ec2-4b80-9565-303e585f97de", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062858Z:6ec72501-1ed0-40c4-a9a9-f40ca9f84352", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "9e68b9f2-e747-4eaa-82c7-dbba88a64acc_M1CH3_M1CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25/eventhubs/FirstEventHub\",\"name\":\"FirstEventHub\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2019-11-15T11:52:36.127Z\",\"updatedAt\":\"2019-11-15T11:52:36.47Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + "x-ms-request-id" : "486d5173-c3c1-44b9-8642-04e07b6b8978_M2CH3_M2CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563/eventhubs/FirstEventHub\",\"name\":\"FirstEventHub\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"East US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:28:57.417Z\",\"updatedAt\":\"2020-08-28T06:28:57.94Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25/AuthorizationRules/RootManageSharedAccessKey?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563/authorizationRules/RootManageSharedAccessKey?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:52:38 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "369", + "date" : "Fri, 28 Aug 2020 06:28:59 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "363", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "vary" : "Accept-Encoding", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11966", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "d07bd760-2832-4da3-aa4b-e6de6d829979", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "3fb48e49-137d-41ad-82d7-9124930c6921", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115239Z:3fb48e49-137d-41ad-82d7-9124930c6921", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062859Z:d07bd760-2832-4da3-aa4b-e6de6d829979", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "bb187aa6-5d2d-4d14-9244-67114ffe2f13_M9CH3_M9CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}" + "x-ms-request-id" : "1a9ebefc-e2ad-4cec-b1dd-eba06baba05c_M7CH3_M7CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563/authorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.DocumentDB/databaseAccounts/nsa0d23658d1a8d1ec25/providers/microsoft.insights/diagnosticSettings/DiaEventHub?api-version=2017-05-01-preview", + "Uri" : "http://localhost:1234//subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.DocumentDB/databaseAccounts/nsf1493750fdd5563/providers/microsoft.insights/diagnosticSettings/DiaEventHub?api-version=2017-05-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (MonitorManagementClient)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.monitor/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:52:45 GMT", + "date" : "Fri, 28 Aug 2020 06:29:07 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "997", + "content-length" : "985", "expires" : "-1", - "vary" : "Accept-Encoding", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "a5d3e734-6108-4b42-af83-fc5e1b1e3632", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "0552edad-125d-436a-aa49-141ed3b54573", "x-content-type-options" : "nosniff", "x-ms-ratelimit-remaining-subscription-resource-requests" : "149", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115245Z:0552edad-125d-436a-aa49-141ed3b54573", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062907Z:a5d3e734-6108-4b42-af83-fc5e1b1e3632", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "b9d918b2-664e-43cd-9aa8-79322b462243", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgevhbb2f4031237a7751b/providers/microsoft.documentdb/databaseaccounts/nsa0d23658d1a8d1ec25/providers/microsoft.insights/diagnosticSettings/DiaEventHub\",\"type\":null,\"name\":\"DiaEventHub\",\"location\":null,\"kind\":null,\"tags\":null,\"properties\":{\"storageAccountId\":null,\"serviceBusRuleId\":null,\"workspaceId\":null,\"eventHubAuthorizationRuleId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhbb2f4031237a7751b/providers/Microsoft.EventHub/namespaces/nsa0d23658d1a8d1ec25/AuthorizationRules/RootManageSharedAccessKey\",\"eventHubName\":\"FirstEventHub\",\"metrics\":[{\"timeGrain\":\"PT1M\",\"category\":\"Requests\",\"enabled\":true,\"retentionPolicy\":{\"enabled\":true,\"days\":0}}],\"logs\":[{\"category\":\"DataPlaneRequests\",\"enabled\":true,\"retentionPolicy\":{\"enabled\":false,\"days\":0}},{\"category\":\"MongoRequests\",\"enabled\":true,\"retentionPolicy\":{\"enabled\":false,\"days\":0}}],\"logAnalyticsDestinationType\":null},\"identity\":null}" + "x-ms-request-id" : "19d374e3-6177-4a10-bda4-5d7acda62028", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgevhb05f3496656b8b/providers/microsoft.documentdb/databaseaccounts/nsf1493750fdd5563/providers/microsoft.insights/diagnosticSettings/DiaEventHub\",\"type\":null,\"name\":\"DiaEventHub\",\"location\":null,\"kind\":null,\"tags\":null,\"properties\":{\"storageAccountId\":null,\"serviceBusRuleId\":null,\"workspaceId\":null,\"eventHubAuthorizationRuleId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgevhb05f3496656b8b/providers/Microsoft.EventHub/namespaces/nsf1493750fdd5563/authorizationRules/RootManageSharedAccessKey\",\"eventHubName\":\"FirstEventHub\",\"metrics\":[{\"timeGrain\":\"PT1M\",\"category\":\"Requests\",\"enabled\":true,\"retentionPolicy\":{\"enabled\":true,\"days\":0}}],\"logs\":[{\"category\":\"DataPlaneRequests\",\"enabled\":true,\"retentionPolicy\":{\"enabled\":false,\"days\":0}},{\"category\":\"MongoRequests\",\"enabled\":true,\"retentionPolicy\":{\"enabled\":false,\"days\":0}}],\"logAnalyticsDestinationType\":null},\"identity\":null}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgevhbb2f4031237a7751b/providers/microsoft.documentdb/databaseaccounts/nsa0d23658d1a8d1ec25/providers/microsoft.insights/diagnosticSettings/DiaEventHub?api-version=2017-05-01-preview", + "Uri" : "http://localhost:1234//subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgevhb05f3496656b8b/providers/microsoft.documentdb/databaseaccounts/nsf1493750fdd5563/providers/microsoft.insights/diagnosticSettings/DiaEventHub?api-version=2017-05-01-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (MonitorManagementClient)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.monitor/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:52:49 GMT", - "content-length" : "0", + "date" : "Fri, 28 Aug 2020 06:29:12 GMT", "server" : "Microsoft-IIS/10.0", + "content-length" : "0", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-deletes" : "14999", + "x-ms-ratelimit-remaining-subscription-deletes" : "14997", "retry-after" : "0", "StatusCode" : "200", - "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "871b0622-f255-4b40-8a1b-d6c9d9d1b0b9", + "pragma" : "no-cache", + "x-ms-correlation-request-id" : "8b65e4ff-3b6a-4cf9-a34c-0b9a20319b32", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115249Z:871b0622-f255-4b40-8a1b-d6c9d9d1b0b9", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062913Z:8b65e4ff-3b6a-4cf9-a34c-0b9a20319b32", "cache-control" : "no-cache", - "x-ms-request-id" : "c2adda25-0661-41c6-9bac-c1ceb58ec849", + "x-ms-request-id" : "04bc67a6-06c7-48b7-bc8e-f91b1899e0a9", "Body" : "" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgevhbb2f4031237a7751b?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgevhb05f3496656b8b?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:9cc036e5627b47f1226db264b19f71f32dfb7a4fac78a6902ca4f9fedae7623f Java:11.0.3 (ResourceManagementClient, 2019-08-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Fri, 15 Nov 2019 11:52:53 GMT", + "date" : "Fri, 28 Aug 2020 06:29:18 GMT", "content-length" : "0", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-deletes" : "14998", "retry-after" : "0", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1829648e-c2c4-4b3f-a4c6-bc7faf1a9e1d", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "8f691e19-f8a0-4a38-bd8d-83235b0a6122", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191115T115254Z:8f691e19-f8a0-4a38-bd8d-83235b0a6122", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR0VWSEJCMkY0MDMxMjM3QTc3NTFCLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T062918Z:1829648e-c2c4-4b3f-a4c6-bc7faf1a9e1d", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR0VWSEIwNUYzNDk2NjU2QjhCLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "8f691e19-f8a0-4a38-bd8d-83235b0a6122", + "x-ms-request-id" : "1829648e-c2c4-4b3f-a4c6-bc7faf1a9e1d", "Body" : "" } } ], - "variables" : [ "rgevhbb2f4031237a7751b", "nsa0d23658d1a8d1ec25", "stga2a77189b07d4d2d6", "f2eafc92-e537-47f9-b1cc-90a1054c6afa", "595c8673-fecd-4f00-b778-44f32e0722a8", "1dcc54f7-1181-4a93-a098-aefbbf374655", "9109d1d3-d5ae-4eac-8e04-6277e1d56525", "5d7e3076-3945-4846-846c-97ced7754bb5", "80126600-1ac1-4064-8c48-4e35e51bc573", "20bdefbf-87b2-446a-826b-6a9629ca9b45", "7d2b6b9f-3d30-4f8c-b5b5-e5770ff731e2" ] + "variables" : [ "rgevhb05f3496656b8b", "nsf1493750fdd5563" ] } \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHubGeoDisasterRecovery.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHubGeoDisasterRecovery.json index c5421248649dd..d821cc4a42226 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHubGeoDisasterRecovery.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageEventHubGeoDisasterRecovery.json @@ -1,743 +1,593 @@ { "networkCallRecords" : [ { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgnemv_0ae756922bba?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgnemv_ba938696f1a6?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ResourceManagementClient, 2019-08-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:01:02 GMT", - "content-length" : "327", + "date" : "Fri, 28 Aug 2020 06:01:29 GMT", + "content-length" : "333", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1199", "retry-after" : "0", "StatusCode" : "201", - "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b20f3d5f-8c83-44ca-aa22-11730102c548", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080103Z:b20f3d5f-8c83-44ca-aa22-11730102c548", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "b20f3d5f-8c83-44ca-aa22-11730102c548", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba\",\"name\":\"rgnemv_0ae756922bba\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"southcentralus\",\"tags\":{\"date\":\"2019-10-17T08:00:58.365Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" - } - }, { - "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671?api-version=2017-04-01", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Thu, 17 Oct 2019 08:01:08 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "662", - "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1198", - "retry-after" : "0", - "StatusCode" : "200", "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ebd1e3ea-2618-4946-bffe-2cef3cafc036", + "x-ms-correlation-request-id" : "dcc2b6b4-dce9-45b4-b701-a94e7fb38732", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080109Z:ebd1e3ea-2618-4946-bffe-2cef3cafc036", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060130Z:dcc2b6b4-dce9-45b4-b701-a94e7fb38732", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "06fcdb01-e8b2-4a55-a7d2-d61409510682_M9CH3_M9CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671\",\"name\":\"nse552069671\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"South Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nse552069671\",\"createdAt\":\"2019-10-17T08:01:07.557Z\",\"updatedAt\":\"2019-10-17T08:01:07.557Z\",\"serviceBusEndpoint\":\"https://nse552069671.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "dcc2b6b4-dce9-45b4-b701-a94e7fb38732", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6\",\"name\":\"rgnemv_ba938696f1a6\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"southcentralus\",\"tags\":{\"date\":\"2020-08-28T06:01:27.477412700Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" } }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671?api-version=2017-04-01", + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:01:08 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "662", + "date" : "Fri, 28 Aug 2020 06:01:40 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "660", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11999", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "797cf786-47d2-4ed5-a653-1aa0c55840e8", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "1be3ec93-af58-42c3-b4cb-7eb25c9c76c4", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080109Z:1be3ec93-af58-42c3-b4cb-7eb25c9c76c4", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "49", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060141Z:797cf786-47d2-4ed5-a653-1aa0c55840e8", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "fd44761f-4a95-41de-8291-997a8e9dcca1_M2CH3_M2CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671\",\"name\":\"nse552069671\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"South Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nse552069671\",\"createdAt\":\"2019-10-17T08:01:07.557Z\",\"updatedAt\":\"2019-10-17T08:01:07.557Z\",\"serviceBusEndpoint\":\"https://nse552069671.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "8b206f53-a934-44a9-aa71-c54e95d430f6_M10CH3_M10CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660\",\"name\":\"ns9886694660\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"South Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9886694660\",\"createdAt\":\"2020-08-28T06:01:39.43Z\",\"updatedAt\":\"2020-08-28T06:01:39.43Z\",\"serviceBusEndpoint\":\"https://ns9886694660.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:01:38 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "662", + "date" : "Fri, 28 Aug 2020 06:02:11 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "660", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "x-ms-ratelimit-remaining-subscription-reads" : "11987", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "8e65838a-6f41-4b11-8080-f224e1ce9043", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "60dd4f97-c937-45a3-aee6-b2e0a5c895fc", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080139Z:60dd4f97-c937-45a3-aee6-b2e0a5c895fc", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060211Z:8e65838a-6f41-4b11-8080-f224e1ce9043", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "3774b315-5ddc-4ab7-a9be-10cd3beb3f6e_M2CH3_M2CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671\",\"name\":\"nse552069671\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"South Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nse552069671\",\"createdAt\":\"2019-10-17T08:01:07.557Z\",\"updatedAt\":\"2019-10-17T08:01:07.557Z\",\"serviceBusEndpoint\":\"https://nse552069671.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "6a125f5d-629d-4f7f-87ff-5bb493850115_M4CH3_M4CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660\",\"name\":\"ns9886694660\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"South Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9886694660\",\"createdAt\":\"2020-08-28T06:01:39.43Z\",\"updatedAt\":\"2020-08-28T06:01:39.43Z\",\"serviceBusEndpoint\":\"https://ns9886694660.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:02:09 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:02:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "659", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "x-ms-ratelimit-remaining-subscription-reads" : "11986", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "8ef13623-ffc5-45bb-b3f9-3e2426864543", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "0609769d-2be1-47f4-93fb-c9ec73c34b70", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080210Z:0609769d-2be1-47f4-93fb-c9ec73c34b70", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060242Z:8ef13623-ffc5-45bb-b3f9-3e2426864543", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "32b00934-f037-44c5-823e-1be8f833619e_M3CH3_M3CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671\",\"name\":\"nse552069671\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"South Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nse552069671\",\"createdAt\":\"2019-10-17T08:01:07.557Z\",\"updatedAt\":\"2019-10-17T08:01:54.21Z\",\"serviceBusEndpoint\":\"https://nse552069671.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + "x-ms-request-id" : "a4df79d6-acd8-4425-b397-189290972b6d_M5CH3_M5CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660\",\"name\":\"ns9886694660\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"South Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns9886694660\",\"createdAt\":\"2020-08-28T06:01:39.43Z\",\"updatedAt\":\"2020-08-28T06:02:27.267Z\",\"serviceBusEndpoint\":\"https://ns9886694660.servicebus.windows.net:443/\",\"status\":\"Active\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:02:14 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "660", + "date" : "Fri, 28 Aug 2020 06:02:51 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "662", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1197", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "cffde026-1a9b-4324-ba96-c7bb25548d11", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "646cd2d4-a316-476c-b638-beec36d6597b", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080214Z:646cd2d4-a316-476c-b638-beec36d6597b", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "48", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060251Z:cffde026-1a9b-4324-ba96-c7bb25548d11", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "c7b47641-1939-409d-995c-7576a145c47f_M3CH3_M3CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"name\":\"nsa1d3643465\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"North Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsa1d3643465\",\"createdAt\":\"2019-10-17T08:02:13.51Z\",\"updatedAt\":\"2019-10-17T08:02:13.51Z\",\"serviceBusEndpoint\":\"https://nsa1d3643465.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "dde255be-3b80-4d6f-a701-277e7f260fee_M10CH3_M10CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"name\":\"ns6fd85416bf\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"North Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns6fd85416bf\",\"createdAt\":\"2020-08-28T06:02:49.767Z\",\"updatedAt\":\"2020-08-28T06:02:49.767Z\",\"serviceBusEndpoint\":\"https://ns6fd85416bf.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:02:15 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "660", + "date" : "Fri, 28 Aug 2020 06:03:21 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "662", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11996", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e197a5fc-af94-4d22-9e84-022e0c406054", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d9ecf7c1-8434-46e2-ab1a-0895a0cde2ec", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080215Z:d9ecf7c1-8434-46e2-ab1a-0895a0cde2ec", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060321Z:e197a5fc-af94-4d22-9e84-022e0c406054", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "2080561e-5c31-40d8-a232-04c768d272a4_M2CH3_M2CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"name\":\"nsa1d3643465\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"North Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsa1d3643465\",\"createdAt\":\"2019-10-17T08:02:13.51Z\",\"updatedAt\":\"2019-10-17T08:02:13.51Z\",\"serviceBusEndpoint\":\"https://nsa1d3643465.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" + "x-ms-request-id" : "4cb0453f-6282-4e7c-839d-5d3205614c3a_M1CH3_M1CH3", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"name\":\"ns6fd85416bf\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"North Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns6fd85416bf\",\"createdAt\":\"2020-08-28T06:02:49.767Z\",\"updatedAt\":\"2020-08-28T06:02:49.767Z\",\"serviceBusEndpoint\":\"https://ns6fd85416bf.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (11.0.8; Windows 10; 10.0)" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:02:45 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:03:52 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "660", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", + "server-sb" : "Service-Bus-Resource-Provider/SN1", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11995", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d790e6a9-c0eb-40e2-a523-4f84fde8cdbc", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080245Z:d790e6a9-c0eb-40e2-a523-4f84fde8cdbc", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "6673cb92-7880-40d0-b346-fde990af24c6_M3CH3_M3CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"name\":\"nsa1d3643465\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"North Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Created\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsa1d3643465\",\"createdAt\":\"2019-10-17T08:02:13.51Z\",\"updatedAt\":\"2019-10-17T08:02:13.51Z\",\"serviceBusEndpoint\":\"https://nsa1d3643465.servicebus.windows.net:443/\",\"status\":\"Activating\"}}" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465?api-version=2017-04-01", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)" - }, - "Response" : { - "date" : "Thu, 17 Oct 2019 08:03:15 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "659", - "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11994", + "x-ms-ratelimit-remaining-subscription-reads" : "11992", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "aa7e97f0-7f33-42e3-901f-ed4c3e61e6a5", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a4e20694-6b8a-436f-bb1b-ac0845d4c577", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080316Z:a4e20694-6b8a-436f-bb1b-ac0845d4c577", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060352Z:aa7e97f0-7f33-42e3-901f-ed4c3e61e6a5", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "2240fb49-583f-409d-bec4-f4da17db32a2_M6CH3_M6CH3", - "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"name\":\"nsa1d3643465\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"North Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:nsa1d3643465\",\"createdAt\":\"2019-10-17T08:02:13.51Z\",\"updatedAt\":\"2019-10-17T08:02:58.537Z\",\"serviceBusEndpoint\":\"https://nsa1d3643465.servicebus.windows.net:443/\",\"status\":\"Active\"}}" + "x-ms-request-id" : "aa08c422-007c-41b9-926f-70f2065ae826_M1SN1_M1SN1", + "Body" : "{\"sku\":{\"name\":\"Standard\",\"tier\":\"Standard\",\"capacity\":1},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"name\":\"ns6fd85416bf\",\"type\":\"Microsoft.EventHub/Namespaces\",\"location\":\"North Central US\",\"tags\":{},\"properties\":{\"isAutoInflateEnabled\":false,\"maximumThroughputUnits\":0,\"kafkaEnabled\":true,\"provisioningState\":\"Succeeded\",\"metricId\":\"00000000-0000-0000-0000-000000000000:ns6fd85416bf\",\"createdAt\":\"2020-08-28T06:02:49.767Z\",\"updatedAt\":\"2020-08-28T06:03:37.053Z\",\"serviceBusEndpoint\":\"https://ns6fd85416bf.servicebus.windows.net:443/\",\"status\":\"Active\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:03:33 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:03:59 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "525", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1196", - "retry-after" : "0", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "3d748729-ff73-427e-9da5-0512d374bb53", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080333Z:3d748729-ff73-427e-9da5-0512d374bb53", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "8e8733a5-d06b-4b57-99dd-0a91e34b59fd_M6CH3_M6CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Thu, 17 Oct 2019 08:03:33 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "525", - "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", + "x-ms-ratelimit-remaining-subscription-writes" : "1194", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11993", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "1bc84f9a-cd08-456f-8607-f496eec9b2d4", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "bb7dcd7e-e3d6-4263-b22c-42b6758b0383", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080333Z:bb7dcd7e-e3d6-4263-b22c-42b6758b0383", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060400Z:1bc84f9a-cd08-456f-8607-f496eec9b2d4", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "c7eab4fc-c816-4ab2-a8cf-1ccdcb1c1947_M6CH3_M6CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + "x-ms-request-id" : "93845068-f942-4e05-85f7-63281599526e_M6CH3_M6CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911\",\"name\":\"geodr81255911\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:03:48 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:04:00 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "525", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11992", + "x-ms-ratelimit-remaining-subscription-reads" : "11994", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5724fb9d-4772-4c7b-80e3-49eb49806c14", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "77b4d220-67f8-4ab5-9201-b5cc7b039b22", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080349Z:77b4d220-67f8-4ab5-9201-b5cc7b039b22", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060400Z:5724fb9d-4772-4c7b-80e3-49eb49806c14", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "ee567304-7357-4a4a-9f1a-097b390ca5a9_M15CH3_M15CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + "x-ms-request-id" : "32d5d241-73bd-4852-99ed-92d865eebd80_M1CH3_M1CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911\",\"name\":\"geodr81255911\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:04:04 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:04:15 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "525", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11991", + "x-ms-ratelimit-remaining-subscription-reads" : "11993", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "e4f38839-fc34-4809-8f6e-5d859e9b67a3", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "5bee936e-0d09-4665-8db6-cb356516d617", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080404Z:5bee936e-0d09-4665-8db6-cb356516d617", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060416Z:e4f38839-fc34-4809-8f6e-5d859e9b67a3", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "11195cee-9437-45ec-94bf-6c8e695efd45_M15CH3_M15CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + "x-ms-request-id" : "747d30f7-f053-4a38-8672-eeeab491c8d7_M1CH3_M1CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911\",\"name\":\"geodr81255911\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:04:19 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:04:31 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "525", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", + "server-sb" : "Service-Bus-Resource-Provider/SN1", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11990", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "ce86b3f5-44c0-4bab-b2b3-4aba9ec64970", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "f4f4e62a-83a0-475f-bb15-c9b2e7315b03", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080419Z:f4f4e62a-83a0-475f-bb15-c9b2e7315b03", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060431Z:ce86b3f5-44c0-4bab-b2b3-4aba9ec64970", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "f9a8c526-991a-41a7-9486-b29b86185884_M6CH3_M6CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + "x-ms-request-id" : "3915e9db-e014-4e26-94f0-866a61161db3_M1SN1_M1SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911\",\"name\":\"geodr81255911\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:04:34 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:04:46 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "525", "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11989", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d2449c91-0f57-40c3-a90f-360d7b88264d", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080435Z:d2449c91-0f57-40c3-a90f-360d7b88264d", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "6d6089f3-a1f4-4b39-9463-7bee853636bf_M5CH3_M5CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Thu, 17 Oct 2019 08:04:49 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "525", - "expires" : "-1", - "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", + "server-sb" : "Service-Bus-Resource-Provider/SN1", "retry-after" : "0", "x-ms-ratelimit-remaining-subscription-reads" : "11988", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "acea86dc-8129-4bb0-a412-43b3da561ab7", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "9ef4622f-9028-40b6-af4e-912f82e0dabb", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080450Z:9ef4622f-9028-40b6-af4e-912f82e0dabb", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060446Z:acea86dc-8129-4bb0-a412-43b3da561ab7", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "efebc845-fb82-4be6-8d7a-85b751a90328_M5CH3_M5CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + "x-ms-request-id" : "6ec7d749-53da-4925-b09b-d82f9d43113b_M1SN1_M1SN1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911\",\"name\":\"geodr81255911\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:05:06 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:05:01 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "525", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11987", + "x-ms-ratelimit-remaining-subscription-reads" : "11991", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "19ffd6b3-1195-48e8-a047-8e58bdcb8065", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "f9fe445b-13ac-4a27-9e81-6719a2c24047", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080507Z:f9fe445b-13ac-4a27-9e81-6719a2c24047", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060502Z:19ffd6b3-1195-48e8-a047-8e58bdcb8065", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "47050423-5656-4869-a49f-673a90390f0b_M2CH3_M2CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + "x-ms-request-id" : "b9758905-acb1-48f3-8246-7341d09db346_M1CH3_M1CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911\",\"name\":\"geodr81255911\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:05:22 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:05:17 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "525", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11986", + "x-ms-ratelimit-remaining-subscription-reads" : "11990", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "5082e245-a782-46ac-94cc-246dedef5aa2", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "5f8f09bc-57f7-408e-bbf3-8c51cb8a7ae0", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080522Z:5f8f09bc-57f7-408e-bbf3-8c51cb8a7ae0", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060517Z:5082e245-a782-46ac-94cc-246dedef5aa2", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "60c62712-a01f-4395-8d6f-9d24c859ae66_M5CH3_M5CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + "x-ms-request-id" : "8ebd97f4-7c16-4b65-a5d3-25eeb0c4b1f3_M1CH3_M1CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911\",\"name\":\"geodr81255911\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:05:38 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:05:32 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "564", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11985", + "x-ms-ratelimit-remaining-subscription-reads" : "11991", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "8c5be4d4-b0fe-4de5-9950-b7c139eda7e8", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "1a544246-aa9a-4161-8bd3-b103a78cbdb4", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080538Z:1a544246-aa9a-4161-8bd3-b103a78cbdb4", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060533Z:8c5be4d4-b0fe-4de5-9950-b7c139eda7e8", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "690765d7-7858-48dc-9690-39e0634148b1_M2CH3_M2CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}" + "x-ms-request-id" : "6137c90a-7bd9-4ca6-ab70-5936e9bcab93_M2CH3_M2CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911\",\"name\":\"geodr81255911\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/eventhubs/eh66a10761a1?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/eventhubs/eh80a6647353?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:06:01 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:05:54 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "470", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "x-ms-ratelimit-remaining-subscription-writes" : "1193", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "3782013d-d5f5-47b4-b6dd-f1c6a907c990", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "aab75f8f-8b69-4280-aa35-7654fb72eda8", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080601Z:aab75f8f-8b69-4280-aa35-7654fb72eda8", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060555Z:3782013d-d5f5-47b4-b6dd-f1c6a907c990", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "354fb722-fd39-4d15-82d2-b24d1fb3766b_M2CH3_M2CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/eventhubs/eh66a10761a1\",\"name\":\"eh66a10761a1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"South Central US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2019-10-17T08:05:55.5934299Z\",\"updatedAt\":\"2019-10-17T08:05:55.5934299Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + "x-ms-request-id" : "d28b0344-8db6-400c-a3f6-0245af2289a9_M1CH3_M1CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/eventhubs/eh80a6647353\",\"name\":\"eh80a6647353\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"South Central US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:05:50.4436229Z\",\"updatedAt\":\"2020-08-28T06:05:50.4436229Z\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/eventhubs/eh66a10761a1/consumergroups/consumerGrp1?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/eventhubs/eh80a6647353/consumergroups/consumerGrp1?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:06:08 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:06:01 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "416", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "c5aeb82b-ffe5-4684-b88a-fad7193f381d", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "18f02bb9-c8e2-4fd1-8a8e-d7c4cedfc4b9", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080608Z:18f02bb9-c8e2-4fd1-8a8e-d7c4cedfc4b9", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060601Z:c5aeb82b-ffe5-4684-b88a-fad7193f381d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "f4c003d7-48bb-4116-8d15-ec39697aa96c_M2CH3_M2CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/eventhubs/eh66a10761a1/consumergroups/consumerGrp1\",\"name\":\"consumerGrp1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"South Central US\",\"properties\":{\"createdAt\":\"2019-10-17T08:06:03.8617592Z\",\"updatedAt\":\"2019-10-17T08:06:03.8617592Z\"}}" + "x-ms-request-id" : "134d2d44-6ab4-4043-8ea1-7ebacb5e412c_M10CH3_M10CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/eventhubs/eh80a6647353/consumergroups/consumerGrp1\",\"name\":\"consumerGrp1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups\",\"location\":\"South Central US\",\"properties\":{\"createdAt\":\"2020-08-28T06:05:57.1088339Z\",\"updatedAt\":\"2020-08-28T06:05:57.1088339Z\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465/eventhubs/eh66a10761a1?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf/eventhubs/eh80a6647353?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:07:08 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", - "content-length" : "460", + "date" : "Fri, 28 Aug 2020 06:07:01 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "459", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11984", + "x-ms-ratelimit-remaining-subscription-reads" : "11987", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "b9962481-509f-403d-b562-ea1fb0eb9955", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "512aafb0-8860-4cc8-b22c-76323b25353a", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080709Z:512aafb0-8860-4cc8-b22c-76323b25353a", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060702Z:b9962481-509f-403d-b562-ea1fb0eb9955", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "aae9da7d-c273-4b45-9e41-1065d607d17a_M7CH3_M7CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465/eventhubs/eh66a10761a1\",\"name\":\"eh66a10761a1\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"North Central US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2019-10-17T08:06:01.927\",\"updatedAt\":\"2019-10-17T08:06:02.377\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" + "x-ms-request-id" : "0460226d-fd60-4566-9878-7b826aa41088_M6CH3_M6CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf/eventhubs/eh80a6647353\",\"name\":\"eh80a6647353\",\"type\":\"Microsoft.EventHub/Namespaces/EventHubs\",\"location\":\"North Central US\",\"properties\":{\"messageRetentionInDays\":7,\"partitionCount\":4,\"status\":\"Active\",\"createdAt\":\"2020-08-28T06:05:55.583\",\"updatedAt\":\"2020-08-28T06:05:55.82\",\"partitionIds\":[\"0\",\"1\",\"2\",\"3\"]}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395/AuthorizationRules?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911/authorizationRules?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:07:10 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:07:02 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "417", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11983", + "x-ms-ratelimit-remaining-subscription-reads" : "11982", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "aefb180f-8b7b-4b6e-98f3-b574ad05f2bb", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e2cf18ad-b984-45aa-9ac6-fd2ebc68d022", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080711Z:e2cf18ad-b984-45aa-9ac6-fd2ebc68d022", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060703Z:aefb180f-8b7b-4b6e-98f3-b574ad05f2bb", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "4c61008f-1518-4067-8540-6ebbf5b608b1_M3CH3_M3CH3", - "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"South Central US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}]}" + "x-ms-request-id" : "58e378c6-645c-43c4-bd94-eee9b4e2c401_M5CH3_M5CH3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911/authorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.EventHub/Namespaces/AuthorizationRules\",\"location\":\"South Central US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}]}" } }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395/AuthorizationRules/RootManageSharedAccessKey/listKeys?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911/authorizationRules/RootManageSharedAccessKey/listKeys?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:07:11 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:07:03 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "547", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "x-ms-ratelimit-remaining-subscription-writes" : "1199", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "2a24cba6-e26b-45f0-b87d-056fb62e006d", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "4c2ff26a-e40f-4831-a858-630a05c8fc39", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080712Z:4c2ff26a-e40f-4831-a858-630a05c8fc39", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060704Z:2a24cba6-e26b-45f0-b87d-056fb62e006d", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "80e9eb31-2b2d-4875-a11f-b9271be8ddeb_M3CH3_M3CH3", - "Body" : "{\"aliasPrimaryConnectionString\":\"Endpoint=sb://geodr48470395.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=G6m+p658y6Q63Uc8bxoz10xduy/66cv2+hrumllMhi0=\",\"aliasSecondaryConnectionString\":\"Endpoint=sb://geodr48470395.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SiXEwfxm//1ZbFfM7FUgXoF7ptyj/AddcV7MtzkR96U=\",\"primaryKey\":\"G6m+p658y6Q63Uc8bxoz10xduy/66cv2+hrumllMhi0=\",\"secondaryKey\":\"SiXEwfxm//1ZbFfM7FUgXoF7ptyj/AddcV7MtzkR96U=\",\"keyName\":\"RootManageSharedAccessKey\"}" + "x-ms-request-id" : "2d42ff39-1215-435c-aeb1-48e2c8dcc3b1_M5CH3_M5CH3", + "Body" : "{\"aliasPrimaryConnectionString\":\"Endpoint=sb://geodr81255911.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"aliasSecondaryConnectionString\":\"Endpoint=sb://geodr81255911.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\",\"keyName\":\"RootManageSharedAccessKey\"}" } }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465/disasterRecoveryConfigs/geodr48470395/failover?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf/disasterRecoveryConfigs/geodr81255911/failover?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:07:12 GMT", + "date" : "Fri, 28 Aug 2020 06:07:03 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "0", - "server" : "Service-Bus-Resource-Provider/CH3", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "412b676e-ce91-4153-b8c9-e0511a3243df", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "8ec267f1-2efd-433b-abfc-2b93f5f54d4f", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080712Z:8ec267f1-2efd-433b-abfc-2b93f5f54d4f", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060704Z:412b676e-ce91-4153-b8c9-e0511a3243df", "cache-control" : "no-cache", - "x-ms-request-id" : "1a397189-aa92-44f5-a563-2126332717a8_M3CH3_M3CH3", + "x-ms-request-id" : "c8a3cc4a-7e8c-4aae-9ede-fc018ace24a9_M3CH3_M3CH3", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395?api-version=2017-04-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911?api-version=2017-04-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (EventHubManagementClient, 2017-04-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.eventhubs/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:07:12 GMT", - "server" : "Service-Bus-Resource-Provider/CH3", + "date" : "Fri, 28 Aug 2020 06:07:04 GMT", + "server" : "Microsoft-HTTPAPI/2.0", "content-length" : "525", "expires" : "-1", "server-sb" : "Service-Bus-Resource-Provider/CH3", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11982", + "x-ms-ratelimit-remaining-subscription-reads" : "11981", "StatusCode" : "200", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "24519282-7609-4a46-b588-1ddfdea484a3", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "56db4470-6c27-4be1-8f54-e7591774164e", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080713Z:56db4470-6c27-4be1-8f54-e7591774164e", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060705Z:24519282-7609-4a46-b588-1ddfdea484a3", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "bba39f01-cce1-438c-af73-ce0c8e72a912_M3CH3_M3CH3", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nse552069671/disasterRecoveryConfigs/geodr48470395\",\"name\":\"geodr48470395\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_0ae756922bba/providers/Microsoft.EventHub/namespaces/nsa1d3643465\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" + "x-ms-request-id" : "d7b1c19f-eb2f-4cce-9573-c51462683653_M1CH3_M1CH3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns9886694660/disasterRecoveryConfigs/geodr81255911\",\"name\":\"geodr81255911\",\"type\":\"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgnemv_ba938696f1a6/providers/Microsoft.EventHub/namespaces/ns6fd85416bf\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgnemv_0ae756922bba?api-version=2019-08-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgnemv_ba938696f1a6?api-version=2020-06-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:d3fc60ad002f4c863d99d3beb851e8edf973a5248d395e580e9f144e262d969c Java:1.8.0_221 (ResourceManagementClient, 2019-08-01)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.0.0-beta.4 (11.0.8; Windows 10; 10.0)", + "Content-Type" : "application/json" }, "Response" : { - "date" : "Thu, 17 Oct 2019 08:07:19 GMT", + "date" : "Fri, 28 Aug 2020 06:07:08 GMT", "content-length" : "0", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-deletes" : "14999", + "x-ms-ratelimit-remaining-subscription-deletes" : "14998", "retry-after" : "0", "StatusCode" : "202", "pragma" : "no-cache", + "x-ms-correlation-request-id" : "4421ac6c-0851-463f-966a-ba9f8734f98c", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ea7b6fe9-a67c-4b64-9599-be6663a19c97", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "SOUTHEASTASIA:20191017T080719Z:ea7b6fe9-a67c-4b64-9599-be6663a19c97", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUYwQUU3NTY5MjJCQkEtU09VVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6InNvdXRoY2VudHJhbHVzIn0?api-version=2019-08-01", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20200828T060709Z:4421ac6c-0851-463f-966a-ba9f8734f98c", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR05FTVY6NUZCQTkzODY5NkYxQTYtU09VVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6InNvdXRoY2VudHJhbHVzIn0?api-version=2020-06-01", "cache-control" : "no-cache", - "x-ms-request-id" : "ea7b6fe9-a67c-4b64-9599-be6663a19c97", + "x-ms-request-id" : "4421ac6c-0851-463f-966a-ba9f8734f98c", "Body" : "" } } ], - "variables" : [ "rgnemv_0ae756922bba", "nse552069671", "nsa1d3643465", "geodr48470395", "eh66a10761a1", "66583cb2-3c38-4900-806f-39562a4464de", "91ecf8be-fbf3-4bc7-8c82-82b9cee0e922", "98e177b1-e268-4ff2-ba79-e672ff21d3a6", "6e43fca5-2b98-4b11-9ca7-84835a7bea1f", "cdd5a0d3-9e11-4e74-a778-6ac8e8dce54b", "cda51942-1f90-4885-8417-4521693b042c", "3761455e-46ca-4ada-b19f-89a1615506bd", "1ec2c586-8aa6-42c0-8c66-7a6a445bd928" ] + "variables" : [ "rgnemv_ba938696f1a6", "ns9886694660", "ns6fd85416bf", "geodr81255911", "eh80a6647353" ] } \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageHACosmosDB.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageHACosmosDB.json index 9f10089b578d1..15b2a269386a0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageHACosmosDB.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageHACosmosDB.json @@ -1321,7 +1321,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "3a7d2071-f333-4200-93e9-58e5f793102c", - "Body" : "{\"primaryMasterKey\":\"Ft9wEIb1dqTQPu2PdB5K0alJAe0BFcqFgu065FfnIMQGfv29qYZdOeplfSljBjcr4F4lr0fSFfKBYGpbgVuYxQ==\",\"secondaryMasterKey\":\"Y9M7eEctE74ywFXdwzzf5mU2bLFma71CH8PcVPI7bPM0sq0Jm5V7oa0jEfbcmFzwJB5FoprSZSj9c6dE6ojbkQ==\",\"primaryReadonlyMasterKey\":\"83gsYDOdzlKm2Ze37wgy3oPXq2awjM0T6nrpraHqGgk4dUoz2dRjNUAL4qxPGdhIuWcKcOpQ39Sd2GGsZ6qz1g==\",\"secondaryReadonlyMasterKey\":\"XyifKTgU00Dey4JeUBCr8jtMx3DfuKJcxiSPR9sRk3f4lqQcFVOgDKtY3MMQjlcxn5sXGI6vWlseEkhCFuDLAg==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -1348,7 +1348,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "d4ce7efc-c556-43d5-adcd-576747a5eddc", - "Body" : "{\"primaryReadonlyMasterKey\":\"83gsYDOdzlKm2Ze37wgy3oPXq2awjM0T6nrpraHqGgk4dUoz2dRjNUAL4qxPGdhIuWcKcOpQ39Sd2GGsZ6qz1g==\",\"secondaryReadonlyMasterKey\":\"XyifKTgU00Dey4JeUBCr8jtMx3DfuKJcxiSPR9sRk3f4lqQcFVOgDKtY3MMQjlcxn5sXGI6vWlseEkhCFuDLAg==\"}" + "Body" : "{\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "PUT", @@ -17001,7 +17001,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "e80265e0-4eae-4a6d-bfa7-7302a7271d9e", - "Body" : "{\"primaryMasterKey\":\"Ft9wEIb1dqTQPu2PdB5K0alJAe0BFcqFgu065FfnIMQGfv29qYZdOeplfSljBjcr4F4lr0fSFfKBYGpbgVuYxQ==\",\"secondaryMasterKey\":\"Y9M7eEctE74ywFXdwzzf5mU2bLFma71CH8PcVPI7bPM0sq0Jm5V7oa0jEfbcmFzwJB5FoprSZSj9c6dE6ojbkQ==\",\"primaryReadonlyMasterKey\":\"83gsYDOdzlKm2Ze37wgy3oPXq2awjM0T6nrpraHqGgk4dUoz2dRjNUAL4qxPGdhIuWcKcOpQ39Sd2GGsZ6qz1g==\",\"secondaryReadonlyMasterKey\":\"XyifKTgU00Dey4JeUBCr8jtMx3DfuKJcxiSPR9sRk3f4lqQcFVOgDKtY3MMQjlcxn5sXGI6vWlseEkhCFuDLAg==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -17028,7 +17028,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "4d6835c1-2133-476d-8b31-d37b9f71fba5", - "Body" : "{\"primaryReadonlyMasterKey\":\"83gsYDOdzlKm2Ze37wgy3oPXq2awjM0T6nrpraHqGgk4dUoz2dRjNUAL4qxPGdhIuWcKcOpQ39Sd2GGsZ6qz1g==\",\"secondaryReadonlyMasterKey\":\"XyifKTgU00Dey4JeUBCr8jtMx3DfuKJcxiSPR9sRk3f4lqQcFVOgDKtY3MMQjlcxn5sXGI6vWlseEkhCFuDLAg==\"}" + "Body" : "{\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -17055,7 +17055,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "cb5912e7-9650-4834-9c3e-300aaca9ad89", - "Body" : "{\"primaryMasterKey\":\"Ft9wEIb1dqTQPu2PdB5K0alJAe0BFcqFgu065FfnIMQGfv29qYZdOeplfSljBjcr4F4lr0fSFfKBYGpbgVuYxQ==\",\"secondaryMasterKey\":\"Y9M7eEctE74ywFXdwzzf5mU2bLFma71CH8PcVPI7bPM0sq0Jm5V7oa0jEfbcmFzwJB5FoprSZSj9c6dE6ojbkQ==\",\"primaryReadonlyMasterKey\":\"83gsYDOdzlKm2Ze37wgy3oPXq2awjM0T6nrpraHqGgk4dUoz2dRjNUAL4qxPGdhIuWcKcOpQ39Sd2GGsZ6qz1g==\",\"secondaryReadonlyMasterKey\":\"XyifKTgU00Dey4JeUBCr8jtMx3DfuKJcxiSPR9sRk3f4lqQcFVOgDKtY3MMQjlcxn5sXGI6vWlseEkhCFuDLAg==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "DELETE", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageLinuxWebAppCosmosDbByMsi.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageLinuxWebAppCosmosDbByMsi.json index 325eb228b3542..9b80bccb92594 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageLinuxWebAppCosmosDbByMsi.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageLinuxWebAppCosmosDbByMsi.json @@ -1267,7 +1267,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "58b7c28f-9ee2-465e-8348-61e80165e33c", - "Body" : "{\"primaryMasterKey\":\"EMN0AMndWeiEP4WFqxzvcx0fo6vNXONb2DYNeGRQYhaeQDLIEY6LMvIpzbY7qwB8223uyClCk3VX7UgYNLQkYg==\",\"secondaryMasterKey\":\"J1v8KbD1Ocve5ueEt3Q5hLOH7mtnPF5dCk3uV3MneK6TU5DPmWdcimLl3oXjDvszaXjpBTqXjsS22fHFSyImxA==\",\"primaryReadonlyMasterKey\":\"ahfe4u5l8MMNjXodjP09E911JSekjbLPPTvoAb0PdIGMuOXiozvuwGKzrMGZjA9QFROwu5j4byAMq5Vgc9EL9A==\",\"secondaryReadonlyMasterKey\":\"l1dNJOi7lavR6qz1fUPXBvBVuAgkuMlolwCw1d9zZUv6wrKVVC4FoMCzIQJcIldd1Oc6sSFNHDhZWftV1yk5IA==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -1294,7 +1294,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "22fc76c2-1533-4818-b3bc-e2478854f14a", - "Body" : "{\"primaryReadonlyMasterKey\":\"ahfe4u5l8MMNjXodjP09E911JSekjbLPPTvoAb0PdIGMuOXiozvuwGKzrMGZjA9QFROwu5j4byAMq5Vgc9EL9A==\",\"secondaryReadonlyMasterKey\":\"l1dNJOi7lavR6qz1fUPXBvBVuAgkuMlolwCw1d9zZUv6wrKVVC4FoMCzIQJcIldd1Oc6sSFNHDhZWftV1yk5IA==\"}" + "Body" : "{\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "DELETE", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageRedisCache.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageRedisCache.json index 6e660aa8b2ff0..09303a08d1244 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageRedisCache.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageRedisCache.json @@ -100,7 +100,7 @@ "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrcmc33210131885/providers/Microsoft.Cache/redis/rc23d4773541645?api-version=2018-03-01", "cache-control" : "no-cache", "x-ms-request-id" : "e3a8df8e-4e75-476c-a038-5023bfcfcacf", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrcmc33210131885/providers/Microsoft.Cache/Redis/rc23d4773541645\",\"location\":\"Central US\",\"name\":\"rc23d4773541645\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":1},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"7500\",\"maxmemory-reserved\":\"200\",\"maxfragmentationmemory-reserved\":\"300\",\"maxmemory-delta\":\"200\"},\"accessKeys\":{\"primaryKey\":\"zip9801oIDXSLHc1i3mRRw9TsKQDWPHAhuAD6n3Zb3w=\",\"secondaryKey\":\"IQ1OtFXtmMGEcR8xn3OCXpX2vKuCKUKea1oR7UogC2U=\"},\"hostName\":\"rc23d4773541645.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"shardCount\":3,\"linkedServers\":[]}}" + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrcmc33210131885/providers/Microsoft.Cache/Redis/rc23d4773541645\",\"location\":\"Central US\",\"name\":\"rc23d4773541645\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":1},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"7500\",\"maxmemory-reserved\":\"200\",\"maxfragmentationmemory-reserved\":\"300\",\"maxmemory-delta\":\"200\"},\"accessKeys\":{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"},\"hostName\":\"rc23d4773541645.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"shardCount\":3,\"linkedServers\":[]}}" } }, { "Method" : "PUT", @@ -128,7 +128,7 @@ "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrcmc33210131885/providers/Microsoft.Cache/redis/rc37bb65299cbed?api-version=2018-03-01", "cache-control" : "no-cache", "x-ms-request-id" : "fc3c9363-2c5d-4802-8f06-f19c23063e31", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrcmc33210131885/providers/Microsoft.Cache/Redis/rc37bb65299cbed\",\"location\":\"Central US\",\"name\":\"rc37bb65299cbed\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":2},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"15000\",\"maxmemory-reserved\":\"500\",\"maxfragmentationmemory-reserved\":\"650\",\"maxmemory-delta\":\"500\"},\"accessKeys\":{\"primaryKey\":\"N576YEi547JcuXwjleF7z1+03cdyP6YsSr9Bya2cohU=\",\"secondaryKey\":\"Jq+qhX9HQoDht7VgRCOmEtCYrL7XXDKrrWmuCAbtzx4=\"},\"hostName\":\"rc37bb65299cbed.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"shardCount\":3,\"linkedServers\":[]}}" + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrcmc33210131885/providers/Microsoft.Cache/Redis/rc37bb65299cbed\",\"location\":\"Central US\",\"name\":\"rc37bb65299cbed\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Premium\",\"family\":\"P\",\"capacity\":2},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"15000\",\"maxmemory-reserved\":\"500\",\"maxfragmentationmemory-reserved\":\"650\",\"maxmemory-delta\":\"500\"},\"accessKeys\":{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"},\"hostName\":\"rc37bb65299cbed.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"shardCount\":3,\"linkedServers\":[]}}" } }, { "Method" : "PUT", @@ -156,7 +156,7 @@ "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrcmc33210131885/providers/Microsoft.Cache/redis/rc176d4024708a0?api-version=2018-03-01", "cache-control" : "no-cache", "x-ms-request-id" : "645eca80-43d4-468b-bb30-22ef536e3544", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrcmc33210131885/providers/Microsoft.Cache/Redis/rc176d4024708a0\",\"location\":\"Central US\",\"name\":\"rc176d4024708a0\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Basic\",\"family\":\"C\",\"capacity\":0},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"256\",\"maxmemory-reserved\":\"2\",\"maxfragmentationmemory-reserved\":\"12\",\"maxmemory-delta\":\"2\"},\"accessKeys\":{\"primaryKey\":\"ZEilosf5a3+pkiJt9F0SSsS8qiAE6gjWuRXr9Ebeom8=\",\"secondaryKey\":\"hJFSsnxYzPnEFhNtBCalcs5SfBRmF8TCoKhynzilDd8=\"},\"hostName\":\"rc176d4024708a0.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrcmc33210131885/providers/Microsoft.Cache/Redis/rc176d4024708a0\",\"location\":\"Central US\",\"name\":\"rc176d4024708a0\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Basic\",\"family\":\"C\",\"capacity\":0},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"256\",\"maxmemory-reserved\":\"2\",\"maxfragmentationmemory-reserved\":\"12\",\"maxmemory-delta\":\"2\"},\"accessKeys\":{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"},\"hostName\":\"rc176d4024708a0.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" } }, { "Method" : "GET", @@ -2889,7 +2889,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "587a2ce3-dc33-4bdd-a3b3-7af39f3c6051", - "Body" : "{\"primaryKey\":\"ZEilosf5a3+pkiJt9F0SSsS8qiAE6gjWuRXr9Ebeom8=\",\"secondaryKey\":\"hJFSsnxYzPnEFhNtBCalcs5SfBRmF8TCoKhynzilDd8=\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -2916,7 +2916,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "dc577759-c824-4411-9f17-bdf509c0092f", - "Body" : "{\"primaryKey\":\"ZEilosf5a3+pkiJt9F0SSsS8qiAE6gjWuRXr9Ebeom8=\",\"secondaryKey\":\"gG0JVgoM7o8BlZ01GHj38v+j2Bn9oD6lwIqWc9SKjeI=\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageSearchService.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageSearchService.json index aa2f9e4c07289..cd5cffbe941fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageSearchService.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageSearchService.json @@ -929,7 +929,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "110024c2-0ec7-48a0-9163-592062178298", - "Body" : "{\"primaryKey\":\"7532A11F810684282EABB97C5BEA78D3\",\"secondaryKey\":\"4ABA58E9A9866A023DB52C6AFB83197E\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1038,7 +1038,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "2e86e95f-ee65-41f9-a4b3-3f0c7c798480", - "Body" : "{\"primaryKey\":\"2D69CCC569C9615F467E8CEE2B3440F3\",\"secondaryKey\":\"751C9C50BEF8D2C364AE801A136478B6\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1122,7 +1122,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "09f436f3-e88e-410f-8c3e-6a463315c505", - "Body" : "{\"primaryKey\":\"2D69CCC569C9615F467E8CEE2B3440F3\",\"secondaryKey\":\"751C9C50BEF8D2C364AE801A136478B6\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1178,7 +1178,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "9de15cd5-9238-4c22-a637-0ec0cc74e794", - "Body" : "{\"primaryKey\":\"7532A11F810684282EABB97C5BEA78D3\",\"secondaryKey\":\"4ABA58E9A9866A023DB52C6AFB83197E\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1262,7 +1262,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "3fe80763-7b47-4b60-a789-b1735c3c8542", - "Body" : "{\"primaryKey\":\"7B03CE37EBB5A90C9C716C3F9D53EF88\",\"secondaryKey\":\"751C9C50BEF8D2C364AE801A136478B6\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -1290,7 +1290,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "fef36f4c-ca64-4e5a-863c-18474e577d16", - "Body" : "{\"primaryKey\":\"7B03CE37EBB5A90C9C716C3F9D53EF88\",\"secondaryKey\":\"15F5B92C778C3A8CAF867978EEE2A562\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "PUT", @@ -3503,7 +3503,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "0fc59f83-af42-4fca-a632-3a7e29ec1c18", - "Body" : "{\"primaryKey\":\"7B03CE37EBB5A90C9C716C3F9D53EF88\",\"secondaryKey\":\"15F5B92C778C3A8CAF867978EEE2A562\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -3611,7 +3611,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "7ad1666b-ffae-48fb-83fd-7e47e24395da", - "Body" : "{\"primaryKey\":\"7B03CE37EBB5A90C9C716C3F9D53EF88\",\"secondaryKey\":\"15F5B92C778C3A8CAF867978EEE2A562\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageWebAppCosmosDbByMsi.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageWebAppCosmosDbByMsi.json index 8c4b007942079..deeecd0b77a3a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageWebAppCosmosDbByMsi.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageWebAppCosmosDbByMsi.json @@ -1186,7 +1186,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "4b94b8fc-f2ab-42ff-a700-80a14123a21a", - "Body" : "{\"primaryMasterKey\":\"b5FYzSCbFcjRoVoYV4szVMNHGu4MilMXP5ICnYnGsEOwd1jPZ0OLEzqH8IL9Rx5eD8lvwM0AvE7Q5GqflrgPdA==\",\"secondaryMasterKey\":\"I1MRcaw77jtQ9t1nTMGRrtHTQOcnbTlwMTLrS56N9xpN26x79zSPo2ftP8D2L9bKPU196AU3vAN2OKJaTSt9tQ==\",\"primaryReadonlyMasterKey\":\"8qRCIe4qoGDVBlUS0lFH5rPkrN8sNn3yWvm7fhE8Vjq2GYYZqHl6Qf1fwFnmz62bGAd2Pr80hi1JyJRWRVT8vg==\",\"secondaryReadonlyMasterKey\":\"2ocHfbfXD8CSRN0AN1SufEbfHHn5xQfaZ1kZkOG6TBgpuVEtBkfmcbAWKmevMs8HuE1TReL0EdJPUpFdmyuENA==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -1213,7 +1213,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "0466350e-0137-4552-87ab-d2b8d51aa9da", - "Body" : "{\"primaryReadonlyMasterKey\":\"8qRCIe4qoGDVBlUS0lFH5rPkrN8sNn3yWvm7fhE8Vjq2GYYZqHl6Qf1fwFnmz62bGAd2Pr80hi1JyJRWRVT8vg==\",\"secondaryReadonlyMasterKey\":\"2ocHfbfXD8CSRN0AN1SufEbfHHn5xQfaZ1kZkOG6TBgpuVEtBkfmcbAWKmevMs8HuE1TReL0EdJPUpFdmyuENA==\"}" + "Body" : "{\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1415,7 +1415,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "cba97e8e-ef8d-4856-a229-8c6d1c7e8884", - "Body" : "{\"primaryMasterKey\":\"b5FYzSCbFcjRoVoYV4szVMNHGu4MilMXP5ICnYnGsEOwd1jPZ0OLEzqH8IL9Rx5eD8lvwM0AvE7Q5GqflrgPdA==\",\"secondaryMasterKey\":\"I1MRcaw77jtQ9t1nTMGRrtHTQOcnbTlwMTLrS56N9xpN26x79zSPo2ftP8D2L9bKPU196AU3vAN2OKJaTSt9tQ==\",\"primaryReadonlyMasterKey\":\"8qRCIe4qoGDVBlUS0lFH5rPkrN8sNn3yWvm7fhE8Vjq2GYYZqHl6Qf1fwFnmz62bGAd2Pr80hi1JyJRWRVT8vg==\",\"secondaryReadonlyMasterKey\":\"2ocHfbfXD8CSRN0AN1SufEbfHHn5xQfaZ1kZkOG6TBgpuVEtBkfmcbAWKmevMs8HuE1TReL0EdJPUpFdmyuENA==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "PUT", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageWebAppCosmosDbThroughKeyVault.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageWebAppCosmosDbThroughKeyVault.json index 9fdc5f0f92ed2..e20c2244cb93f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageWebAppCosmosDbThroughKeyVault.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testManageWebAppCosmosDbThroughKeyVault.json @@ -1240,7 +1240,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "4b05fe54-8e9b-480a-a1e8-ae14a4caca88", - "Body" : "{\"primaryMasterKey\":\"taWYFWtSUfwh56y369Ept0v4Ygr61tovqz4J37EKaY3pSDm8bMBoIBw4GtcXcmkW9BtgERq6T5MdgMSdX3tv7g==\",\"secondaryMasterKey\":\"gezxWEOelAMbcEtP2mQzNvGpJj1XbEPd2k5jtm6WZfEYqpBQajaueyon7yG9Mvn2i2BxPUuFT2bBNr20QSNnFA==\",\"primaryReadonlyMasterKey\":\"hmXbpals60WPk0BZNskmCaQxqgABL9yKE5Iux2uDe50473F3vdkHNdxEHI4mxW8E0fzhwe8xJcOil7iRpAWx9w==\",\"secondaryReadonlyMasterKey\":\"fpJUCU2n6l48t4elr2RKSloyWJa6Gl9AxtEAbXoYtGJp7v0a8qTk1s3aY8vfOiOVJQav1IdLSXSq7jHDcUq5fg==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -1267,7 +1267,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "8f7cf5ae-854d-4e0c-b39a-dfa8bc1ed913", - "Body" : "{\"primaryReadonlyMasterKey\":\"hmXbpals60WPk0BZNskmCaQxqgABL9yKE5Iux2uDe50473F3vdkHNdxEHI4mxW8E0fzhwe8xJcOil7iRpAWx9w==\",\"secondaryReadonlyMasterKey\":\"fpJUCU2n6l48t4elr2RKSloyWJa6Gl9AxtEAbXoYtGJp7v0a8qTk1s3aY8vfOiOVJQav1IdLSXSq7jHDcUq5fg==\"}" + "Body" : "{\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1524,7 +1524,7 @@ "content-type" : "application/json", "cache-control" : "no-store, no-cache", "x-ms-request-id" : "f9d23907-e66d-41c0-9d59-9cba39aef64a", - "Body" : "{\"primaryMasterKey\":\"taWYFWtSUfwh56y369Ept0v4Ygr61tovqz4J37EKaY3pSDm8bMBoIBw4GtcXcmkW9BtgERq6T5MdgMSdX3tv7g==\",\"secondaryMasterKey\":\"gezxWEOelAMbcEtP2mQzNvGpJj1XbEPd2k5jtm6WZfEYqpBQajaueyon7yG9Mvn2i2BxPUuFT2bBNr20QSNnFA==\",\"primaryReadonlyMasterKey\":\"hmXbpals60WPk0BZNskmCaQxqgABL9yKE5Iux2uDe50473F3vdkHNdxEHI4mxW8E0fzhwe8xJcOil7iRpAWx9w==\",\"secondaryReadonlyMasterKey\":\"fpJUCU2n6l48t4elr2RKSloyWJa6Gl9AxtEAbXoYtGJp7v0a8qTk1s3aY8vfOiOVJQav1IdLSXSq7jHDcUq5fg==\"}" + "Body" : "{\"primaryMasterKey\":\"***REMOVED***\",\"secondaryMasterKey\":\"***REMOVED***\",\"primaryReadonlyMasterKey\":\"***REMOVED***\",\"secondaryReadonlyMasterKey\":\"***REMOVED***\"}" } }, { "Method" : "PUT", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusPublishSubscribeAdvanceFeatures.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusPublishSubscribeAdvanceFeatures.json index fb6fd3e750e6c..77b712742e652 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusPublishSubscribeAdvanceFeatures.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusPublishSubscribeAdvanceFeatures.json @@ -519,7 +519,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "af43f2f0-d150-4e90-9f92-db71dd5d51c7_M10CH3_M10CH3", - "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespacebe847995d.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=Q7cSCcx6Ac5KwpCDPPvEXzOwqq8st3bGHZJfRUx6WkE=\",\"secondaryConnectionString\":\"Endpoint=sb://namespacebe847995d.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=O5vX7GKgWoQWYb95fqh5CfVB31lXAeZ5tK4HVqxDriI=\",\"primaryKey\":\"Q7cSCcx6Ac5KwpCDPPvEXzOwqq8st3bGHZJfRUx6WkE=\",\"secondaryKey\":\"O5vX7GKgWoQWYb95fqh5CfVB31lXAeZ5tK4HVqxDriI=\",\"keyName\":\"RootManageSharedAccessKey\"}" + "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespacebe847995d.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"secondaryConnectionString\":\"Endpoint=sb://namespacebe847995d.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\",\"keyName\":\"RootManageSharedAccessKey\"}" } }, { "Method" : "DELETE", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusPublishSubscribeBasic.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusPublishSubscribeBasic.json index e72ca94586123..34dbed31b7a69 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusPublishSubscribeBasic.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusPublishSubscribeBasic.json @@ -410,7 +410,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "81a1c11b-c1e1-40a8-aa4c-3e9517090d0e_M9CH3_M9CH3", - "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespacee21084456.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SB2pU7XcFe6s9JQ99TjVe5CXoU/mowFDOWYnJel6j8k=\",\"secondaryConnectionString\":\"Endpoint=sb://namespacee21084456.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=KLmtlpiXfyjSpYexoLNksGp8w6rq87MTa4MEbmqCKco=\",\"primaryKey\":\"SB2pU7XcFe6s9JQ99TjVe5CXoU/mowFDOWYnJel6j8k=\",\"secondaryKey\":\"KLmtlpiXfyjSpYexoLNksGp8w6rq87MTa4MEbmqCKco=\",\"keyName\":\"RootManageSharedAccessKey\"}" + "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespacee21084456.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"secondaryConnectionString\":\"Endpoint=sb://namespacee21084456.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\",\"keyName\":\"RootManageSharedAccessKey\"}" } }, { "Method" : "POST", @@ -438,7 +438,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "1dcff976-8365-415d-8d7e-4332edbe2941_M9CH3_M9CH3", - "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespacee21084456.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SB2pU7XcFe6s9JQ99TjVe5CXoU/mowFDOWYnJel6j8k=\",\"secondaryConnectionString\":\"Endpoint=sb://namespacee21084456.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=hY8zK1xZuCH05t0ae+nB97vt+I8tNIsXg4YTyTTtoYY=\",\"primaryKey\":\"SB2pU7XcFe6s9JQ99TjVe5CXoU/mowFDOWYnJel6j8k=\",\"secondaryKey\":\"hY8zK1xZuCH05t0ae+nB97vt+I8tNIsXg4YTyTTtoYY=\",\"keyName\":\"RootManageSharedAccessKey\"}" + "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespacee21084456.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"secondaryConnectionString\":\"Endpoint=sb://namespacee21084456.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\",\"keyName\":\"RootManageSharedAccessKey\"}" } }, { "Method" : "PUT", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusQueueAdvanceFeatures.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusQueueAdvanceFeatures.json index 6550e3261b5d7..05b542f66c6fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusQueueAdvanceFeatures.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusQueueAdvanceFeatures.json @@ -326,7 +326,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "c81e69e3-ddb0-43c5-bd95-3e16f03a035e_M5CH3_M5CH3", - "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespace839795598.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=yFBUOgfUlL0FcO+gOTUk4/pW0VEBokoIKgpMtzTRNao=\",\"secondaryConnectionString\":\"Endpoint=sb://namespace839795598.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=NXIuxEXSYF5cxeOzBrj1l5Gl7p9F37r1k79xbg2plU8=\",\"primaryKey\":\"yFBUOgfUlL0FcO+gOTUk4/pW0VEBokoIKgpMtzTRNao=\",\"secondaryKey\":\"NXIuxEXSYF5cxeOzBrj1l5Gl7p9F37r1k79xbg2plU8=\",\"keyName\":\"RootManageSharedAccessKey\"}" + "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespace839795598.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"secondaryConnectionString\":\"Endpoint=sb://namespace839795598.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\",\"keyName\":\"RootManageSharedAccessKey\"}" } }, { "Method" : "PUT", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusQueueBasic.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusQueueBasic.json index 9c2e716cbe75a..a06c8d12e4bfd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusQueueBasic.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusQueueBasic.json @@ -437,7 +437,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "662d7b71-9a51-4edf-b884-e72023c3a0bb_M3CH3_M3CH3", - "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespace66415624f.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=oqmjUy2rDMfTzLGzshqKeVK0+K2cP46vGje+e9iE15g=\",\"secondaryConnectionString\":\"Endpoint=sb://namespace66415624f.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=dM7w4CQMvUXRD4gTrx+RJYNpa4BJURL+pdZPW95QhFQ=\",\"primaryKey\":\"oqmjUy2rDMfTzLGzshqKeVK0+K2cP46vGje+e9iE15g=\",\"secondaryKey\":\"dM7w4CQMvUXRD4gTrx+RJYNpa4BJURL+pdZPW95QhFQ=\",\"keyName\":\"RootManageSharedAccessKey\"}" + "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespace66415624f.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"secondaryConnectionString\":\"Endpoint=sb://namespace66415624f.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\",\"keyName\":\"RootManageSharedAccessKey\"}" } }, { "Method" : "POST", @@ -465,7 +465,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "047de933-15c4-461c-88df-0aaa43eb2e55_M3CH3_M3CH3", - "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespace66415624f.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=oqmjUy2rDMfTzLGzshqKeVK0+K2cP46vGje+e9iE15g=\",\"secondaryConnectionString\":\"Endpoint=sb://namespace66415624f.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=MyeY8+gcsykpDcstI8JjlVtXhGQ4ekhVZVtQf8pNryU=\",\"primaryKey\":\"oqmjUy2rDMfTzLGzshqKeVK0+K2cP46vGje+e9iE15g=\",\"secondaryKey\":\"MyeY8+gcsykpDcstI8JjlVtXhGQ4ekhVZVtQf8pNryU=\",\"keyName\":\"RootManageSharedAccessKey\"}" + "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespace66415624f.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"secondaryConnectionString\":\"Endpoint=sb://namespace66415624f.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=***REMOVED***\",\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\",\"keyName\":\"RootManageSharedAccessKey\"}" } }, { "Method" : "DELETE", diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusWithClaimBasedAuthorization.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusWithClaimBasedAuthorization.json index f259395ca451b..8ee5ccb4a229e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusWithClaimBasedAuthorization.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/testServiceBusWithClaimBasedAuthorization.json @@ -410,7 +410,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "5ad02cee-7b6b-435f-8438-614354403ec5_M11CH3_M11CH3", - "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespace82e20752f.servicebus.windows.net/;SharedAccessKeyName=SendRule;SharedAccessKey=aC2ZIEcRZtz0REf5hXdvXKKNgD0OT2P7QHWWAvUKWMk=\",\"secondaryConnectionString\":\"Endpoint=sb://namespace82e20752f.servicebus.windows.net/;SharedAccessKeyName=SendRule;SharedAccessKey=GNvXqJRgykUQSoVhcOCoWlFJXWuwRWIQWlnVi1W4U/I=\",\"primaryKey\":\"aC2ZIEcRZtz0REf5hXdvXKKNgD0OT2P7QHWWAvUKWMk=\",\"secondaryKey\":\"GNvXqJRgykUQSoVhcOCoWlFJXWuwRWIQWlnVi1W4U/I=\",\"keyName\":\"SendRule\"}" + "Body" : "{\"primaryConnectionString\":\"Endpoint=sb://namespace82e20752f.servicebus.windows.net/;SharedAccessKeyName=SendRule;SharedAccessKey=***REMOVED***\",\"secondaryConnectionString\":\"Endpoint=sb://namespace82e20752f.servicebus.windows.net/;SharedAccessKeyName=SendRule;SharedAccessKey=***REMOVED***\",\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\",\"keyName\":\"SendRule\"}" } }, { "Method" : "DELETE", diff --git a/sdk/resourcemanager/azure-resourcemanager/pom.xml b/sdk/resourcemanager/azure-resourcemanager/pom.xml index 59fa751fb0f57..d189150b90b1c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager/pom.xml @@ -140,6 +140,11 @@ azure-resourcemanager-redis 2.0.0-beta.4 + + com.azure.resourcemanager + azure-resourcemanager-eventhubs + 2.0.0-beta.4 + org.junit.jupiter junit-jupiter-engine diff --git a/sdk/resourcemanager/azure-resourcemanager/src/main/java/com/azure/resourcemanager/Azure.java b/sdk/resourcemanager/azure-resourcemanager/src/main/java/com/azure/resourcemanager/Azure.java index 3a2304e5065b0..d5161edc64689 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/main/java/com/azure/resourcemanager/Azure.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/main/java/com/azure/resourcemanager/Azure.java @@ -47,6 +47,10 @@ import com.azure.resourcemanager.cosmos.models.CosmosDBAccounts; import com.azure.resourcemanager.dns.DnsZoneManager; import com.azure.resourcemanager.dns.models.DnsZones; +import com.azure.resourcemanager.eventhubs.EventHubsManager; +import com.azure.resourcemanager.eventhubs.models.EventHubDisasterRecoveryPairings; +import com.azure.resourcemanager.eventhubs.models.EventHubNamespaces; +import com.azure.resourcemanager.eventhubs.models.EventHubs; import com.azure.resourcemanager.keyvault.KeyVaultManager; import com.azure.resourcemanager.keyvault.models.Vaults; import com.azure.resourcemanager.monitor.MonitorManager; @@ -132,7 +136,7 @@ public final class Azure { // private final AuthorizationManager authorizationManager; private final MSIManager msiManager; private final MonitorManager monitorManager; - // private final EventHubManager eventHubManager; + private final EventHubsManager eventHubsManager; private final AppPlatformManager appPlatformManager; private final PrivateDnsZoneManager privateDnsZoneManager; private final Authenticated authenticated; @@ -381,7 +385,7 @@ private Azure(HttpPipeline httpPipeline, AzureProfile profile, Authenticated aut // this.authorizationManager = AuthorizationManager.authenticate(restClient, subscriptionId, sdkContext); this.msiManager = MSIManager.authenticate(httpPipeline, profile, sdkContext); this.monitorManager = MonitorManager.authenticate(httpPipeline, profile, sdkContext); - // this.eventHubManager = EventHubManager.authenticate(restClient, subscriptionId, sdkContext); + this.eventHubsManager = EventHubsManager.authenticate(httpPipeline, profile, sdkContext); this.appPlatformManager = AppPlatformManager.authenticate(httpPipeline, profile, sdkContext); this.privateDnsZoneManager = PrivateDnsZoneManager.authenticate(httpPipeline, profile, sdkContext); this.authenticated = authenticated; @@ -768,30 +772,27 @@ public AlertRules alertRules() { public AutoscaleSettings autoscaleSettings() { return this.monitorManager.autoscaleSettings(); } - // - // /** - // * @return entry point to managing event hub namespaces. - // */ - // @Beta(SinceVersion.V1_7_0) - // public EventHubNamespaces eventHubNamespaces() { - // return this.eventHubManager.namespaces(); - // } - // - // /** - // * @return entry point to managing event hubs. - // */ - // @Beta(SinceVersion.V1_7_0) - // public EventHubs eventHubs() { - // return this.eventHubManager.eventHubs(); - // } - // - // /** - // * @return entry point to managing event hub namespace geo disaster recovery. - // */ - // @Beta(SinceVersion.V1_7_0) - // public EventHubDisasterRecoveryPairings eventHubDisasterRecoveryPairings() { - // return this.eventHubManager.eventHubDisasterRecoveryPairings(); - // } + + /** + * @return entry point to managing event hub namespaces. + */ + public EventHubNamespaces eventHubNamespaces() { + return this.eventHubsManager.namespaces(); + } + + /** + * @return entry point to managing event hubs. + */ + public EventHubs eventHubs() { + return this.eventHubsManager.eventHubs(); + } + + /** + * @return entry point to managing event hub namespace geo disaster recovery. + */ + public EventHubDisasterRecoveryPairings eventHubDisasterRecoveryPairings() { + return this.eventHubsManager.eventHubDisasterRecoveryPairings(); + } /** @return entry point to manage compute galleries. */ public Galleries galleries() { diff --git a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testRedis.json b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testRedis.json index 6c1c27cea71cc..10b53903c6263 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testRedis.json +++ b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testRedis.json @@ -100,7 +100,7 @@ "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/redis66337group/providers/Microsoft.Cache/redis/redis66337?api-version=2018-03-01", "cache-control" : "no-cache", "x-ms-request-id" : "811a055d-e9ff-430a-8d23-1f3603bd4e64", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/redis66337group/providers/Microsoft.Cache/Redis/redis66337\",\"location\":\"East US\",\"name\":\"redis66337\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{\"mytag\":\"testtag\"},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Standard\",\"family\":\"C\",\"capacity\":0},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"256\",\"maxmemory-reserved\":\"2\",\"maxfragmentationmemory-reserved\":\"12\",\"maxmemory-delta\":\"2\"},\"accessKeys\":{\"primaryKey\":\"KLZuFk4EyF39mDkzgKFsBhlXNJe2mP3PyDPDC9ipsgg=\",\"secondaryKey\":\"LeqvWXGTy2XH7gB6Z+QuzhUePUHdznUvvtTzHCNFDrU=\"},\"hostName\":\"redis66337.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/redis66337group/providers/Microsoft.Cache/Redis/redis66337\",\"location\":\"East US\",\"name\":\"redis66337\",\"type\":\"Microsoft.Cache/Redis\",\"tags\":{\"mytag\":\"testtag\"},\"properties\":{\"provisioningState\":\"Creating\",\"redisVersion\":\"4.0.14\",\"sku\":{\"name\":\"Standard\",\"family\":\"C\",\"capacity\":0},\"enableNonSslPort\":false,\"redisConfiguration\":{\"maxclients\":\"256\",\"maxmemory-reserved\":\"2\",\"maxfragmentationmemory-reserved\":\"12\",\"maxmemory-delta\":\"2\"},\"accessKeys\":{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"},\"hostName\":\"redis66337.redis.cache.windows.net\",\"port\":6379,\"sslPort\":6380,\"linkedServers\":[]}}" } }, { "Method" : "GET", diff --git a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceAnySku.json b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceAnySku.json index 87ce9f58d2c90..f5a9998976bb1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceAnySku.json +++ b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceAnySku.json @@ -879,7 +879,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "eedb9349-9375-4522-b8e3-072cbcb90a56", - "Body" : "{\"primaryKey\":\"A6E7AC4B810F11A3FECC443C8FF24AF1\",\"secondaryKey\":\"3B4AC761ABD21E8910989A8B1BCB9323\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -935,7 +935,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "46591e2c-aef7-4249-b347-4a89f3adb9ff", - "Body" : "{\"primaryKey\":\"A6E7AC4B810F11A3FECC443C8FF24AF1\",\"secondaryKey\":\"3B4AC761ABD21E8910989A8B1BCB9323\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1852,7 +1852,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "f4287cbf-8214-4ee4-92d3-547c76d5b09d", - "Body" : "{\"primaryKey\":\"A6E7AC4B810F11A3FECC443C8FF24AF1\",\"secondaryKey\":\"3B4AC761ABD21E8910989A8B1BCB9323\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1993,7 +1993,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "4b570ee3-f6bb-4a30-b8e0-c0f0bbfc1136", - "Body" : "{\"primaryKey\":\"A6E7AC4B810F11A3FECC443C8FF24AF1\",\"secondaryKey\":\"3B4AC761ABD21E8910989A8B1BCB9323\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -2021,7 +2021,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "05e84194-dc87-4aa2-8e2b-b17dccb63f93", - "Body" : "{\"primaryKey\":\"A6E7AC4B810F11A3FECC443C8FF24AF1\",\"secondaryKey\":\"3B4AC761ABD21E8910989A8B1BCB9323\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -2101,7 +2101,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "ba6016a9-c96e-47c7-9822-e9f8861580f9", - "Body" : "{\"primaryKey\":\"8CA59418170B2C85BF284AB0D1E59605\",\"secondaryKey\":\"3B4AC761ABD21E8910989A8B1BCB9323\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -2129,7 +2129,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "64ae2303-489f-45e7-bfc3-423b97dfc5ed", - "Body" : "{\"primaryKey\":\"8CA59418170B2C85BF284AB0D1E59605\",\"secondaryKey\":\"6E6D3C6A24499F835827CA19DC8AB23E\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -2185,7 +2185,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "1e8a1824-2fa5-4e40-9d0b-b9aebfd139aa", - "Body" : "{\"primaryKey\":\"8CA59418170B2C85BF284AB0D1E59605\",\"secondaryKey\":\"6E6D3C6A24499F835827CA19DC8AB23E\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -2213,7 +2213,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "804ebb98-19ed-4079-b64c-4c7b2031bd41", - "Body" : "{\"primaryKey\":\"8CA59418170B2C85BF284AB0D1E59605\",\"secondaryKey\":\"6E6D3C6A24499F835827CA19DC8AB23E\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "POST", @@ -2241,7 +2241,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "3acb99d0-4cc5-4307-8756-f8fe15df40d9", - "Body" : "{\"primaryKey\":\"8CA59418170B2C85BF284AB0D1E59605\",\"secondaryKey\":\"6E6D3C6A24499F835827CA19DC8AB23E\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", diff --git a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceBasicSku.json b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceBasicSku.json index 72a76b7c37da1..de8ac3d4b8daf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceBasicSku.json +++ b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceBasicSku.json @@ -876,7 +876,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "97baf4a4-ca9e-4d82-bfad-9564e09750b0", - "Body" : "{\"primaryKey\":\"5B8B0EC74B686241C01416C2FF8BD3BB\",\"secondaryKey\":\"7FD603E8CE8C6864D7FA475826A014A0\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1818,7 +1818,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "6b1f51d3-f16e-443f-b383-50358d03930a", - "Body" : "{\"primaryKey\":\"5B8B0EC74B686241C01416C2FF8BD3BB\",\"secondaryKey\":\"7FD603E8CE8C6864D7FA475826A014A0\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1903,7 +1903,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "edebc7b9-87e6-409e-9ae0-d0b44032c614", - "Body" : "{\"primaryKey\":\"5B8B0EC74B686241C01416C2FF8BD3BB\",\"secondaryKey\":\"7FD603E8CE8C6864D7FA475826A014A0\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", diff --git a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceFreeSku.json b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceFreeSku.json index 0520a1eb121e7..1b03a763b2c8e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceFreeSku.json +++ b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceFreeSku.json @@ -426,7 +426,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "9f701a9e-fb04-485d-9b27-4ae8c50f2871", - "Body" : "{\"primaryKey\":\"439FA1B5D4785AB3DC8BF4DA1EDC8105\",\"secondaryKey\":\"A237AD467E79D1F64ACE5FF197B65EC7\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -918,7 +918,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "5d5f279c-4515-48df-bafd-597e1477bd91", - "Body" : "{\"primaryKey\":\"439FA1B5D4785AB3DC8BF4DA1EDC8105\",\"secondaryKey\":\"A237AD467E79D1F64ACE5FF197B65EC7\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -1003,7 +1003,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "a1d954e0-b5c6-485d-b20c-385b3b82d30b", - "Body" : "{\"primaryKey\":\"439FA1B5D4785AB3DC8BF4DA1EDC8105\",\"secondaryKey\":\"A237AD467E79D1F64ACE5FF197B65EC7\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", diff --git a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceStandardSku.json b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceStandardSku.json index fe750fb639fc0..9964d722988dd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceStandardSku.json +++ b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/testSearchServiceStandardSku.json @@ -2478,7 +2478,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "3677ebb3-54c1-47d2-aa3d-fb4937c7d6a3", - "Body" : "{\"primaryKey\":\"8434F43A0E9A31153CDA4B002CE2F8A3\",\"secondaryKey\":\"71DF6F5EF0652AAF8B64E38847DD09EF\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -3345,7 +3345,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "9b1c6c6c-9c1d-448b-8206-d04399671585", - "Body" : "{\"primaryKey\":\"8434F43A0E9A31153CDA4B002CE2F8A3\",\"secondaryKey\":\"71DF6F5EF0652AAF8B64E38847DD09EF\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", @@ -4606,7 +4606,7 @@ "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", "x-ms-request-id" : "11e6e50d-3dd0-4921-b5aa-175db2014899", - "Body" : "{\"primaryKey\":\"8434F43A0E9A31153CDA4B002CE2F8A3\",\"secondaryKey\":\"71DF6F5EF0652AAF8B64E38847DD09EF\"}" + "Body" : "{\"primaryKey\":\"***REMOVED***\",\"secondaryKey\":\"***REMOVED***\"}" } }, { "Method" : "GET", diff --git a/sdk/resourcemanager/credcheck.js b/sdk/resourcemanager/credcheck.js index d880b59830ea3..52eacc89e0b50 100644 --- a/sdk/resourcemanager/credcheck.js +++ b/sdk/resourcemanager/credcheck.js @@ -11,6 +11,13 @@ function credcheck(dir) { redactDict.set(/\\"keyName\\":\\"key1\\",\\"value\\":\\"(.*?)\\"/g, '\\"keyName\\":\\"key1\\",\\"value\\":\\"***REMOVED***\\"'); redactDict.set(/\\"keyName\\":\\"key2\\",\\"value\\":\\"(.*?)\\"/g, '\\"keyName\\":\\"key2\\",\\"value\\":\\"***REMOVED***\\"'); redactDict.set(/;AccountKey=(.*?)(;|\\")/g, ';AccountKey=***REMOVED***$2'); + redactDict.set(/\\"primaryMasterKey\\":\\"(.*?)\\"/g, '\\"primaryMasterKey\\":\\"***REMOVED***\\"'); + redactDict.set(/\\"primaryReadonlyMasterKey\\":\\"(.*?)\\"/g, '\\"primaryReadonlyMasterKey\\":\\"***REMOVED***\\"'); + redactDict.set(/\\"secondaryMasterKey\\":\\"(.*?)\\"/g, '\\"secondaryMasterKey\\":\\"***REMOVED***\\"'); + redactDict.set(/\\"secondaryReadonlyMasterKey\\":\\"(.*?)\\"/g, '\\"secondaryReadonlyMasterKey\\":\\"***REMOVED***\\"'); + redactDict.set(/;SharedAccessKey=(.*?)(;|\\")/g, ';SharedAccessKey=***REMOVED***$2'); + redactDict.set(/\\"primaryKey\\":\\"(.*?)\\"/g, '\\"primaryKey\\":\\"***REMOVED***\\"'); + redactDict.set(/\\"secondaryKey\\":\\"(.*?)\\"/g, '\\"secondaryKey\\":\\"***REMOVED***\\"'); credcheckRecursive(dir, redactDict); } diff --git a/sdk/resourcemanager/pom.xml b/sdk/resourcemanager/pom.xml index 7161cbc31f1a4..60e2c76f958e3 100644 --- a/sdk/resourcemanager/pom.xml +++ b/sdk/resourcemanager/pom.xml @@ -19,6 +19,7 @@ azure-resourcemanager-containerservice azure-resourcemanager-cosmos azure-resourcemanager-dns + azure-resourcemanager-eventhubs azure-resourcemanager-keyvault azure-resourcemanager-monitor azure-resourcemanager-msi