[Automation] Collect examples from azure-sdk-for-java#azure-resourcemanager-operationsmanagement_1.0.0-beta.3

This commit is contained in:
Azure SDK Bot 2024-10-19 04:02:24 -07:00 коммит произвёл GitHub
Родитель a31cb7d21e
Коммит 0c8fb980e3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
30 изменённых файлов: 186 добавлений и 155 удалений

Просмотреть файл

@ -1,32 +1,28 @@
import com.azure.resourcemanager.operationsmanagement.fluent.models.ManagementAssociationInner;
import com.azure.resourcemanager.operationsmanagement.models.ManagementAssociationProperties;
/** Samples for ManagementAssociations CreateOrUpdate. */
/**
* Samples for ManagementAssociations CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/ManagementAssociationCreate.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/ManagementAssociationCreate.json
*/
/**
* Sample code: SolutionCreate.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionCreate(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager
.managementAssociations()
.createOrUpdateWithResponse(
"rg1",
"providerName",
"resourceType",
"resourceName",
"managementAssociation1",
new ManagementAssociationInner()
.withLocation("East US")
.withProperties(
new ManagementAssociationProperties()
.withApplicationId(
"/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Appliance/Appliances/appliance1")),
com.azure.core.util.Context.NONE);
public static void
solutionCreate(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager.managementAssociations().createOrUpdateWithResponse("rg1", "providerName", "resourceType",
"resourceName", "managementAssociation1",
new ManagementAssociationInner().withLocation("East US")
.withProperties(new ManagementAssociationProperties().withApplicationId(
"/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Appliance/Appliances/appliance1")),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,23 +1,21 @@
/** Samples for ManagementAssociations Delete. */
/**
* Samples for ManagementAssociations Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/ManagementAssociationDelete.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/ManagementAssociationDelete.json
*/
/**
* Sample code: SolutionDelete.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionDelete(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager
.managementAssociations()
.deleteWithResponse(
"rg1",
"providerName",
"resourceType",
"resourceName",
"managementAssociationName",
com.azure.core.util.Context.NONE);
public static void
solutionDelete(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager.managementAssociations().deleteWithResponse("rg1", "providerName", "resourceType", "resourceName",
"managementAssociationName", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,22 +1,20 @@
/** Samples for ManagementAssociations Get. */
/**
* Samples for ManagementAssociations Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/ManagementAssociationGet.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/ManagementAssociationGet.json
*/
/**
* Sample code: SolutionGet.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionGet(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager
.managementAssociations()
.getWithResponse(
"rg1",
"providerName",
"resourceType",
"resourceName",
"managementAssociation1",
com.azure.core.util.Context.NONE);
manager.managementAssociations().getWithResponse("rg1", "providerName", "resourceType", "resourceName",
"managementAssociation1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for ManagementAssociations ListBySubscription. */
/**
* Samples for ManagementAssociations ListBySubscription.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/ManagementAssociationListForSubscription.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/ManagementAssociationListForSubscription.json
*/
/**
* Sample code: SolutionList.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionList(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
public static void
solutionList(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager.managementAssociations().listBySubscriptionWithResponse(com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,20 +1,21 @@
/** Samples for ManagementConfigurations CreateOrUpdate. */
/**
* Samples for ManagementConfigurations CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/ManagementConfigurationCreate.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/ManagementConfigurationCreate.json
*/
/**
* Sample code: ManagementConfigurationCreate.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void managementConfigurationCreate(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager
.managementConfigurations()
.define("managementConfiguration1")
.withExistingResourceGroup("rg1")
.withRegion("East US")
.create();
manager.managementConfigurations().define("managementConfiguration1").withExistingResourceGroup("rg1")
.withRegion("East US").create();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,17 +1,21 @@
/** Samples for ManagementConfigurations Delete. */
/**
* Samples for ManagementConfigurations Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/ManagementConfigurationDelete.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/ManagementConfigurationDelete.json
*/
/**
* Sample code: ManagementConfigurationDelete.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void managementConfigurationDelete(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager
.managementConfigurations()
.deleteByResourceGroupWithResponse("rg1", "managementConfigurationName", com.azure.core.util.Context.NONE);
manager.managementConfigurations().deleteByResourceGroupWithResponse("rg1", "managementConfigurationName",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,16 +1,20 @@
/** Samples for ManagementConfigurations GetByResourceGroup. */
/**
* Samples for ManagementConfigurations GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/ManagementConfigurationGet.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/ManagementConfigurationGet.json
*/
/**
* Sample code: SolutionGet.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionGet(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager
.managementConfigurations()
.getByResourceGroupWithResponse("rg1", "managementConfigurationName", com.azure.core.util.Context.NONE);
manager.managementConfigurations().getByResourceGroupWithResponse("rg1", "managementConfigurationName",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for ManagementConfigurations ListBySubscription. */
/**
* Samples for ManagementConfigurations ListBySubscription.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/ManagementConfigurationListForSubscription.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/ManagementConfigurationListForSubscription.json
*/
/**
* Sample code: SolutionList.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionList(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
public static void
solutionList(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager.managementConfigurations().listBySubscriptionWithResponse(com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for Operations List. */
/**
* Samples for Operations List.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/OperationsList.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/OperationsList.json
*/
/**
* Sample code: OperationsList.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void operationsList(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
public static void
operationsList(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,44 +1,36 @@
import com.azure.resourcemanager.operationsmanagement.models.SolutionPlan;
import com.azure.resourcemanager.operationsmanagement.models.SolutionProperties;
import java.util.Arrays;
/** Samples for Solutions CreateOrUpdate. */
/**
* Samples for Solutions CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/SolutionCreate.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/SolutionCreate.json
*/
/**
* Sample code: SolutionCreate.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionCreate(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager
.solutions()
.define("solution1")
.withRegion("East US")
.withExistingResourceGroup("rg1")
.withPlan(
new SolutionPlan()
.withName("name1")
.withPublisher("publisher1")
.withPromotionCode("fakeTokenPlaceholder")
.withProduct("product1"))
.withProperties(
new SolutionProperties()
.withWorkspaceResourceId(
"/subscriptions/sub2/resourceGroups/rg2/providers/Microsoft.OperationalInsights/workspaces/ws1")
.withContainedResources(
Arrays
.asList(
"/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource1",
"/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource2"))
.withReferencedResources(
Arrays
.asList(
"/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource2",
"/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource3")))
public static void
solutionCreate(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager.solutions().define("solution1").withRegion("East US").withExistingResourceGroup("rg1")
.withPlan(new SolutionPlan().withName("name1").withPublisher("publisher1")
.withPromotionCode("fakeTokenPlaceholder").withProduct("product1"))
.withProperties(new SolutionProperties()
.withWorkspaceResourceId(
"/subscriptions/sub2/resourceGroups/rg2/providers/Microsoft.OperationalInsights/workspaces/ws1")
.withContainedResources(
Arrays.asList("/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource1",
"/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource2"))
.withReferencedResources(
Arrays.asList("/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource2",
"/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource3")))
.create();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for Solutions Delete. */
/**
* Samples for Solutions Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/SolutionDelete.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/SolutionDelete.json
*/
/**
* Sample code: SolutionDelete.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionDelete(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
public static void
solutionDelete(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager.solutions().delete("rg1", "solution1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for Solutions GetByResourceGroup. */
/**
* Samples for Solutions GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/SolutionGet.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/SolutionGet.json
*/
/**
* Sample code: SolutionGet.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionGet(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for Solutions ListByResourceGroup. */
/**
* Samples for Solutions ListByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/SolutionList.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/SolutionList.json
*/
/**
* Sample code: SolutionList.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionList(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
public static void
solutionList(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager.solutions().listByResourceGroupWithResponse("rg1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for Solutions ListBySubscription. */
/**
* Samples for Solutions ListBySubscription.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/SolutionListForSubscription.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/SolutionListForSubscription.json
*/
/**
* Sample code: SolutionList.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionList(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
public static void
solutionList(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
manager.solutions().listBySubscriptionWithResponse(com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}

Просмотреть файл

@ -1,27 +1,30 @@
import com.azure.resourcemanager.operationsmanagement.models.Solution;
import java.util.HashMap;
import java.util.Map;
/** Samples for Solutions Update. */
/**
* Samples for Solutions Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/SolutionUpdate.json
* x-ms-original-file:
* specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/
* examples/SolutionUpdate.json
*/
/**
* Sample code: SolutionUpdate.
*
*
* @param manager Entry point to OperationsManagementManager.
*/
public static void solutionUpdate(
com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
Solution resource =
manager
.solutions()
.getByResourceGroupWithResponse("rg1", "solution1", com.azure.core.util.Context.NONE)
.getValue();
public static void
solutionUpdate(com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager) {
Solution resource = manager.solutions()
.getByResourceGroupWithResponse("rg1", "solution1", com.azure.core.util.Context.NONE).getValue();
resource.update().withTags(mapOf("Dept", "IT", "Environment", "Test")).apply();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.2/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-operationsmanagement_1.0.0-beta.3/sdk/operationsmanagement/azure-resourcemanager-operationsmanagement/README.md"}