Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Automation] Generate Fluent Lite from storagecache# #19688

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 63 additions & 1 deletion sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,69 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.2 (2021-03-08)

- Azure Resource Manager StorageCache client library for Java. This package contains Microsoft Azure SDK for StorageCache Management SDK. A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. Package tag package-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Change

* `models.ClfsTargetProperties` was removed

* `models.Nfs3TargetProperties` was removed

* `models.StorageTargetProperties` was removed

* `models.UnknownTargetProperties` was removed

#### `models.UnknownTarget` was modified

* `withUnknownMap(java.util.Map)` was removed
* `unknownMap()` was removed

### New Feature

* `models.Condition` was added

* `models.BlobNfsTarget` was added

#### `models.StorageTarget` was modified

* `blobNfs()` was added
* `targetType()` was added
* `dnsRefresh(com.azure.core.util.Context)` was added
* `dnsRefresh()` was added

#### `models.CacheHealth` was modified

* `conditions()` was added

#### `models.StorageTarget$Update` was modified

* `withTargetType(models.StorageTargetType)` was added
* `withBlobNfs(models.BlobNfsTarget)` was added

#### `models.CacheNetworkSettings` was modified

* `dnsSearchDomain()` was added
* `withDnsSearchDomain(java.lang.String)` was added
* `dnsServers()` was added
* `ntpServer()` was added
* `withDnsServers(java.util.List)` was added
* `withNtpServer(java.lang.String)` was added

#### `models.UnknownTarget` was modified

* `withAttributes(java.util.Map)` was added
* `attributes()` was added

#### `models.StorageTargets` was modified

