Skip to content

Commit

Permalink
CodeGen from PR 18255 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 947333e51a47a11269064ddd0cb1eafa057a621f into 6354ca8bf06ea064f4f0fef331a10c1baf62ac35
  • Loading branch information
SDKAuto committed Mar 15, 2022
1 parent 2a2a77d commit 3a2693b
Show file tree
Hide file tree
Showing 119 changed files with 1,790 additions and 572 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2022-03-15)

- 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-2022-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

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-2021-09. 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-2022-01. 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.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
105 changes: 76 additions & 29 deletions sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

- [Get](#ascoperations_get)

## AscUsages

- [List](#ascusages_list)

## Caches

- [CreateOrUpdate](#caches_createorupdate)
Expand All @@ -30,6 +34,7 @@
## StorageTargetOperation

- [Flush](#storagetargetoperation_flush)
- [Invalidate](#storagetargetoperation_invalidate)
- [Resume](#storagetargetoperation_resume)
- [Suspend](#storagetargetoperation_suspend)

Expand All @@ -52,7 +57,7 @@ import com.azure.core.util.Context;
/** Samples for AscOperations Get. */
public final class AscOperationsGetSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/AscOperations_Get.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/AscOperations_Get.json
*/
/**
* Sample code: AscOperations_Get.
Expand All @@ -65,6 +70,27 @@ public final class AscOperationsGetSamples {
}
```

### AscUsages_List

```java
import com.azure.core.util.Context;

/** Samples for AscUsages List. */
public final class AscUsagesListSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/AscResourceUsages_Get.json
*/
/**
* Sample code: AscUsages_List.
*
* @param manager Entry point to StorageCacheManager.
*/
public static void ascUsagesList(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
manager.ascUsages().list("eastus", Context.NONE);
}
}
```

### Caches_CreateOrUpdate

```java
Expand Down Expand Up @@ -93,7 +119,7 @@ import java.util.Map;
/** Samples for Caches CreateOrUpdate. */
public final class CachesCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_CreateOrUpdate_ldap_only.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_CreateOrUpdate_ldap_only.json
*/
/**
* Sample code: Caches_CreateOrUpdate_ldap_only.
Expand Down Expand Up @@ -153,7 +179,7 @@ public final class CachesCreateOrUpdateSamples {
}

/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_CreateOrUpdate.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_CreateOrUpdate.json
*/
/**
* Sample code: Caches_CreateOrUpdate.
Expand Down Expand Up @@ -250,7 +276,7 @@ import com.azure.core.util.Context;
/** Samples for Caches DebugInfo. */
public final class CachesDebugInfoSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_DebugInfo.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_DebugInfo.json
*/
/**
* Sample code: Caches_DebugInfo.
Expand All @@ -271,7 +297,7 @@ import com.azure.core.util.Context;
/** Samples for Caches Delete. */
public final class CachesDeleteSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_Delete.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_Delete.json
*/
/**
* Sample code: Caches_Delete.
Expand All @@ -292,7 +318,7 @@ import com.azure.core.util.Context;
/** Samples for Caches Flush. */
public final class CachesFlushSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_Flush.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_Flush.json
*/
/**
* Sample code: Caches_Flush.
Expand All @@ -313,7 +339,7 @@ import com.azure.core.util.Context;
/** Samples for Caches GetByResourceGroup. */
public final class CachesGetByResourceGroupSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_Get.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_Get.json
*/
/**
* Sample code: Caches_Get.
Expand All @@ -334,7 +360,7 @@ import com.azure.core.util.Context;
/** Samples for Caches List. */
public final class CachesListSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_List.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_List.json
*/
/**
* Sample code: Caches_List.
Expand All @@ -355,7 +381,7 @@ import com.azure.core.util.Context;
/** Samples for Caches ListByResourceGroup. */
public final class CachesListByResourceGroupSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_ListByResourceGroup.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_ListByResourceGroup.json
*/
/**
* Sample code: Caches_ListByResourceGroup.
Expand All @@ -376,7 +402,7 @@ import com.azure.core.util.Context;
/** Samples for Caches Start. */
public final class CachesStartSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_Start.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_Start.json
*/
/**
* Sample code: Caches_Start.
Expand All @@ -397,7 +423,7 @@ import com.azure.core.util.Context;
/** Samples for Caches Stop. */
public final class CachesStopSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_Stop.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_Stop.json
*/
/**
* Sample code: Caches_Stop.
Expand Down Expand Up @@ -433,7 +459,7 @@ import java.util.Map;
/** Samples for Caches Update. */
public final class CachesUpdateSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_Update_ldap_only.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_Update_ldap_only.json
*/
/**
* Sample code: Caches_Update_ldap_only.
Expand Down Expand Up @@ -510,7 +536,7 @@ public final class CachesUpdateSamples {
}

/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_Update.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_Update.json
*/
/**
* Sample code: Caches_Update.
Expand Down Expand Up @@ -608,7 +634,7 @@ import com.azure.core.util.Context;
/** Samples for Caches UpgradeFirmware. */
public final class CachesUpgradeFirmwareSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Caches_UpgradeFirmware.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Caches_UpgradeFirmware.json
*/
/**
* Sample code: Caches_UpgradeFirmware.
Expand All @@ -629,14 +655,14 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Operations_List.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Operations_List.json
*/
/**
* Sample code: StorageTargets_List.
* Sample code: Operations_List.
*
* @param manager Entry point to StorageCacheManager.
*/
public static void storageTargetsList(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
public static void operationsList(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
manager.operations().list(Context.NONE);
}
}
Expand All @@ -650,7 +676,7 @@ import com.azure.core.util.Context;
/** Samples for Skus List. */
public final class SkusListSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/Skus_List.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/Skus_List.json
*/
/**
* Sample code: Skus_List.
Expand All @@ -671,7 +697,7 @@ import com.azure.core.util.Context;
/** Samples for StorageTargetOperation Flush. */
public final class StorageTargetOperationFlushSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/StorageTargets_Flush.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_Flush.json
*/
/**
* Sample code: StorageTargets_Flush.
Expand All @@ -684,6 +710,27 @@ public final class StorageTargetOperationFlushSamples {
}
```

### StorageTargetOperation_Invalidate

```java
import com.azure.core.util.Context;

/** Samples for StorageTargetOperation Invalidate. */
public final class StorageTargetOperationInvalidateSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_Invalidate.json
*/
/**
* Sample code: StorageTargets_Invalidate.
*
* @param manager Entry point to StorageCacheManager.
*/
public static void storageTargetsInvalidate(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
manager.storageTargetOperations().invalidate("scgroup", "sc", "st1", Context.NONE);
}
}
```

### StorageTargetOperation_Resume

```java
Expand All @@ -692,7 +739,7 @@ import com.azure.core.util.Context;
/** Samples for StorageTargetOperation Resume. */
public final class StorageTargetOperationResumeSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/StorageTargets_Resume.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_Resume.json
*/
/**
* Sample code: StorageTargets_Resume.
Expand All @@ -713,7 +760,7 @@ import com.azure.core.util.Context;
/** Samples for StorageTargetOperation Suspend. */
public final class StorageTargetOperationSuspendSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/StorageTargets_Suspend.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_Suspend.json
*/
/**
* Sample code: StorageTargets_Suspend.
Expand All @@ -738,7 +785,7 @@ import java.util.Arrays;
/** Samples for StorageTargets CreateOrUpdate. */
public final class StorageTargetsCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/StorageTargets_CreateOrUpdate.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_CreateOrUpdate.json
*/
/**
* Sample code: StorageTargets_CreateOrUpdate.
Expand Down Expand Up @@ -770,7 +817,7 @@ public final class StorageTargetsCreateOrUpdateSamples {
}

/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/StorageTargets_CreateOrUpdate_BlobNfs.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_CreateOrUpdate_BlobNfs.json
*/
/**
* Sample code: StorageTargets_CreateOrUpdate_BlobNfs.
Expand All @@ -794,7 +841,7 @@ public final class StorageTargetsCreateOrUpdateSamples {
}

/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/StorageTargets_CreateOrUpdate_NoJunctions.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_CreateOrUpdate_NoJunctions.json
*/
/**
* Sample code: StorageTargets_CreateOrUpdate_NoJunctions.
Expand Down Expand Up @@ -822,7 +869,7 @@ import com.azure.core.util.Context;
/** Samples for StorageTargets Delete. */
public final class StorageTargetsDeleteSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/StorageTargets_Delete.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_Delete.json
*/
/**
* Sample code: StorageTargets_Delete.
Expand All @@ -843,7 +890,7 @@ import com.azure.core.util.Context;
/** Samples for StorageTargets DnsRefresh. */
public final class StorageTargetsDnsRefreshSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/StorageTargets_DnsRefresh.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_DnsRefresh.json
*/
/**
* Sample code: Caches_DnsRefresh.
Expand All @@ -864,7 +911,7 @@ import com.azure.core.util.Context;
/** Samples for StorageTargets Get. */
public final class StorageTargetsGetSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/StorageTargets_Get.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_Get.json
*/
/**
* Sample code: StorageTargets_Get.
Expand All @@ -885,7 +932,7 @@ import com.azure.core.util.Context;
/** Samples for StorageTargets ListByCache. */
public final class StorageTargetsListByCacheSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/StorageTargets_ListByCache.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/StorageTargets_ListByCache.json
*/
/**
* Sample code: StorageTargets_List.
Expand All @@ -906,7 +953,7 @@ import com.azure.core.util.Context;
/** Samples for UsageModels List. */
public final class UsageModelsListSamples {
/*
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2021-09-01/examples/UsageModels_List.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-01-01/examples/UsageModels_List.json
*/
/**
* Sample code: UsageModels_List.
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. 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-09.</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-2022-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Loading

0 comments on commit 3a2693b

Please sign in to comment.