Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 12684 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 4f75b013d1cf5254a6753666ad5ff8dff4b509c8 into d95daf6f7c685e15d4560519af8edd6cc0b31e79
SDKAuto committed Jan 28, 2021
1 parent ce2be39 commit 643cae0
Showing 313 changed files with 51,064 additions and 3 deletions.
1 change: 1 addition & 0 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
@@ -195,6 +195,7 @@ com.azure.resourcemanager:azure-resourcemanager-loganalytics;1.0.0-beta.1;1.0.0-
com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-healthbot;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-confluent;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-storage-generated;1.0.0-beta.1;1.0.0-beta.1


# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Release History

## 1.0.0-beta.1 (2021-01-28)

- Azure Resource Manager Storage client library for Java. This package contains Microsoft Azure SDK for Storage Management SDK. The Azure Storage Management API. Package tag package-2019-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
99 changes: 99 additions & 0 deletions sdk/storage/azure-resourcemanager-storage-generated/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Azure Resource Manager Storage client library for Java

Azure Resource Manager Storage client library for Java.

This package contains Microsoft Azure SDK for Storage Management SDK. The Azure Storage Management API. Package tag package-2019-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.

If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.

Thank you in advance for your collaboration. We really appreciate your time!

## Documentation

Various documentation is available to help you get started

- [API reference documentation][docs]

## Getting started

### Prerequisites

- [Java Development Kit (JDK)][jdk] with version 8 or above
- [Azure Subscription][azure_subscription]

### Adding the package to your product

[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-storage-generated;current})
```xml
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-storage-generated</artifactId>
<version>1.0.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})

### Include the recommended packages

Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.

[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.

### Authentication

By default, Azure Active Directory token authentication depends on correct configure of following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.

In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, `azure` client can be authenticated by following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
StorageManager manager = StorageManager
.authenticate(credential, profile);
```

The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.

See [Authentication][authenticate] for more options.

## Key concepts

See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.

## Examples

## Troubleshooting

## Next steps

## Contributing

For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md).

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

<!-- LINKS -->
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
62 changes: 62 additions & 0 deletions sdk/storage/azure-resourcemanager-storage-generated/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.azure</groupId>
<artifactId>azure-client-sdk-parent</artifactId>
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} -->
<relativePath>../../parents/azure-client-sdk-parent</relativePath>
</parent>

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-storage-generated</artifactId>
<version>1.0.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-storage-generated;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Storage Management</name>
<description>This package contains Microsoft Azure SDK for Storage Management SDK. The Azure Storage Management API. Package tag package-2019-06. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
<developerConnection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</developerConnection>
<tag>HEAD</tag>
</scm>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-management</artifactId>
<version>1.1.0</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} -->
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.BlobServicePropertiesInner;