* `dnsRefresh(java.lang.String,java.lang.String,java.lang.String)` was added
* `dnsRefresh(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added

#### `models.StorageTarget$Definition` was modified

* `withTargetType(models.StorageTargetType)` was added
* `withBlobNfs(models.BlobNfsTarget)` was added

## 1.0.0-beta.1 (2021-02-22)

Expand Down
4 changes: 2 additions & 2 deletions sdk/storagecache/azure-resourcemanager-storagecache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager StorageCache client library for Java.

This package contains Microsoft Azure SDK for StorageCache Management SDK. A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. Package tag package-2020-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for StorageCache Management SDK. A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. Package tag package-2021-03. 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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-storagecache</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for StorageCache Management</name>
<description>This package contains Microsoft Azure SDK for StorageCache Management SDK. A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. Package tag package-2020-10-01. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
<description>This package contains Microsoft Azure SDK for StorageCache Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. Package tag package-2021-03.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public StorageCacheManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.storagecache")
.append("/")
.append("1.0.0-beta.1");
.append("1.0.0-beta.2");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,68 @@

/** An instance of this class provides access to all the operations defined in StorageTargetsClient. */
public interface StorageTargetsClient {
/**
* Tells a storage target to refresh its DNS information.
*
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginDnsRefresh(
String resourceGroupName, String cacheName, String storageTargetName);

/**
* Tells a storage target to refresh its DNS information.
*
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginDnsRefresh(
String resourceGroupName, String cacheName, String storageTargetName, Context context);

/**
* Tells a storage target to refresh its DNS information.
*
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @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 dnsRefresh(String resourceGroupName, String cacheName, String storageTargetName);

/**
* Tells a storage target to refresh its DNS information.
*
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void dnsRefresh(String resourceGroupName, String cacheName, String storageTargetName, Context context);

/**
* Returns a list of Storage Targets for the specified Cache.
*
Expand Down Expand Up @@ -124,8 +186,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of the Storage Target. Length of name must not be greater than 80 and chars must be
* from the [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @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.
Expand All @@ -140,8 +201,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of the Storage Target. Length of name must not be greater than 80 and chars must be
* from the [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @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.
Expand All @@ -159,8 +219,7 @@ Response<StorageTargetInner> getWithResponse(
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of the Storage Target. Length of name must not be greater than 80 and chars must be
* from the [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @param storagetarget Object containing the definition of a Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -178,8 +237,7 @@ SyncPoller<PollResult<StorageTargetInner>, StorageTargetInner> beginCreateOrUpda
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of the Storage Target. Length of name must not be greater than 80 and chars must be
* from the [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @param storagetarget Object containing the definition of a Storage Target.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -202,8 +260,7 @@ SyncPoller<PollResult<StorageTargetInner>, StorageTargetInner> beginCreateOrUpda
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of the Storage Target. Length of name must not be greater than 80 and chars must be
* from the [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @param storagetarget Object containing the definition of a Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -221,8 +278,7 @@ StorageTargetInner createOrUpdate(
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of the Storage Target. Length of name must not be greater than 80 and chars must be
* from the [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @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.
Expand All @@ -238,8 +294,7 @@ StorageTargetInner createOrUpdate(
* @param resourceGroupName Target resource group.
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the
* [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of the Storage Target. Length of name must not be greater than 80 and chars must be
* from the [-0-9a-zA-Z_] char class.
* @param storageTargetName Name of Storage Target.
* @param storagetarget Object containing the definition of a Storage Target.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class AscOperationInner {
private ErrorResponse error;

/*
* Additional Operation Specific Properties
* Additional operation-specific output.
*/
@JsonProperty(value = "properties.output")
private Map<String, Object> output;
Expand Down Expand Up @@ -181,7 +181,7 @@ public AscOperationInner withError(ErrorResponse error) {
}

/**
* Get the output property: Additional Operation Specific Properties.
* Get the output property: Additional operation-specific output.
*
* @return the output value.
*/
Expand All @@ -190,7 +190,7 @@ public Map<String, Object> output() {
}

/**
* Set the output property: Additional Operation Specific Properties.
* Set the output property: Additional operation-specific output.
*
* @param output the output value to set.
* @return the AscOperationInner object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.storagecache.models.BlobNfsTarget;
import com.azure.resourcemanager.storagecache.models.ClfsTarget;
import com.azure.resourcemanager.storagecache.models.NamespaceJunction;
import com.azure.resourcemanager.storagecache.models.Nfs3Target;
import com.azure.resourcemanager.storagecache.models.ProvisioningStateType;
import com.azure.resourcemanager.storagecache.models.StorageTargetResource;
import com.azure.resourcemanager.storagecache.models.StorageTargetType;
import com.azure.resourcemanager.storagecache.models.UnknownTarget;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand All @@ -29,6 +31,12 @@ public class StorageTargetInner extends StorageTargetResource {
@JsonProperty(value = "properties.junctions")
private List<NamespaceJunction> junctions;

/*
* Type of the Storage Target.
*/
@JsonProperty(value = "properties.targetType")
private StorageTargetType targetType;

/*
* ARM provisioning state, see
* https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property
Expand All @@ -54,6 +62,12 @@ public class StorageTargetInner extends StorageTargetResource {
@JsonProperty(value = "properties.unknown")
private UnknownTarget unknown;

/*
* Properties when targetType is blobNfs.
*/
@JsonProperty(value = "properties.blobNfs")
private BlobNfsTarget blobNfs;

/**
* Get the junctions property: List of Cache namespace junctions to target for namespace associations.
*
Expand All @@ -74,6 +88,26 @@ public StorageTargetInner withJunctions(List<NamespaceJunction> junctions) {
return this;
}

/**
* Get the targetType property: Type of the Storage Target.
*
* @return the targetType value.
*/
public StorageTargetType targetType() {
return this.targetType;
}

/**
* Set the targetType property: Type of the Storage Target.
*
* @param targetType the targetType value to set.
* @return the StorageTargetInner object itself.
*/
public StorageTargetInner withTargetType(StorageTargetType targetType) {
this.targetType = targetType;
return this;
}

/**
* Get the provisioningState property: ARM provisioning state, see
* https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
Expand Down Expand Up @@ -156,6 +190,26 @@ public StorageTargetInner withUnknown(UnknownTarget unknown) {
return this;
}

/**
* Get the blobNfs property: Properties when targetType is blobNfs.
*
* @return the blobNfs value.
*/
public BlobNfsTarget blobNfs() {
return this.blobNfs;
}

/**
* Set the blobNfs property: Properties when targetType is blobNfs.
*
* @param blobNfs the blobNfs value to set.
* @return the StorageTargetInner object itself.
*/
public StorageTargetInner withBlobNfs(BlobNfsTarget blobNfs) {
this.blobNfs = blobNfs;
return this;
}

/**
* Validates the instance.
*
Expand All @@ -176,5 +230,8 @@ public void validate() {
if (unknown() != null) {
unknown().validate();
}
if (blobNfs() != null) {
blobNfs().validate();
}
}
}
Loading