[Automation] Collect examples from azure-sdk-for-java#azure-resourcemanager-mediaservices_2.4.0-beta.2

This commit is contained in:
Azure SDK Bot 2024-11-02 04:03:08 -07:00 коммит произвёл GitHub
Родитель 35f33ae561
Коммит c97d5d3365
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
260 изменённых файлов: 1724 добавлений и 1736 удалений

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

@ -1,21 +1,23 @@
import com.azure.resourcemanager.mediaservices.models.CheckNameAvailabilityInput;
/** Samples for Locations CheckNameAvailability. */
/**
* Samples for Locations CheckNameAvailability.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-check-name-availability.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-check-
* name-availability.json
*/
/**
* Sample code: Check Name Availability.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void checkNameAvailability(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.locations()
.checkNameAvailabilityWithResponse(
"japanwest",
new CheckNameAvailabilityInput().withName("contosotv").withType("Microsoft.Media/mediaservices"),
com.azure.core.util.Context.NONE);
manager.locations().checkNameAvailabilityWithResponse("japanwest",
new CheckNameAvailabilityInput().withName("contosotv").withType("Microsoft.Media/mediaservices"),
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,21 @@
/** Samples for Mediaservices Delete. */
/**
* Samples for Mediaservices Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-delete.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-delete.
* json
*/
/**
* Sample code: Delete a Media Services account.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void deleteAMediaServicesAccount(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.mediaservices()
.deleteByResourceGroupWithResponse("contosorg", "contososports", com.azure.core.util.Context.NONE);
public static void
deleteAMediaServicesAccount(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.mediaservices().deleteByResourceGroupWithResponse("contosorg", "contososports",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,21 @@
/** Samples for Mediaservices GetByResourceGroup. */
/**
* Samples for Mediaservices GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-get-by-name.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-get-by-
* name.json
*/
/**
* Sample code: Get a Media Services account by name.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getAMediaServicesAccountByName(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.mediaservices()
.getByResourceGroupWithResponse("contosorg", "contosotv", com.azure.core.util.Context.NONE);
public static void
getAMediaServicesAccountByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.mediaservices().getByResourceGroupWithResponse("contosorg", "contosotv",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,15 +1,20 @@
/** Samples for Mediaservices ListByResourceGroup. */
/**
* Samples for Mediaservices ListByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-list-all-accounts.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-list-
* all-accounts.json
*/
/**
* Sample code: List all Media Services accounts.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listAllMediaServicesAccounts(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
public static void
listAllMediaServicesAccounts(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.mediaservices().listByResourceGroup("contosorg", com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,22 +1,23 @@
import com.azure.resourcemanager.mediaservices.models.ListEdgePoliciesInput;
/** Samples for Mediaservices ListEdgePolicies. */
/**
* Samples for Mediaservices ListEdgePolicies.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-list-media-edge-policies.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-list-
* media-edge-policies.json
*/
/**
* Sample code: List the media edge policies.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listTheMediaEdgePolicies(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.mediaservices()
.listEdgePoliciesWithResponse(
"contosorg",
"contososports",
new ListEdgePoliciesInput().withDeviceId("contosiothubhost_contosoiotdevice"),
com.azure.core.util.Context.NONE);
manager.mediaservices().listEdgePoliciesWithResponse("contosorg", "contososports",
new ListEdgePoliciesInput().withDeviceId("contosiothubhost_contosoiotdevice"),
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,15 +1,20 @@
/** Samples for Mediaservices List. */
/**
* Samples for Mediaservices List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-subscription-list-all-accounts.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-
* subscription-list-all-accounts.json
*/
/**
* Sample code: List all Media Services accounts.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listAllMediaServicesAccounts(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
public static void
listAllMediaServicesAccounts(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.mediaservices().list(com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,23 +1,23 @@
import com.azure.resourcemanager.mediaservices.models.SyncStorageKeysInput;
/** Samples for Mediaservices SyncStorageKeys. */
/**
* Samples for Mediaservices SyncStorageKeys.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-sync-storage-keys.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-sync-
* storage-keys.json
*/
/**
* Sample code: Synchronizes Storage Account Keys.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void synchronizesStorageAccountKeys(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.mediaservices()
.syncStorageKeysWithResponse(
"contosorg",
"contososports",
new SyncStorageKeysInput().withId("contososportsstore"),
com.azure.core.util.Context.NONE);
public static void
synchronizesStorageAccountKeys(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.mediaservices().syncStorageKeysWithResponse("contosorg", "contososports",
new SyncStorageKeysInput().withId("contososportsstore"), com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,3 +1,4 @@
import com.azure.resourcemanager.mediaservices.models.AccessControl;
import com.azure.resourcemanager.mediaservices.models.AccountEncryption;
import com.azure.resourcemanager.mediaservices.models.AccountEncryptionKeyType;
@ -14,60 +15,47 @@ import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/** Samples for Mediaservices CreateOrUpdate. */
/**
* Samples for Mediaservices CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-create-managed-identity.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-
* create-managed-identity.json
*/
/**
* Sample code: Create a Media Services account-managed-identity.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void createAMediaServicesAccountManagedIdentity(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.mediaservices()
.define("contososports")
.withRegion("South Central US")
manager.mediaservices().define("contososports").withRegion("South Central US")
.withExistingResourceGroup("contosorg")
.withTags(mapOf("key1", "value1", "key2", "value2"))
.withIdentity(
new MediaServiceIdentity()
.withType("UserAssigned")
.withUserAssignedIdentities(
mapOf(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
new UserAssignedManagedIdentity(),
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2",
new UserAssignedManagedIdentity())))
.withStorageAccounts(
Arrays
.asList(
new StorageAccount()
.withId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore")
.withType(StorageAccountType.PRIMARY)
.withIdentity(
new ResourceIdentity()
.withUserAssignedIdentity(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")
.withUseSystemAssignedIdentity(false))))
.withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
.withIdentity(new MediaServiceIdentity().withType("UserAssigned").withUserAssignedIdentities(mapOf(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
new UserAssignedManagedIdentity(),
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2",
new UserAssignedManagedIdentity())))
.withStorageAccounts(Arrays.asList(new StorageAccount().withId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore")
.withType(StorageAccountType.PRIMARY)
.withIdentity(new ResourceIdentity().withUserAssignedIdentity(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")
.withUseSystemAssignedIdentity(false))))
.withStorageAuthentication(StorageAuthentication.MANAGED_IDENTITY)
.withEncryption(
new AccountEncryption()
.withType(AccountEncryptionKeyType.CUSTOMER_KEY)
.withIdentity(
new ResourceIdentity()
.withUserAssignedIdentity(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")
.withUseSystemAssignedIdentity(false)))
.withEncryption(new AccountEncryption().withType(AccountEncryptionKeyType.CUSTOMER_KEY)
.withIdentity(new ResourceIdentity().withUserAssignedIdentity(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")
.withUseSystemAssignedIdentity(false)))
.withKeyDelivery(
new KeyDelivery().withAccessControl(new AccessControl().withDefaultAction(DefaultAction.ALLOW)))
.withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
.create();
.withPublicNetworkAccess(PublicNetworkAccess.ENABLED).create();
}
// 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-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,37 +1,36 @@
import com.azure.resourcemanager.mediaservices.models.StorageAccount;
import com.azure.resourcemanager.mediaservices.models.StorageAccountType;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/** Samples for Mediaservices CreateOrUpdate. */
/**
* Samples for Mediaservices CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-create.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-
* create.json
*/
/**
* Sample code: Create a Media Services account.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void createAMediaServicesAccount(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.mediaservices()
.define("contososports")
.withRegion("South Central US")
public static void
createAMediaServicesAccount(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.mediaservices().define("contososports").withRegion("South Central US")
.withExistingResourceGroup("contosorg")
.withTags(mapOf("key1", "value1", "key2", "value2"))
.withStorageAccounts(
Arrays
.asList(
new StorageAccount()
.withId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount")
.withType(StorageAccountType.PRIMARY)))
.withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
.withStorageAccounts(Arrays.asList(new StorageAccount().withId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount")
.withType(StorageAccountType.PRIMARY)))
.create();
}
// 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-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,27 +1,30 @@
import com.azure.resourcemanager.mediaservices.models.MediaService;
import java.util.HashMap;
import java.util.Map;
/** Samples for Mediaservices Update. */
/**
* Samples for Mediaservices Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-update.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-
* update.json
*/
/**
* Sample code: Update a Media Services accounts.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void updateAMediaServicesAccounts(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
MediaService resource =
manager
.mediaservices()
.getByResourceGroupWithResponse("contosorg", "contososports", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withTags(mapOf("key1", "value3")).apply();
public static void
updateAMediaServicesAccounts(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
MediaService resource = manager.mediaservices()
.getByResourceGroupWithResponse("contosorg", "contososports", com.azure.core.util.Context.NONE).getValue();
resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder")).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-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,21 @@
/** Samples for MediaServicesOperationResults Get. */
/**
* Samples for MediaServicesOperationResults Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-result-by-id.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-
* operation-result-by-id.json
*/
/**
* Sample code: Get status of asynchronous operation.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getStatusOfAsynchronousOperation(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.mediaServicesOperationResults()
.getWithResponse("westus", "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", com.azure.core.util.Context.NONE);
public static void
getStatusOfAsynchronousOperation(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.mediaServicesOperationResults().getWithResponse("westus", "6FBA62C4-99B5-4FF8-9826-FC4744A8864F",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,21 @@
/** Samples for MediaServicesOperationStatuses Get. */
/**
* Samples for MediaServicesOperationStatuses Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-
* operation-status-by-id-non-terminal-state-failed.json
*/
/**
* Sample code: Get status of asynchronous operation when it is completed with error.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getStatusOfAsynchronousOperationWhenItIsCompletedWithError(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.mediaServicesOperationStatuses()
.getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", com.azure.core.util.Context.NONE);
manager.mediaServicesOperationStatuses().getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,21 @@
/** Samples for MediaServicesOperationStatuses Get. */
/**
* Samples for MediaServicesOperationStatuses Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-non-terminal-state.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-
* operation-status-by-id-non-terminal-state.json
*/
/**
* Sample code: Get status of asynchronous operation when it is ongoing.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getStatusOfAsynchronousOperationWhenItIsOngoing(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.mediaServicesOperationStatuses()
.getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", com.azure.core.util.Context.NONE);
manager.mediaServicesOperationStatuses().getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,21 @@
/** Samples for MediaServicesOperationStatuses Get. */
/**
* Samples for MediaServicesOperationStatuses Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-terminal-state.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-
* operation-status-by-id-terminal-state.json
*/
/**
* Sample code: Get status of asynchronous operation when it is completed.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getStatusOfAsynchronousOperationWhenItIsCompleted(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.mediaServicesOperationStatuses()
.getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", com.azure.core.util.Context.NONE);
manager.mediaServicesOperationStatuses().getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,11 +1,16 @@
/** Samples for Operations List. */
/**
* Samples for Operations List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/operations-list-all.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/operations-list-
* all.json
*/
/**
* Sample code: List Operations.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listOperations(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,21 @@
/** Samples for PrivateEndpointConnections Delete. */
/**
* Samples for PrivateEndpointConnections Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-delete.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint
* -connection-delete.json
*/
/**
* Sample code: Delete private endpoint connection.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void deletePrivateEndpointConnection(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.privateEndpointConnections()
.deleteWithResponse("contosorg", "contososports", "connectionName1", com.azure.core.util.Context.NONE);
public static void
deletePrivateEndpointConnection(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.privateEndpointConnections().deleteWithResponse("contosorg", "contososports", "connectionName1",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,21 @@
/** Samples for PrivateEndpointConnections Get. */
/**
* Samples for PrivateEndpointConnections Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-get-by-name.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint
* -connection-get-by-name.json
*/
/**
* Sample code: Get private endpoint connection.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getPrivateEndpointConnection(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.privateEndpointConnections()
.getWithResponse("contosorg", "contososports", "connectionName1", com.azure.core.util.Context.NONE);
public static void
getPrivateEndpointConnection(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.privateEndpointConnections().getWithResponse("contosorg", "contososports", "connectionName1",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,21 @@
/** Samples for PrivateEndpointConnections List. */
/**
* Samples for PrivateEndpointConnections List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-list.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint
* -connection-list.json
*/
/**
* Sample code: Get all private endpoint connections.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getAllPrivateEndpointConnections(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.privateEndpointConnections()
.listWithResponse("contosorg", "contososports", com.azure.core.util.Context.NONE);
public static void
getAllPrivateEndpointConnections(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.privateEndpointConnections().listWithResponse("contosorg", "contososports",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,30 +1,30 @@
import com.azure.resourcemanager.mediaservices.models.PrivateEndpointConnection;
import com.azure.resourcemanager.mediaservices.models.PrivateEndpointServiceConnectionStatus;
import com.azure.resourcemanager.mediaservices.models.PrivateLinkServiceConnectionState;
/** Samples for PrivateEndpointConnections CreateOrUpdate. */
/**
* Samples for PrivateEndpointConnections CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-put.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint
* -connection-put.json
*/
/**
* Sample code: Update private endpoint connection.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void updatePrivateEndpointConnection(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
PrivateEndpointConnection resource =
manager
.privateEndpointConnections()
.getWithResponse("contosorg", "contososports", "connectionName1", com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
.withPrivateLinkServiceConnectionState(
new PrivateLinkServiceConnectionState()
.withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
.withDescription("Test description."))
public static void
updatePrivateEndpointConnection(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
PrivateEndpointConnection resource = manager.privateEndpointConnections()
.getWithResponse("contosorg", "contososports", "connectionName1", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState()
.withStatus(PrivateEndpointServiceConnectionStatus.APPROVED).withDescription("Test description."))
.apply();
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,16 +1,20 @@
/** Samples for PrivateLinkResources Get. */
/**
* Samples for PrivateLinkResources Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-link-resources-get-by-name.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-link-
* resources-get-by-name.json
*/
/**
* Sample code: Get details of a group ID.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getDetailsOfAGroupID(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.privateLinkResources()
.getWithResponse("contosorg", "contososports", "keydelivery", com.azure.core.util.Context.NONE);
manager.privateLinkResources().getWithResponse("contosorg", "contososports", "keydelivery",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,11 +1,16 @@
/** Samples for PrivateLinkResources List. */
/**
* Samples for PrivateLinkResources List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-link-resources-list.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-link-
* resources-list.json
*/
/**
* Sample code: Get list of all group IDs.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getListOfAllGroupIDs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,19 @@
/** Samples for Jobs CancelJob. */
/**
* Samples for Jobs CancelJob.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-cancel.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-cancel.json
*/
/**
* Sample code: Cancel a Job.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void cancelAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.cancelJobWithResponse(
"contosoresources", "contosomedia", "exampleTransform", "job1", com.azure.core.util.Context.NONE);
manager.jobs().cancelJobWithResponse("contosoresources", "contosomedia", "exampleTransform", "job1",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,30 +1,31 @@
import com.azure.resourcemanager.mediaservices.models.JobInputAsset;
import com.azure.resourcemanager.mediaservices.models.JobOutputAsset;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/** Samples for Jobs Create. */
/**
* Samples for Jobs Create.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-create.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-create.json
*/
/**
* Sample code: Create a Job.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void createAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.define("job1")
.withExistingTransform("contosoresources", "contosomedia", "exampleTransform")
manager.jobs().define("job1").withExistingTransform("contosoresources", "contosomedia", "exampleTransform")
.withInput(new JobInputAsset().withAssetName("job1-InputAsset"))
.withOutputs(Arrays.asList(new JobOutputAsset().withAssetName("job1-OutputAsset")))
.withCorrelationData(mapOf("Key 2", "Value 2", "key1", "value1"))
.create();
.withCorrelationData(mapOf("Key 2", "fakeTokenPlaceholder", "key1", "fakeTokenPlaceholder")).create();
}
// 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-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,21 +1,19 @@
/** Samples for Jobs Delete. */
/**
* Samples for Jobs Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-delete.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-delete.json
*/
/**
* Sample code: Delete a Job.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void deleteAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.deleteWithResponse(
"contosoresources",
"contosomedia",
"exampleTransform",
"jobToDelete",
com.azure.core.util.Context.NONE);
manager.jobs().deleteWithResponse("contosoresources", "contosomedia", "exampleTransform", "jobToDelete",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,20 @@
/** Samples for Jobs Get. */
/**
* Samples for Jobs Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-get-by-name.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-get-by-name
* .json
*/
/**
* Sample code: Get a Job by name.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getAJobByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.getWithResponse(
"contosoresources", "contosomedia", "exampleTransform", "job1", com.azure.core.util.Context.NONE);
manager.jobs().getWithResponse("contosoresources", "contosomedia", "exampleTransform", "job1",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,24 +1,22 @@
/** Samples for Jobs List. */
/**
* Samples for Jobs List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-created.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-
* filter-by-created.json
*/
/**
* Sample code: Lists Jobs for the Transform filter by created.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsJobsForTheTransformFilterByCreated(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.list(
"contosoresources",
"contosomedia",
"exampleTransform",
"properties/created ge 2021-06-01T00:00:10.0000000Z and properties/created le"
+ " 2021-06-01T00:00:20.0000000Z",
"properties/created",
com.azure.core.util.Context.NONE);
public static void
listsJobsForTheTransformFilterByCreated(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.jobs().list("contosoresources", "contosomedia", "exampleTransform",
"properties/created ge 2021-06-01T00:00:10.0000000Z and properties/created le 2021-06-01T00:00:20.0000000Z",
"properties/created", com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,24 +1,22 @@
/** Samples for Jobs List. */
/**
* Samples for Jobs List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-lastmodified.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-
* filter-by-lastmodified.json
*/
/**
* Sample code: Lists Jobs for the Transform filter by lastmodified.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsJobsForTheTransformFilterByLastmodified(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.list(
"contosoresources",
"contosomedia",
"exampleTransform",
"properties/lastmodified ge 2021-06-01T00:00:10.0000000Z and properties/lastmodified le"
+ " 2021-06-01T00:00:20.0000000Z",
"properties/lastmodified desc",
com.azure.core.util.Context.NONE);
manager.jobs().list("contosoresources", "contosomedia", "exampleTransform",
"properties/lastmodified ge 2021-06-01T00:00:10.0000000Z and properties/lastmodified le 2021-06-01T00:00:20.0000000Z",
"properties/lastmodified desc", com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,23 +1,22 @@
/** Samples for Jobs List. */
/**
* Samples for Jobs List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name-and-state.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-
* filter-by-name-and-state.json
*/
/**
* Sample code: Lists Jobs for the Transform filter by name and state.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsJobsForTheTransformFilterByNameAndState(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.list(
"contosoresources",
"contosomedia",
"exampleTransform",
"name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'",
null,
com.azure.core.util.Context.NONE);
manager.jobs().list("contosoresources", "contosomedia", "exampleTransform",
"name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'", null,
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,23 +1,21 @@
/** Samples for Jobs List. */
/**
* Samples for Jobs List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-
* filter-by-name.json
*/
/**
* Sample code: Lists Jobs for the Transform filter by name.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsJobsForTheTransformFilterByName(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.list(
"contosoresources",
"contosomedia",
"exampleTransform",
"name eq 'job1' or name eq 'job2'",
"name",
com.azure.core.util.Context.NONE);
public static void
listsJobsForTheTransformFilterByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.jobs().list("contosoresources", "contosomedia", "exampleTransform", "name eq 'job1' or name eq 'job2'",
"name", com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,23 +1,21 @@
/** Samples for Jobs List. */
/**
* Samples for Jobs List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-eq.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-
* filter-by-state-eq.json
*/
/**
* Sample code: Lists Jobs for the Transform filter by state equal.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsJobsForTheTransformFilterByStateEqual(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.list(
"contosoresources",
"contosomedia",
"exampleTransform",
"properties/state eq Microsoft.Media.JobState'Processing'",
null,
com.azure.core.util.Context.NONE);
manager.jobs().list("contosoresources", "contosomedia", "exampleTransform",
"properties/state eq Microsoft.Media.JobState'Processing'", null, com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,23 +1,21 @@
/** Samples for Jobs List. */
/**
* Samples for Jobs List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-ne.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-
* filter-by-state-ne.json
*/
/**
* Sample code: Lists Jobs for the Transform filter by state not equal.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsJobsForTheTransformFilterByStateNotEqual(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.list(
"contosoresources",
"contosomedia",
"exampleTransform",
"properties/state ne Microsoft.Media.JobState'processing'",
null,
com.azure.core.util.Context.NONE);
manager.jobs().list("contosoresources", "contosomedia", "exampleTransform",
"properties/state ne Microsoft.Media.JobState'processing'", null, com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,21 @@
/** Samples for Jobs List. */
/**
* Samples for Jobs List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all.
* json
*/
/**
* Sample code: Lists all of the Jobs for the Transform.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsAllOfTheJobsForTheTransform(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.jobs()
.list("contosoresources", "contosomedia", "exampleTransform", null, null, com.azure.core.util.Context.NONE);
public static void
listsAllOfTheJobsForTheTransform(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.jobs().list("contosoresources", "contosomedia", "exampleTransform", null, null,
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,32 +1,29 @@
import com.azure.resourcemanager.mediaservices.models.Job;
import com.azure.resourcemanager.mediaservices.models.JobInputAsset;
import com.azure.resourcemanager.mediaservices.models.JobOutputAsset;
import com.azure.resourcemanager.mediaservices.models.Priority;
import java.util.Arrays;
/** Samples for Jobs Update. */
/**
* Samples for Jobs Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-update.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-update.json
*/
/**
* Sample code: Update a Job.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void updateAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
Job resource =
manager
.jobs()
.getWithResponse(
"contosoresources", "contosomedia", "exampleTransform", "job1", com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
.withDescription("Example job to illustrate update.")
Job resource = manager.jobs().getWithResponse("contosoresources", "contosomedia", "exampleTransform", "job1",
com.azure.core.util.Context.NONE).getValue();
resource.update().withDescription("Example job to illustrate update.")
.withInput(new JobInputAsset().withAssetName("job1-InputAsset"))
.withOutputs(Arrays.asList(new JobOutputAsset().withAssetName("job1-OutputAsset")))
.withPriority(Priority.HIGH)
.apply();
.withPriority(Priority.HIGH).apply();
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,31 +1,28 @@
import com.azure.resourcemanager.mediaservices.models.BuiltInStandardEncoderPreset;
import com.azure.resourcemanager.mediaservices.models.EncoderNamedPreset;
import com.azure.resourcemanager.mediaservices.models.TransformOutput;
import java.util.Arrays;
/** Samples for Transforms CreateOrUpdate. */
/**
* Samples for Transforms CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-create.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-
* create.json
*/
/**
* Sample code: Create or update a Transform.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void createOrUpdateATransform(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.transforms()
.define("createdTransform")
.withExistingMediaService("contosoresources", "contosomedia")
manager.transforms().define("createdTransform").withExistingMediaService("contosoresources", "contosomedia")
.withDescription("Example Transform to illustrate create and update.")
.withOutputs(
Arrays
.asList(
new TransformOutput()
.withPreset(
new BuiltInStandardEncoderPreset()
.withPresetName(EncoderNamedPreset.ADAPTIVE_STREAMING))))
.withOutputs(Arrays.asList(new TransformOutput()
.withPreset(new BuiltInStandardEncoderPreset().withPresetName(EncoderNamedPreset.ADAPTIVE_STREAMING))))
.create();
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,20 @@
/** Samples for Transforms Delete. */
/**
* Samples for Transforms Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-delete.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-
* delete.json
*/
/**
* Sample code: Delete a Transform.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void deleteATransform(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.transforms()
.deleteWithResponse(
"contosoresources", "contosomedia", "sampleTransform", com.azure.core.util.Context.NONE);
manager.transforms().deleteWithResponse("contosoresources", "contosomedia", "sampleTransform",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,16 +1,20 @@
/** Samples for Transforms Get. */
/**
* Samples for Transforms Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-get-by-name.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-get-
* by-name.json
*/
/**
* Sample code: Get a Transform by name.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getATransformByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.transforms()
.getWithResponse("contosoresources", "contosomedia", "sampleTransform", com.azure.core.util.Context.NONE);
manager.transforms().getWithResponse("contosoresources", "contosomedia", "sampleTransform",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,23 +1,22 @@
/** Samples for Transforms List. */
/**
* Samples for Transforms List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-created.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-
* all-filter-by-created.json
*/
/**
* Sample code: Lists the Transforms filter by created.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsTheTransformsFilterByCreated(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.transforms()
.list(
"contosoresources",
"contosomedia",
"properties/created gt 2021-06-01T00:00:00.0000000Z and properties/created le"
+ " 2021-06-01T00:00:10.0000000Z",
"properties/created",
com.azure.core.util.Context.NONE);
public static void
listsTheTransformsFilterByCreated(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.transforms().list("contosoresources", "contosomedia",
"properties/created gt 2021-06-01T00:00:00.0000000Z and properties/created le 2021-06-01T00:00:10.0000000Z",
"properties/created", com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,23 +1,22 @@
/** Samples for Transforms List. */
/**
* Samples for Transforms List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-lastmodified.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-
* all-filter-by-lastmodified.json
*/
/**
* Sample code: Lists the Transforms filter by lastmodified.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsTheTransformsFilterByLastmodified(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.transforms()
.list(
"contosoresources",
"contosomedia",
"properties/lastmodified gt 2021-06-01T00:00:00.0000000Z and properties/lastmodified le"
+ " 2021-06-01T00:00:10.0000000Z",
"properties/lastmodified desc",
com.azure.core.util.Context.NONE);
public static void
listsTheTransformsFilterByLastmodified(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.transforms().list("contosoresources", "contosomedia",
"properties/lastmodified gt 2021-06-01T00:00:00.0000000Z and properties/lastmodified le 2021-06-01T00:00:10.0000000Z",
"properties/lastmodified desc", com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,22 +1,22 @@
/** Samples for Transforms List. */
/**
* Samples for Transforms List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-name.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-
* all-filter-by-name.json
*/
/**
* Sample code: Lists the Transforms filter by name.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsTheTransformsFilterByName(
com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.transforms()
.list(
"contosoresources",
"contosomedia",
"(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')",
"name desc",
com.azure.core.util.Context.NONE);
public static void
listsTheTransformsFilterByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager.transforms().list("contosoresources", "contosomedia",
"(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", "name desc",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,11 +1,16 @@
/** Samples for Transforms List. */
/**
* Samples for Transforms List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-
* all.json
*/
/**
* Sample code: Lists the Transforms.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsTheTransforms(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,3 +1,4 @@
import com.azure.resourcemanager.mediaservices.models.BuiltInStandardEncoderPreset;
import com.azure.resourcemanager.mediaservices.models.EncoderNamedPreset;
import com.azure.resourcemanager.mediaservices.models.Priority;
@ -5,34 +6,27 @@ import com.azure.resourcemanager.mediaservices.models.Transform;
import com.azure.resourcemanager.mediaservices.models.TransformOutput;
import java.util.Arrays;
/** Samples for Transforms Update. */
/**
* Samples for Transforms Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-update.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-
* update.json
*/
/**
* Sample code: Update a Transform.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void updateATransform(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
Transform resource =
manager
.transforms()
.getWithResponse(
"contosoresources", "contosomedia", "transformToUpdate", com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
.withDescription("Example transform to illustrate update.")
.withOutputs(
Arrays
.asList(
new TransformOutput()
.withRelativePriority(Priority.HIGH)
.withPreset(
new BuiltInStandardEncoderPreset()
.withPresetName(EncoderNamedPreset.H264MULTIPLE_BITRATE720P))))
Transform resource = manager.transforms()
.getWithResponse("contosoresources", "contosomedia", "transformToUpdate", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withDescription("Example transform to illustrate update.")
.withOutputs(Arrays.asList(new TransformOutput().withRelativePriority(Priority.HIGH).withPreset(
new BuiltInStandardEncoderPreset().withPresetName(EncoderNamedPreset.H264MULTIPLE_BITRATE720P))))
.apply();
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,3 +1,4 @@
import com.azure.resourcemanager.mediaservices.models.FilterTrackPropertyCompareOperation;
import com.azure.resourcemanager.mediaservices.models.FilterTrackPropertyCondition;
import com.azure.resourcemanager.mediaservices.models.FilterTrackPropertyType;
@ -6,61 +7,39 @@ import com.azure.resourcemanager.mediaservices.models.FirstQuality;
import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
import java.util.Arrays;
/** Samples for AccountFilters CreateOrUpdate. */
/**
* Samples for AccountFilters CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-create.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-
* create.json
*/
/**
* Sample code: Create an Account Filter.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void createAnAccountFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.accountFilters()
.define("newAccountFilter")
.withExistingMediaService("contosorg", "contosomedia")
.withPresentationTimeRange(
new PresentationTimeRange()
.withStartTimestamp(0L)
.withEndTimestamp(170000000L)
.withPresentationWindowDuration(9223372036854775000L)
.withLiveBackoffDuration(0L)
.withTimescale(10000000L)
.withForceEndTimestamp(false))
manager.accountFilters().define("newAccountFilter").withExistingMediaService("contosorg", "contosomedia")
.withPresentationTimeRange(new PresentationTimeRange().withStartTimestamp(0L).withEndTimestamp(170000000L)
.withPresentationWindowDuration(9223372036854775000L).withLiveBackoffDuration(0L)
.withTimescale(10000000L).withForceEndTimestamp(false))
.withFirstQuality(new FirstQuality().withBitrate(128000))
.withTracks(
Arrays
.asList(
new FilterTrackSelection()
.withTrackSelections(
Arrays
.asList(
new FilterTrackPropertyCondition()
.withProperty(FilterTrackPropertyType.TYPE)
.withValue("Audio")
.withOperation(FilterTrackPropertyCompareOperation.EQUAL),
new FilterTrackPropertyCondition()
.withProperty(FilterTrackPropertyType.LANGUAGE)
.withValue("en")
.withOperation(FilterTrackPropertyCompareOperation.NOT_EQUAL),
new FilterTrackPropertyCondition()
.withProperty(FilterTrackPropertyType.FOUR_CC)
.withValue("EC-3")
.withOperation(FilterTrackPropertyCompareOperation.NOT_EQUAL))),
new FilterTrackSelection()
.withTrackSelections(
Arrays
.asList(
new FilterTrackPropertyCondition()
.withProperty(FilterTrackPropertyType.TYPE)
.withValue("Video")
.withOperation(FilterTrackPropertyCompareOperation.EQUAL),
new FilterTrackPropertyCondition()
.withProperty(FilterTrackPropertyType.BITRATE)
.withValue("3000000-5000000")
.withOperation(FilterTrackPropertyCompareOperation.EQUAL)))))
.withTracks(Arrays.asList(
new FilterTrackSelection().withTrackSelections(Arrays.asList(
new FilterTrackPropertyCondition().withProperty(FilterTrackPropertyType.TYPE).withValue("Audio")
.withOperation(FilterTrackPropertyCompareOperation.EQUAL),
new FilterTrackPropertyCondition().withProperty(FilterTrackPropertyType.LANGUAGE).withValue("en")
.withOperation(FilterTrackPropertyCompareOperation.NOT_EQUAL),
new FilterTrackPropertyCondition().withProperty(FilterTrackPropertyType.FOUR_CC).withValue("EC-3")
.withOperation(FilterTrackPropertyCompareOperation.NOT_EQUAL))),
new FilterTrackSelection().withTrackSelections(Arrays.asList(
new FilterTrackPropertyCondition().withProperty(FilterTrackPropertyType.TYPE).withValue("Video")
.withOperation(FilterTrackPropertyCompareOperation.EQUAL),
new FilterTrackPropertyCondition().withProperty(FilterTrackPropertyType.BITRATE)
.withValue("3000000-5000000").withOperation(FilterTrackPropertyCompareOperation.EQUAL)))))
.create();
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,20 @@
/** Samples for AccountFilters Delete. */
/**
* Samples for AccountFilters Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-delete.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-
* delete.json
*/
/**
* Sample code: Delete an Account Filter.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void deleteAnAccountFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.accountFilters()
.deleteWithResponse(
"contosorg", "contosomedia", "accountFilterWithTimeWindowAndTrack", com.azure.core.util.Context.NONE);
manager.accountFilters().deleteWithResponse("contosorg", "contosomedia", "accountFilterWithTimeWindowAndTrack",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,16 +1,20 @@
/** Samples for AccountFilters Get. */
/**
* Samples for AccountFilters Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-get-by-name.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-
* get-by-name.json
*/
/**
* Sample code: Get an Account Filter by name.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getAnAccountFilterByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.accountFilters()
.getWithResponse("contosorg", "contosomedia", "accountFilterWithTrack", com.azure.core.util.Context.NONE);
manager.accountFilters().getWithResponse("contosorg", "contosomedia", "accountFilterWithTrack",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,11 +1,16 @@
/** Samples for AccountFilters List. */
/**
* Samples for AccountFilters List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-list-all.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-
* list-all.json
*/
/**
* Sample code: List all Account Filters.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listAllAccountFilters(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,38 +1,29 @@
import com.azure.resourcemanager.mediaservices.models.AccountFilter;
import com.azure.resourcemanager.mediaservices.models.FirstQuality;
import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
/** Samples for AccountFilters Update. */
/**
* Samples for AccountFilters Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-update.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-
* update.json
*/
/**
* Sample code: Update an Account Filter.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void updateAnAccountFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
AccountFilter resource =
manager
.accountFilters()
.getWithResponse(
"contosorg",
"contosomedia",
"accountFilterWithTimeWindowAndTrack",
com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
.withPresentationTimeRange(
new PresentationTimeRange()
.withStartTimestamp(10L)
.withEndTimestamp(170000000L)
.withPresentationWindowDuration(9223372036854775000L)
.withLiveBackoffDuration(0L)
.withTimescale(10000000L)
.withForceEndTimestamp(false))
.withFirstQuality(new FirstQuality().withBitrate(128000))
.apply();
AccountFilter resource = manager.accountFilters().getWithResponse("contosorg", "contosomedia",
"accountFilterWithTimeWindowAndTrack", com.azure.core.util.Context.NONE).getValue();
resource.update()
.withPresentationTimeRange(new PresentationTimeRange().withStartTimestamp(10L).withEndTimestamp(170000000L)
.withPresentationWindowDuration(9223372036854775000L).withLiveBackoffDuration(0L)
.withTimescale(10000000L).withForceEndTimestamp(false))
.withFirstQuality(new FirstQuality().withBitrate(128000)).apply();
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,26 +1,25 @@
import com.azure.resourcemanager.mediaservices.models.TextTrack;
import com.azure.resourcemanager.mediaservices.models.Visibility;
/** Samples for Tracks CreateOrUpdate. */
/**
* Samples for Tracks CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-create.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-
* create.json
*/
/**
* Sample code: Creates a Track.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void createsATrack(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.tracks()
.define("text3")
.withExistingAsset("contosorg", "contosomedia", "ClimbingMountRainer")
.withTrack(
new TextTrack()
.withFileName("text3.ttml")
.withDisplayName("A new track")
.withPlayerVisibility(Visibility.VISIBLE))
manager.tracks().define("text3").withExistingAsset("contosorg", "contosomedia", "ClimbingMountRainer")
.withTrack(new TextTrack().withFileName("text3.ttml").withDisplayName("A new track")
.withPlayerVisibility(Visibility.VISIBLE))
.create();
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,16 +1,20 @@
/** Samples for Tracks Delete. */
/**
* Samples for Tracks Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-delete.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-
* delete.json
*/
/**
* Sample code: Delete a Track.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void deleteATrack(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.tracks()
.delete("contosorg", "contosomedia", "ClimbingMountRainer", "text2", com.azure.core.util.Context.NONE);
manager.tracks().delete("contosorg", "contosomedia", "ClimbingMountRainer", "text2",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,17 +1,20 @@
/** Samples for Tracks Get. */
/**
* Samples for Tracks Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-get-by-name.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-get
* -by-name.json
*/
/**
* Sample code: Get a Track by name.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void getATrackByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
manager
.tracks()
.getWithResponse(
"contosorg", "contosomedia", "ClimbingMountRainer", "text1", com.azure.core.util.Context.NONE);
manager.tracks().getWithResponse("contosorg", "contosomedia", "ClimbingMountRainer", "text1",
com.azure.core.util.Context.NONE);
}
}

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

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

@ -1,11 +1,16 @@
/** Samples for Tracks List. */
/**
* Samples for Tracks List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-list-all.json
* x-ms-original-file:
* specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-
* list-all.json
*/
/**
* Sample code: Lists all Tracks.
*
*
* @param manager Entry point to MediaServicesManager.
*/
public static void listsAllTracks(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {

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

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.1/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mediaservices_2.4.0-beta.2/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md"}

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше