diff --git a/sdk/storagecache/mgmt-v2019_08_01/pom.xml b/sdk/storagecache/mgmt-v2019_08_01/pom.xml index 6fa9867dac73b..d93b53b6098b6 100644 --- a/sdk/storagecache/mgmt-v2019_08_01/pom.xml +++ b/sdk/storagecache/mgmt-v2019_08_01/pom.xml @@ -11,8 +11,8 @@ com.microsoft.azure azure-arm-parent - 1.2.0 - ../../parents/azure-arm-parent + 1.1.0 + ../../../pom.management.xml azure-mgmt-storagecache 1.0.0-beta diff --git a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/CachesInner.java b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/CachesInner.java index 8a3bfb89ee332..f2f4d746c0b71 100644 --- a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/CachesInner.java +++ b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/CachesInner.java @@ -48,7 +48,7 @@ public class CachesInner implements InnerSupportsGet, InnerSupportsD /** The Retrofit service to perform REST calls. */ private CachesService service; /** The service client containing this operation class. */ - private StorageCacheMgmtClientImpl client; + private StorageCacheManagementClientImpl client; /** * Initializes an instance of CachesInner. @@ -56,7 +56,7 @@ public class CachesInner implements InnerSupportsGet, InnerSupportsD * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public CachesInner(Retrofit retrofit, StorageCacheMgmtClientImpl client) { + public CachesInner(Retrofit retrofit, StorageCacheManagementClientImpl client) { this.service = retrofit.create(CachesService.class); this.client = client; } diff --git a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/OperationsInner.java b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/OperationsInner.java index 5615cee9845a9..0102ecdc30694 100644 --- a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/OperationsInner.java +++ b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/OperationsInner.java @@ -37,7 +37,7 @@ public class OperationsInner { /** The Retrofit service to perform REST calls. */ private OperationsService service; /** The service client containing this operation class. */ - private StorageCacheMgmtClientImpl client; + private StorageCacheManagementClientImpl client; /** * Initializes an instance of OperationsInner. @@ -45,7 +45,7 @@ public class OperationsInner { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public OperationsInner(Retrofit retrofit, StorageCacheMgmtClientImpl client) { + public OperationsInner(Retrofit retrofit, StorageCacheManagementClientImpl client) { this.service = retrofit.create(OperationsService.class); this.client = client; } diff --git a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/SkusInner.java b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/SkusInner.java index 896d7168175e8..ee815176cf578 100644 --- a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/SkusInner.java +++ b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/SkusInner.java @@ -38,7 +38,7 @@ public class SkusInner { /** The Retrofit service to perform REST calls. */ private SkusService service; /** The service client containing this operation class. */ - private StorageCacheMgmtClientImpl client; + private StorageCacheManagementClientImpl client; /** * Initializes an instance of SkusInner. @@ -46,7 +46,7 @@ public class SkusInner { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public SkusInner(Retrofit retrofit, StorageCacheMgmtClientImpl client) { + public SkusInner(Retrofit retrofit, StorageCacheManagementClientImpl client) { this.service = retrofit.create(SkusService.class); this.client = client; } diff --git a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageCacheManagementClientImpl.java b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageCacheManagementClientImpl.java new file mode 100644 index 0000000000000..f833cdf232b61 --- /dev/null +++ b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageCacheManagementClientImpl.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.storagecache.v2019_08_01.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the StorageCacheManagementClientImpl class. + */ +public class StorageCacheManagementClientImpl extends AzureServiceClient { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. */ + private String subscriptionId; + + /** + * Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Sets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + public StorageCacheManagementClientImpl withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** Client Api Version. */ + private String apiVersion; + + /** + * Gets Client Api Version. + * + * @return the apiVersion value. + */ + public String apiVersion() { + return this.apiVersion; + } + + /** The preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets The preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets The preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public StorageCacheManagementClientImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public StorageCacheManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public StorageCacheManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The OperationsInner object to access its operations. + */ + private OperationsInner operations; + + /** + * Gets the OperationsInner object to access its operations. + * @return the OperationsInner object. + */ + public OperationsInner operations() { + return this.operations; + } + + /** + * The SkusInner object to access its operations. + */ + private SkusInner skus; + + /** + * Gets the SkusInner object to access its operations. + * @return the SkusInner object. + */ + public SkusInner skus() { + return this.skus; + } + + /** + * The UsageModelsInner object to access its operations. + */ + private UsageModelsInner usageModels; + + /** + * Gets the UsageModelsInner object to access its operations. + * @return the UsageModelsInner object. + */ + public UsageModelsInner usageModels() { + return this.usageModels; + } + + /** + * The CachesInner object to access its operations. + */ + private CachesInner caches; + + /** + * Gets the CachesInner object to access its operations. + * @return the CachesInner object. + */ + public CachesInner caches() { + return this.caches; + } + + /** + * The StorageTargetsInner object to access its operations. + */ + private StorageTargetsInner storageTargets; + + /** + * Gets the StorageTargetsInner object to access its operations. + * @return the StorageTargetsInner object. + */ + public StorageTargetsInner storageTargets() { + return this.storageTargets; + } + + /** + * Initializes an instance of StorageCacheManagementClient client. + * + * @param credentials the management credentials for Azure + */ + public StorageCacheManagementClientImpl(ServiceClientCredentials credentials) { + this("https://management.azure.com", credentials); + } + + /** + * Initializes an instance of StorageCacheManagementClient client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public StorageCacheManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of StorageCacheManagementClient client. + * + * @param restClient the REST client to connect to Azure. + */ + public StorageCacheManagementClientImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.apiVersion = "2019-08-01-preview"; + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.operations = new OperationsInner(restClient().retrofit(), this); + this.skus = new SkusInner(restClient().retrofit(), this); + this.usageModels = new UsageModelsInner(restClient().retrofit(), this); + this.caches = new CachesInner(restClient().retrofit(), this); + this.storageTargets = new StorageTargetsInner(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "StorageCacheManagementClient", "2019-08-01-preview"); + } +} diff --git a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageCacheManager.java b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageCacheManager.java index afaa688b0cf6a..4d5e3852885da 100644 --- a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageCacheManager.java +++ b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageCacheManager.java @@ -27,7 +27,7 @@ /** * Entry point to Azure StorageCache resource management. */ -public final class StorageCacheManager extends ManagerCore { +public final class StorageCacheManager extends ManagerCore { private Operations operations; private Skus skus; private UsageModels usageModels; @@ -142,6 +142,6 @@ private StorageCacheManager(RestClient restClient, String subscriptionId) { super( restClient, subscriptionId, - new StorageCacheMgmtClientImpl(restClient).withSubscriptionId(subscriptionId)); + new StorageCacheManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); } } diff --git a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageTargetsInner.java b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageTargetsInner.java index 3d3c769e5d63a..0aa13913a90db 100644 --- a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageTargetsInner.java +++ b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/StorageTargetsInner.java @@ -44,7 +44,7 @@ public class StorageTargetsInner { /** The Retrofit service to perform REST calls. */ private StorageTargetsService service; /** The service client containing this operation class. */ - private StorageCacheMgmtClientImpl client; + private StorageCacheManagementClientImpl client; /** * Initializes an instance of StorageTargetsInner. @@ -52,7 +52,7 @@ public class StorageTargetsInner { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public StorageTargetsInner(Retrofit retrofit, StorageCacheMgmtClientImpl client) { + public StorageTargetsInner(Retrofit retrofit, StorageCacheManagementClientImpl client) { this.service = retrofit.create(StorageTargetsService.class); this.client = client; } diff --git a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/UsageModelsInner.java b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/UsageModelsInner.java index d9229c28734a8..80d04dc4fead5 100644 --- a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/UsageModelsInner.java +++ b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/UsageModelsInner.java @@ -38,7 +38,7 @@ public class UsageModelsInner { /** The Retrofit service to perform REST calls. */ private UsageModelsService service; /** The service client containing this operation class. */ - private StorageCacheMgmtClientImpl client; + private StorageCacheManagementClientImpl client; /** * Initializes an instance of UsageModelsInner. @@ -46,7 +46,7 @@ public class UsageModelsInner { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public UsageModelsInner(Retrofit retrofit, StorageCacheMgmtClientImpl client) { + public UsageModelsInner(Retrofit retrofit, StorageCacheManagementClientImpl client) { this.service = retrofit.create(UsageModelsService.class); this.client = client; } diff --git a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/package-info.java b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/package-info.java index 6233f716452e6..ac860cadbd427 100644 --- a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/package-info.java +++ b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/implementation/package-info.java @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * This package contains the implementation classes for StorageCacheMgmtClient. + * This package contains the implementation classes for StorageCacheManagementClient. * A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage caches. */ package com.microsoft.azure.management.storagecache.v2019_08_01.implementation; diff --git a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/package-info.java b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/package-info.java index 1494caf85fd62..005991746dbe7 100644 --- a/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/package-info.java +++ b/sdk/storagecache/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_08_01/package-info.java @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * This package contains the classes for StorageCacheMgmtClient. + * This package contains the classes for StorageCacheManagementClient. * A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage caches. */ package com.microsoft.azure.management.storagecache.v2019_08_01;