[Automation] Collect examples from azure-sdk-for-java#azure-resourcemanager-azurestack_1.0.0-beta.3
This commit is contained in:
Родитель
8b44b092af
Коммит
582f113c96
|
@ -1,11 +1,16 @@
|
|||
/** Samples for CloudManifestFile Get. */
|
||||
|
||||
/**
|
||||
* Samples for CloudManifestFile Get.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CloudManifestFile/Get.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CloudManifestFile/Get.
|
||||
* json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns the properties of a cloud specific manifest file.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsThePropertiesOfACloudSpecificManifestFile(
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,11 +1,16 @@
|
|||
/** Samples for CloudManifestFile List. */
|
||||
|
||||
/**
|
||||
* Samples for CloudManifestFile List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CloudManifestFile/List.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CloudManifestFile/List.
|
||||
* json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns the properties of a cloud specific manifest file with latest version.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsThePropertiesOfACloudSpecificManifestFileWithLatestVersion(
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,21 +1,21 @@
|
|||
/** Samples for CustomerSubscriptions Delete. */
|
||||
|
||||
/**
|
||||
* Samples for CustomerSubscriptions Delete.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CustomerSubscription/Delete.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CustomerSubscription/
|
||||
* Delete.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Deletes a customer subscription under a registration.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void deletesACustomerSubscriptionUnderARegistration(
|
||||
com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.customerSubscriptions()
|
||||
.deleteWithResponse(
|
||||
"azurestack",
|
||||
"testregistration",
|
||||
"E09A4E93-29A7-4EBA-A6D4-76202383F07F",
|
||||
com.azure.core.util.Context.NONE);
|
||||
public static void
|
||||
deletesACustomerSubscriptionUnderARegistration(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager.customerSubscriptions().deleteWithResponse("azurestack", "testregistration",
|
||||
"E09A4E93-29A7-4EBA-A6D4-76202383F07F", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,20 +1,20 @@
|
|||
/** Samples for CustomerSubscriptions Get. */
|
||||
|
||||
/**
|
||||
* Samples for CustomerSubscriptions Get.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CustomerSubscription/Get.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CustomerSubscription/
|
||||
* Get.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns the specified product.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsTheSpecifiedProduct(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.customerSubscriptions()
|
||||
.getWithResponse(
|
||||
"azurestack",
|
||||
"testregistration",
|
||||
"E09A4E93-29A7-4EBA-A6D4-76202383F07F",
|
||||
com.azure.core.util.Context.NONE);
|
||||
manager.customerSubscriptions().getWithResponse("azurestack", "testregistration",
|
||||
"E09A4E93-29A7-4EBA-A6D4-76202383F07F", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,11 +1,16 @@
|
|||
/** Samples for CustomerSubscriptions List. */
|
||||
|
||||
/**
|
||||
* Samples for CustomerSubscriptions List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CustomerSubscription/List.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CustomerSubscription/
|
||||
* List.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns a list of products.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsAListOfProducts(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,20 +1,22 @@
|
|||
/** Samples for CustomerSubscriptions Create. */
|
||||
|
||||
/**
|
||||
* Samples for CustomerSubscriptions Create.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CustomerSubscription/Put.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/CustomerSubscription/
|
||||
* Put.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Creates a new customer subscription under a registration.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void createsANewCustomerSubscriptionUnderARegistration(
|
||||
com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.customerSubscriptions()
|
||||
.define("E09A4E93-29A7-4EBA-A6D4-76202383F07F")
|
||||
manager.customerSubscriptions().define("E09A4E93-29A7-4EBA-A6D4-76202383F07F")
|
||||
.withExistingRegistration("azurestack", "testregistration")
|
||||
.withTenantId("dbab3982-796f-4d03-9908-044c08aef8a2")
|
||||
.create();
|
||||
.withTenantId("dbab3982-796f-4d03-9908-044c08aef8a2").create();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,20 +1,23 @@
|
|||
|
||||
import com.azure.resourcemanager.azurestack.models.DeploymentLicenseRequest;
|
||||
|
||||
/** Samples for DeploymentLicense Create. */
|
||||
/**
|
||||
* Samples for DeploymentLicense Create.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/DeploymentLicense/Post.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/DeploymentLicense/Post.
|
||||
* json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Creates a license that can be used to deploy an Azure Stack device.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void createsALicenseThatCanBeUsedToDeployAnAzureStackDevice(
|
||||
com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.deploymentLicenses()
|
||||
.createWithResponse(
|
||||
new DeploymentLicenseRequest().withVerificationVersion("1"), com.azure.core.util.Context.NONE);
|
||||
manager.deploymentLicenses().createWithResponse(new DeploymentLicenseRequest().withVerificationVersion("1"),
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,15 +1,19 @@
|
|||
/** Samples for Operations List. */
|
||||
|
||||
/**
|
||||
* Samples for Operations List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Operation/List.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Operation/List.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns the list of supported REST operations.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsTheListOfSupportedRESTOperations(
|
||||
com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
public static void
|
||||
returnsTheListOfSupportedRESTOperations(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager.operations().list(com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,20 +1,19 @@
|
|||
/** Samples for Products Get. */
|
||||
|
||||
/**
|
||||
* Samples for Products Get.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/Get.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/Get.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns the specified product.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsTheSpecifiedProduct(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.products()
|
||||
.getWithResponse(
|
||||
"azurestack",
|
||||
"testregistration",
|
||||
"Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1",
|
||||
com.azure.core.util.Context.NONE);
|
||||
manager.products().getWithResponse("azurestack", "testregistration",
|
||||
"Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,21 +1,19 @@
|
|||
/** Samples for Products GetProduct. */
|
||||
|
||||
/**
|
||||
* Samples for Products GetProduct.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/GetPost.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/GetPost.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns the specified product.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsTheSpecifiedProduct(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.products()
|
||||
.getProductWithResponse(
|
||||
"azurestack",
|
||||
"testregistration",
|
||||
"Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1",
|
||||
null,
|
||||
com.azure.core.util.Context.NONE);
|
||||
manager.products().getProductWithResponse("azurestack", "testregistration",
|
||||
"Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", null, com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,11 +1,15 @@
|
|||
/** Samples for Products List. */
|
||||
|
||||
/**
|
||||
* Samples for Products List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/List.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/List.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns a list of products.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsAListOfProducts(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,16 +1,19 @@
|
|||
/** Samples for Products GetProducts. */
|
||||
|
||||
/**
|
||||
* Samples for Products ListProducts.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/ListPost.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/ListPost.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns a list of products.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsAListOfProducts(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.products()
|
||||
.getProductsWithResponse("azurestack", "testregistration", "_all", null, com.azure.core.util.Context.NONE);
|
||||
manager.products().listProductsWithResponse("azurestack", "testregistration", "_all", null,
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,21 +1,20 @@
|
|||
/** Samples for Products ListDetails. */
|
||||
|
||||
/**
|
||||
* Samples for Products ListDetails.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/Post.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/Post.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns the extended properties of a product.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsTheExtendedPropertiesOfAProduct(
|
||||
com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.products()
|
||||
.listDetailsWithResponse(
|
||||
"azurestack",
|
||||
"testregistration",
|
||||
"Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1",
|
||||
com.azure.core.util.Context.NONE);
|
||||
public static void
|
||||
returnsTheExtendedPropertiesOfAProduct(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager.products().listDetailsWithResponse("azurestack", "testregistration",
|
||||
"Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,21 +1,19 @@
|
|||
/** Samples for Products UploadLog. */
|
||||
|
||||
/**
|
||||
* Samples for Products UploadLog.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/UploadLog.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Product/UploadLog.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns the specified product.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsTheSpecifiedProduct(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.products()
|
||||
.uploadLogWithResponse(
|
||||
"azurestack",
|
||||
"testregistration",
|
||||
"Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1",
|
||||
null,
|
||||
com.azure.core.util.Context.NONE);
|
||||
manager.products().uploadLogWithResponse("azurestack", "testregistration",
|
||||
"Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", null, com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,17 +1,21 @@
|
|||
/** Samples for Registrations Delete. */
|
||||
|
||||
/**
|
||||
* Samples for Registrations Delete.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/Delete.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/Delete.
|
||||
* json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Delete the requested Azure Stack registration.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void deleteTheRequestedAzureStackRegistration(
|
||||
com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.registrations()
|
||||
.deleteByResourceGroupWithResponse("azurestack", "testregistration", com.azure.core.util.Context.NONE);
|
||||
public static void
|
||||
deleteTheRequestedAzureStackRegistration(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager.registrations().deleteByResourceGroupWithResponse("azurestack", "testregistration",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,17 +1,20 @@
|
|||
/** Samples for Registrations GetByResourceGroup. */
|
||||
|
||||
/**
|
||||
* Samples for Registrations GetByResourceGroup.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/Get.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/Get.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns the properties of an Azure Stack registration.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsThePropertiesOfAnAzureStackRegistration(
|
||||
com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.registrations()
|
||||
.getByResourceGroupWithResponse("azurestack", "testregistration", com.azure.core.util.Context.NONE);
|
||||
public static void
|
||||
returnsThePropertiesOfAnAzureStackRegistration(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager.registrations().getByResourceGroupWithResponse("azurestack", "testregistration",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,11 +1,15 @@
|
|||
/** Samples for Registrations ListByResourceGroup. */
|
||||
|
||||
/**
|
||||
* Samples for Registrations ListByResourceGroup.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/List.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/List.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns a list of all registrations.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsAListOfAllRegistrations(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,11 +1,16 @@
|
|||
/** Samples for Registrations List. */
|
||||
|
||||
/**
|
||||
* Samples for Registrations List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/ListBySubscription.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/
|
||||
* ListBySubscription.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns a list of all registrations under current subscription.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsAListOfAllRegistrationsUnderCurrentSubscription(
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,25 +1,25 @@
|
|||
|
||||
import com.azure.resourcemanager.azurestack.models.Registration;
|
||||
|
||||
/** Samples for Registrations Update. */
|
||||
/**
|
||||
* Samples for Registrations Update.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/Patch.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/Patch.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Patch an Azure Stack registration.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void patchAnAzureStackRegistration(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
Registration resource =
|
||||
manager
|
||||
.registrations()
|
||||
.getByResourceGroupWithResponse("azurestack", "testregistration", com.azure.core.util.Context.NONE)
|
||||
.getValue();
|
||||
resource
|
||||
.update()
|
||||
.withRegistrationToken(
|
||||
"EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9")
|
||||
Registration resource = manager.registrations()
|
||||
.getByResourceGroupWithResponse("azurestack", "testregistration", com.azure.core.util.Context.NONE)
|
||||
.getValue();
|
||||
resource.update().withRegistrationToken(
|
||||
"EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9")
|
||||
.apply();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,16 +1,19 @@
|
|||
/** Samples for Registrations GetActivationKey. */
|
||||
|
||||
/**
|
||||
* Samples for Registrations GetActivationKey.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/Post.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/Post.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns Azure Stack Activation Key.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsAzureStackActivationKey(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.registrations()
|
||||
.getActivationKeyWithResponse("azurestack", "testregistration", com.azure.core.util.Context.NONE);
|
||||
manager.registrations().getActivationKeyWithResponse("azurestack", "testregistration",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,21 +1,22 @@
|
|||
|
||||
import com.azure.resourcemanager.azurestack.models.Location;
|
||||
|
||||
/** Samples for Registrations CreateOrUpdate. */
|
||||
/**
|
||||
* Samples for Registrations CreateOrUpdate.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/Put.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/Registration/Put.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Create or update an Azure Stack registration.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void createOrUpdateAnAzureStackRegistration(
|
||||
com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.registrations()
|
||||
.define("testregistration")
|
||||
.withLocation(Location.GLOBAL)
|
||||
public static void
|
||||
createOrUpdateAnAzureStackRegistration(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager.registrations().define("testregistration").withLocation(Location.GLOBAL)
|
||||
.withExistingResourceGroup("azurestack")
|
||||
.withRegistrationToken(
|
||||
"EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9")
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
|
@ -1,17 +1,21 @@
|
|||
/** Samples for Registrations EnableRemoteManagement. */
|
||||
|
||||
/**
|
||||
* Samples for Registrations EnableRemoteManagement.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/RemoteManagement/Post.json
|
||||
* x-ms-original-file:
|
||||
* specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/RemoteManagement/Post.
|
||||
* json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Returns empty response for successful action..
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to AzureStackManager.
|
||||
*/
|
||||
public static void returnsEmptyResponseForSuccessfulAction(
|
||||
com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager
|
||||
.registrations()
|
||||
.enableRemoteManagementWithResponse("azurestack", "testregistration", com.azure.core.util.Context.NONE);
|
||||
public static void
|
||||
returnsEmptyResponseForSuccessfulAction(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
|
||||
manager.registrations().enableRemoteManagementWithResponse("azurestack", "testregistration",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.2/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-azurestack_1.0.0-beta.3/sdk/azurestack/azure-resourcemanager-azurestack/README.md"}
|
Загрузка…
Ссылка в новой задаче