/** An instance of this class provides access to all the operations defined in BlobServicesClient. */
public interface BlobServicesClient {
/**
* List blob services of storage account. It returns a collection of one object named default.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<BlobServicePropertiesInner> list(String resourceGroupName, String accountName);

/**
* List blob services of storage account. It returns a collection of one object named default.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<BlobServicePropertiesInner> list(String resourceGroupName, String accountName, Context context);

/**
* Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param parameters The properties of a storage account’s Blob service, including properties for Storage Analytics
* and CORS (Cross-Origin Resource Sharing) rules.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Blob service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BlobServicePropertiesInner setServiceProperties(
String resourceGroupName, String accountName, BlobServicePropertiesInner parameters);

/**
* Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param parameters The properties of a storage account’s Blob service, including properties for Storage Analytics
* and CORS (Cross-Origin Resource Sharing) rules.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Blob service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BlobServicePropertiesInner> setServicePropertiesWithResponse(
String resourceGroupName, String accountName, BlobServicePropertiesInner parameters, Context context);

/**
* Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BlobServicePropertiesInner getServiceProperties(String resourceGroupName, String accountName);

/**
* Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BlobServicePropertiesInner> getServicePropertiesWithResponse(
String resourceGroupName, String accountName, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.EncryptionScopeInner;

/** An instance of this class provides access to all the operations defined in EncryptionScopesClient. */
public interface EncryptionScopesClient {
/**
* Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope
* is already created and a subsequent request is issued with different properties, the encryption scope properties
* will be updated per the specified request.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption
* scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-)
* only. Every dash (-) character must be immediately preceded and followed by a letter or number.
* @param encryptionScope Encryption scope properties to be used for the create or update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Encryption Scope resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
EncryptionScopeInner put(
String resourceGroupName, String accountName, String encryptionScopeName, EncryptionScopeInner encryptionScope);

/**
* Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope
* is already created and a subsequent request is issued with different properties, the encryption scope properties
* will be updated per the specified request.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption
* scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-)
* only. Every dash (-) character must be immediately preceded and followed by a letter or number.
* @param encryptionScope Encryption scope properties to be used for the create or update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Encryption Scope resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<EncryptionScopeInner> putWithResponse(
String resourceGroupName,
String accountName,
String encryptionScopeName,
EncryptionScopeInner encryptionScope,
Context context);

/**
* Update encryption scope properties as specified in the request body. Update fails if the specified encryption
* scope does not already exist.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption
* scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-)
* only. Every dash (-) character must be immediately preceded and followed by a letter or number.
* @param encryptionScope Encryption scope properties to be used for the update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Encryption Scope resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
EncryptionScopeInner patch(
String resourceGroupName, String accountName, String encryptionScopeName, EncryptionScopeInner encryptionScope);

/**
* Update encryption scope properties as specified in the request body. Update fails if the specified encryption
* scope does not already exist.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption
* scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-)
* only. Every dash (-) character must be immediately preceded and followed by a letter or number.
* @param encryptionScope Encryption scope properties to be used for the update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Encryption Scope resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<EncryptionScopeInner> patchWithResponse(
String resourceGroupName,
String accountName,
String encryptionScopeName,
EncryptionScopeInner encryptionScope,
Context context);

/**
* Returns the properties for the specified encryption scope.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption
* scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-)
* only. Every dash (-) character must be immediately preceded and followed by a letter or number.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Encryption Scope resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
EncryptionScopeInner get(String resourceGroupName, String accountName, String encryptionScopeName);

/**
* Returns the properties for the specified encryption scope.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption
* scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-)
* only. Every dash (-) character must be immediately preceded and followed by a letter or number.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Encryption Scope resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<EncryptionScopeInner> getWithResponse(
String resourceGroupName, String accountName, String encryptionScopeName, Context context);

/**
* Lists all the encryption scopes available under the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of encryption scopes requested, and if paging is required, a URL to the next page of encryption
* scopes.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<EncryptionScopeInner> list(String resourceGroupName, String accountName);

/**
* Lists all the encryption scopes available under the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of encryption scopes requested, and if paging is required, a URL to the next page of encryption
* scopes.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<EncryptionScopeInner> list(String resourceGroupName, String accountName, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.FileServiceItemsInner;
import com.azure.resourcemanager.storage.generated.fluent.models.FileServicePropertiesInner;

/** An instance of this class provides access to all the operations defined in FileServicesClient. */
public interface FileServicesClient {
/**
* List all file services in storage accounts.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FileServiceItemsInner list(String resourceGroupName, String accountName);

/**
* List all file services in storage accounts.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<FileServiceItemsInner> listWithResponse(String resourceGroupName, String accountName, Context context);

/**
* Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param parameters The properties of file services in storage accounts, including CORS (Cross-Origin Resource
* Sharing) rules.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of File services in storage account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FileServicePropertiesInner setServiceProperties(
String resourceGroupName, String accountName, FileServicePropertiesInner parameters);

/**
* Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param parameters The properties of file services in storage accounts, including CORS (Cross-Origin Resource
* Sharing) rules.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of File services in storage account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<FileServicePropertiesInner> setServicePropertiesWithResponse(
String resourceGroupName, String accountName, FileServicePropertiesInner parameters, Context context);

/**
* Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing)
* rules.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FileServicePropertiesInner getServiceProperties(String resourceGroupName, String accountName);

/**
* Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing)
* rules.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<FileServicePropertiesInner> getServicePropertiesWithResponse(
String resourceGroupName, String accountName, Context context);
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.ManagementPolicyInner;
import com.azure.resourcemanager.storage.generated.models.ManagementPolicyName;

/** An instance of this class provides access to all the operations defined in ManagementPoliciesClient. */
public interface ManagementPoliciesClient {
/**
* Gets the managementpolicy associated with the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param managementPolicyName The name of the Storage Account Management Policy. It should always be 'default'.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the managementpolicy associated with the specified storage account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ManagementPolicyInner get(String resourceGroupName, String accountName, ManagementPolicyName managementPolicyName);

/**
* Gets the managementpolicy associated with the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param managementPolicyName The name of the Storage Account Management Policy. It should always be 'default'.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the managementpolicy associated with the specified storage account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ManagementPolicyInner> getWithResponse(
String resourceGroupName, String accountName, ManagementPolicyName managementPolicyName, Context context);

/**
* Sets the managementpolicy to the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param managementPolicyName The name of the Storage Account Management Policy. It should always be 'default'.
* @param properties The ManagementPolicy set to a storage account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Get Storage Account ManagementPolicies operation response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ManagementPolicyInner createOrUpdate(
String resourceGroupName,
String accountName,
ManagementPolicyName managementPolicyName,
ManagementPolicyInner properties);

/**
* Sets the managementpolicy to the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param managementPolicyName The name of the Storage Account Management Policy. It should always be 'default'.
* @param properties The ManagementPolicy set to a storage account.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Get Storage Account ManagementPolicies operation response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ManagementPolicyInner> createOrUpdateWithResponse(
String resourceGroupName,
String accountName,
ManagementPolicyName managementPolicyName,
ManagementPolicyInner properties,
Context context);

/**
* Deletes the managementpolicy associated with the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param managementPolicyName The name of the Storage Account Management Policy. It should always be 'default'.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, ManagementPolicyName managementPolicyName);

/**
* Deletes the managementpolicy associated with the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param managementPolicyName The name of the Storage Account Management Policy. It should always be 'default'.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
String resourceGroupName, String accountName, ManagementPolicyName managementPolicyName, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.ObjectReplicationPolicyInner;

/**
* An instance of this class provides access to all the operations defined in ObjectReplicationPoliciesOperationsClient.
*/
public interface ObjectReplicationPoliciesOperationsClient {
/**
* List the object replication policies associated with the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list storage account object replication policies.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ObjectReplicationPolicyInner> list(String resourceGroupName, String accountName);

/**
* List the object replication policies associated with the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list storage account object replication policies.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ObjectReplicationPolicyInner> list(String resourceGroupName, String accountName, Context context);

/**
* Get the object replication policy of the storage account by policy ID.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the object replication policy of the storage account by policy ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ObjectReplicationPolicyInner get(String resourceGroupName, String accountName, String objectReplicationPolicyId);

/**
* Get the object replication policy of the storage account by policy ID.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the object replication policy of the storage account by policy ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ObjectReplicationPolicyInner> getWithResponse(
String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context);

/**
* Create or update the object replication policy of the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown.
* @param properties The object replication policy set to a storage account. A unique policy ID will be created if
* absent.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the replication policy between two storage accounts.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ObjectReplicationPolicyInner createOrUpdate(
String resourceGroupName,
String accountName,
String objectReplicationPolicyId,
ObjectReplicationPolicyInner properties);

/**
* Create or update the object replication policy of the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown.
* @param properties The object replication policy set to a storage account. A unique policy ID will be created if
* absent.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the replication policy between two storage accounts.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ObjectReplicationPolicyInner> createOrUpdateWithResponse(
String resourceGroupName,
String accountName,
String objectReplicationPolicyId,
ObjectReplicationPolicyInner properties,
Context context);

/**
* Deletes the object replication policy associated with the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String objectReplicationPolicyId);

/**
* Deletes the object replication policy associated with the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.OperationInner;

/** An instance of this class provides access to all the operations defined in OperationsClient. */
public interface OperationsClient {
/**
* Lists all of the available Storage Rest API operations.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list Storage operations.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OperationInner> list();

/**
* Lists all of the available Storage Rest API operations.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list Storage operations.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OperationInner> list(Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.PrivateEndpointConnectionInner;

/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
public interface PrivateEndpointConnectionsClient {
/**
* List all the private endpoint connections associated with the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of private endpoint connection associated with the specified storage account.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<PrivateEndpointConnectionInner> list(String resourceGroupName, String accountName);

/**
* List all the private endpoint connections associated with the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of private endpoint connection associated with the specified storage account.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<PrivateEndpointConnectionInner> list(String resourceGroupName, String accountName, Context context);

/**
* Gets the specified private endpoint connection associated with the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified private endpoint connection associated with the storage account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateEndpointConnectionInner get(
String resourceGroupName, String accountName, String privateEndpointConnectionName);

/**
* Gets the specified private endpoint connection associated with the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified private endpoint connection associated with the storage account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<PrivateEndpointConnectionInner> getWithResponse(
String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);

/**
* Update the state of specified private endpoint connection associated with the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param properties The private endpoint connection properties.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateEndpointConnectionInner put(
String resourceGroupName,
String accountName,
String privateEndpointConnectionName,
PrivateEndpointConnectionInner properties);

/**
* Update the state of specified private endpoint connection associated with the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param properties The private endpoint connection properties.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<PrivateEndpointConnectionInner> putWithResponse(
String resourceGroupName,
String accountName,
String privateEndpointConnectionName,
PrivateEndpointConnectionInner properties,
Context context);

/**
* Deletes the specified private endpoint connection associated with the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName);

/**
* Deletes the specified private endpoint connection associated with the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.PrivateLinkResourceListResultInner;

/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
public interface PrivateLinkResourcesClient {
/**
* Gets the private link resources that need to be created for a storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the private link resources that need to be created for a storage account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateLinkResourceListResultInner listByStorageAccount(String resourceGroupName, String accountName);

/**
* Gets the private link resources that need to be created for a storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the private link resources that need to be created for a storage account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<PrivateLinkResourceListResultInner> listByStorageAccountWithResponse(
String resourceGroupName, String accountName, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.ListQueueServicesInner;
import com.azure.resourcemanager.storage.generated.fluent.models.QueueServicePropertiesInner;

/** An instance of this class provides access to all the operations defined in QueueServicesClient. */
public interface QueueServicesClient {
/**
* List all queue services for the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ListQueueServicesInner list(String resourceGroupName, String accountName);

/**
* List all queue services for the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ListQueueServicesInner> listWithResponse(String resourceGroupName, String accountName, Context context);

/**
* Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param parameters The properties of a storage account’s Queue service, only properties for Storage Analytics and
* CORS (Cross-Origin Resource Sharing) rules can be specified.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Queue service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
QueueServicePropertiesInner setServiceProperties(
String resourceGroupName, String accountName, QueueServicePropertiesInner parameters);

/**
* Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param parameters The properties of a storage account’s Queue service, only properties for Storage Analytics and
* CORS (Cross-Origin Resource Sharing) rules can be specified.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Queue service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<QueueServicePropertiesInner> setServicePropertiesWithResponse(
String resourceGroupName, String accountName, QueueServicePropertiesInner parameters, Context context);

/**
* Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
QueueServicePropertiesInner getServiceProperties(String resourceGroupName, String accountName);

/**
* Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<QueueServicePropertiesInner> getServicePropertiesWithResponse(
String resourceGroupName, String accountName, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.ListQueueInner;
import com.azure.resourcemanager.storage.generated.fluent.models.StorageQueueInner;

/** An instance of this class provides access to all the operations defined in QueuesClient. */
public interface QueuesClient {
/**
* Creates a new queue with the specified queue name, under the specified account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The
* name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
* alphanumeric character and it cannot have two consecutive dash(-) characters.
* @param queue Queue properties and metadata to be created with.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
StorageQueueInner create(String resourceGroupName, String accountName, String queueName, StorageQueueInner queue);

/**
* Creates a new queue with the specified queue name, under the specified account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The
* name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
* alphanumeric character and it cannot have two consecutive dash(-) characters.
* @param queue Queue properties and metadata to be created with.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<StorageQueueInner> createWithResponse(
String resourceGroupName, String accountName, String queueName, StorageQueueInner queue, Context context);

/**
* Creates a new queue with the specified queue name, under the specified account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The
* name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
* alphanumeric character and it cannot have two consecutive dash(-) characters.
* @param queue Queue properties and metadata to be created with.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
StorageQueueInner update(String resourceGroupName, String accountName, String queueName, StorageQueueInner queue);

/**
* Creates a new queue with the specified queue name, under the specified account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The
* name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
* alphanumeric character and it cannot have two consecutive dash(-) characters.
* @param queue Queue properties and metadata to be created with.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<StorageQueueInner> updateWithResponse(
String resourceGroupName, String accountName, String queueName, StorageQueueInner queue, Context context);

/**
* Gets the queue with the specified queue name, under the specified account if it exists.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The
* name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
* alphanumeric character and it cannot have two consecutive dash(-) characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the queue with the specified queue name, under the specified account if it exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
StorageQueueInner get(String resourceGroupName, String accountName, String queueName);

/**
* Gets the queue with the specified queue name, under the specified account if it exists.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The
* name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
* alphanumeric character and it cannot have two consecutive dash(-) characters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the queue with the specified queue name, under the specified account if it exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<StorageQueueInner> getWithResponse(
String resourceGroupName, String accountName, String queueName, Context context);

/**
* Deletes the queue with the specified queue name, under the specified account if it exists.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The
* name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
* alphanumeric character and it cannot have two consecutive dash(-) characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String queueName);

/**
* Deletes the queue with the specified queue name, under the specified account if it exists.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The
* name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
* alphanumeric character and it cannot have two consecutive dash(-) characters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(String resourceGroupName, String accountName, String queueName, Context context);

/**
* Gets a list of all the queues under the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of all the queues under the specified storage account.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ListQueueInner> list(String resourceGroupName, String accountName);

/**
* Gets a list of all the queues under the specified storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param maxpagesize Optional, a maximum number of queues that should be included in a list queue response.
* @param filter Optional, When specified, only the queues with a name starting with the given filter will be
* listed.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of all the queues under the specified storage account.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ListQueueInner> list(
String resourceGroupName, String accountName, String maxpagesize, String filter, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.SkuInformationInner;

/** An instance of this class provides access to all the operations defined in SkusClient. */
public interface SkusClient {
/**
* Lists the available SKUs supported by Microsoft.Storage for given subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response from the List Storage SKUs operation.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SkuInformationInner> list();

/**
* Lists the available SKUs supported by Microsoft.Storage for given subscription.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response from the List Storage SKUs operation.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SkuInformationInner> list(Context context);
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.http.HttpPipeline;
import java.time.Duration;

/** The interface for StorageManagementClient class. */
public interface StorageManagementClient {
/**
* Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
String getSubscriptionId();

/**
* Gets server parameter.
*
* @return the endpoint value.
*/
String getEndpoint();

/**
* Gets Api Version.
*
* @return the apiVersion value.
*/
String getApiVersion();

/**
* Gets The HTTP pipeline to send requests through.
*
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();

/**
* Gets The default poll interval for long-running operation.
*
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();

/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
OperationsClient getOperations();

/**
* Gets the SkusClient object to access its operations.
*
* @return the SkusClient object.
*/
SkusClient getSkus();

/**
* Gets the StorageAccountsClient object to access its operations.
*
* @return the StorageAccountsClient object.
*/
StorageAccountsClient getStorageAccounts();

/**
* Gets the UsagesClient object to access its operations.
*
* @return the UsagesClient object.
*/
UsagesClient getUsages();

/**
* Gets the ManagementPoliciesClient object to access its operations.
*
* @return the ManagementPoliciesClient object.
*/
ManagementPoliciesClient getManagementPolicies();

/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
*
* @return the PrivateEndpointConnectionsClient object.
*/
PrivateEndpointConnectionsClient getPrivateEndpointConnections();

/**
* Gets the PrivateLinkResourcesClient object to access its operations.
*
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();

/**
* Gets the ObjectReplicationPoliciesOperationsClient object to access its operations.
*
* @return the ObjectReplicationPoliciesOperationsClient object.
*/
ObjectReplicationPoliciesOperationsClient getObjectReplicationPoliciesOperations();

/**
* Gets the EncryptionScopesClient object to access its operations.
*
* @return the EncryptionScopesClient object.
*/
EncryptionScopesClient getEncryptionScopes();

/**
* Gets the BlobServicesClient object to access its operations.
*
* @return the BlobServicesClient object.
*/
BlobServicesClient getBlobServices();

/**
* Gets the BlobContainersClient object to access its operations.
*
* @return the BlobContainersClient object.
*/
BlobContainersClient getBlobContainers();

/**
* Gets the FileServicesClient object to access its operations.
*
* @return the FileServicesClient object.
*/
FileServicesClient getFileServices();

/**
* Gets the FileSharesClient object to access its operations.
*
* @return the FileSharesClient object.
*/
FileSharesClient getFileShares();

/**
* Gets the QueueServicesClient object to access its operations.
*
* @return the QueueServicesClient object.
*/
QueueServicesClient getQueueServices();

/**
* Gets the QueuesClient object to access its operations.
*
* @return the QueuesClient object.
*/
QueuesClient getQueues();

/**
* Gets the TableServicesClient object to access its operations.
*
* @return the TableServicesClient object.
*/
TableServicesClient getTableServices();

/**
* Gets the TablesClient object to access its operations.
*
* @return the TablesClient object.
*/
TablesClient getTables();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.generated.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.storage.generated.fluent.models.ListTableServicesInner;
import com.azure.resourcemanager.storage.generated.fluent.models.TableServicePropertiesInner;

/** An instance of this class provides access to all the operations defined in TableServicesClient. */
public interface TableServicesClient {
/**
* List all table services for the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ListTableServicesInner list(String resourceGroupName, String accountName);

/**
* List all table services for the storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ListTableServicesInner> listWithResponse(String resourceGroupName, String accountName, Context context);

/**
* Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param parameters The properties of a storage account’s Table service, only properties for Storage Analytics and
* CORS (Cross-Origin Resource Sharing) rules can be specified.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Table service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TableServicePropertiesInner setServiceProperties(
String resourceGroupName, String accountName, TableServicePropertiesInner parameters);

/**
* Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param parameters The properties of a storage account’s Table service, only properties for Storage Analytics and
* CORS (Cross-Origin Resource Sharing) rules can be specified.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Table service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<TableServicePropertiesInner> setServicePropertiesWithResponse(
String resourceGroupName, String accountName, TableServicePropertiesInner parameters, Context context);

/**
* Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Table service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TableServicePropertiesInner getServiceProperties(String resourceGroupName, String accountName);

/**
* Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
* must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a storage account’s Table service, including properties for Storage Analytics and CORS
* (Cross-Origin Resource Sharing) rules.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<TableServicePropertiesInner> getServicePropertiesWithResponse(
String resourceGroupName, String accountName, Context context);
}
Loading

0 comments on commit 643cae0

Please sign in to comment.