Skip to content

Commit

Permalink
[Automation] Generate Fluent Lite from storagecache#package-2023-05 (A…
Browse files Browse the repository at this point in the history
  • Loading branch information
azure-sdk authored Jun 20, 2023
1 parent 1e7f8ac commit f13725b
Show file tree
Hide file tree
Showing 152 changed files with 1,350 additions and 1,320 deletions.
32 changes: 28 additions & 4 deletions sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
# Release History

## 1.0.0-beta.9 (Unreleased)
## 1.0.0-beta.9 (2023-06-20)

### Features Added
- Azure Resource Manager StorageCache client library for Java. This package contains Microsoft Azure SDK for StorageCache Management SDK. Azure Managed Lustre provides a fully managed Lustre® file system, integrated with Blob storage, for use on demand. These operations create and manage Azure Managed Lustre file systems. Package tag package-2023-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes

### Bugs Fixed
#### `models.Cache` was modified

* `scalingFactor()` was removed

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

* `withScalingFactor(java.lang.Double)` was removed

#### `models.AmlFilesystem` was modified

* `mgsAddress()` was removed
* `lustreVersion()` was removed
* `mountCommand()` was removed

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

* `withScalingFactor(java.lang.Double)` was removed

### Features Added

* `models.AmlFilesystemContainerStorageInterface` was added

* `models.AmlFilesystemClientInfo` was added

#### `models.AmlFilesystem` was modified

### Other Changes
* `clientInfo()` was added

## 1.0.0-beta.8 (2023-03-13)

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-preview-2023-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for StorageCache Management SDK. Azure Managed Lustre provides a fully managed Lustre® file system, integrated with Blob storage, for use on demand. These operations create and manage Azure Managed Lustre file systems. Package tag package-2023-05. 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.8</version>
<version>1.0.0-beta.9</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
102 changes: 49 additions & 53 deletions sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for StorageCache Management</name>
<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-preview-2023-03.</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. Azure Managed Lustre provides a fully managed Lustre® file system, integrated with Blob storage, for use on demand. These operations create and manage Azure Managed Lustre file systems. Package tag package-2023-05.</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 @@ -53,11 +53,14 @@
import java.util.stream.Collectors;

