[Automation] Collect examples from azure-sdk-for-java#azure-resourcemanager-purview_1.0.0-beta.3
This commit is contained in:
Родитель
8eac63535e
Коммит
51a62d0a94
|
@ -1,22 +1,22 @@
|
|||
|
||||
import com.azure.resourcemanager.purview.models.CollectionAdminUpdate;
|
||||
|
||||
/** Samples for Accounts AddRootCollectionAdmin. */
|
||||
/**
|
||||
* Samples for Accounts AddRootCollectionAdmin.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_AddRootCollectionAdmin.json
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/
|
||||
* Accounts_AddRootCollectionAdmin.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Accounts_AddRootCollectionAdmin.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void accountsAddRootCollectionAdmin(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.accounts()
|
||||
.addRootCollectionAdminWithResponse(
|
||||
"SampleResourceGroup",
|
||||
"account1",
|
||||
new CollectionAdminUpdate().withObjectId("7e8de0e7-2bfc-4e1f-9659-2a5785e4356f"),
|
||||
com.azure.core.util.Context.NONE);
|
||||
manager.accounts().addRootCollectionAdminWithResponse("SampleResourceGroup", "account1",
|
||||
new CollectionAdminUpdate().withObjectId("7e8de0e7-2bfc-4e1f-9659-2a5785e4356f"),
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,20 +1,22 @@
|
|||
|
||||
import com.azure.resourcemanager.purview.models.CheckNameAvailabilityRequest;
|
||||
|
||||
/** Samples for Accounts CheckNameAvailability. */
|
||||
/**
|
||||
* Samples for Accounts CheckNameAvailability.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_CheckNameAvailability.json
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/
|
||||
* Accounts_CheckNameAvailability.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Accounts_CheckNameAvailability.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void accountsCheckNameAvailability(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.accounts()
|
||||
.checkNameAvailabilityWithResponse(
|
||||
new CheckNameAvailabilityRequest().withName("account1").withType("Microsoft.Purview/accounts"),
|
||||
com.azure.core.util.Context.NONE);
|
||||
manager.accounts().checkNameAvailabilityWithResponse(
|
||||
new CheckNameAvailabilityRequest().withName("account1").withType("Microsoft.Purview/accounts"),
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,20 +1,19 @@
|
|||
/** Samples for Accounts CreateOrUpdate. */
|
||||
|
||||
/**
|
||||
* Samples for Accounts CreateOrUpdate.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_CreateOrUpdate.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_CreateOrUpdate.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Accounts_CreateOrUpdate.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void accountsCreateOrUpdate(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.accounts()
|
||||
.define("account1")
|
||||
.withRegion("West US 2")
|
||||
.withExistingResourceGroup("SampleResourceGroup")
|
||||
.withManagedResourceGroupName("custom-rgname")
|
||||
.create();
|
||||
manager.accounts().define("account1").withRegion("West US 2").withExistingResourceGroup("SampleResourceGroup")
|
||||
.withManagedResourceGroupName("custom-rgname").create();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,11 +1,15 @@
|
|||
/** Samples for Accounts Delete. */
|
||||
|
||||
/**
|
||||
* Samples for Accounts Delete.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_Delete.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_Delete.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Accounts_Delete.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void accountsDelete(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,16 +1,19 @@
|
|||
/** Samples for Accounts GetByResourceGroup. */
|
||||
|
||||
/**
|
||||
* Samples for Accounts GetByResourceGroup.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_Get.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_Get.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Accounts_Get.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void accountsGet(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.accounts()
|
||||
.getByResourceGroupWithResponse("SampleResourceGroup", "account1", com.azure.core.util.Context.NONE);
|
||||
manager.accounts().getByResourceGroupWithResponse("SampleResourceGroup", "account1",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,11 +1,16 @@
|
|||
/** Samples for Accounts ListByResourceGroup. */
|
||||
|
||||
/**
|
||||
* Samples for Accounts ListByResourceGroup.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_ListByResourceGroup.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_ListByResourceGroup.
|
||||
* json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Accounts_ListByResourceGroup.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void accountsListByResourceGroup(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,11 +1,16 @@
|
|||
/** Samples for Accounts List. */
|
||||
|
||||
/**
|
||||
* Samples for Accounts List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_ListBySubscription.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_ListBySubscription.
|
||||
* json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Accounts_ListBySubscription.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void accountsListBySubscription(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,11 +1,15 @@
|
|||
/** Samples for Accounts ListKeys. */
|
||||
|
||||
/**
|
||||
* Samples for Accounts ListKeys.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_ListKeys.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_ListKeys.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Accounts_ListKeys.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void accountsListKeys(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,26 +1,29 @@
|
|||
|
||||
import com.azure.resourcemanager.purview.models.Account;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/** Samples for Accounts Update. */
|
||||
/**
|
||||
* Samples for Accounts Update.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_Update.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_Update.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Accounts_Update.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void accountsUpdate(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
Account resource =
|
||||
manager
|
||||
.accounts()
|
||||
.getByResourceGroupWithResponse("SampleResourceGroup", "account1", com.azure.core.util.Context.NONE)
|
||||
.getValue();
|
||||
Account resource = manager.accounts()
|
||||
.getByResourceGroupWithResponse("SampleResourceGroup", "account1", com.azure.core.util.Context.NONE)
|
||||
.getValue();
|
||||
resource.update().withTags(mapOf("newTag", "New tag value.")).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-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,23 +1,22 @@
|
|||
|
||||
import com.azure.resourcemanager.purview.models.ScopeType;
|
||||
import java.util.UUID;
|
||||
|
||||
/** Samples for DefaultAccounts Get. */
|
||||
/**
|
||||
* Samples for DefaultAccounts Get.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/DefaultAccounts_Get.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/DefaultAccounts_Get.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: DefaultAccounts_Get.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void defaultAccountsGet(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.defaultAccounts()
|
||||
.getWithResponse(
|
||||
UUID.fromString("11733A4E-BA84-46FF-91D1-AFF1A3215A90"),
|
||||
ScopeType.TENANT,
|
||||
"11733A4E-BA84-46FF-91D1-AFF1A3215A90",
|
||||
com.azure.core.util.Context.NONE);
|
||||
manager.defaultAccounts().getWithResponse(UUID.fromString("11733A4E-BA84-46FF-91D1-AFF1A3215A90"),
|
||||
ScopeType.TENANT, "11733A4E-BA84-46FF-91D1-AFF1A3215A90", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,23 +1,22 @@
|
|||
|
||||
import com.azure.resourcemanager.purview.models.ScopeType;
|
||||
import java.util.UUID;
|
||||
|
||||
/** Samples for DefaultAccounts Remove. */
|
||||
/**
|
||||
* Samples for DefaultAccounts Remove.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/DefaultAccounts_Remove.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/DefaultAccounts_Remove.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: DefaultAccounts_Remove.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void defaultAccountsRemove(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.defaultAccounts()
|
||||
.removeWithResponse(
|
||||
UUID.fromString("11733A4E-BA84-46FF-91D1-AFF1A3215A90"),
|
||||
ScopeType.TENANT,
|
||||
"11733A4E-BA84-46FF-91D1-AFF1A3215A90",
|
||||
com.azure.core.util.Context.NONE);
|
||||
manager.defaultAccounts().removeWithResponse(UUID.fromString("11733A4E-BA84-46FF-91D1-AFF1A3215A90"),
|
||||
ScopeType.TENANT, "11733A4E-BA84-46FF-91D1-AFF1A3215A90", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,27 +1,25 @@
|
|||
|
||||
import com.azure.resourcemanager.purview.fluent.models.DefaultAccountPayloadInner;
|
||||
import com.azure.resourcemanager.purview.models.ScopeType;
|
||||
|
||||
/** Samples for DefaultAccounts Set. */
|
||||
/**
|
||||
* Samples for DefaultAccounts Set.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/DefaultAccounts_Set.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/DefaultAccounts_Set.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: DefaultAccounts_Set.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void defaultAccountsSet(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.defaultAccounts()
|
||||
.setWithResponse(
|
||||
new DefaultAccountPayloadInner()
|
||||
.withAccountName("myDefaultAccount")
|
||||
.withResourceGroupName("rg-1")
|
||||
.withScope("11733A4E-BA84-46FF-91D1-AFF1A3215A90")
|
||||
.withScopeTenantId("11733A4E-BA84-46FF-91D1-AFF1A3215A90")
|
||||
.withScopeType(ScopeType.TENANT)
|
||||
.withSubscriptionId("12345678-1234-1234-12345678aaa"),
|
||||
com.azure.core.util.Context.NONE);
|
||||
manager.defaultAccounts()
|
||||
.setWithResponse(new DefaultAccountPayloadInner().withAccountName("myDefaultAccount")
|
||||
.withResourceGroupName("rg-1").withScope("11733A4E-BA84-46FF-91D1-AFF1A3215A90")
|
||||
.withScopeTenantId("11733A4E-BA84-46FF-91D1-AFF1A3215A90").withScopeType(ScopeType.TENANT)
|
||||
.withSubscriptionId("12345678-1234-1234-12345678aaa"), com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,11 +1,15 @@
|
|||
/** Samples for Operations List. */
|
||||
|
||||
/**
|
||||
* Samples for Operations List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Operations_List.json
|
||||
* x-ms-original-file:
|
||||
* specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Operations_List.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: Operations_List.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void operationsList(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,26 +1,26 @@
|
|||
|
||||
import com.azure.resourcemanager.purview.models.PrivateLinkServiceConnectionState;
|
||||
import com.azure.resourcemanager.purview.models.Status;
|
||||
|
||||
/** Samples for PrivateEndpointConnections CreateOrUpdate. */
|
||||
/**
|
||||
* Samples for PrivateEndpointConnections CreateOrUpdate.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/PrivateEndpointConnections_CreateOrUpdate.json
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/
|
||||
* PrivateEndpointConnections_CreateOrUpdate.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: PrivateEndpointConnections_CreateOrUpdate.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void privateEndpointConnectionsCreateOrUpdate(
|
||||
com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.privateEndpointConnections()
|
||||
.define("privateEndpointConnection1")
|
||||
public static void
|
||||
privateEndpointConnectionsCreateOrUpdate(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager.privateEndpointConnections().define("privateEndpointConnection1")
|
||||
.withExistingAccount("SampleResourceGroup", "account1")
|
||||
.withPrivateLinkServiceConnectionState(
|
||||
new PrivateLinkServiceConnectionState()
|
||||
.withDescription("Approved by johndoe@company.com")
|
||||
.withStatus(Status.APPROVED))
|
||||
.withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState()
|
||||
.withDescription("Approved by johndoe@company.com").withStatus(Status.APPROVED))
|
||||
.create();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,16 +1,19 @@
|
|||
/** Samples for PrivateEndpointConnections Delete. */
|
||||
|
||||
/**
|
||||
* Samples for PrivateEndpointConnections Delete.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/PrivateEndpointConnections_Delete.json
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/
|
||||
* PrivateEndpointConnections_Delete.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: PrivateEndpointConnections_Delete.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void privateEndpointConnectionsDelete(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.privateEndpointConnections()
|
||||
.delete("SampleResourceGroup", "account1", "privateEndpointConnection1", com.azure.core.util.Context.NONE);
|
||||
manager.privateEndpointConnections().delete("SampleResourceGroup", "account1", "privateEndpointConnection1",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,17 +1,19 @@
|
|||
/** Samples for PrivateEndpointConnections Get. */
|
||||
|
||||
/**
|
||||
* Samples for PrivateEndpointConnections Get.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/PrivateEndpointConnections_Get.json
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/
|
||||
* PrivateEndpointConnections_Get.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: PrivateEndpointConnections_Get.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void privateEndpointConnectionsGet(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.privateEndpointConnections()
|
||||
.getWithResponse(
|
||||
"SampleResourceGroup", "account1", "privateEndpointConnection1", com.azure.core.util.Context.NONE);
|
||||
manager.privateEndpointConnections().getWithResponse("SampleResourceGroup", "account1",
|
||||
"privateEndpointConnection1", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,17 +1,20 @@
|
|||
/** Samples for PrivateEndpointConnections ListByAccount. */
|
||||
|
||||
/**
|
||||
* Samples for PrivateEndpointConnections ListByAccount.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/PrivateEndpointConnections_ListByAccount.json
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/
|
||||
* PrivateEndpointConnections_ListByAccount.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: PrivateEndpointConnections_ListByAccount.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void privateEndpointConnectionsListByAccount(
|
||||
com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.privateEndpointConnections()
|
||||
.listByAccount("SampleResourceGroup", "account1", null, com.azure.core.util.Context.NONE);
|
||||
public static void
|
||||
privateEndpointConnectionsListByAccount(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager.privateEndpointConnections().listByAccount("SampleResourceGroup", "account1", null,
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,16 +1,19 @@
|
|||
/** Samples for PrivateLinkResources GetByGroupId. */
|
||||
|
||||
/**
|
||||
* Samples for PrivateLinkResources GetByGroupId.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/PrivateLinkResources_GetByGroupId.json
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/
|
||||
* PrivateLinkResources_GetByGroupId.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: PrivateLinkResources_GetByGroupId.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void privateLinkResourcesGetByGroupId(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.privateLinkResources()
|
||||
.getByGroupIdWithResponse("SampleResourceGroup", "account1", "group1", com.azure.core.util.Context.NONE);
|
||||
manager.privateLinkResources().getByGroupIdWithResponse("SampleResourceGroup", "account1", "group1",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
|
@ -1,16 +1,19 @@
|
|||
/** Samples for PrivateLinkResources ListByAccount. */
|
||||
|
||||
/**
|
||||
* Samples for PrivateLinkResources ListByAccount.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/PrivateLinkResources_ListByAccount.json
|
||||
* x-ms-original-file: specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/
|
||||
* PrivateLinkResources_ListByAccount.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: PrivateLinkResources_ListByAccount.
|
||||
*
|
||||
*
|
||||
* @param manager Entry point to PurviewManager.
|
||||
*/
|
||||
public static void privateLinkResourcesListByAccount(com.azure.resourcemanager.purview.PurviewManager manager) {
|
||||
manager
|
||||
.privateLinkResources()
|
||||
.listByAccount("SampleResourceGroup", "account1", com.azure.core.util.Context.NONE);
|
||||
manager.privateLinkResources().listByAccount("SampleResourceGroup", "account1",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.2/sdk/purview/azure-resourcemanager-purview/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-purview_1.0.0-beta.3/sdk/purview/azure-resourcemanager-purview/README.md"}
|
Загрузка…
Ссылка в новой задаче