/**
* Entry point to StorageCacheManager. 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.
* Entry point to StorageCacheManager. Azure Managed Lustre provides a fully managed Lustre® file system, integrated
* with Blob storage, for use on demand. These operations create and manage Azure Managed Lustre file systems.
*/
public final class StorageCacheManager {
private AmlFilesystems amlFilesystems;

private ResourceProviders resourceProviders;

private Operations operations;

private Skus skus;
Expand All @@ -74,10 +77,6 @@ public final class StorageCacheManager {

private StorageTargetOperations storageTargetOperations;

private AmlFilesystems amlFilesystems;

private ResourceProviders resourceProviders;

private final StorageCacheManagementClient clientObject;

private StorageCacheManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -243,7 +242,7 @@ public StorageCacheManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.storagecache")
.append("/")
.append("1.0.0-beta.8");
.append("1.0.0-beta.9");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -300,6 +299,30 @@ public StorageCacheManager authenticate(TokenCredential credential, AzureProfile
}
}

/**
* Gets the resource collection API of AmlFilesystems. It manages AmlFilesystem.
*
* @return Resource collection API of AmlFilesystems.
*/
public AmlFilesystems amlFilesystems() {
if (this.amlFilesystems == null) {
this.amlFilesystems = new AmlFilesystemsImpl(clientObject.getAmlFilesystems(), this);
}
return amlFilesystems;
}

/**
* Gets the resource collection API of ResourceProviders.
*
* @return Resource collection API of ResourceProviders.
*/
public ResourceProviders resourceProviders() {
if (this.resourceProviders == null) {
this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
}
return resourceProviders;
}

/**
* Gets the resource collection API of Operations.
*
Expand Down Expand Up @@ -397,30 +420,6 @@ public StorageTargetOperations storageTargetOperations() {
return storageTargetOperations;
}

/**
* Gets the resource collection API of AmlFilesystems. It manages AmlFilesystem.
*
* @return Resource collection API of AmlFilesystems.
*/
public AmlFilesystems amlFilesystems() {
if (this.amlFilesystems == null) {
this.amlFilesystems = new AmlFilesystemsImpl(clientObject.getAmlFilesystems(), this);
}
return amlFilesystems;
}

/**
* Gets the resource collection API of ResourceProviders.
*
* @return Resource collection API of ResourceProviders.
*/
public ResourceProviders resourceProviders() {
if (this.resourceProviders == null) {
this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
}
return resourceProviders;
}

/**
* @return Wrapped service client StorageCacheManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ public interface StorageCacheManagementClient {
*/
Duration getDefaultPollInterval();

/**
* Gets the AmlFilesystemsClient object to access its operations.
*
* @return the AmlFilesystemsClient object.
*/
AmlFilesystemsClient getAmlFilesystems();

/**
* Gets the ResourceProvidersClient object to access its operations.
*
* @return the ResourceProvidersClient object.
*/
ResourceProvidersClient getResourceProviders();

/**
* Gets the OperationsClient object to access its operations.
*
Expand Down Expand Up @@ -99,18 +113,4 @@ public interface StorageCacheManagementClient {
* @return the StorageTargetOperationsClient object.
*/
StorageTargetOperationsClient getStorageTargetOperations();

/**
* Gets the AmlFilesystemsClient object to access its operations.
*
* @return the AmlFilesystemsClient object.
*/
AmlFilesystemsClient getAmlFilesystems();

/**
* Gets the ResourceProvidersClient object to access its operations.
*
* @return the ResourceProvidersClient object.
*/
ResourceProvidersClient getResourceProviders();
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.storagecache.models.AmlFilesystemClientInfo;
import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings;
import com.azure.resourcemanager.storagecache.models.AmlFilesystemHealth;
import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentity;
Expand Down Expand Up @@ -219,31 +220,12 @@ public AmlFilesystemInner withFilesystemSubnet(String filesystemSubnet) {
}

/**
* Get the mgsAddress property: The IPv4 address used by clients to mount the AML file system's Lustre Management
* Service (MGS).
* Get the clientInfo property: Client information for the AML file system.
*
* @return the mgsAddress value.
* @return the clientInfo value.
*/
public String mgsAddress() {
return this.innerProperties() == null ? null : this.innerProperties().mgsAddress();
}

/**
* Get the mountCommand property: Recommended command to mount the AML file system.
*
* @return the mountCommand value.
*/
public String mountCommand() {
return this.innerProperties() == null ? null : this.innerProperties().mountCommand();
}

/**
* Get the lustreVersion property: The version of Lustre running in the AML file system.
*
* @return the lustreVersion value.
*/
public String lustreVersion() {
return this.innerProperties() == null ? null : this.innerProperties().lustreVersion();
public AmlFilesystemClientInfo clientInfo() {
return this.innerProperties() == null ? null : this.innerProperties().clientInfo();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.storagecache.models.AmlFilesystemClientInfo;
import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings;
import com.azure.resourcemanager.storagecache.models.AmlFilesystemHealth;
import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesHsm;
Expand Down Expand Up @@ -42,22 +43,10 @@ public final class AmlFilesystemProperties {
private String filesystemSubnet;

/*
* The IPv4 address used by clients to mount the AML file system's Lustre Management Service (MGS).
* Client information for the AML file system.
*/
@JsonProperty(value = "mgsAddress", access = JsonProperty.Access.WRITE_ONLY)
private String mgsAddress;

/*
* Recommended command to mount the AML file system
*/
@JsonProperty(value = "mountCommand", access = JsonProperty.Access.WRITE_ONLY)
private String mountCommand;

/*
* The version of Lustre running in the AML file system
*/
@JsonProperty(value = "lustreVersion", access = JsonProperty.Access.WRITE_ONLY)
private String lustreVersion;
@JsonProperty(value = "clientInfo", access = JsonProperty.Access.WRITE_ONLY)
private AmlFilesystemClientInfo clientInfo;

/*
* Throughput provisioned in MB per sec, calculated as storageCapacityTiB * per-unit storage throughput
Expand Down Expand Up @@ -148,31 +137,12 @@ public AmlFilesystemProperties withFilesystemSubnet(String filesystemSubnet) {
}

/**
* Get the mgsAddress property: The IPv4 address used by clients to mount the AML file system's Lustre Management
* Service (MGS).
* Get the clientInfo property: Client information for the AML file system.
*
* @return the mgsAddress value.
* @return the clientInfo value.
*/
public String mgsAddress() {
return this.mgsAddress;
}

/**
* Get the mountCommand property: Recommended command to mount the AML file system.
*
* @return the mountCommand value.
*/
public String mountCommand() {
return this.mountCommand;
}

/**
* Get the lustreVersion property: The version of Lustre running in the AML file system.
*
* @return the lustreVersion value.
*/
public String lustreVersion() {
return this.lustreVersion;
public AmlFilesystemClientInfo clientInfo() {
return this.clientInfo;
}

/**
Expand Down Expand Up @@ -260,6 +230,9 @@ public void validate() {
new IllegalArgumentException(
"Missing required property filesystemSubnet in model AmlFilesystemProperties"));
}
if (clientInfo() != null) {
clientInfo().validate();
}
if (encryptionSettings() != null) {
encryptionSettings().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ public CacheInner withTags(Map<String, String> tags) {
}

/**
* Get the cacheSizeGB property: The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the
* cache SKU - &lt;a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP"&gt;List
* SKUs&lt;/a&gt;.
* Get the cacheSizeGB property: The size of this Cache, in GB.
*
* @return the cacheSizeGB value.
*/
Expand All @@ -141,9 +139,7 @@ public Integer cacheSizeGB() {
}

/**
* Set the cacheSizeGB property: The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the
* cache SKU - &lt;a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP"&gt;List
* SKUs&lt;/a&gt;.
* Set the cacheSizeGB property: The size of this Cache, in GB.
*
* @param cacheSizeGB the cacheSizeGB value to set.
* @return the CacheInner object itself.
Expand All @@ -156,37 +152,6 @@ public CacheInner withCacheSizeGB(Integer cacheSizeGB) {
return this;
}

/**
* Get the scalingFactor property: Multiplier that sets the current storage and throughput capacity of the cache.
* Values depend on the cache SKU - &lt;a
* href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP"&gt;List SKUs&lt;/a&gt;. Values
* above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33%
* larger than its base size.
*
* @return the scalingFactor value.
*/
public Double scalingFactor() {
return this.innerProperties() == null ? null : this.innerProperties().scalingFactor();
}

/**
* Set the scalingFactor property: Multiplier that sets the current storage and throughput capacity of the cache.
* Values depend on the cache SKU - &lt;a
* href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP"&gt;List SKUs&lt;/a&gt;. Values
* above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33%
* larger than its base size.
*
* @param scalingFactor the scalingFactor value to set.
* @return the CacheInner object itself.
*/
public CacheInner withScalingFactor(Double scalingFactor) {
if (this.innerProperties() == null) {
this.innerProperties = new CacheProperties();
}
this.innerProperties().withScalingFactor(scalingFactor);
return this;
}

/**
* Get the health property: Health of the cache.
*
Expand Down
Loading

0 comments on commit f13725b

Please sign in to comment.