diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md index 34295de14af85..7327b0d494478 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 2.3.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2022-12-01) + +- Azure Resource Manager MediaServices client library for Java. This package contains Microsoft Azure SDK for MediaServices Management SDK. This Swagger was generated by the API Framework. Package tag package-encoding-2022-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md index 36c7ccc56055d..58b0a1a754818 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md @@ -2,7 +2,7 @@ Azure Resource Manager MediaServices client library for Java. -This package contains Microsoft Azure SDK for MediaServices Management SDK. This Swagger was generated by the API Framework. Package tag package-metadata-2022-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for MediaServices Management SDK. This Swagger was generated by the API Framework. Package tag package-encoding-2022-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-mediaservices - 2.2.0 + 2.3.0-beta.1 ``` [//]: # ({x-version-update-end}) @@ -41,19 +41,19 @@ Various documentation is available to help you get started Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client. -[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation. +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. ### Authentication -By default, Azure Active Directory token authentication depends on correct configure of following environment variables. +By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. - `AZURE_CLIENT_ID` for Azure client ID. - `AZURE_TENANT_ID` for Azure tenant ID. - `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. -In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`. +In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -With above configuration, `azure` client can be authenticated by following code: +With above configuration, `azure` client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -139,13 +139,13 @@ asset.refresh(); ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide][cg]. -1. Fork it -1. Create your feature branch (`git checkout -b my-new-feature`) -1. Commit your changes (`git commit -am 'Add some feature'`) -1. Push to the branch (`git push origin my-new-feature`) -1. Create new Pull Request +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS @@ -156,3 +156,6 @@ For details on contributing to this repository, see the [contributing guide](htt [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md index 45661b317a856..cdd625dbc5758 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md @@ -176,7 +176,7 @@ import java.util.Arrays; /** Samples for AccountFilters CreateOrUpdate. */ public final class AccountFiltersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. @@ -241,7 +241,7 @@ import com.azure.core.util.Context; /** Samples for AccountFilters Delete. */ public final class AccountFiltersDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. @@ -264,7 +264,7 @@ import com.azure.core.util.Context; /** Samples for AccountFilters Get. */ public final class AccountFiltersGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. @@ -285,7 +285,7 @@ import com.azure.core.util.Context; /** Samples for AccountFilters List. */ public final class AccountFiltersListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. @@ -309,7 +309,7 @@ import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange; /** Samples for AccountFilters Update. */ public final class AccountFiltersUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. @@ -352,7 +352,7 @@ import java.util.Arrays; /** Samples for AssetFilters CreateOrUpdate. */ public final class AssetFiltersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-create.json */ /** * Sample code: Create an Asset Filter. @@ -417,7 +417,7 @@ import com.azure.core.util.Context; /** Samples for AssetFilters Delete. */ public final class AssetFiltersDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-delete.json */ /** * Sample code: Delete an Asset Filter. @@ -441,7 +441,7 @@ import com.azure.core.util.Context; /** Samples for AssetFilters Get. */ public final class AssetFiltersGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-get-by-name.json */ /** * Sample code: Get an Asset Filter by name. @@ -465,7 +465,7 @@ import com.azure.core.util.Context; /** Samples for AssetFilters List. */ public final class AssetFiltersListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-list-all.json */ /** * Sample code: List all Asset Filters. @@ -489,7 +489,7 @@ import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange; /** Samples for AssetFilters Update. */ public final class AssetFiltersUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-update.json */ /** * Sample code: Update an Asset Filter. @@ -525,7 +525,7 @@ public final class AssetFiltersUpdateSamples { /** Samples for Assets CreateOrUpdate. */ public final class AssetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-create.json */ /** * Sample code: Create an Asset. @@ -552,7 +552,7 @@ import com.azure.core.util.Context; /** Samples for Assets Delete. */ public final class AssetsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-delete.json */ /** * Sample code: Delete an Asset. @@ -573,7 +573,7 @@ import com.azure.core.util.Context; /** Samples for Assets Get. */ public final class AssetsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-by-name.json */ /** * Sample code: Get an Asset by name. @@ -594,7 +594,7 @@ import com.azure.core.util.Context; /** Samples for Assets GetEncryptionKey. */ public final class AssetsGetEncryptionKeySamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-encryption-keys.json */ /** * Sample code: Get Asset Storage Encryption Keys. @@ -618,7 +618,7 @@ import com.azure.core.util.Context; /** Samples for Assets List. */ public final class AssetsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-by-date.json */ /** * Sample code: List Asset ordered by date. @@ -630,7 +630,7 @@ public final class AssetsListSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-in-date-range.json */ /** * Sample code: List Asset created in a date range. @@ -651,7 +651,7 @@ public final class AssetsListSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-all.json */ /** * Sample code: List all Assets. @@ -675,7 +675,7 @@ import java.time.OffsetDateTime; /** Samples for Assets ListContainerSas. */ public final class AssetsListContainerSasSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-sas-urls.json */ /** * Sample code: List Asset SAS URLs. @@ -705,7 +705,7 @@ import com.azure.core.util.Context; /** Samples for Assets ListStreamingLocators. */ public final class AssetsListStreamingLocatorsSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-streaming-locators.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-streaming-locators.json */ /** * Sample code: List Asset SAS URLs. @@ -729,7 +729,7 @@ import com.azure.resourcemanager.mediaservices.models.Asset; /** Samples for Assets Update. */ public final class AssetsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-update.json */ /** * Sample code: Update an Asset. @@ -769,7 +769,7 @@ import java.util.Arrays; /** Samples for ContentKeyPolicies CreateOrUpdate. */ public final class ContentKeyPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json */ /** * Sample code: Creates a Content Key Policy with multiple options. @@ -808,7 +808,7 @@ public final class ContentKeyPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json */ /** * Sample code: Creates a Content Key Policy with ClearKey option and Token Restriction. @@ -840,7 +840,7 @@ public final class ContentKeyPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-playready-open.json */ /** * Sample code: Creates a Content Key Policy with PlayReady option and Open Restriction. @@ -888,7 +888,7 @@ public final class ContentKeyPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json */ /** * Sample code: Creates a Content Key Policy with Widevine option and Token Restriction. @@ -938,7 +938,7 @@ import com.azure.core.util.Context; /** Samples for ContentKeyPolicies Delete. */ public final class ContentKeyPoliciesDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-delete.json */ /** * Sample code: Delete a Key Policy. @@ -961,7 +961,7 @@ import com.azure.core.util.Context; /** Samples for ContentKeyPolicies Get. */ public final class ContentKeyPoliciesGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-by-name.json */ /** * Sample code: Get a Content Key Policy by name. @@ -985,7 +985,7 @@ import com.azure.core.util.Context; /** Samples for ContentKeyPolicies GetPolicyPropertiesWithSecrets. */ public final class ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json */ /** * Sample code: Get an Content Key Policy with secrets. @@ -1010,7 +1010,7 @@ import com.azure.core.util.Context; /** Samples for ContentKeyPolicies List. */ public final class ContentKeyPoliciesListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-all.json */ /** * Sample code: Lists all Content Key Policies. @@ -1023,7 +1023,7 @@ public final class ContentKeyPoliciesListSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json */ /** * Sample code: Lists Content Key Policies with created and last modified filters. @@ -1044,7 +1044,7 @@ public final class ContentKeyPoliciesListSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json */ /** * Sample code: Lists Content Key Policies ordered by last modified. @@ -1073,7 +1073,7 @@ import java.util.Arrays; /** Samples for ContentKeyPolicies Update. */ public final class ContentKeyPoliciesUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-update.json */ /** * Sample code: Update a Content Key Policy. @@ -1109,7 +1109,7 @@ import com.azure.core.util.Context; /** Samples for Jobs CancelJob. */ public final class JobsCancelJobSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1136,7 +1136,7 @@ import java.util.Map; /** Samples for Jobs Create. */ public final class JobsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1175,7 +1175,7 @@ import com.azure.core.util.Context; /** Samples for Jobs Delete. */ public final class JobsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1198,7 +1198,7 @@ import com.azure.core.util.Context; /** Samples for Jobs Get. */ public final class JobsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1219,7 +1219,7 @@ import com.azure.core.util.Context; /** Samples for Jobs List. */ public final class JobsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1240,7 +1240,7 @@ public final class JobsListSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1261,7 +1261,7 @@ public final class JobsListSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1282,7 +1282,7 @@ public final class JobsListSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1297,14 +1297,14 @@ public final class JobsListSamples { "contosoresources", "contosomedia", "exampleTransform", - "properties/lastmodified ge 2021-11-01T00:00:10.0000000Z and properties/lastmodified le" - + " 2021-11-01T00:00:20.0000000Z", + "properties/lastmodified ge 2021-06-01T00:00:10.0000000Z and properties/lastmodified le" + + " 2021-06-01T00:00:20.0000000Z", "properties/lastmodified desc", Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1319,14 +1319,14 @@ public final class JobsListSamples { "contosoresources", "contosomedia", "exampleTransform", - "properties/created ge 2021-11-01T00:00:10.0000000Z and properties/created le" - + " 2021-11-01T00:00:20.0000000Z", + "properties/created ge 2021-06-01T00:00:10.0000000Z and properties/created le" + + " 2021-06-01T00:00:20.0000000Z", "properties/created", Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1339,7 +1339,7 @@ public final class JobsListSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1374,7 +1374,7 @@ import java.util.Arrays; /** Samples for Jobs Update. */ public final class JobsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -1406,7 +1406,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents Allocate. */ public final class LiveEventsAllocateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-allocate.json */ /** * Sample code: Allocate a LiveEvent. @@ -1427,7 +1427,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents AsyncOperation. */ public final class LiveEventsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the LiveEvent operation status. @@ -1461,7 +1461,7 @@ import java.util.Map; /** Samples for LiveEvents Create. */ public final class LiveEventsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-create.json */ /** * Sample code: Create a LiveEvent. @@ -1490,7 +1490,7 @@ public final class LiveEventsCreateSamples { .withName("AllowAll") .withAddress("0.0.0.0") .withSubnetPrefixLength(0))))) - .withKeyFrameIntervalDuration("PT6S")) + .withKeyFrameIntervalDuration("fakeTokenPlaceholder")) .withPreview( new LiveEventPreview() .withAccessControl( @@ -1528,7 +1528,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents Delete. */ public final class LiveEventsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-delete.json */ /** * Sample code: Delete a LiveEvent. @@ -1549,7 +1549,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents Get. */ public final class LiveEventsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-by-name.json */ /** * Sample code: Get a LiveEvent by name. @@ -1570,7 +1570,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents List. */ public final class LiveEventsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-all.json */ /** * Sample code: List all LiveEvents. @@ -1591,7 +1591,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents OperationLocation. */ public final class LiveEventsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-operation-location.json */ /** * Sample code: Get the LiveEvent operation status. @@ -1620,7 +1620,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents Reset. */ public final class LiveEventsResetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-reset.json */ /** * Sample code: Reset a LiveEvent. @@ -1641,7 +1641,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents Start. */ public final class LiveEventsStartSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-start.json */ /** * Sample code: Start a LiveEvent. @@ -1663,7 +1663,7 @@ import com.azure.resourcemanager.mediaservices.models.LiveEventActionInput; /** Samples for LiveEvents Stop. */ public final class LiveEventsStopSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-stop.json */ /** * Sample code: Stop a LiveEvent. @@ -1702,7 +1702,7 @@ import java.util.Map; /** Samples for LiveEvents Update. */ public final class LiveEventsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-update.json */ /** * Sample code: Update a LiveEvent. @@ -1728,7 +1728,7 @@ public final class LiveEventsUpdateSamples { new IpAccessControl() .withAllow( Arrays.asList(new IpRange().withName("AllowOne").withAddress("192.1.1.0"))))) - .withKeyFrameIntervalDuration("PT6S")) + .withKeyFrameIntervalDuration("fakeTokenPlaceholder")) .withPreview( new LiveEventPreview() .withAccessControl( @@ -1761,7 +1761,7 @@ import com.azure.core.util.Context; /** Samples for LiveOutputs AsyncOperation. */ public final class LiveOutputsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the LiveOutput operation status. @@ -1787,7 +1787,7 @@ import java.time.Duration; /** Samples for LiveOutputs Create. */ public final class LiveOutputsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-create.json */ /** * Sample code: Create a LiveOutput. @@ -1818,7 +1818,7 @@ import com.azure.core.util.Context; /** Samples for LiveOutputs Delete. */ public final class LiveOutputsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-delete.json */ /** * Sample code: Delete a LiveOutput. @@ -1839,7 +1839,7 @@ import com.azure.core.util.Context; /** Samples for LiveOutputs Get. */ public final class LiveOutputsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-by-name.json */ /** * Sample code: Get a LiveOutput by name. @@ -1862,7 +1862,7 @@ import com.azure.core.util.Context; /** Samples for LiveOutputs List. */ public final class LiveOutputsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-all.json */ /** * Sample code: List all LiveOutputs. @@ -1883,7 +1883,7 @@ import com.azure.core.util.Context; /** Samples for LiveOutputs OperationLocation. */ public final class LiveOutputsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-operation-location.json */ /** * Sample code: Get the LiveOutput operation status. @@ -1914,7 +1914,7 @@ import com.azure.resourcemanager.mediaservices.models.CheckNameAvailabilityInput /** Samples for Locations CheckNameAvailability. */ public final class LocationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-check-name-availability.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-check-name-availability.json */ /** * Sample code: Check Name Availability. @@ -1940,7 +1940,7 @@ import com.azure.core.util.Context; /** Samples for MediaServicesOperationResults Get. */ public final class MediaServicesOperationResultsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-result-by-id.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-result-by-id.json */ /** * Sample code: Get status of asynchronous operation. @@ -1964,7 +1964,7 @@ import com.azure.core.util.Context; /** Samples for MediaServicesOperationStatuses Get. */ public final class MediaServicesOperationStatusesGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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/2021-11-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. @@ -1979,7 +1979,7 @@ public final class MediaServicesOperationStatusesGetSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-status-by-id-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is completed. @@ -1994,7 +1994,7 @@ public final class MediaServicesOperationStatusesGetSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is ongoing. @@ -2032,7 +2032,7 @@ import java.util.Map; /** Samples for Mediaservices CreateOrUpdate. */ public final class MediaservicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/async-accounts-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json */ /** * Sample code: Create a Media Services account. @@ -2104,7 +2104,7 @@ import com.azure.core.util.Context; /** Samples for Mediaservices Delete. */ public final class MediaservicesDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-delete.json */ /** * Sample code: Delete a Media Services account. @@ -2113,7 +2113,7 @@ public final class MediaservicesDeleteSamples { */ public static void deleteAMediaServicesAccount( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.mediaservices().deleteWithResponse("contoso", "contososports", Context.NONE); + manager.mediaservices().deleteByResourceGroupWithResponse("contoso", "contososports", Context.NONE); } } ``` @@ -2126,7 +2126,7 @@ import com.azure.core.util.Context; /** Samples for Mediaservices GetByResourceGroup. */ public final class MediaservicesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-get-by-name.json */ /** * Sample code: Get a Media Services account by name. @@ -2148,7 +2148,7 @@ import com.azure.core.util.Context; /** Samples for Mediaservices List. */ public final class MediaservicesListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-subscription-list-all-accounts.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-subscription-list-all-accounts.json */ /** * Sample code: List all Media Services accounts. @@ -2170,7 +2170,7 @@ import com.azure.core.util.Context; /** Samples for Mediaservices ListByResourceGroup. */ public final class MediaservicesListByResourceGroupSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-list-all-accounts.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-all-accounts.json */ /** * Sample code: List all Media Services accounts. @@ -2193,7 +2193,7 @@ import com.azure.resourcemanager.mediaservices.models.ListEdgePoliciesInput; /** Samples for Mediaservices ListEdgePolicies. */ public final class MediaservicesListEdgePoliciesSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-list-media-edge-policies.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-media-edge-policies.json */ /** * Sample code: List the media edge policies. @@ -2221,7 +2221,7 @@ import com.azure.resourcemanager.mediaservices.models.SyncStorageKeysInput; /** Samples for Mediaservices SyncStorageKeys. */ public final class MediaservicesSyncStorageKeysSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-sync-storage-keys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-sync-storage-keys.json */ /** * Sample code: Synchronizes Storage Account Keys. @@ -2249,7 +2249,7 @@ import java.util.Map; /** Samples for Mediaservices Update. */ public final class MediaservicesUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/async-accounts-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-update.json */ /** * Sample code: Update a Media Services accounts. @@ -2284,7 +2284,7 @@ import com.azure.core.util.Context; /** Samples for OperationResults Get. */ public final class OperationResultsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json */ /** * Sample code: Get result of asynchronous operation. @@ -2314,7 +2314,7 @@ import com.azure.core.util.Context; /** Samples for OperationStatuses Get. */ public final class OperationStatusesGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json */ /** * Sample code: Get status of asynchronous operation when it is completed with error. @@ -2335,7 +2335,7 @@ public final class OperationStatusesGetSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is completed. @@ -2356,7 +2356,7 @@ public final class OperationStatusesGetSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is ongoing. @@ -2386,7 +2386,7 @@ import com.azure.core.util.Context; /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/operations-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/operations-list-all.json */ /** * Sample code: List Operations. @@ -2410,7 +2410,7 @@ import com.azure.resourcemanager.mediaservices.models.PrivateLinkServiceConnecti /** Samples for PrivateEndpointConnections CreateOrUpdate. */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-put.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-put.json */ /** * Sample code: Update private endpoint connection. @@ -2443,7 +2443,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-delete.json */ /** * Sample code: Delete private endpoint connection. @@ -2467,7 +2467,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-get-by-name.json */ /** * Sample code: Get private endpoint connection. @@ -2491,7 +2491,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-list.json */ /** * Sample code: Get all private endpoint connections. @@ -2513,7 +2513,7 @@ import com.azure.core.util.Context; /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-link-resources-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-get-by-name.json */ /** * Sample code: Get details of a group ID. @@ -2534,7 +2534,7 @@ import com.azure.core.util.Context; /** Samples for PrivateLinkResources List. */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-link-resources-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-list.json */ /** * Sample code: Get list of all group IDs. @@ -2555,7 +2555,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints AsyncOperation. */ public final class StreamingEndpointsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the streaming endpoint operation status. @@ -2588,7 +2588,7 @@ import java.util.Map; /** Samples for StreamingEndpoints Create. */ public final class StreamingEndpointsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-create.json */ /** * Sample code: Create a streaming endpoint. @@ -2614,11 +2614,11 @@ public final class StreamingEndpointsCreateSamples { .asList( new AkamaiSignatureHeaderAuthenticationKey() .withIdentifier("id1") - .withBase64Key("dGVzdGlkMQ==") + .withBase64Key("fakeTokenPlaceholder") .withExpiration(OffsetDateTime.parse("2029-12-31T16:00:00-08:00")), new AkamaiSignatureHeaderAuthenticationKey() .withIdentifier("id2") - .withBase64Key("dGVzdGlkMQ==") + .withBase64Key("fakeTokenPlaceholder") .withExpiration(OffsetDateTime.parse("2030-12-31T16:00:00-08:00"))))) .withIp( new IpAccessControl() @@ -2648,7 +2648,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints Delete. */ public final class StreamingEndpointsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-delete.json */ /** * Sample code: Delete a streaming endpoint. @@ -2669,7 +2669,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints Get. */ public final class StreamingEndpointsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-by-name.json */ /** * Sample code: Get a streaming endpoint by name. @@ -2693,7 +2693,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints List. */ public final class StreamingEndpointsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-all.json */ /** * Sample code: List all streaming endpoints. @@ -2714,7 +2714,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints OperationLocation. */ public final class StreamingEndpointsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-operation-location.json */ /** * Sample code: Get the streaming endpoint operation status. @@ -2744,7 +2744,7 @@ import com.azure.resourcemanager.mediaservices.models.StreamingEntityScaleUnit; /** Samples for StreamingEndpoints Scale. */ public final class StreamingEndpointsScaleSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-scale.json */ /** * Sample code: Scale a StreamingEndpoint. @@ -2772,7 +2772,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints Skus. */ public final class StreamingEndpointsSkusSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-skus.json */ /** * Sample code: List a streaming endpoint sku. @@ -2795,7 +2795,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints Start. */ public final class StreamingEndpointsStartSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-start.json */ /** * Sample code: Start a streaming endpoint. @@ -2816,7 +2816,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints Stop. */ public final class StreamingEndpointsStopSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-stop.json */ /** * Sample code: Stop a streaming endpoint. @@ -2840,7 +2840,7 @@ import java.util.Map; /** Samples for StreamingEndpoints Update. */ public final class StreamingEndpointsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-update.json */ /** * Sample code: Update a streaming endpoint. @@ -2886,7 +2886,7 @@ import java.util.UUID; /** Samples for StreamingLocators Create. */ public final class StreamingLocatorsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-clear.json */ /** * Sample code: Creates a Streaming Locator with clear streaming. @@ -2905,7 +2905,7 @@ public final class StreamingLocatorsCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure.json */ /** * Sample code: Creates a Streaming Locator with secure streaming. @@ -2926,7 +2926,7 @@ public final class StreamingLocatorsCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json */ /** * Sample code: Creates a Streaming Locator with user defined content keys. @@ -2970,7 +2970,7 @@ import com.azure.core.util.Context; /** Samples for StreamingLocators Delete. */ public final class StreamingLocatorsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-delete.json */ /** * Sample code: Delete a Streaming Locator. @@ -2993,7 +2993,7 @@ import com.azure.core.util.Context; /** Samples for StreamingLocators Get. */ public final class StreamingLocatorsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-get-by-name.json */ /** * Sample code: Get a Streaming Locator by name. @@ -3015,7 +3015,7 @@ import com.azure.core.util.Context; /** Samples for StreamingLocators List. */ public final class StreamingLocatorsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list.json */ /** * Sample code: Lists Streaming Locators. @@ -3036,7 +3036,7 @@ import com.azure.core.util.Context; /** Samples for StreamingLocators ListContentKeys. */ public final class StreamingLocatorsListContentKeysSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-content-keys.json */ /** * Sample code: List Content Keys. @@ -3059,7 +3059,7 @@ import com.azure.core.util.Context; /** Samples for StreamingLocators ListPaths. */ public final class StreamingLocatorsListPathsSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json */ /** * Sample code: List Paths which has streaming paths only. @@ -3074,7 +3074,7 @@ public final class StreamingLocatorsListPathsSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json */ /** * Sample code: List Paths which has streaming paths and download paths. @@ -3115,7 +3115,7 @@ import java.util.Arrays; /** Samples for StreamingPolicies Create. */ public final class StreamingPoliciesCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json */ /** * Sample code: Creates a Streaming Policy with secure streaming. @@ -3139,8 +3139,7 @@ public final class StreamingPoliciesCreateSamples { .withSmoothStreaming(true)) .withContentKeys( new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("aesDefaultKey"))) - .withCustomKeyAcquisitionUrlTemplate( - "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}")) + .withCustomKeyAcquisitionUrlTemplate("fakeTokenPlaceholder")) .withCommonEncryptionCenc( new CommonEncryptionCenc() .withEnabledProtocols( @@ -3194,7 +3193,7 @@ public final class StreamingPoliciesCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json */ /** * Sample code: Creates a Streaming Policy with ClearKey encryption in commonEncryptionCenc. @@ -3231,13 +3230,12 @@ public final class StreamingPoliciesCreateSamples { new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cencDefaultKey"))) .withClearKeyEncryptionConfiguration( new ClearKeyEncryptionConfiguration() - .withCustomKeysAcquisitionUrlTemplate( - "https://contoso.com/{AlternativeMediaId}/clearkey/"))) + .withCustomKeysAcquisitionUrlTemplate("fakeTokenPlaceholder"))) .create(); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json */ /** * Sample code: Creates a Streaming Policy with commonEncryptionCenc only. @@ -3287,7 +3285,7 @@ public final class StreamingPoliciesCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json */ /** * Sample code: Creates a Streaming Policy with commonEncryptionCbcs only. @@ -3322,7 +3320,7 @@ public final class StreamingPoliciesCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json */ /** * Sample code: Creates a Streaming Policy with ClearKey encryption in commonEncryptionCbcs. @@ -3348,13 +3346,12 @@ public final class StreamingPoliciesCreateSamples { new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cbcsDefaultKey"))) .withClearKeyEncryptionConfiguration( new ClearKeyEncryptionConfiguration() - .withCustomKeysAcquisitionUrlTemplate( - "https://contoso.com/{AlternativeMediaId}/clearkey/"))) + .withCustomKeysAcquisitionUrlTemplate("fakeTokenPlaceholder"))) .create(); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-clear.json */ /** * Sample code: Creates a Streaming Policy with clear streaming. @@ -3379,7 +3376,7 @@ public final class StreamingPoliciesCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json */ /** * Sample code: Creates a Streaming Policy with envelopeEncryption only. @@ -3403,8 +3400,7 @@ public final class StreamingPoliciesCreateSamples { .withSmoothStreaming(true)) .withContentKeys( new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("aesDefaultKey"))) - .withCustomKeyAcquisitionUrlTemplate( - "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}")) + .withCustomKeyAcquisitionUrlTemplate("fakeTokenPlaceholder")) .create(); } } @@ -3418,7 +3414,7 @@ import com.azure.core.util.Context; /** Samples for StreamingPolicies Delete. */ public final class StreamingPoliciesDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-delete.json */ /** * Sample code: Delete a Streaming Policy. @@ -3442,7 +3438,7 @@ import com.azure.core.util.Context; /** Samples for StreamingPolicies Get. */ public final class StreamingPoliciesGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policy-get-by-name.json */ /** * Sample code: Get a Streaming Policy by name. @@ -3463,7 +3459,7 @@ import com.azure.core.util.Context; /** Samples for StreamingPolicies List. */ public final class StreamingPoliciesListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-list.json */ /** * Sample code: Lists Streaming Policies. @@ -3485,7 +3481,7 @@ import com.azure.resourcemanager.mediaservices.models.Visibility; /** Samples for Tracks CreateOrUpdate. */ public final class TracksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. @@ -3515,7 +3511,7 @@ import com.azure.core.util.Context; /** Samples for Tracks Delete. */ public final class TracksDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. @@ -3536,7 +3532,7 @@ import com.azure.core.util.Context; /** Samples for Tracks Get. */ public final class TracksGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. @@ -3557,7 +3553,7 @@ import com.azure.core.util.Context; /** Samples for Tracks List. */ public final class TracksListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. @@ -3580,7 +3576,7 @@ import com.azure.resourcemanager.mediaservices.models.TextTrack; /** Samples for Tracks Update. */ public final class TracksUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update.json */ /** * Sample code: Update a Track. @@ -3606,7 +3602,7 @@ import com.azure.core.util.Context; /** Samples for Tracks UpdateTrackData. */ public final class TracksUpdateTrackDataSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update-data.json */ /** * Sample code: Update the data for a tracks. @@ -3630,7 +3626,7 @@ import java.util.Arrays; /** Samples for Transforms CreateOrUpdate. */ public final class TransformsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -3663,7 +3659,7 @@ import com.azure.core.util.Context; /** Samples for Transforms Delete. */ public final class TransformsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -3684,7 +3680,7 @@ import com.azure.core.util.Context; /** Samples for Transforms Get. */ public final class TransformsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -3705,7 +3701,7 @@ import com.azure.core.util.Context; /** Samples for Transforms List. */ public final class TransformsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -3719,14 +3715,14 @@ public final class TransformsListSamples { .list( "contosoresources", "contosomedia", - "properties/created gt 2021-11-01T00:00:00.0000000Z and properties/created le" - + " 2021-11-01T00:00:10.0000000Z", + "properties/created gt 2021-06-01T00:00:00.0000000Z and properties/created le" + + " 2021-06-01T00:00:10.0000000Z", "properties/created", Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -3746,7 +3742,7 @@ public final class TransformsListSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -3760,14 +3756,14 @@ public final class TransformsListSamples { .list( "contosoresources", "contosomedia", - "properties/lastmodified gt 2021-11-01T00:00:00.0000000Z and properties/lastmodified le" - + " 2021-11-01T00:00:10.0000000Z", + "properties/lastmodified gt 2021-06-01T00:00:00.0000000Z and properties/lastmodified le" + + " 2021-06-01T00:00:10.0000000Z", "properties/lastmodified desc", Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -3794,7 +3790,7 @@ import java.util.Arrays; /** Samples for Transforms Update. */ public final class TransformsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml b/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml index f1639b3d705b0..d3153c37b288a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for MediaServices Management - This package contains Microsoft Azure SDK for MediaServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Swagger was generated by the API Framework. Package tag package-metadata-2022-08. + This package contains Microsoft Azure SDK for MediaServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Swagger was generated by the API Framework. Package tag package-encoding-2022-07. https://github.com/Azure/azure-sdk-for-java @@ -39,7 +39,6 @@ UTF-8 true - true diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java index e999753e7b674..398e2f1b320b6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java @@ -283,7 +283,7 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil .append("-") .append("com.azure.resourcemanager.mediaservices") .append("/") - .append("2.2.0"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AccountFiltersClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AccountFiltersClient.java index aec4623327133..6f9cb4d3348aa 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AccountFiltersClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AccountFiltersClient.java @@ -44,22 +44,6 @@ public interface AccountFiltersClient { @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String accountName, Context context); - /** - * Get an Account Filter. - * - *

Get the details of an Account Filter in the Media Services account. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param filterName The Account Filter name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Account Filter in the Media Services account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AccountFilterInner get(String resourceGroupName, String accountName, String filterName); - /** * Get an Account Filter. * @@ -79,22 +63,20 @@ Response getWithResponse( String resourceGroupName, String accountName, String filterName, Context context); /** - * Create or update an Account Filter + * Get an Account Filter. * - *

Creates or updates an Account Filter in the Media Services account. + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Account Filter. + * @return the details of an Account Filter in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - AccountFilterInner createOrUpdate( - String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters); + AccountFilterInner get(String resourceGroupName, String accountName, String filterName); /** * Create or update an Account Filter @@ -120,19 +102,22 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete an Account Filter. + * Create or update an Account Filter * - *

Deletes an Account Filter in the Media Services account. + *

Creates or updates an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Account Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String filterName); + AccountFilterInner createOrUpdate( + String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters); /** * Delete an Account Filter. @@ -152,22 +137,19 @@ Response createOrUpdateWithResponse( Response deleteWithResponse(String resourceGroupName, String accountName, String filterName, Context context); /** - * Update an Account Filter + * Delete an Account Filter. * - *

Updates an existing Account Filter in the Media Services account. + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Account Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - AccountFilterInner update( - String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters); + void delete(String resourceGroupName, String accountName, String filterName); /** * Update an Account Filter @@ -191,4 +173,22 @@ Response updateWithResponse( String filterName, AccountFilterInner parameters, Context context); + + /** + * Update an Account Filter + * + *

Updates an existing Account Filter in the Media Services account. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param filterName The Account Filter name. + * @param parameters The request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Account Filter. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AccountFilterInner update( + String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetFiltersClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetFiltersClient.java index e8e448e825ec3..fabde06a579dc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetFiltersClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetFiltersClient.java @@ -47,23 +47,6 @@ public interface AssetFiltersClient { PagedIterable list( String resourceGroupName, String accountName, String assetName, Context context); - /** - * Get an Asset Filter. - * - *

Get the details of an Asset Filter associated with the specified Asset. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param assetName The Asset name. - * @param filterName The Asset Filter name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Asset Filter associated with the specified Asset. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AssetFilterInner get(String resourceGroupName, String accountName, String assetName, String filterName); - /** * Get an Asset Filter. * @@ -84,23 +67,21 @@ Response getWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** - * Create or update an Asset Filter + * Get an Asset Filter. * - *

Creates or updates an Asset Filter associated with the specified Asset. + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset Filter. + * @return the details of an Asset Filter associated with the specified Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetFilterInner createOrUpdate( - String resourceGroupName, String accountName, String assetName, String filterName, AssetFilterInner parameters); + AssetFilterInner get(String resourceGroupName, String accountName, String assetName, String filterName); /** * Create or update an Asset Filter @@ -128,20 +109,23 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete an Asset Filter. + * Create or update an Asset Filter * - *

Deletes an Asset Filter associated with the specified Asset. + *

Creates or updates an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Asset Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String assetName, String filterName); + AssetFilterInner createOrUpdate( + String resourceGroupName, String accountName, String assetName, String filterName, AssetFilterInner parameters); /** * Delete an Asset Filter. @@ -163,23 +147,20 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** - * Update an Asset Filter + * Delete an Asset Filter. * - *

Updates an existing Asset Filter associated with the specified Asset. + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetFilterInner update( - String resourceGroupName, String accountName, String assetName, String filterName, AssetFilterInner parameters); + void delete(String resourceGroupName, String accountName, String assetName, String filterName); /** * Update an Asset Filter @@ -205,4 +186,23 @@ Response updateWithResponse( String filterName, AssetFilterInner parameters, Context context); + + /** + * Update an Asset Filter + * + *

Updates an existing Asset Filter associated with the specified Asset. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param assetName The Asset name. + * @param filterName The Asset Filter name. + * @param parameters The request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Asset Filter. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AssetFilterInner update( + String resourceGroupName, String accountName, String assetName, String filterName, AssetFilterInner parameters); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetsClient.java index 9c35e9aa52851..cd20d6c0520b5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetsClient.java @@ -53,22 +53,6 @@ public interface AssetsClient { PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); - /** - * Get an Asset - * - *

Get the details of an Asset in the Media Services account. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param assetName The Asset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Asset in the Media Services account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AssetInner get(String resourceGroupName, String accountName, String assetName); - /** * Get an Asset * @@ -88,21 +72,20 @@ Response getWithResponse( String resourceGroupName, String accountName, String assetName, Context context); /** - * Create or update an Asset + * Get an Asset * - *

Creates or updates an Asset in the Media Services account. + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset. + * @return the details of an Asset in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetInner createOrUpdate(String resourceGroupName, String accountName, String assetName, AssetInner parameters); + AssetInner get(String resourceGroupName, String accountName, String assetName); /** * Create or update an Asset @@ -124,19 +107,21 @@ Response createOrUpdateWithResponse( String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context); /** - * Delete an Asset. + * Create or update an Asset * - *

Deletes an Asset in the Media Services account. + *

Creates or updates an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String assetName); + AssetInner createOrUpdate(String resourceGroupName, String accountName, String assetName, AssetInner parameters); /** * Delete an Asset. @@ -156,21 +141,19 @@ Response createOrUpdateWithResponse( Response deleteWithResponse(String resourceGroupName, String accountName, String assetName, Context context); /** - * Update an Asset + * Delete an Asset. * - *

Updates an existing Asset in the Media Services account. + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetInner update(String resourceGroupName, String accountName, String assetName, AssetInner parameters); + void delete(String resourceGroupName, String accountName, String assetName); /** * Update an Asset @@ -192,10 +175,9 @@ Response updateWithResponse( String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context); /** - * List the Asset URLs + * Update an Asset * - *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. - * The signatures are derived from the storage account keys. + *

Updates an existing Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -204,11 +186,10 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset Storage container SAS URLs. + * @return an Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetContainerSasInner listContainerSas( - String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters); + AssetInner update(String resourceGroupName, String accountName, String assetName, AssetInner parameters); /** * List the Asset URLs @@ -235,21 +216,23 @@ Response listContainerSasWithResponse( Context context); /** - * Gets the Asset storage key + * List the Asset URLs * - *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * @return the Asset Storage container SAS URLs. */ @ServiceMethod(returns = ReturnType.SINGLE) - StorageEncryptedAssetDecryptionDataInner getEncryptionKey( - String resourceGroupName, String accountName, String assetName); + AssetContainerSasInner listContainerSas( + String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters); /** * Gets the Asset storage key @@ -271,9 +254,9 @@ Response getEncryptionKeyWithResponse( String resourceGroupName, String accountName, String assetName, Context context); /** - * List Streaming Locators + * Gets the Asset storage key * - *

Lists Streaming Locators which are associated with this asset. + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -281,10 +264,10 @@ Response getEncryptionKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Streaming Locators associated with this Asset. + * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. */ @ServiceMethod(returns = ReturnType.SINGLE) - ListStreamingLocatorsResponseInner listStreamingLocators( + StorageEncryptedAssetDecryptionDataInner getEncryptionKey( String resourceGroupName, String accountName, String assetName); /** @@ -304,4 +287,21 @@ ListStreamingLocatorsResponseInner listStreamingLocators( @ServiceMethod(returns = ReturnType.SINGLE) Response listStreamingLocatorsWithResponse( String resourceGroupName, String accountName, String assetName, Context context); + + /** + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param assetName The Asset name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Streaming Locators associated with this Asset. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ListStreamingLocatorsResponseInner listStreamingLocators( + String resourceGroupName, String accountName, String assetName); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/ContentKeyPoliciesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/ContentKeyPoliciesClient.java index 397f799b7a1ad..f3266a405cba7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/ContentKeyPoliciesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/ContentKeyPoliciesClient.java @@ -50,22 +50,6 @@ public interface ContentKeyPoliciesClient { PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); - /** - * Get a Content Key Policy - * - *

Get the details of a Content Key Policy in the Media Services account. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param contentKeyPolicyName The Content Key Policy name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Content Key Policy in the Media Services account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ContentKeyPolicyInner get(String resourceGroupName, String accountName, String contentKeyPolicyName); - /** * Get a Content Key Policy * @@ -85,22 +69,20 @@ Response getWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** - * Create or update an Content Key Policy + * Get a Content Key Policy * - *

Create or update a Content Key Policy in the Media Services account. + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy resource. + * @return the details of a Content Key Policy in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - ContentKeyPolicyInner createOrUpdate( - String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters); + ContentKeyPolicyInner get(String resourceGroupName, String accountName, String contentKeyPolicyName); /** * Create or update an Content Key Policy @@ -126,19 +108,22 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete a Content Key Policy + * Create or update an Content Key Policy * - *

Deletes a Content Key Policy in the Media Services account. + *

Create or update a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Content Key Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String contentKeyPolicyName); + ContentKeyPolicyInner createOrUpdate( + String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters); /** * Delete a Content Key Policy @@ -159,22 +144,19 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** - * Update a Content Key Policy + * Delete a Content Key Policy * - *

Updates an existing Content Key Policy in the Media Services account. + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ContentKeyPolicyInner update( - String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters); + void delete(String resourceGroupName, String accountName, String contentKeyPolicyName); /** * Update a Content Key Policy @@ -200,21 +182,22 @@ Response updateWithResponse( Context context); /** - * Get a Content Key Policy with secrets + * Update a Content Key Policy * - *

Get a Content Key Policy including secret values. + *

Updates an existing Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy including secret values. + * @return a Content Key Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( - String resourceGroupName, String accountName, String contentKeyPolicyName); + ContentKeyPolicyInner update( + String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters); /** * Get a Content Key Policy with secrets @@ -233,4 +216,21 @@ ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( @ServiceMethod(returns = ReturnType.SINGLE) Response getPolicyPropertiesWithSecretsWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); + + /** + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param contentKeyPolicyName The Content Key Policy name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Content Key Policy including secret values. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( + String resourceGroupName, String accountName, String contentKeyPolicyName); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/JobsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/JobsClient.java index f5d919f2b3649..3e5bfa6ad7137 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/JobsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/JobsClient.java @@ -54,23 +54,6 @@ PagedIterable list( String orderby, Context context); - /** - * Get Job - * - *

Gets a Job. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param transformName The Transform name. - * @param jobName The Job name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - JobInner get(String resourceGroupName, String accountName, String transformName, String jobName); - /** * Get Job * @@ -91,23 +74,21 @@ Response getWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** - * Create Job + * Get Job * - *

Creates a Job. + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job resource type. + * @return a Job. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner create( - String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters); + JobInner get(String resourceGroupName, String accountName, String transformName, String jobName); /** * Create Job @@ -135,20 +116,23 @@ Response createWithResponse( Context context); /** - * Delete Job + * Create Job * - *

Deletes a Job. + *

Creates a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Job resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String transformName, String jobName); + JobInner create( + String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters); /** * Delete Job @@ -170,24 +154,20 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** - * Update Job + * Delete Job * - *

Update is only supported for description and priority. Updating Priority will take effect when the Job state - * is Queued or Scheduled and depending on the timing the priority update may be ignored. + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner update( - String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters); + void delete(String resourceGroupName, String accountName, String transformName, String jobName); /** * Update Job @@ -216,20 +196,24 @@ Response updateWithResponse( Context context); /** - * Cancel Job + * Update Job * - *

Cancel a Job. + *

Update is only supported for description and priority. Updating Priority will take effect when the Job state + * is Queued or Scheduled and depending on the timing the priority update may be ignored. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Job resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName); + JobInner update( + String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters); /** * Cancel Job @@ -249,4 +233,20 @@ Response updateWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) Response cancelJobWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); + + /** + * Cancel Job + * + *

Cancel a Job. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param transformName The Transform name. + * @param jobName The Job name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveEventsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveEventsClient.java index 23f14b074fa6b..f4b6b2bef027f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveEventsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveEventsClient.java @@ -56,13 +56,15 @@ public interface LiveEventsClient { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a live event. + * @return properties of a live event along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - LiveEventInner get(String resourceGroupName, String accountName, String liveEventName); + Response getWithResponse( + String resourceGroupName, String accountName, String liveEventName, Context context); /** * Get Live Event @@ -72,15 +74,13 @@ public interface LiveEventsClient { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a live event along with {@link Response}. + * @return properties of a live event. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, Context context); + LiveEventInner get(String resourceGroupName, String accountName, String liveEventName); /** * Create Live Event @@ -91,7 +91,6 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param parameters Live event properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -99,11 +98,7 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, LiveEventInner> beginCreate( - String resourceGroupName, - String accountName, - String liveEventName, - LiveEventInner parameters, - Boolean autoStart); + String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters); /** * Create Live Event @@ -130,29 +125,6 @@ SyncPoller, LiveEventInner> beginCreate( Boolean autoStart, Context context); - /** - * Create Live Event - * - *

Creates a new live event. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param liveEventName The name of the live event, maximum length is 32. - * @param parameters Live event properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the live event. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - LiveEventInner create( - String resourceGroupName, - String accountName, - String liveEventName, - LiveEventInner parameters, - Boolean autoStart); - /** * Create Live Event * @@ -618,13 +590,15 @@ SyncPoller, Void> beginReset( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -634,15 +608,13 @@ SyncPoller, Void> beginReset( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -653,14 +625,15 @@ Response asyncOperationWithResponse( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - LiveEventInner operationLocation( - String resourceGroupName, String accountName, String liveEventName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context); /** * Get operation status. @@ -671,13 +644,12 @@ LiveEventInner operationLocation( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response operationLocationWithResponse( - String resourceGroupName, String accountName, String liveEventName, String operationId, Context context); + LiveEventInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveOutputsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveOutputsClient.java index ba1afabd81096..7cb9b2b45bedd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveOutputsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveOutputsClient.java @@ -59,13 +59,15 @@ PagedIterable list( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output. + * @return a live output along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - LiveOutputInner get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); + Response getWithResponse( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); /** * Get Live Output @@ -76,15 +78,13 @@ PagedIterable list( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output along with {@link Response}. + * @return a live output. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); + LiveOutputInner get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); /** * Create Live Output @@ -261,13 +261,15 @@ void delete( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -277,15 +279,13 @@ void delete( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -297,14 +297,20 @@ Response asyncOperationWithResponse( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - LiveOutputInner operationLocation( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context); /** * Get operation status. @@ -316,18 +322,12 @@ LiveOutputInner operationLocation( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String liveEventName, - String liveOutputName, - String operationId, - Context context); + LiveOutputInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LocationsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LocationsClient.java index a648c8ef1f48a..950e115b6854b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LocationsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LocationsClient.java @@ -20,14 +20,15 @@ public interface LocationsClient { * * @param locationName Location name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response from the check name availability request. + * @return the response from the check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EntityNameAvailabilityCheckOutputInner checkNameAvailability( - String locationName, CheckNameAvailabilityInput parameters); + Response checkNameAvailabilityWithResponse( + String locationName, CheckNameAvailabilityInput parameters, Context context); /** * Check Name Availability @@ -36,13 +37,12 @@ EntityNameAvailabilityCheckOutputInner checkNameAvailability( * * @param locationName Location name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response from the check name availability request along with {@link Response}. + * @return the response from the check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String locationName, CheckNameAvailabilityInput parameters, Context context); + EntityNameAvailabilityCheckOutputInner checkNameAvailability( + String locationName, CheckNameAvailabilityInput parameters); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java index 79bfb376866b8..33f2f1488c8a2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java @@ -19,13 +19,14 @@ public interface MediaServicesOperationResultsClient { * * @param locationName Location name. * @param operationId Operation Id. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return media service operation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - MediaServiceInner get(String locationName, String operationId); + MediaServicesOperationResultsGetResponse getWithResponse(String locationName, String operationId, Context context); /** * Get operation result. @@ -34,12 +35,11 @@ public interface MediaServicesOperationResultsClient { * * @param locationName Location name. * @param operationId Operation Id. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return media service operation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - MediaServicesOperationResultsGetResponse getWithResponse(String locationName, String operationId, Context context); + MediaServiceInner get(String locationName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java index d01953576ccc8..37e9e18dd9395 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java @@ -19,13 +19,15 @@ public interface MediaServicesOperationStatusesClient { * * @param locationName Location name. * @param operationId Operation ID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return media service operation status. + * @return media service operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MediaServiceOperationStatusInner get(String locationName, String operationId); + Response getWithResponse( + String locationName, String operationId, Context context); /** * Get operation status. @@ -34,13 +36,11 @@ public interface MediaServicesOperationStatusesClient { * * @param locationName Location name. * @param operationId Operation ID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return media service operation status along with {@link Response}. + * @return media service operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String locationName, String operationId, Context context); + MediaServiceOperationStatusInner get(String locationName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaservicesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaservicesClient.java index 5408e2dfb4425..d8a491d3e34a6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaservicesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaservicesClient.java @@ -55,13 +55,15 @@ public interface MediaservicesClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Media Services account. + * @return the details of a Media Services account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MediaServiceInner getByResourceGroup(String resourceGroupName, String accountName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context); /** * Get a Media Services account @@ -70,15 +72,13 @@ public interface MediaservicesClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Media Services account along with {@link Response}. + * @return the details of a Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context); + MediaServiceInner getByResourceGroup(String resourceGroupName, String accountName); /** * Create or update a Media Services account @@ -156,12 +156,14 @@ MediaServiceInner createOrUpdate( * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName); + Response deleteWithResponse(String resourceGroupName, String accountName, Context context); /** * Delete a Media Services account. @@ -170,14 +172,12 @@ MediaServiceInner createOrUpdate( * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String accountName, Context context); + void delete(String resourceGroupName, String accountName); /** * Update a Media Services account @@ -256,12 +256,15 @@ MediaServiceInner update( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters); + Response syncStorageKeysWithResponse( + String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context); /** * Synchronizes Storage Account Keys @@ -271,15 +274,12 @@ MediaServiceInner update( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response syncStorageKeysWithResponse( - String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context); + void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters); /** * List the media edge policies associated with the Media Services account. @@ -289,13 +289,15 @@ Response syncStorageKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EdgePoliciesInner listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters); + Response listEdgePoliciesWithResponse( + String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context); /** * List the media edge policies associated with the Media Services account. @@ -305,15 +307,13 @@ Response syncStorageKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listEdgePoliciesWithResponse( - String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context); + EdgePoliciesInner listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters); /** * List Media Services accounts diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java index bc9e66f81e840..6cf80e1de5432 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java @@ -22,14 +22,20 @@ public interface OperationResultsClient { * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return asset track operation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetTrackInner get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId); + OperationResultsGetResponse getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context); /** * Get operation result. @@ -41,18 +47,12 @@ AssetTrackInner get( * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return asset track operation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - OperationResultsGetResponse getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context); + AssetTrackInner get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java index 130ec62a46c8a..216b4b0114cfc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java @@ -22,14 +22,20 @@ public interface OperationStatusesClient { * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return asset track operation status. + * @return asset track operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetTrackOperationStatusInner get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId); + Response getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context); /** * Get operation status. @@ -41,18 +47,12 @@ AssetTrackOperationStatusInner get( * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return asset track operation status along with {@link Response}. + * @return asset track operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context); + AssetTrackOperationStatusInner get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationsClient.java index 6afa1d17403ba..4915495ed0b74 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationsClient.java @@ -17,24 +17,24 @@ public interface OperationsClient { * *

Lists all the Media Services operations. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of Operation items. + * @return a collection of Operation items along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - OperationCollectionInner list(); + Response listWithResponse(Context context); /** * List Operations * *

Lists all the Media Services operations. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of Operation items along with {@link Response}. + * @return a collection of Operation items. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse(Context context); + OperationCollectionInner list(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateEndpointConnectionsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateEndpointConnectionsClient.java index a351f3db07ad7..215c064d7cb98 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateEndpointConnectionsClient.java @@ -20,13 +20,16 @@ public interface PrivateEndpointConnectionsClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of private endpoint connection associated with the specified storage account. + * @return list of private endpoint connection associated with the specified storage account along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName); + Response listWithResponse( + String resourceGroupName, String accountName, Context context); /** * List private endpoint connections. @@ -35,16 +38,13 @@ public interface PrivateEndpointConnectionsClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of private endpoint connection associated with the specified storage account along with {@link - * Response}. + * @return list of private endpoint connection associated with the specified storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, String accountName, Context context); + PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName); /** * Get private endpoint connection. @@ -54,13 +54,15 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a private endpoint connection. + * @return the details of a private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner get(String resourceGroupName, String accountName, String name); + Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context); /** * Get private endpoint connection. @@ -70,15 +72,13 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a private endpoint connection along with {@link Response}. + * @return the details of a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context); + PrivateEndpointConnectionInner get(String resourceGroupName, String accountName, String name); /** * Update a private endpoint connection. @@ -89,14 +89,19 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param name The name parameter. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Private Endpoint Connection resource. + * @return the Private Endpoint Connection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner createOrUpdate( - String resourceGroupName, String accountName, String name, PrivateEndpointConnectionInner parameters); + Response createOrUpdateWithResponse( + String resourceGroupName, + String accountName, + String name, + PrivateEndpointConnectionInner parameters, + Context context); /** * Update a private endpoint connection. @@ -107,19 +112,14 @@ PrivateEndpointConnectionInner createOrUpdate( * @param accountName The Media Services account name. * @param name The name parameter. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Private Endpoint Connection resource along with {@link Response}. + * @return the Private Endpoint Connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String accountName, - String name, - PrivateEndpointConnectionInner parameters, - Context context); + PrivateEndpointConnectionInner createOrUpdate( + String resourceGroupName, String accountName, String name, PrivateEndpointConnectionInner parameters); /** * Delete a private endpoint connection. @@ -129,12 +129,14 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String name); + Response deleteWithResponse(String resourceGroupName, String accountName, String name, Context context); /** * Delete a private endpoint connection. @@ -144,12 +146,10 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String accountName, String name, Context context); + void delete(String resourceGroupName, String accountName, String name); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateLinkResourcesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateLinkResourcesClient.java index 1229eef90c376..e6408854d7b30 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateLinkResourcesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateLinkResourcesClient.java @@ -20,13 +20,15 @@ public interface PrivateLinkResourcesClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources. + * @return a list of private link resources along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkResourceListResultInner list(String resourceGroupName, String accountName); + Response listWithResponse( + String resourceGroupName, String accountName, Context context); /** * Get list of group IDs. @@ -35,15 +37,13 @@ public interface PrivateLinkResourcesClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources along with {@link Response}. + * @return a list of private link resources. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, String accountName, Context context); + PrivateLinkResourceListResultInner list(String resourceGroupName, String accountName); /** * Get group ID. @@ -53,13 +53,15 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of a group ID. + * @return details of a group ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkResourceInner get(String resourceGroupName, String accountName, String name); + Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context); /** * Get group ID. @@ -69,13 +71,11 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of a group ID along with {@link Response}. + * @return details of a group ID. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context); + PrivateLinkResourceInner get(String resourceGroupName, String accountName, String name); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingEndpointsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingEndpointsClient.java index 1de41352d9a70..49c81e44e4c54 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingEndpointsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingEndpointsClient.java @@ -57,13 +57,15 @@ public interface StreamingEndpointsClient { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint. + * @return a streaming endpoint along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingEndpointInner get(String resourceGroupName, String accountName, String streamingEndpointName); + Response getWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** * Get StreamingEndpoint @@ -73,15 +75,13 @@ public interface StreamingEndpointsClient { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint along with {@link Response}. + * @return a streaming endpoint. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context); + StreamingEndpointInner get(String resourceGroupName, String accountName, String streamingEndpointName); /** * Create StreamingEndpoint @@ -92,7 +92,6 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param parameters Streaming endpoint properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -100,11 +99,7 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, StreamingEndpointInner> beginCreate( - String resourceGroupName, - String accountName, - String streamingEndpointName, - StreamingEndpointInner parameters, - Boolean autoStart); + String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters); /** * Create StreamingEndpoint @@ -131,29 +126,6 @@ SyncPoller, StreamingEndpointInner> beginCrea Boolean autoStart, Context context); - /** - * Create StreamingEndpoint - * - *

Creates a streaming endpoint. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. - * @param parameters Streaming endpoint properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the streaming endpoint. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - StreamingEndpointInner create( - String resourceGroupName, - String accountName, - String streamingEndpointName, - StreamingEndpointInner parameters, - Boolean autoStart); - /** * Create StreamingEndpoint * @@ -353,14 +325,15 @@ SyncPoller, Void> beginDelete( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingEndpointSkuInfoListResultInner skus( - String resourceGroupName, String accountName, String streamingEndpointName); + Response skusWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** * List StreamingEndpoint skus @@ -370,15 +343,14 @@ StreamingEndpointSkuInfoListResultInner skus( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response skusWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context); + StreamingEndpointSkuInfoListResultInner skus( + String resourceGroupName, String accountName, String streamingEndpointName); /** * Start StreamingEndpoint @@ -606,13 +578,15 @@ void scale( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -622,15 +596,13 @@ void scale( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -641,14 +613,19 @@ Response asyncOperationWithResponse( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingEndpointInner operationLocation( - String resourceGroupName, String accountName, String streamingEndpointName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context); /** * Get operation status. @@ -659,17 +636,12 @@ StreamingEndpointInner operationLocation( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String streamingEndpointName, - String operationId, - Context context); + StreamingEndpointInner operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingLocatorsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingLocatorsClient.java index 7f427fdb3c2f0..eef8a8f40a113 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingLocatorsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingLocatorsClient.java @@ -51,22 +51,6 @@ public interface StreamingLocatorsClient { PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); - /** - * Get a Streaming Locator - * - *

Get the details of a Streaming Locator in the Media Services account. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param streamingLocatorName The Streaming Locator name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Locator in the Media Services account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - StreamingLocatorInner get(String resourceGroupName, String accountName, String streamingLocatorName); - /** * Get a Streaming Locator * @@ -86,22 +70,20 @@ Response getWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * Create a Streaming Locator + * Get a Streaming Locator * - *

Create a Streaming Locator in the Media Services account. + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Locator resource. + * @return the details of a Streaming Locator in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingLocatorInner create( - String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters); + StreamingLocatorInner get(String resourceGroupName, String accountName, String streamingLocatorName); /** * Create a Streaming Locator @@ -127,19 +109,22 @@ Response createWithResponse( Context context); /** - * Delete a Streaming Locator + * Create a Streaming Locator * - *

Deletes a Streaming Locator in the Media Services account. + *

Create a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Streaming Locator resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String streamingLocatorName); + StreamingLocatorInner create( + String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters); /** * Delete a Streaming Locator @@ -160,9 +145,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * List Content Keys + * Delete a Streaming Locator * - *

List Content Keys used by this Streaming Locator. + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -170,11 +155,9 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listContentKeys action. */ @ServiceMethod(returns = ReturnType.SINGLE) - ListContentKeysResponseInner listContentKeys( - String resourceGroupName, String accountName, String streamingLocatorName); + void delete(String resourceGroupName, String accountName, String streamingLocatorName); /** * List Content Keys @@ -195,9 +178,9 @@ Response listContentKeysWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * List Paths + * List Content Keys * - *

List Paths supported by this Streaming Locator. + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -205,10 +188,11 @@ Response listContentKeysWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listPaths action. + * @return class of response for listContentKeys action. */ @ServiceMethod(returns = ReturnType.SINGLE) - ListPathsResponseInner listPaths(String resourceGroupName, String accountName, String streamingLocatorName); + ListContentKeysResponseInner listContentKeys( + String resourceGroupName, String accountName, String streamingLocatorName); /** * List Paths @@ -227,4 +211,20 @@ Response listContentKeysWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) Response listPathsWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); + + /** + * List Paths + * + *

List Paths supported by this Streaming Locator. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingLocatorName The Streaming Locator name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return class of response for listPaths action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ListPathsResponseInner listPaths(String resourceGroupName, String accountName, String streamingLocatorName); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingPoliciesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingPoliciesClient.java index 26253116c8f5b..d418025458684 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingPoliciesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingPoliciesClient.java @@ -57,13 +57,15 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Policy in the Media Services account. + * @return the details of a Streaming Policy in the Media Services account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingPolicyInner get(String resourceGroupName, String accountName, String streamingPolicyName); + Response getWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** * Get a Streaming Policy @@ -73,15 +75,13 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Policy in the Media Services account along with {@link Response}. + * @return the details of a Streaming Policy in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context); + StreamingPolicyInner get(String resourceGroupName, String accountName, String streamingPolicyName); /** * Create a Streaming Policy @@ -92,14 +92,19 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Policy resource. + * @return a Streaming Policy resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingPolicyInner create( - String resourceGroupName, String accountName, String streamingPolicyName, StreamingPolicyInner parameters); + Response createWithResponse( + String resourceGroupName, + String accountName, + String streamingPolicyName, + StreamingPolicyInner parameters, + Context context); /** * Create a Streaming Policy @@ -110,19 +115,14 @@ StreamingPolicyInner create( * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Policy resource along with {@link Response}. + * @return a Streaming Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( - String resourceGroupName, - String accountName, - String streamingPolicyName, - StreamingPolicyInner parameters, - Context context); + StreamingPolicyInner create( + String resourceGroupName, String accountName, String streamingPolicyName, StreamingPolicyInner parameters); /** * Delete a Streaming Policy @@ -132,12 +132,15 @@ Response createWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String streamingPolicyName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** * Delete a Streaming Policy @@ -147,13 +150,10 @@ Response createWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context); + void delete(String resourceGroupName, String accountName, String streamingPolicyName); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java index 0c7fead19204c..5b3804c5c9c2e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java @@ -58,13 +58,15 @@ PagedIterable list( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param trackName The Asset Track name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Track in the Asset. + * @return the details of a Track in the Asset along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetTrackInner get(String resourceGroupName, String accountName, String assetName, String trackName); + Response getWithResponse( + String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** * Get a Track @@ -75,15 +77,13 @@ PagedIterable list( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param trackName The Asset Track name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Track in the Asset along with {@link Response}. + * @return the details of a Track in the Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String assetName, String trackName, Context context); + AssetTrackInner get(String resourceGroupName, String accountName, String assetName, String trackName); /** * Create or update a Track diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TransformsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TransformsClient.java index 8b850c20d3e86..53ac450e1d1ce 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TransformsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TransformsClient.java @@ -55,13 +55,15 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Transform. + * @return a Transform along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TransformInner get(String resourceGroupName, String accountName, String transformName); + Response getWithResponse( + String resourceGroupName, String accountName, String transformName, Context context); /** * Get Transform @@ -71,15 +73,13 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Transform along with {@link Response}. + * @return a Transform. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String transformName, Context context); + TransformInner get(String resourceGroupName, String accountName, String transformName); /** * Create or Update Transform @@ -90,15 +90,16 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights. + * as by transcoding or by extracting insights along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TransformInner createOrUpdate( - String resourceGroupName, String accountName, String transformName, TransformInner parameters); + Response createOrUpdateWithResponse( + String resourceGroupName, String accountName, String transformName, TransformInner parameters, Context context); /** * Create or Update Transform @@ -109,16 +110,15 @@ TransformInner createOrUpdate( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights along with {@link Response}. + * as by transcoding or by extracting insights. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, String accountName, String transformName, TransformInner parameters, Context context); + TransformInner createOrUpdate( + String resourceGroupName, String accountName, String transformName, TransformInner parameters); /** * Delete Transform @@ -128,12 +128,15 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String transformName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String transformName, Context context); /** * Delete Transform @@ -143,15 +146,12 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String accountName, String transformName, Context context); + void delete(String resourceGroupName, String accountName, String transformName); /** * Update Transform @@ -162,15 +162,16 @@ Response deleteWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights. + * as by transcoding or by extracting insights along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TransformInner update( - String resourceGroupName, String accountName, String transformName, TransformInner parameters); + Response updateWithResponse( + String resourceGroupName, String accountName, String transformName, TransformInner parameters, Context context); /** * Update Transform @@ -181,14 +182,13 @@ TransformInner update( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights along with {@link Response}. + * as by transcoding or by extracting insights. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, String accountName, String transformName, TransformInner parameters, Context context); + TransformInner update( + String resourceGroupName, String accountName, String transformName, TransformInner parameters); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java index fb29b76fa382b..01092ac158f3a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java @@ -28,6 +28,10 @@ public final class AccountFilterInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of AccountFilterInner class. */ + public AccountFilterInner() { + } + /** * Get the innerProperties property: The Media Filter properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetContainerSasInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetContainerSasInner.java index 04bb80a57012f..a8505a2a9b40d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetContainerSasInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetContainerSasInner.java @@ -17,6 +17,10 @@ public final class AssetContainerSasInner { @JsonProperty(value = "assetContainerSasUrls") private List assetContainerSasUrls; + /** Creates an instance of AssetContainerSasInner class. */ + public AssetContainerSasInner() { + } + /** * Get the assetContainerSasUrls property: The list of Asset container SAS URLs. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java index 1367005f089e1..a34ee5e8f8cd2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java @@ -28,6 +28,10 @@ public final class AssetFilterInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of AssetFilterInner class. */ + public AssetFilterInner() { + } + /** * Get the innerProperties property: The Media Filter properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java index b3d9e4f54bd1f..d99e84e0ce36f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java @@ -27,6 +27,10 @@ public final class AssetInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of AssetInner class. */ + public AssetInner() { + } + /** * Get the innerProperties property: The resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetProperties.java index 184b32936cf9f..28bf1982a72f5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetProperties.java @@ -61,6 +61,10 @@ public final class AssetProperties { @JsonProperty(value = "storageEncryptionFormat", access = JsonProperty.Access.WRITE_ONLY) private AssetStorageEncryptionFormat storageEncryptionFormat; + /** Creates an instance of AssetProperties class. */ + public AssetProperties() { + } + /** * Get the assetId property: The Asset ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackInner.java index ab5d3464f0cc5..897cd1ba01dcb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackInner.java @@ -19,6 +19,10 @@ public final class AssetTrackInner extends ProxyResource { @JsonProperty(value = "properties") private AssetTrackProperties innerProperties; + /** Creates an instance of AssetTrackInner class. */ + public AssetTrackInner() { + } + /** * Get the innerProperties property: The resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackOperationStatusInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackOperationStatusInner.java index 012714e3856b4..be802800a0602 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackOperationStatusInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackOperationStatusInner.java @@ -49,6 +49,10 @@ public final class AssetTrackOperationStatusInner { @JsonProperty(value = "error") private ManagementError error; + /** Creates an instance of AssetTrackOperationStatusInner class. */ + public AssetTrackOperationStatusInner() { + } + /** * Get the name property: Operation identifier. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackProperties.java index 9269a1e5dcb28..19f73e5eca66b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackProperties.java @@ -24,6 +24,10 @@ public final class AssetTrackProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; + /** Creates an instance of AssetTrackProperties class. */ + public AssetTrackProperties() { + } + /** * Get the track property: Detailed information about a track in the asset. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java index 444bd5ac9db4e..b85e79bc6f62f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java @@ -30,6 +30,10 @@ public final class AsyncOperationResultInner { @JsonProperty(value = "status") private AsyncOperationStatus status; + /** Creates an instance of AsyncOperationResultInner class. */ + public AsyncOperationResultInner() { + } + /** * Get the error property: The error object. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java index b960bc6ad9f96..0a639b0bdf1b9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java @@ -28,6 +28,10 @@ public final class ContentKeyPolicyInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of ContentKeyPolicyInner class. */ + public ContentKeyPolicyInner() { + } + /** * Get the innerProperties property: The properties of the Content Key Policy. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyPropertiesInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyPropertiesInner.java index 0159e22f22885..84417a46eccde 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyPropertiesInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyPropertiesInner.java @@ -45,6 +45,10 @@ public final class ContentKeyPolicyPropertiesInner { @JsonProperty(value = "options", required = true) private List options; + /** Creates an instance of ContentKeyPolicyPropertiesInner class. */ + public ContentKeyPolicyPropertiesInner() { + } + /** * Get the policyId property: The legacy Policy ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EdgePoliciesInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EdgePoliciesInner.java index d6fcdfdd44961..d2e2b10b72251 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EdgePoliciesInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EdgePoliciesInner.java @@ -17,6 +17,10 @@ public final class EdgePoliciesInner { @JsonProperty(value = "usageDataCollectionPolicy") private EdgeUsageDataCollectionPolicy usageDataCollectionPolicy; + /** Creates an instance of EdgePoliciesInner class. */ + public EdgePoliciesInner() { + } + /** * Get the usageDataCollectionPolicy property: The usageDataCollectionPolicy property. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EntityNameAvailabilityCheckOutputInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EntityNameAvailabilityCheckOutputInner.java index 9b2bc23a424d7..8e043b23259c4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EntityNameAvailabilityCheckOutputInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EntityNameAvailabilityCheckOutputInner.java @@ -28,6 +28,10 @@ public final class EntityNameAvailabilityCheckOutputInner { @JsonProperty(value = "message") private String message; + /** Creates an instance of EntityNameAvailabilityCheckOutputInner class. */ + public EntityNameAvailabilityCheckOutputInner() { + } + /** * Get the nameAvailable property: Specifies if the name is available. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java index 4735597a2e8ab..76b099d9f6fca 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java @@ -34,6 +34,10 @@ public final class JobInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of JobInner class. */ + public JobInner() { + } + /** * Get the innerProperties property: The resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java index 250a6ac656dac..f0ab9ecf309e1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java @@ -81,6 +81,10 @@ public final class JobProperties { @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime endTime; + /** Creates an instance of JobProperties class. */ + public JobProperties() { + } + /** * Get the created property: The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' * format. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListContentKeysResponseInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListContentKeysResponseInner.java index def2efb17c895..1ba9b1c997714 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListContentKeysResponseInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListContentKeysResponseInner.java @@ -18,6 +18,10 @@ public final class ListContentKeysResponseInner { @JsonProperty(value = "contentKeys") private List contentKeys; + /** Creates an instance of ListContentKeysResponseInner class. */ + public ListContentKeysResponseInner() { + } + /** * Get the contentKeys property: ContentKeys used by current Streaming Locator. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListPathsResponseInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListPathsResponseInner.java index 7900c7d498577..681afc547ed95 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListPathsResponseInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListPathsResponseInner.java @@ -24,6 +24,10 @@ public final class ListPathsResponseInner { @JsonProperty(value = "downloadPaths") private List downloadPaths; + /** Creates an instance of ListPathsResponseInner class. */ + public ListPathsResponseInner() { + } + /** * Get the streamingPaths property: Streaming Paths supported by current Streaming Locator. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListStreamingLocatorsResponseInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListStreamingLocatorsResponseInner.java index 672972f276833..338292ffa60a7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListStreamingLocatorsResponseInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListStreamingLocatorsResponseInner.java @@ -18,6 +18,10 @@ public final class ListStreamingLocatorsResponseInner { @JsonProperty(value = "streamingLocators", access = JsonProperty.Access.WRITE_ONLY) private List streamingLocators; + /** Creates an instance of ListStreamingLocatorsResponseInner class. */ + public ListStreamingLocatorsResponseInner() { + } + /** * Get the streamingLocators property: The list of Streaming Locators. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java index 767268a01a038..4b1d58f7cde4a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java @@ -34,6 +34,10 @@ public final class LiveEventInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of LiveEventInner class. */ + public LiveEventInner() { + } + /** * Get the innerProperties property: The live event properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java index 83cae0d568012..fcccbbeb1c10c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java @@ -105,6 +105,10 @@ public final class LiveEventProperties { @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastModified; + /** Creates an instance of LiveEventProperties class. */ + public LiveEventProperties() { + } + /** * Get the description property: A description for the live event. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java index f3247a69ba717..420acd0d47066 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java @@ -28,6 +28,10 @@ public final class LiveOutputInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of LiveOutputInner class. */ + public LiveOutputInner() { + } + /** * Get the innerProperties property: Live output properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java index 29fb1f6e455dd..2b493f01c909d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java @@ -86,6 +86,10 @@ public final class LiveOutputProperties { @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY) private LiveOutputResourceState resourceState; + /** Creates an instance of LiveOutputProperties class. */ + public LiveOutputProperties() { + } + /** * Get the description property: The description of the live output. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaFilterProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaFilterProperties.java index 83d3ac32eb5d1..17cc3da3af963 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaFilterProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaFilterProperties.java @@ -32,6 +32,10 @@ public final class MediaFilterProperties { @JsonProperty(value = "tracks") private List tracks; + /** Creates an instance of MediaFilterProperties class. */ + public MediaFilterProperties() { + } + /** * Get the presentationTimeRange property: The presentation time range. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java index bdcdcb4e5788a..f7e05b07a90c4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java @@ -40,6 +40,10 @@ public final class MediaServiceInner extends Resource { @JsonProperty(value = "identity") private MediaServiceIdentity identity; + /** Creates an instance of MediaServiceInner class. */ + public MediaServiceInner() { + } + /** * Get the innerProperties property: The resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceOperationStatusInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceOperationStatusInner.java index 5b72ed4f13f1e..254bb719326bb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceOperationStatusInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceOperationStatusInner.java @@ -49,6 +49,10 @@ public final class MediaServiceOperationStatusInner { @JsonProperty(value = "error") private ManagementError error; + /** Creates an instance of MediaServiceOperationStatusInner class. */ + public MediaServiceOperationStatusInner() { + } + /** * Get the name property: Operation identifier. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java index 2ef1846a4597a..d9038a8ac7f72 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java @@ -66,6 +66,10 @@ public final class MediaServiceProperties { @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; + /** Creates an instance of MediaServiceProperties class. */ + public MediaServiceProperties() { + } + /** * Get the mediaServiceId property: The Media Services account ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/OperationCollectionInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/OperationCollectionInner.java index fe7b987cb9c88..01e7c3a112f90 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/OperationCollectionInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/OperationCollectionInner.java @@ -18,6 +18,10 @@ public final class OperationCollectionInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of OperationCollectionInner class. */ + public OperationCollectionInner() { + } + /** * Get the value property: A collection of Operation items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionInner.java index 35ab44fe79861..c79b495aefbfc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionInner.java @@ -20,6 +20,10 @@ public final class PrivateEndpointConnectionInner extends ProxyResource { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; + /** Creates an instance of PrivateEndpointConnectionInner class. */ + public PrivateEndpointConnectionInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionListResultInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionListResultInner.java index fe1e69f02805a..b9fd1fad93a21 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionListResultInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionListResultInner.java @@ -17,6 +17,10 @@ public final class PrivateEndpointConnectionListResultInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of PrivateEndpointConnectionListResultInner class. */ + public PrivateEndpointConnectionListResultInner() { + } + /** * Get the value property: Array of private endpoint connections. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java index 416902d7e3b6f..3e8f3a2ac514d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java @@ -32,6 +32,10 @@ public final class PrivateEndpointConnectionProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private PrivateEndpointConnectionProvisioningState provisioningState; + /** Creates an instance of PrivateEndpointConnectionProperties class. */ + public PrivateEndpointConnectionProperties() { + } + /** * Get the privateEndpoint property: The resource of private end point. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceInner.java index 3932d5be8bbb8..9b57e2120562a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceInner.java @@ -18,6 +18,10 @@ public final class PrivateLinkResourceInner extends ProxyResource { @JsonProperty(value = "properties") private PrivateLinkResourceProperties innerProperties; + /** Creates an instance of PrivateLinkResourceInner class. */ + public PrivateLinkResourceInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceListResultInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceListResultInner.java index 1ac116cabe5dd..48993a567962f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceListResultInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceListResultInner.java @@ -17,6 +17,10 @@ public final class PrivateLinkResourceListResultInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of PrivateLinkResourceListResultInner class. */ + public PrivateLinkResourceListResultInner() { + } + /** * Get the value property: Array of private link resources. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceProperties.java index 81e689a95a317..e82abe02c94ce 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceProperties.java @@ -29,6 +29,10 @@ public final class PrivateLinkResourceProperties { @JsonProperty(value = "requiredZoneNames") private List requiredZoneNames; + /** Creates an instance of PrivateLinkResourceProperties class. */ + public PrivateLinkResourceProperties() { + } + /** * Get the groupId property: The private link resource group id. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StorageEncryptedAssetDecryptionDataInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StorageEncryptedAssetDecryptionDataInner.java index f0ec05ab9b7e0..4846e758a4fca 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StorageEncryptedAssetDecryptionDataInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StorageEncryptedAssetDecryptionDataInner.java @@ -25,6 +25,10 @@ public final class StorageEncryptedAssetDecryptionDataInner { @JsonProperty(value = "assetFileEncryptionMetadata") private List assetFileEncryptionMetadata; + /** Creates an instance of StorageEncryptedAssetDecryptionDataInner class. */ + public StorageEncryptedAssetDecryptionDataInner() { + } + /** * Get the key property: The Asset File storage encryption key. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java index d7ecb7850f0b6..382be9360b13a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java @@ -37,6 +37,10 @@ public final class StreamingEndpointInner extends Resource { @JsonProperty(value = "sku") private ArmStreamingEndpointCurrentSku sku; + /** Creates an instance of StreamingEndpointInner class. */ + public StreamingEndpointInner() { + } + /** * Get the innerProperties property: The streaming endpoint properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointProperties.java index 385f704a49024..875259c122040 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointProperties.java @@ -111,6 +111,10 @@ public final class StreamingEndpointProperties { @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastModified; + /** Creates an instance of StreamingEndpointProperties class. */ + public StreamingEndpointProperties() { + } + /** * Get the description property: The streaming endpoint description. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointSkuInfoListResultInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointSkuInfoListResultInner.java index 6e51cb3165e0c..1394ce5bad1b2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointSkuInfoListResultInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointSkuInfoListResultInner.java @@ -18,6 +18,10 @@ public final class StreamingEndpointSkuInfoListResultInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of StreamingEndpointSkuInfoListResultInner class. */ + public StreamingEndpointSkuInfoListResultInner() { + } + /** * Get the value property: The result of the List StreamingEndpoint skus. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java index 128984457a344..0406649f9dbea 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java @@ -28,6 +28,10 @@ public final class StreamingLocatorInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of StreamingLocatorInner class. */ + public StreamingLocatorInner() { + } + /** * Get the innerProperties property: Properties of the Streaming Locator. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java index a6d1198b3da51..e9d5ffb7708b5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java @@ -78,6 +78,10 @@ public final class StreamingLocatorProperties { @JsonProperty(value = "filters") private List filters; + /** Creates an instance of StreamingLocatorProperties class. */ + public StreamingLocatorProperties() { + } + /** * Get the assetName property: Asset Name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java index 27a2bb793765f..4e1025346e278 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java @@ -29,6 +29,10 @@ public final class StreamingPolicyInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of StreamingPolicyInner class. */ + public StreamingPolicyInner() { + } + /** * Get the innerProperties property: Class to specify properties of Streaming Policy. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyProperties.java index 0b80f01df76ab..bf7863b7167c3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyProperties.java @@ -51,6 +51,10 @@ public final class StreamingPolicyProperties { @JsonProperty(value = "noEncryption") private NoEncryption noEncryption; + /** Creates an instance of StreamingPolicyProperties class. */ + public StreamingPolicyProperties() { + } + /** * Get the created property: Creation time of Streaming Policy. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java index 9721e02bebe49..6709d54e674a5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java @@ -31,6 +31,10 @@ public final class TransformInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of TransformInner class. */ + public TransformInner() { + } + /** * Get the innerProperties property: The resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java index 3150f1734f7ee..760b044f7ce46 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java @@ -38,6 +38,10 @@ public final class TransformProperties { @JsonProperty(value = "outputs", required = true) private List outputs; + /** Creates an instance of TransformProperties class. */ + public TransformProperties() { + } + /** * Get the created property: The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java index f32af20910f41..562cd55ac36e9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java @@ -59,7 +59,7 @@ public final class AccountFiltersClientImpl implements AccountFiltersClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesAc") - private interface AccountFiltersService { + public interface AccountFiltersService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -483,14 +483,16 @@ private Mono getAsync(String resourceGroupName, String accou * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Account Filter in the Media Services account. + * @return the details of an Account Filter in the Media Services account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AccountFilterInner get(String resourceGroupName, String accountName, String filterName) { - return getAsync(resourceGroupName, accountName, filterName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String filterName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, filterName, context).block(); } /** @@ -501,16 +503,14 @@ public AccountFilterInner get(String resourceGroupName, String accountName, Stri * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Account Filter in the Media Services account along with {@link Response}. + * @return the details of an Account Filter in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String filterName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, filterName, context).block(); + public AccountFilterInner get(String resourceGroupName, String accountName, String filterName) { + return getWithResponse(resourceGroupName, accountName, filterName, Context.NONE).getValue(); } /** @@ -671,15 +671,20 @@ private Mono createOrUpdateAsync( * @param accountName The Media Services account name. * @param filterName The Account Filter name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Account Filter. + * @return an Account Filter along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AccountFilterInner createOrUpdate( - String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, filterName, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String accountName, + String filterName, + AccountFilterInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, filterName, parameters, context).block(); } /** @@ -691,20 +696,16 @@ public AccountFilterInner createOrUpdate( * @param accountName The Media Services account name. * @param filterName The Account Filter name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Account Filter along with {@link Response}. + * @return an Account Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String accountName, - String filterName, - AccountFilterInner parameters, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, accountName, filterName, parameters, context).block(); + public AccountFilterInner createOrUpdate( + String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, accountName, filterName, parameters, Context.NONE) + .getValue(); } /** @@ -843,13 +844,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String filterName) { - deleteAsync(resourceGroupName, accountName, filterName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String filterName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, filterName, context).block(); } /** @@ -860,16 +864,13 @@ public void delete(String resourceGroupName, String accountName, String filterNa * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String filterName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, filterName, context).block(); + public void delete(String resourceGroupName, String accountName, String filterName) { + deleteWithResponse(resourceGroupName, accountName, filterName, Context.NONE); } /** @@ -1030,15 +1031,20 @@ private Mono updateAsync( * @param accountName The Media Services account name. * @param filterName The Account Filter name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Account Filter. + * @return an Account Filter along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AccountFilterInner update( - String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters) { - return updateAsync(resourceGroupName, accountName, filterName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, + String accountName, + String filterName, + AccountFilterInner parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, filterName, parameters, context).block(); } /** @@ -1050,20 +1056,15 @@ public AccountFilterInner update( * @param accountName The Media Services account name. * @param filterName The Account Filter name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Account Filter along with {@link Response}. + * @return an Account Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String accountName, - String filterName, - AccountFilterInner parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, filterName, parameters, context).block(); + public AccountFilterInner update( + String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters) { + return updateWithResponse(resourceGroupName, accountName, filterName, parameters, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersImpl.java index ec4715db71d31..2172bdc77bb19 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(String resourceGroupName, String accoun return Utils.mapPage(inner, inner1 -> new AccountFilterImpl(inner1, this.manager())); } - public AccountFilter get(String resourceGroupName, String accountName, String filterName) { - AccountFilterInner inner = this.serviceClient().get(resourceGroupName, accountName, filterName); - if (inner != null) { - return new AccountFilterImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String filterName, Context context) { Response inner = @@ -61,8 +52,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String filterName) { - this.serviceClient().delete(resourceGroupName, accountName, filterName); + public AccountFilter get(String resourceGroupName, String accountName, String filterName) { + AccountFilterInner inner = this.serviceClient().get(resourceGroupName, accountName, filterName); + if (inner != null) { + return new AccountFilterImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -70,6 +66,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, filterName, context); } + public void delete(String resourceGroupName, String accountName, String filterName) { + this.serviceClient().delete(resourceGroupName, accountName, filterName); + } + public AccountFilter getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java index fe4d38a9ca257..72c121a8e921f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java @@ -59,7 +59,7 @@ public final class AssetFiltersClientImpl implements AssetFiltersClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesAs") - private interface AssetFiltersService { + public interface AssetFiltersService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -520,14 +520,16 @@ private Mono getAsync( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Asset Filter associated with the specified Asset. + * @return the details of an Asset Filter associated with the specified Asset along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetFilterInner get(String resourceGroupName, String accountName, String assetName, String filterName) { - return getAsync(resourceGroupName, accountName, assetName, filterName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String assetName, String filterName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, assetName, filterName, context).block(); } /** @@ -539,16 +541,14 @@ public AssetFilterInner get(String resourceGroupName, String accountName, String * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Asset Filter associated with the specified Asset along with {@link Response}. + * @return the details of an Asset Filter associated with the specified Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String assetName, String filterName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, assetName, filterName, context).block(); + public AssetFilterInner get(String resourceGroupName, String accountName, String assetName, String filterName) { + return getWithResponse(resourceGroupName, accountName, assetName, filterName, Context.NONE).getValue(); } /** @@ -730,19 +730,23 @@ private Mono createOrUpdateAsync( * @param assetName The Asset name. * @param filterName The Asset Filter name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset Filter. + * @return an Asset Filter along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetFilterInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, - AssetFilterInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, assetName, filterName, parameters).block(); + AssetFilterInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, accountName, assetName, filterName, parameters, context) + .block(); } /** @@ -755,23 +759,21 @@ public AssetFilterInner createOrUpdate( * @param assetName The Asset name. * @param filterName The Asset Filter name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset Filter along with {@link Response}. + * @return an Asset Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public AssetFilterInner createOrUpdate( String resourceGroupName, String accountName, String assetName, String filterName, - AssetFilterInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, accountName, assetName, filterName, parameters, context) - .block(); + AssetFilterInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, accountName, assetName, filterName, parameters, Context.NONE) + .getValue(); } /** @@ -923,13 +925,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String assetName, String filterName) { - deleteAsync(resourceGroupName, accountName, assetName, filterName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String assetName, String filterName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, assetName, filterName, context).block(); } /** @@ -941,16 +946,13 @@ public void delete(String resourceGroupName, String accountName, String assetNam * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String assetName, String filterName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, assetName, filterName, context).block(); + public void delete(String resourceGroupName, String accountName, String assetName, String filterName) { + deleteWithResponse(resourceGroupName, accountName, assetName, filterName, Context.NONE); } /** @@ -1132,19 +1134,22 @@ private Mono updateAsync( * @param assetName The Asset name. * @param filterName The Asset Filter name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset Filter. + * @return an Asset Filter along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetFilterInner update( + public Response updateWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, - AssetFilterInner parameters) { - return updateAsync(resourceGroupName, accountName, assetName, filterName, parameters).block(); + AssetFilterInner parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, assetName, filterName, parameters, context) + .block(); } /** @@ -1157,22 +1162,20 @@ public AssetFilterInner update( * @param assetName The Asset name. * @param filterName The Asset Filter name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset Filter along with {@link Response}. + * @return an Asset Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( + public AssetFilterInner update( String resourceGroupName, String accountName, String assetName, String filterName, - AssetFilterInner parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, assetName, filterName, parameters, context) - .block(); + AssetFilterInner parameters) { + return updateWithResponse(resourceGroupName, accountName, assetName, filterName, parameters, Context.NONE) + .getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersImpl.java index 61a9f12ed4402..40bde3996ea36 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersImpl.java @@ -39,15 +39,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new AssetFilterImpl(inner1, this.manager())); } - public AssetFilter get(String resourceGroupName, String accountName, String assetName, String filterName) { - AssetFilterInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName, filterName); - if (inner != null) { - return new AssetFilterImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, Context context) { Response inner = @@ -63,8 +54,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String assetName, String filterName) { - this.serviceClient().delete(resourceGroupName, accountName, assetName, filterName); + public AssetFilter get(String resourceGroupName, String accountName, String assetName, String filterName) { + AssetFilterInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName, filterName); + if (inner != null) { + return new AssetFilterImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -72,6 +68,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, assetName, filterName, context); } + public void delete(String resourceGroupName, String accountName, String assetName, String filterName) { + this.serviceClient().delete(resourceGroupName, accountName, assetName, filterName); + } + public AssetFilter getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java index 3f0391cc86845..b89282cf252ad 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java @@ -172,26 +172,22 @@ public Asset refresh(Context context) { return this; } - public AssetContainerSas listContainerSas(ListContainerSasInput parameters) { - return serviceManager.assets().listContainerSas(resourceGroupName, accountName, assetName, parameters); - } - public Response listContainerSasWithResponse(ListContainerSasInput parameters, Context context) { return serviceManager .assets() .listContainerSasWithResponse(resourceGroupName, accountName, assetName, parameters, context); } - public StorageEncryptedAssetDecryptionData getEncryptionKey() { - return serviceManager.assets().getEncryptionKey(resourceGroupName, accountName, assetName); + public AssetContainerSas listContainerSas(ListContainerSasInput parameters) { + return serviceManager.assets().listContainerSas(resourceGroupName, accountName, assetName, parameters); } public Response getEncryptionKeyWithResponse(Context context) { return serviceManager.assets().getEncryptionKeyWithResponse(resourceGroupName, accountName, assetName, context); } - public ListStreamingLocatorsResponse listStreamingLocators() { - return serviceManager.assets().listStreamingLocators(resourceGroupName, accountName, assetName); + public StorageEncryptedAssetDecryptionData getEncryptionKey() { + return serviceManager.assets().getEncryptionKey(resourceGroupName, accountName, assetName); } public Response listStreamingLocatorsWithResponse(Context context) { @@ -200,6 +196,10 @@ public Response listStreamingLocatorsWithResponse .listStreamingLocatorsWithResponse(resourceGroupName, accountName, assetName, context); } + public ListStreamingLocatorsResponse listStreamingLocators() { + return serviceManager.assets().listStreamingLocators(resourceGroupName, accountName, assetName); + } + public AssetImpl withAlternateId(String alternateId) { this.innerModel().withAlternateId(alternateId); return this; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java index ffd79b9bb01bf..82018522bdf4a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java @@ -63,7 +63,7 @@ public final class AssetsClientImpl implements AssetsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesAs") - private interface AssetsService { + public interface AssetsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -593,14 +593,16 @@ private Mono getAsync(String resourceGroupName, String accountName, * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Asset in the Media Services account. + * @return the details of an Asset in the Media Services account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetInner get(String resourceGroupName, String accountName, String assetName) { - return getAsync(resourceGroupName, accountName, assetName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String assetName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); } /** @@ -611,16 +613,14 @@ public AssetInner get(String resourceGroupName, String accountName, String asset * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Asset in the Media Services account along with {@link Response}. + * @return the details of an Asset in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String assetName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); + public AssetInner get(String resourceGroupName, String accountName, String assetName) { + return getWithResponse(resourceGroupName, accountName, assetName, Context.NONE).getValue(); } /** @@ -777,15 +777,16 @@ private Mono createOrUpdateAsync( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset. + * @return an Asset along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetInner createOrUpdate( - String resourceGroupName, String accountName, String assetName, AssetInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, assetName, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context).block(); } /** @@ -797,16 +798,16 @@ public AssetInner createOrUpdate( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset along with {@link Response}. + * @return an Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context).block(); + public AssetInner createOrUpdate( + String resourceGroupName, String accountName, String assetName, AssetInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, accountName, assetName, parameters, Context.NONE) + .getValue(); } /** @@ -945,13 +946,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String assetName) { - deleteAsync(resourceGroupName, accountName, assetName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String assetName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); } /** @@ -962,16 +966,13 @@ public void delete(String resourceGroupName, String accountName, String assetNam * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String assetName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); + public void delete(String resourceGroupName, String accountName, String assetName) { + deleteWithResponse(resourceGroupName, accountName, assetName, Context.NONE); } /** @@ -1128,14 +1129,16 @@ private Mono updateAsync( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset. + * @return an Asset along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetInner update(String resourceGroupName, String accountName, String assetName, AssetInner parameters) { - return updateAsync(resourceGroupName, accountName, assetName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context).block(); } /** @@ -1147,16 +1150,14 @@ public AssetInner update(String resourceGroupName, String accountName, String as * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset along with {@link Response}. + * @return an Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context).block(); + public AssetInner update(String resourceGroupName, String accountName, String assetName, AssetInner parameters) { + return updateWithResponse(resourceGroupName, accountName, assetName, parameters, Context.NONE).getValue(); } /** @@ -1323,15 +1324,21 @@ private Mono listContainerSasAsync( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset Storage container SAS URLs. + * @return the Asset Storage container SAS URLs along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetContainerSasInner listContainerSas( - String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters) { - return listContainerSasAsync(resourceGroupName, accountName, assetName, parameters).block(); + public Response listContainerSasWithResponse( + String resourceGroupName, + String accountName, + String assetName, + ListContainerSasInput parameters, + Context context) { + return listContainerSasWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context) + .block(); } /** @@ -1344,21 +1351,16 @@ public AssetContainerSasInner listContainerSas( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset Storage container SAS URLs along with {@link Response}. + * @return the Asset Storage container SAS URLs. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listContainerSasWithResponse( - String resourceGroupName, - String accountName, - String assetName, - ListContainerSasInput parameters, - Context context) { - return listContainerSasWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context) - .block(); + public AssetContainerSasInner listContainerSas( + String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters) { + return listContainerSasWithResponse(resourceGroupName, accountName, assetName, parameters, Context.NONE) + .getValue(); } /** @@ -1502,15 +1504,17 @@ private Mono getEncryptionKeyAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API + * along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StorageEncryptedAssetDecryptionDataInner getEncryptionKey( - String resourceGroupName, String accountName, String assetName) { - return getEncryptionKeyAsync(resourceGroupName, accountName, assetName).block(); + public Response getEncryptionKeyWithResponse( + String resourceGroupName, String accountName, String assetName, Context context) { + return getEncryptionKeyWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); } /** @@ -1521,17 +1525,15 @@ public StorageEncryptedAssetDecryptionDataInner getEncryptionKey( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API - * along with {@link Response}. + * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getEncryptionKeyWithResponse( - String resourceGroupName, String accountName, String assetName, Context context) { - return getEncryptionKeyWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); + public StorageEncryptedAssetDecryptionDataInner getEncryptionKey( + String resourceGroupName, String accountName, String assetName) { + return getEncryptionKeyWithResponse(resourceGroupName, accountName, assetName, Context.NONE).getValue(); } /** @@ -1674,15 +1676,16 @@ private Mono listStreamingLocatorsAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Streaming Locators associated with this Asset. + * @return the Streaming Locators associated with this Asset along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ListStreamingLocatorsResponseInner listStreamingLocators( - String resourceGroupName, String accountName, String assetName) { - return listStreamingLocatorsAsync(resourceGroupName, accountName, assetName).block(); + public Response listStreamingLocatorsWithResponse( + String resourceGroupName, String accountName, String assetName, Context context) { + return listStreamingLocatorsWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); } /** @@ -1693,16 +1696,15 @@ public ListStreamingLocatorsResponseInner listStreamingLocators( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Streaming Locators associated with this Asset along with {@link Response}. + * @return the Streaming Locators associated with this Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listStreamingLocatorsWithResponse( - String resourceGroupName, String accountName, String assetName, Context context) { - return listStreamingLocatorsWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); + public ListStreamingLocatorsResponseInner listStreamingLocators( + String resourceGroupName, String accountName, String assetName) { + return listStreamingLocatorsWithResponse(resourceGroupName, accountName, assetName, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsImpl.java index 6bfb70f846f17..c4659e754d664 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsImpl.java @@ -46,15 +46,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new AssetImpl(inner1, this.manager())); } - public Asset get(String resourceGroupName, String accountName, String assetName) { - AssetInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName); - if (inner != null) { - return new AssetImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String assetName, Context context) { Response inner = @@ -70,8 +61,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String assetName) { - this.serviceClient().delete(resourceGroupName, accountName, assetName); + public Asset get(String resourceGroupName, String accountName, String assetName) { + AssetInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName); + if (inner != null) { + return new AssetImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -79,15 +75,8 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, assetName, context); } - public AssetContainerSas listContainerSas( - String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters) { - AssetContainerSasInner inner = - this.serviceClient().listContainerSas(resourceGroupName, accountName, assetName, parameters); - if (inner != null) { - return new AssetContainerSasImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroupName, String accountName, String assetName) { + this.serviceClient().delete(resourceGroupName, accountName, assetName); } public Response listContainerSasWithResponse( @@ -111,12 +100,12 @@ public Response listContainerSasWithResponse( } } - public StorageEncryptedAssetDecryptionData getEncryptionKey( - String resourceGroupName, String accountName, String assetName) { - StorageEncryptedAssetDecryptionDataInner inner = - this.serviceClient().getEncryptionKey(resourceGroupName, accountName, assetName); + public AssetContainerSas listContainerSas( + String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters) { + AssetContainerSasInner inner = + this.serviceClient().listContainerSas(resourceGroupName, accountName, assetName, parameters); if (inner != null) { - return new StorageEncryptedAssetDecryptionDataImpl(inner, this.manager()); + return new AssetContainerSasImpl(inner, this.manager()); } else { return null; } @@ -137,12 +126,12 @@ public Response getEncryptionKeyWithRespons } } - public ListStreamingLocatorsResponse listStreamingLocators( + public StorageEncryptedAssetDecryptionData getEncryptionKey( String resourceGroupName, String accountName, String assetName) { - ListStreamingLocatorsResponseInner inner = - this.serviceClient().listStreamingLocators(resourceGroupName, accountName, assetName); + StorageEncryptedAssetDecryptionDataInner inner = + this.serviceClient().getEncryptionKey(resourceGroupName, accountName, assetName); if (inner != null) { - return new ListStreamingLocatorsResponseImpl(inner, this.manager()); + return new StorageEncryptedAssetDecryptionDataImpl(inner, this.manager()); } else { return null; } @@ -163,6 +152,17 @@ public Response listStreamingLocatorsWithResponse } } + public ListStreamingLocatorsResponse listStreamingLocators( + String resourceGroupName, String accountName, String assetName) { + ListStreamingLocatorsResponseInner inner = + this.serviceClient().listStreamingLocators(resourceGroupName, accountName, assetName); + if (inner != null) { + return new ListStreamingLocatorsResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public Asset getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java index 02b710b5eae31..4c69e85142d5c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java @@ -61,7 +61,7 @@ public final class ContentKeyPoliciesClientImpl implements ContentKeyPoliciesCli */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesCo") - private interface ContentKeyPoliciesService { + public interface ContentKeyPoliciesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -564,14 +564,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Content Key Policy in the Media Services account. + * @return the details of a Content Key Policy in the Media Services account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ContentKeyPolicyInner get(String resourceGroupName, String accountName, String contentKeyPolicyName) { - return getAsync(resourceGroupName, accountName, contentKeyPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, context).block(); } /** @@ -582,16 +584,14 @@ public ContentKeyPolicyInner get(String resourceGroupName, String accountName, S * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Content Key Policy in the Media Services account along with {@link Response}. + * @return the details of a Content Key Policy in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, context).block(); + public ContentKeyPolicyInner get(String resourceGroupName, String accountName, String contentKeyPolicyName) { + return getWithResponse(resourceGroupName, accountName, contentKeyPolicyName, Context.NONE).getValue(); } /** @@ -754,15 +754,22 @@ private Mono createOrUpdateAsync( * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy resource. + * @return a Content Key Policy resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ContentKeyPolicyInner createOrUpdate( - String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, contentKeyPolicyName, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String accountName, + String contentKeyPolicyName, + ContentKeyPolicyInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, accountName, contentKeyPolicyName, parameters, context) + .block(); } /** @@ -774,22 +781,17 @@ public ContentKeyPolicyInner createOrUpdate( * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy resource along with {@link Response}. + * @return a Content Key Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String accountName, - String contentKeyPolicyName, - ContentKeyPolicyInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, accountName, contentKeyPolicyName, parameters, context) - .block(); + public ContentKeyPolicyInner createOrUpdate( + String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, accountName, contentKeyPolicyName, parameters, Context.NONE) + .getValue(); } /** @@ -931,13 +933,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String contentKeyPolicyName) { - deleteAsync(resourceGroupName, accountName, contentKeyPolicyName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, context).block(); } /** @@ -948,16 +953,13 @@ public void delete(String resourceGroupName, String accountName, String contentK * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, context).block(); + public void delete(String resourceGroupName, String accountName, String contentKeyPolicyName) { + deleteWithResponse(resourceGroupName, accountName, contentKeyPolicyName, Context.NONE); } /** @@ -1120,15 +1122,21 @@ private Mono updateAsync( * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy resource. + * @return a Content Key Policy resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ContentKeyPolicyInner update( - String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) { - return updateAsync(resourceGroupName, accountName, contentKeyPolicyName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, + String accountName, + String contentKeyPolicyName, + ContentKeyPolicyInner parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, parameters, context) + .block(); } /** @@ -1140,21 +1148,16 @@ public ContentKeyPolicyInner update( * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy resource along with {@link Response}. + * @return a Content Key Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String accountName, - String contentKeyPolicyName, - ContentKeyPolicyInner parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, parameters, context) - .block(); + public ContentKeyPolicyInner update( + String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) { + return updateWithResponse(resourceGroupName, accountName, contentKeyPolicyName, parameters, Context.NONE) + .getValue(); } /** @@ -1299,15 +1302,18 @@ private Mono getPolicyPropertiesWithSecretsAsyn * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy including secret values. + * @return a Content Key Policy including secret values along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( - String resourceGroupName, String accountName, String contentKeyPolicyName) { - return getPolicyPropertiesWithSecretsAsync(resourceGroupName, accountName, contentKeyPolicyName).block(); + public Response getPolicyPropertiesWithSecretsWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { + return getPolicyPropertiesWithSecretsWithResponseAsync( + resourceGroupName, accountName, contentKeyPolicyName, context) + .block(); } /** @@ -1318,18 +1324,17 @@ public ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy including secret values along with {@link Response}. + * @return a Content Key Policy including secret values. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getPolicyPropertiesWithSecretsWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { - return getPolicyPropertiesWithSecretsWithResponseAsync( - resourceGroupName, accountName, contentKeyPolicyName, context) - .block(); + public ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( + String resourceGroupName, String accountName, String contentKeyPolicyName) { + return getPolicyPropertiesWithSecretsWithResponse( + resourceGroupName, accountName, contentKeyPolicyName, Context.NONE) + .getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesImpl.java index b000ae0f4bb20..a0380d28cd967 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesImpl.java @@ -42,15 +42,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new ContentKeyPolicyImpl(inner1, this.manager())); } - public ContentKeyPolicy get(String resourceGroupName, String accountName, String contentKeyPolicyName) { - ContentKeyPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, contentKeyPolicyName); - if (inner != null) { - return new ContentKeyPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { Response inner = @@ -66,8 +57,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String contentKeyPolicyName) { - this.serviceClient().delete(resourceGroupName, accountName, contentKeyPolicyName); + public ContentKeyPolicy get(String resourceGroupName, String accountName, String contentKeyPolicyName) { + ContentKeyPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, contentKeyPolicyName); + if (inner != null) { + return new ContentKeyPolicyImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -75,15 +71,8 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, contentKeyPolicyName, context); } - public ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( - String resourceGroupName, String accountName, String contentKeyPolicyName) { - ContentKeyPolicyPropertiesInner inner = - this.serviceClient().getPolicyPropertiesWithSecrets(resourceGroupName, accountName, contentKeyPolicyName); - if (inner != null) { - return new ContentKeyPolicyPropertiesImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroupName, String accountName, String contentKeyPolicyName) { + this.serviceClient().delete(resourceGroupName, accountName, contentKeyPolicyName); } public Response getPolicyPropertiesWithSecretsWithResponse( @@ -104,6 +93,17 @@ public Response getPolicyPropertiesWithSecretsWithRe } } + public ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( + String resourceGroupName, String accountName, String contentKeyPolicyName) { + ContentKeyPolicyPropertiesInner inner = + this.serviceClient().getPolicyPropertiesWithSecrets(resourceGroupName, accountName, contentKeyPolicyName); + if (inner != null) { + return new ContentKeyPolicyPropertiesImpl(inner, this.manager()); + } else { + return null; + } + } + public ContentKeyPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java index 17a48b7028f3c..04567dc6ce10c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java @@ -170,16 +170,16 @@ public ContentKeyPolicy refresh(Context context) { return this; } - public ContentKeyPolicyProperties getPolicyPropertiesWithSecrets() { + public Response getPolicyPropertiesWithSecretsWithResponse(Context context) { return serviceManager .contentKeyPolicies() - .getPolicyPropertiesWithSecrets(resourceGroupName, accountName, contentKeyPolicyName); + .getPolicyPropertiesWithSecretsWithResponse(resourceGroupName, accountName, contentKeyPolicyName, context); } - public Response getPolicyPropertiesWithSecretsWithResponse(Context context) { + public ContentKeyPolicyProperties getPolicyPropertiesWithSecrets() { return serviceManager .contentKeyPolicies() - .getPolicyPropertiesWithSecretsWithResponse(resourceGroupName, accountName, contentKeyPolicyName, context); + .getPolicyPropertiesWithSecrets(resourceGroupName, accountName, contentKeyPolicyName); } public ContentKeyPolicyImpl withDescription(String description) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java index b062e9655a0e6..b694b561d37ec 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java @@ -197,16 +197,16 @@ public Job refresh(Context context) { return this; } - public void cancelJob() { - serviceManager.jobs().cancelJob(resourceGroupName, accountName, transformName, jobName); - } - public Response cancelJobWithResponse(Context context) { return serviceManager .jobs() .cancelJobWithResponse(resourceGroupName, accountName, transformName, jobName, context); } + public void cancelJob() { + serviceManager.jobs().cancelJob(resourceGroupName, accountName, transformName, jobName); + } + public JobImpl withDescription(String description) { this.innerModel().withDescription(description); return this; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java index 3f39b114d68cc..dfc4a1a6cfd85 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java @@ -59,7 +59,7 @@ public final class JobsClientImpl implements JobsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesJo") - private interface JobsService { + public interface JobsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -216,7 +216,7 @@ private Mono> listSinglePageAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -291,7 +291,7 @@ private Mono> listSinglePageAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -480,7 +480,7 @@ private Mono> getWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -542,7 +542,7 @@ private Mono> getWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -588,14 +588,16 @@ private Mono getAsync( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job. + * @return a Job along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner get(String resourceGroupName, String accountName, String transformName, String jobName) { - return getAsync(resourceGroupName, accountName, transformName, jobName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); } /** @@ -607,16 +609,14 @@ public JobInner get(String resourceGroupName, String accountName, String transfo * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job along with {@link Response}. + * @return a Job. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); + public JobInner get(String resourceGroupName, String accountName, String transformName, String jobName) { + return getWithResponse(resourceGroupName, accountName, transformName, jobName, Context.NONE).getValue(); } /** @@ -667,7 +667,7 @@ private Mono> createWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -741,7 +741,7 @@ private Mono> createWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -790,15 +790,22 @@ private Mono createAsync( * @param transformName The Transform name. * @param jobName The Job name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job resource type. + * @return a Job resource type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner create( - String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters) { - return createAsync(resourceGroupName, accountName, transformName, jobName, parameters).block(); + public Response createWithResponse( + String resourceGroupName, + String accountName, + String transformName, + String jobName, + JobInner parameters, + Context context) { + return createWithResponseAsync(resourceGroupName, accountName, transformName, jobName, parameters, context) + .block(); } /** @@ -811,22 +818,16 @@ public JobInner create( * @param transformName The Transform name. * @param jobName The Job name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job resource type along with {@link Response}. + * @return a Job resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String resourceGroupName, - String accountName, - String transformName, - String jobName, - JobInner parameters, - Context context) { - return createWithResponseAsync(resourceGroupName, accountName, transformName, jobName, parameters, context) - .block(); + public JobInner create( + String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters) { + return createWithResponse(resourceGroupName, accountName, transformName, jobName, parameters, Context.NONE) + .getValue(); } /** @@ -871,7 +872,7 @@ private Mono> deleteWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -933,7 +934,7 @@ private Mono> deleteWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -978,13 +979,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String transformName, String jobName) { - deleteAsync(resourceGroupName, accountName, transformName, jobName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); } /** @@ -996,16 +1000,13 @@ public void delete(String resourceGroupName, String accountName, String transfor * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); + public void delete(String resourceGroupName, String accountName, String transformName, String jobName) { + deleteWithResponse(resourceGroupName, accountName, transformName, jobName, Context.NONE); } /** @@ -1057,7 +1058,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1132,7 +1133,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1183,15 +1184,22 @@ private Mono updateAsync( * @param transformName The Transform name. * @param jobName The Job name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job resource type. + * @return a Job resource type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner update( - String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters) { - return updateAsync(resourceGroupName, accountName, transformName, jobName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, + String accountName, + String transformName, + String jobName, + JobInner parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, transformName, jobName, parameters, context) + .block(); } /** @@ -1205,22 +1213,16 @@ public JobInner update( * @param transformName The Transform name. * @param jobName The Job name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job resource type along with {@link Response}. + * @return a Job resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String accountName, - String transformName, - String jobName, - JobInner parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, transformName, jobName, parameters, context) - .block(); + public JobInner update( + String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters) { + return updateWithResponse(resourceGroupName, accountName, transformName, jobName, parameters, Context.NONE) + .getValue(); } /** @@ -1265,7 +1267,7 @@ private Mono> cancelJobWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1327,7 +1329,7 @@ private Mono> cancelJobWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1373,13 +1375,16 @@ private Mono cancelJobAsync( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName) { - cancelJobAsync(resourceGroupName, accountName, transformName, jobName).block(); + public Response cancelJobWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context) { + return cancelJobWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); } /** @@ -1391,16 +1396,13 @@ public void cancelJob(String resourceGroupName, String accountName, String trans * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response cancelJobWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context) { - return cancelJobWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); + public void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName) { + cancelJobWithResponse(resourceGroupName, accountName, transformName, jobName, Context.NONE); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsImpl.java index 361a0a0ec1eac..10b5326b2293b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsImpl.java @@ -44,15 +44,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new JobImpl(inner1, this.manager())); } - public Job get(String resourceGroupName, String accountName, String transformName, String jobName) { - JobInner inner = this.serviceClient().get(resourceGroupName, accountName, transformName, jobName); - if (inner != null) { - return new JobImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context) { Response inner = @@ -68,8 +59,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String transformName, String jobName) { - this.serviceClient().delete(resourceGroupName, accountName, transformName, jobName); + public Job get(String resourceGroupName, String accountName, String transformName, String jobName) { + JobInner inner = this.serviceClient().get(resourceGroupName, accountName, transformName, jobName); + if (inner != null) { + return new JobImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -77,8 +73,8 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, transformName, jobName, context); } - public void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName) { - this.serviceClient().cancelJob(resourceGroupName, accountName, transformName, jobName); + public void delete(String resourceGroupName, String accountName, String transformName, String jobName) { + this.serviceClient().delete(resourceGroupName, accountName, transformName, jobName); } public Response cancelJobWithResponse( @@ -88,6 +84,10 @@ public Response cancelJobWithResponse( .cancelJobWithResponse(resourceGroupName, accountName, transformName, jobName, context); } + public void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName) { + this.serviceClient().cancelJob(resourceGroupName, accountName, transformName, jobName); + } + public Job getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java index faeebff9a685c..f7ea6de335745 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java @@ -67,7 +67,7 @@ public final class LiveEventsClientImpl implements LiveEventsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesLi") - private interface LiveEventsService { + public interface LiveEventsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" @@ -586,14 +586,16 @@ private Mono getAsync(String resourceGroupName, String accountNa * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a live event. + * @return properties of a live event along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LiveEventInner get(String resourceGroupName, String accountName, String liveEventName) { - return getAsync(resourceGroupName, accountName, liveEventName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String liveEventName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, liveEventName, context).block(); } /** @@ -604,16 +606,14 @@ public LiveEventInner get(String resourceGroupName, String accountName, String l * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a live event along with {@link Response}. + * @return properties of a live event. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, liveEventName, context).block(); + public LiveEventInner get(String resourceGroupName, String accountName, String liveEventName) { + return getWithResponse(resourceGroupName, accountName, liveEventName, Context.NONE).getValue(); } /** @@ -787,6 +787,36 @@ private PollerFlux, LiveEventInner> beginCreateAsync( this.client.getContext()); } + /** + * Create Live Event + * + *

Creates a new live event. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param parameters Live event properties needed for creation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the live event. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, LiveEventInner> beginCreateAsync( + String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters) { + final Boolean autoStart = null; + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + LiveEventInner.class, + LiveEventInner.class, + this.client.getContext()); + } + /** * Create Live Event * @@ -829,7 +859,6 @@ private PollerFlux, LiveEventInner> beginCreateAsync( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param parameters Live event properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -837,11 +866,8 @@ private PollerFlux, LiveEventInner> beginCreateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, LiveEventInner> beginCreate( - String resourceGroupName, - String accountName, - String liveEventName, - LiveEventInner parameters, - Boolean autoStart) { + String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters) { + final Boolean autoStart = null; return beginCreateAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart).getSyncPoller(); } @@ -952,31 +978,6 @@ private Mono createAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create Live Event - * - *

Creates a new live event. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param liveEventName The name of the live event, maximum length is 32. - * @param parameters Live event properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the live event. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LiveEventInner create( - String resourceGroupName, - String accountName, - String liveEventName, - LiveEventInner parameters, - Boolean autoStart) { - return createAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart).block(); - } - /** * Create Live Event * @@ -2905,14 +2906,16 @@ private Mono asyncOperationAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { - return asyncOperationAsync(resourceGroupName, accountName, operationId).block(); + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); } /** @@ -2923,16 +2926,14 @@ public AsyncOperationResultInner asyncOperation(String resourceGroupName, String * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context) { - return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); + public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { + return asyncOperationWithResponse(resourceGroupName, accountName, operationId, Context.NONE).getValue(); } /** @@ -3085,15 +3086,17 @@ private Mono operationLocationAsync( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LiveEventInner operationLocation( - String resourceGroupName, String accountName, String liveEventName, String operationId) { - return operationLocationAsync(resourceGroupName, accountName, liveEventName, operationId).block(); + public Response operationLocationWithResponse( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context) { + return operationLocationWithResponseAsync(resourceGroupName, accountName, liveEventName, operationId, context) + .block(); } /** @@ -3105,17 +3108,16 @@ public LiveEventInner operationLocation( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response operationLocationWithResponse( - String resourceGroupName, String accountName, String liveEventName, String operationId, Context context) { - return operationLocationWithResponseAsync(resourceGroupName, accountName, liveEventName, operationId, context) - .block(); + public LiveEventInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String operationId) { + return operationLocationWithResponse(resourceGroupName, accountName, liveEventName, operationId, Context.NONE) + .getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java index 4dbab9fe36430..a4aeb1207a9b5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java @@ -40,15 +40,6 @@ public PagedIterable list(String resourceGroupName, String accountNam return Utils.mapPage(inner, inner1 -> new LiveEventImpl(inner1, this.manager())); } - public LiveEvent get(String resourceGroupName, String accountName, String liveEventName) { - LiveEventInner inner = this.serviceClient().get(resourceGroupName, accountName, liveEventName); - if (inner != null) { - return new LiveEventImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String liveEventName, Context context) { Response inner = @@ -64,6 +55,15 @@ public Response getWithResponse( } } + public LiveEvent get(String resourceGroupName, String accountName, String liveEventName) { + LiveEventInner inner = this.serviceClient().get(resourceGroupName, accountName, liveEventName); + if (inner != null) { + return new LiveEventImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String liveEventName) { this.serviceClient().delete(resourceGroupName, accountName, liveEventName); } @@ -110,16 +110,6 @@ public void reset(String resourceGroupName, String accountName, String liveEvent this.serviceClient().reset(resourceGroupName, accountName, liveEventName, context); } - public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { - AsyncOperationResultInner inner = - this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); - if (inner != null) { - return new AsyncOperationResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response asyncOperationWithResponse( String resourceGroupName, String accountName, String operationId, Context context) { Response inner = @@ -135,12 +125,11 @@ public Response asyncOperationWithResponse( } } - public LiveEvent operationLocation( - String resourceGroupName, String accountName, String liveEventName, String operationId) { - LiveEventInner inner = - this.serviceClient().operationLocation(resourceGroupName, accountName, liveEventName, operationId); + public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { + AsyncOperationResultInner inner = + this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); if (inner != null) { - return new LiveEventImpl(inner, this.manager()); + return new AsyncOperationResultImpl(inner, this.manager()); } else { return null; } @@ -163,6 +152,17 @@ public Response operationLocationWithResponse( } } + public LiveEvent operationLocation( + String resourceGroupName, String accountName, String liveEventName, String operationId) { + LiveEventInner inner = + this.serviceClient().operationLocation(resourceGroupName, accountName, liveEventName, operationId); + if (inner != null) { + return new LiveEventImpl(inner, this.manager()); + } else { + return null; + } + } + public LiveEvent getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java index db6aa9d03faa1..058e939a4bf41 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java @@ -64,7 +64,7 @@ public final class LiveOutputsClientImpl implements LiveOutputsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesLi") - private interface LiveOutputsService { + public interface LiveOutputsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" @@ -537,15 +537,16 @@ private Mono getAsync( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output. + * @return a live output along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LiveOutputInner get( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { - return getAsync(resourceGroupName, accountName, liveEventName, liveOutputName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, liveEventName, liveOutputName, context).block(); } /** @@ -557,16 +558,15 @@ public LiveOutputInner get( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output along with {@link Response}. + * @return a live output. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, liveEventName, liveOutputName, context).block(); + public LiveOutputInner get( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { + return getWithResponse(resourceGroupName, accountName, liveEventName, liveOutputName, Context.NONE).getValue(); } /** @@ -1374,14 +1374,16 @@ private Mono asyncOperationAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { - return asyncOperationAsync(resourceGroupName, accountName, operationId).block(); + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); } /** @@ -1392,16 +1394,14 @@ public AsyncOperationResultInner asyncOperation(String resourceGroupName, String * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context) { - return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); + public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { + return asyncOperationWithResponse(resourceGroupName, accountName, operationId, Context.NONE).getValue(); } /** @@ -1572,15 +1572,22 @@ private Mono operationLocationAsync( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LiveOutputInner operationLocation( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { - return operationLocationAsync(resourceGroupName, accountName, liveEventName, liveOutputName, operationId) + public Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context) { + return operationLocationWithResponseAsync( + resourceGroupName, accountName, liveEventName, liveOutputName, operationId, context) .block(); } @@ -1594,23 +1601,17 @@ public LiveOutputInner operationLocation( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String liveEventName, - String liveOutputName, - String operationId, - Context context) { - return operationLocationWithResponseAsync( - resourceGroupName, accountName, liveEventName, liveOutputName, operationId, context) - .block(); + public LiveOutputInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { + return operationLocationWithResponse( + resourceGroupName, accountName, liveEventName, liveOutputName, operationId, Context.NONE) + .getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java index a7fddf0e792c6..266aaa037607b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java @@ -41,15 +41,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new LiveOutputImpl(inner1, this.manager())); } - public LiveOutput get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { - LiveOutputInner inner = this.serviceClient().get(resourceGroupName, accountName, liveEventName, liveOutputName); - if (inner != null) { - return new LiveOutputImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context) { Response inner = @@ -67,6 +58,15 @@ public Response getWithResponse( } } + public LiveOutput get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { + LiveOutputInner inner = this.serviceClient().get(resourceGroupName, accountName, liveEventName, liveOutputName); + if (inner != null) { + return new LiveOutputImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { this.serviceClient().delete(resourceGroupName, accountName, liveEventName, liveOutputName); } @@ -76,16 +76,6 @@ public void delete( this.serviceClient().delete(resourceGroupName, accountName, liveEventName, liveOutputName, context); } - public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { - AsyncOperationResultInner inner = - this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); - if (inner != null) { - return new AsyncOperationResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response asyncOperationWithResponse( String resourceGroupName, String accountName, String operationId, Context context) { Response inner = @@ -101,14 +91,11 @@ public Response asyncOperationWithResponse( } } - public LiveOutput operationLocation( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { - LiveOutputInner inner = - this - .serviceClient() - .operationLocation(resourceGroupName, accountName, liveEventName, liveOutputName, operationId); + public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { + AsyncOperationResultInner inner = + this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); if (inner != null) { - return new LiveOutputImpl(inner, this.manager()); + return new AsyncOperationResultImpl(inner, this.manager()); } else { return null; } @@ -137,6 +124,19 @@ public Response operationLocationWithResponse( } } + public LiveOutput operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { + LiveOutputInner inner = + this + .serviceClient() + .operationLocation(resourceGroupName, accountName, liveEventName, liveOutputName, operationId); + if (inner != null) { + return new LiveOutputImpl(inner, this.manager()); + } else { + return null; + } + } + public LiveOutput getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java index 54ad1a9b224c9..aaf4fd58d1388 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java @@ -52,7 +52,7 @@ public final class LocationsClientImpl implements LocationsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesLo") - private interface LocationsService { + public interface LocationsService { @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability") @@ -198,15 +198,16 @@ private Mono checkNameAvailabilityAsync( * * @param locationName Location name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response from the check name availability request. + * @return the response from the check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EntityNameAvailabilityCheckOutputInner checkNameAvailability( - String locationName, CheckNameAvailabilityInput parameters) { - return checkNameAvailabilityAsync(locationName, parameters).block(); + public Response checkNameAvailabilityWithResponse( + String locationName, CheckNameAvailabilityInput parameters, Context context) { + return checkNameAvailabilityWithResponseAsync(locationName, parameters, context).block(); } /** @@ -216,15 +217,14 @@ public EntityNameAvailabilityCheckOutputInner checkNameAvailability( * * @param locationName Location name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response from the check name availability request along with {@link Response}. + * @return the response from the check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String locationName, CheckNameAvailabilityInput parameters, Context context) { - return checkNameAvailabilityWithResponseAsync(locationName, parameters, context).block(); + public EntityNameAvailabilityCheckOutputInner checkNameAvailability( + String locationName, CheckNameAvailabilityInput parameters) { + return checkNameAvailabilityWithResponse(locationName, parameters, Context.NONE).getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsImpl.java index 3c779d397a0e2..33f17176960bb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsImpl.java @@ -27,17 +27,6 @@ public LocationsImpl( this.serviceManager = serviceManager; } - public EntityNameAvailabilityCheckOutput checkNameAvailability( - String locationName, CheckNameAvailabilityInput parameters) { - EntityNameAvailabilityCheckOutputInner inner = - this.serviceClient().checkNameAvailability(locationName, parameters); - if (inner != null) { - return new EntityNameAvailabilityCheckOutputImpl(inner, this.manager()); - } else { - return null; - } - } - public Response checkNameAvailabilityWithResponse( String locationName, CheckNameAvailabilityInput parameters, Context context) { Response inner = @@ -53,6 +42,17 @@ public Response checkNameAvailabilityWithResp } } + public EntityNameAvailabilityCheckOutput checkNameAvailability( + String locationName, CheckNameAvailabilityInput parameters) { + EntityNameAvailabilityCheckOutputInner inner = + this.serviceClient().checkNameAvailability(locationName, parameters); + if (inner != null) { + return new EntityNameAvailabilityCheckOutputImpl(inner, this.manager()); + } else { + return null; + } + } + private LocationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java index e280487b0f3b2..b6234e072c2dc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java @@ -220,18 +220,14 @@ public MediaService refresh(Context context) { return this; } - public void syncStorageKeys(SyncStorageKeysInput parameters) { - serviceManager.mediaservices().syncStorageKeys(resourceGroupName, accountName, parameters); - } - public Response syncStorageKeysWithResponse(SyncStorageKeysInput parameters, Context context) { return serviceManager .mediaservices() .syncStorageKeysWithResponse(resourceGroupName, accountName, parameters, context); } - public EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters) { - return serviceManager.mediaservices().listEdgePolicies(resourceGroupName, accountName, parameters); + public void syncStorageKeys(SyncStorageKeysInput parameters) { + serviceManager.mediaservices().syncStorageKeys(resourceGroupName, accountName, parameters); } public Response listEdgePoliciesWithResponse(ListEdgePoliciesInput parameters, Context context) { @@ -240,6 +236,10 @@ public Response listEdgePoliciesWithResponse(ListEdgePoliciesInput .listEdgePoliciesWithResponse(resourceGroupName, accountName, parameters, context); } + public EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters) { + return serviceManager.mediaservices().listEdgePolicies(resourceGroupName, accountName, parameters); + } + public MediaServiceImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java index ca2d6460af9c4..64b4a6e59f6ba 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java @@ -54,7 +54,7 @@ public final class MediaServicesOperationResultsClientImpl implements MediaServi */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesMe") - private interface MediaServicesOperationResultsService { + public interface MediaServicesOperationResultsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}" @@ -193,14 +193,16 @@ private Mono getAsync(String locationName, String operationId * * @param locationName Location name. * @param operationId Operation Id. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return media service operation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MediaServiceInner get(String locationName, String operationId) { - return getAsync(locationName, operationId).block(); + public MediaServicesOperationResultsGetResponse getWithResponse( + String locationName, String operationId, Context context) { + return getWithResponseAsync(locationName, operationId, context).block(); } /** @@ -210,15 +212,13 @@ public MediaServiceInner get(String locationName, String operationId) { * * @param locationName Location name. * @param operationId Operation Id. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return media service operation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MediaServicesOperationResultsGetResponse getWithResponse( - String locationName, String operationId, Context context) { - return getWithResponseAsync(locationName, operationId, context).block(); + public MediaServiceInner get(String locationName, String operationId) { + return getWithResponse(locationName, operationId, Context.NONE).getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsImpl.java index dbd496009c86c..aef4825cef312 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsImpl.java @@ -28,15 +28,6 @@ public MediaServicesOperationResultsImpl( this.serviceManager = serviceManager; } - public MediaService get(String locationName, String operationId) { - MediaServiceInner inner = this.serviceClient().get(locationName, operationId); - if (inner != null) { - return new MediaServiceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String locationName, String operationId, Context context) { MediaServicesOperationResultsGetResponse inner = this.serviceClient().getWithResponse(locationName, operationId, context); @@ -51,6 +42,15 @@ public Response getWithResponse(String locationName, String operat } } + public MediaService get(String locationName, String operationId) { + MediaServiceInner inner = this.serviceClient().get(locationName, operationId); + if (inner != null) { + return new MediaServiceImpl(inner, this.manager()); + } else { + return null; + } + } + private MediaServicesOperationResultsClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java index 36b404e645cc8..ba8fca52cd832 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java @@ -54,7 +54,7 @@ public final class MediaServicesOperationStatusesClientImpl implements MediaServ */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesMe") - private interface MediaServicesOperationStatusesService { + public interface MediaServicesOperationStatusesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}" @@ -193,14 +193,16 @@ private Mono getAsync(String locationName, Str * * @param locationName Location name. * @param operationId Operation ID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return media service operation status. + * @return media service operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MediaServiceOperationStatusInner get(String locationName, String operationId) { - return getAsync(locationName, operationId).block(); + public Response getWithResponse( + String locationName, String operationId, Context context) { + return getWithResponseAsync(locationName, operationId, context).block(); } /** @@ -210,15 +212,13 @@ public MediaServiceOperationStatusInner get(String locationName, String operatio * * @param locationName Location name. * @param operationId Operation ID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return media service operation status along with {@link Response}. + * @return media service operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String locationName, String operationId, Context context) { - return getWithResponseAsync(locationName, operationId, context).block(); + public MediaServiceOperationStatusInner get(String locationName, String operationId) { + return getWithResponse(locationName, operationId, Context.NONE).getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesImpl.java index a175cc9109e99..928ae37af8ce5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesImpl.java @@ -27,15 +27,6 @@ public MediaServicesOperationStatusesImpl( this.serviceManager = serviceManager; } - public MediaServiceOperationStatus get(String locationName, String operationId) { - MediaServiceOperationStatusInner inner = this.serviceClient().get(locationName, operationId); - if (inner != null) { - return new MediaServiceOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String locationName, String operationId, Context context) { Response inner = @@ -51,6 +42,15 @@ public Response getWithResponse( } } + public MediaServiceOperationStatus get(String locationName, String operationId) { + MediaServiceOperationStatusInner inner = this.serviceClient().get(locationName, operationId); + if (inner != null) { + return new MediaServiceOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + private MediaServicesOperationStatusesClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java index 98cec829b2f74..0ece7c2ec82bb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java @@ -69,7 +69,7 @@ public final class MediaservicesClientImpl implements MediaservicesClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesMe") - private interface MediaservicesService { + public interface MediaservicesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media" @@ -515,14 +515,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Media Services account. + * @return the details of a Media Services account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MediaServiceInner getByResourceGroup(String resourceGroupName, String accountName) { - return getByResourceGroupAsync(resourceGroupName, accountName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block(); } /** @@ -532,16 +534,14 @@ public MediaServiceInner getByResourceGroup(String resourceGroupName, String acc * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Media Services account along with {@link Response}. + * @return the details of a Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block(); + public MediaServiceInner getByResourceGroup(String resourceGroupName, String accountName) { + return getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } /** @@ -956,13 +956,15 @@ private Mono deleteAsync(String resourceGroupName, String accountName) { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName) { - deleteAsync(resourceGroupName, accountName).block(); + public Response deleteWithResponse(String resourceGroupName, String accountName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, context).block(); } /** @@ -972,15 +974,13 @@ public void delete(String resourceGroupName, String accountName) { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String accountName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, context).block(); + public void delete(String resourceGroupName, String accountName) { + deleteWithResponse(resourceGroupName, accountName, Context.NONE); } /** @@ -1412,13 +1412,16 @@ private Mono syncStorageKeysAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters) { - syncStorageKeysAsync(resourceGroupName, accountName, parameters).block(); + public Response syncStorageKeysWithResponse( + String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context) { + return syncStorageKeysWithResponseAsync(resourceGroupName, accountName, parameters, context).block(); } /** @@ -1429,16 +1432,13 @@ public void syncStorageKeys(String resourceGroupName, String accountName, SyncSt * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response syncStorageKeysWithResponse( - String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context) { - return syncStorageKeysWithResponseAsync(resourceGroupName, accountName, parameters, context).block(); + public void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters) { + syncStorageKeysWithResponse(resourceGroupName, accountName, parameters, Context.NONE); } /** @@ -1583,15 +1583,16 @@ private Mono listEdgePoliciesAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EdgePoliciesInner listEdgePolicies( - String resourceGroupName, String accountName, ListEdgePoliciesInput parameters) { - return listEdgePoliciesAsync(resourceGroupName, accountName, parameters).block(); + public Response listEdgePoliciesWithResponse( + String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context) { + return listEdgePoliciesWithResponseAsync(resourceGroupName, accountName, parameters, context).block(); } /** @@ -1602,16 +1603,15 @@ public EdgePoliciesInner listEdgePolicies( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listEdgePoliciesWithResponse( - String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context) { - return listEdgePoliciesWithResponseAsync(resourceGroupName, accountName, parameters, context).block(); + public EdgePoliciesInner listEdgePolicies( + String resourceGroupName, String accountName, ListEdgePoliciesInput parameters) { + return listEdgePoliciesWithResponse(resourceGroupName, accountName, parameters, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesImpl.java index 88ada499fa7ab..89c9556028416 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesImpl.java @@ -41,15 +41,6 @@ public PagedIterable listByResourceGroup(String resourceGroupName, return Utils.mapPage(inner, inner1 -> new MediaServiceImpl(inner1, this.manager())); } - public MediaService getByResourceGroup(String resourceGroupName, String accountName) { - MediaServiceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName); - if (inner != null) { - return new MediaServiceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String accountName, Context context) { Response inner = @@ -65,16 +56,22 @@ public Response getByResourceGroupWithResponse( } } - public void deleteByResourceGroup(String resourceGroupName, String accountName) { - this.serviceClient().delete(resourceGroupName, accountName); + public MediaService getByResourceGroup(String resourceGroupName, String accountName) { + MediaServiceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName); + if (inner != null) { + return new MediaServiceImpl(inner, this.manager()); + } else { + return null; + } } - public Response deleteWithResponse(String resourceGroupName, String accountName, Context context) { + public Response deleteByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, context); } - public void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters) { - this.serviceClient().syncStorageKeys(resourceGroupName, accountName, parameters); + public void deleteByResourceGroup(String resourceGroupName, String accountName) { + this.serviceClient().delete(resourceGroupName, accountName); } public Response syncStorageKeysWithResponse( @@ -82,14 +79,8 @@ public Response syncStorageKeysWithResponse( return this.serviceClient().syncStorageKeysWithResponse(resourceGroupName, accountName, parameters, context); } - public EdgePolicies listEdgePolicies( - String resourceGroupName, String accountName, ListEdgePoliciesInput parameters) { - EdgePoliciesInner inner = this.serviceClient().listEdgePolicies(resourceGroupName, accountName, parameters); - if (inner != null) { - return new EdgePoliciesImpl(inner, this.manager()); - } else { - return null; - } + public void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters) { + this.serviceClient().syncStorageKeys(resourceGroupName, accountName, parameters); } public Response listEdgePoliciesWithResponse( @@ -107,6 +98,16 @@ public Response listEdgePoliciesWithResponse( } } + public EdgePolicies listEdgePolicies( + String resourceGroupName, String accountName, ListEdgePoliciesInput parameters) { + EdgePoliciesInner inner = this.serviceClient().listEdgePolicies(resourceGroupName, accountName, parameters); + if (inner != null) { + return new EdgePoliciesImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); return Utils.mapPage(inner, inner1 -> new MediaServiceImpl(inner1, this.manager())); @@ -171,7 +172,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'mediaservices'.", id))); } - this.deleteWithResponse(resourceGroupName, accountName, Context.NONE); + this.deleteByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -190,7 +191,7 @@ public Response deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'mediaservices'.", id))); } - return this.deleteWithResponse(resourceGroupName, accountName, context); + return this.deleteByResourceGroupWithResponse(resourceGroupName, accountName, context); } private MediaservicesClient serviceClient() { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java index 91dcbdbabd295..7d0139239595b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java @@ -50,7 +50,7 @@ public final class OperationResultsClientImpl implements OperationResultsClient */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesOp") - private interface OperationResultsService { + public interface OperationResultsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -237,15 +237,21 @@ private Mono getAsync( * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return asset track operation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetTrackInner get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { - return getAsync(resourceGroupName, accountName, assetName, trackName, operationId).block(); + public OperationResultsGetResponse getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, operationId, context).block(); } /** @@ -258,20 +264,15 @@ public AssetTrackInner get( * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return asset track operation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - public OperationResultsGetResponse getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context) { - return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, operationId, context).block(); + public AssetTrackInner get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { + return getWithResponse(resourceGroupName, accountName, assetName, trackName, operationId, Context.NONE) + .getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsImpl.java index 04e8bdc732bf1..59269fa483f54 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsImpl.java @@ -28,17 +28,6 @@ public OperationResultsImpl( this.serviceManager = serviceManager; } - public AssetTrack get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { - AssetTrackInner inner = - this.serviceClient().get(resourceGroupName, accountName, assetName, trackName, operationId); - if (inner != null) { - return new AssetTrackImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, @@ -61,6 +50,17 @@ public Response getWithResponse( } } + public AssetTrack get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { + AssetTrackInner inner = + this.serviceClient().get(resourceGroupName, accountName, assetName, trackName, operationId); + if (inner != null) { + return new AssetTrackImpl(inner, this.manager()); + } else { + return null; + } + } + private OperationResultsClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java index 67598bba5b005..4bd432b58ed44 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java @@ -50,7 +50,7 @@ public final class OperationStatusesClientImpl implements OperationStatusesClien */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesOp") - private interface OperationStatusesService { + public interface OperationStatusesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -237,15 +237,21 @@ private Mono getAsync( * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return asset track operation status. + * @return asset track operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetTrackOperationStatusInner get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { - return getAsync(resourceGroupName, accountName, assetName, trackName, operationId).block(); + public Response getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, operationId, context).block(); } /** @@ -258,20 +264,15 @@ public AssetTrackOperationStatusInner get( * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return asset track operation status along with {@link Response}. + * @return asset track operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context) { - return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, operationId, context).block(); + public AssetTrackOperationStatusInner get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { + return getWithResponse(resourceGroupName, accountName, assetName, trackName, operationId, Context.NONE) + .getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesImpl.java index cf39b7daac312..e333686ac8415 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesImpl.java @@ -27,17 +27,6 @@ public OperationStatusesImpl( this.serviceManager = serviceManager; } - public AssetTrackOperationStatus get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { - AssetTrackOperationStatusInner inner = - this.serviceClient().get(resourceGroupName, accountName, assetName, trackName, operationId); - if (inner != null) { - return new AssetTrackOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, @@ -60,6 +49,17 @@ public Response getWithResponse( } } + public AssetTrackOperationStatus get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { + AssetTrackOperationStatusInner inner = + this.serviceClient().get(resourceGroupName, accountName, assetName, trackName, operationId); + if (inner != null) { + return new AssetTrackOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + private OperationStatusesClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java index 887830a6ca73d..937844a8bb608 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java @@ -49,7 +49,7 @@ public final class OperationsClientImpl implements OperationsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesOp") - private interface OperationsService { + public interface OperationsService { @Headers({"Content-Type: application/json"}) @Get("/providers/Microsoft.Media/operations") @ExpectedResponses({200}) @@ -129,13 +129,15 @@ private Mono listAsync() { * *

Lists all the Media Services operations. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of Operation items. + * @return a collection of Operation items along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public OperationCollectionInner list() { - return listAsync().block(); + public Response listWithResponse(Context context) { + return listWithResponseAsync(context).block(); } /** @@ -143,14 +145,12 @@ public OperationCollectionInner list() { * *

Lists all the Media Services operations. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of Operation items along with {@link Response}. + * @return a collection of Operation items. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse(Context context) { - return listWithResponseAsync(context).block(); + public OperationCollectionInner list() { + return listWithResponse(Context.NONE).getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsImpl.java index 0288f85f28472..e34e8b8498097 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsImpl.java @@ -26,15 +26,6 @@ public OperationsImpl( this.serviceManager = serviceManager; } - public OperationCollection list() { - OperationCollectionInner inner = this.serviceClient().list(); - if (inner != null) { - return new OperationCollectionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse(Context context) { Response inner = this.serviceClient().listWithResponse(context); if (inner != null) { @@ -48,6 +39,15 @@ public Response listWithResponse(Context context) { } } + public OperationCollection list() { + OperationCollectionInner inner = this.serviceClient().list(); + if (inner != null) { + return new OperationCollectionImpl(inner, this.manager()); + } else { + return null; + } + } + private OperationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java index 1c47d0b68b6df..7b9ce60559b32 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java @@ -56,7 +56,7 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesPr") - private interface PrivateEndpointConnectionsService { + public interface PrivateEndpointConnectionsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" @@ -249,14 +249,17 @@ private Mono listAsync(String resource * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of private endpoint connection associated with the specified storage account. + * @return list of private endpoint connection associated with the specified storage account along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName) { - return listAsync(resourceGroupName, accountName).block(); + public Response listWithResponse( + String resourceGroupName, String accountName, Context context) { + return listWithResponseAsync(resourceGroupName, accountName, context).block(); } /** @@ -266,17 +269,14 @@ public PrivateEndpointConnectionListResultInner list(String resourceGroupName, S * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of private endpoint connection associated with the specified storage account along with {@link - * Response}. + * @return list of private endpoint connection associated with the specified storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, String accountName, Context context) { - return listWithResponseAsync(resourceGroupName, accountName, context).block(); + public PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName) { + return listWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } /** @@ -418,14 +418,16 @@ private Mono getAsync(String resourceGroupName, * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a private endpoint connection. + * @return the details of a private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner get(String resourceGroupName, String accountName, String name) { - return getAsync(resourceGroupName, accountName, name).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, name, context).block(); } /** @@ -436,16 +438,14 @@ public PrivateEndpointConnectionInner get(String resourceGroupName, String accou * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a private endpoint connection along with {@link Response}. + * @return the details of a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, name, context).block(); + public PrivateEndpointConnectionInner get(String resourceGroupName, String accountName, String name) { + return getWithResponse(resourceGroupName, accountName, name, Context.NONE).getValue(); } /** @@ -608,15 +608,20 @@ private Mono createOrUpdateAsync( * @param accountName The Media Services account name. * @param name The name parameter. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Private Endpoint Connection resource. + * @return the Private Endpoint Connection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner createOrUpdate( - String resourceGroupName, String accountName, String name, PrivateEndpointConnectionInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, name, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String accountName, + String name, + PrivateEndpointConnectionInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, name, parameters, context).block(); } /** @@ -628,20 +633,15 @@ public PrivateEndpointConnectionInner createOrUpdate( * @param accountName The Media Services account name. * @param name The name parameter. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Private Endpoint Connection resource along with {@link Response}. + * @return the Private Endpoint Connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String accountName, - String name, - PrivateEndpointConnectionInner parameters, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, accountName, name, parameters, context).block(); + public PrivateEndpointConnectionInner createOrUpdate( + String resourceGroupName, String accountName, String name, PrivateEndpointConnectionInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, accountName, name, parameters, Context.NONE).getValue(); } /** @@ -779,13 +779,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String name) { - deleteAsync(resourceGroupName, accountName, name).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String name, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, name, context).block(); } /** @@ -796,15 +799,12 @@ public void delete(String resourceGroupName, String accountName, String name) { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String name, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, name, context).block(); + public void delete(String resourceGroupName, String accountName, String name) { + deleteWithResponse(resourceGroupName, accountName, name, Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsImpl.java index 21be3759222e2..a3898f9058aab 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsImpl.java @@ -29,15 +29,6 @@ public PrivateEndpointConnectionsImpl( this.serviceManager = serviceManager; } - public PrivateEndpointConnectionListResult list(String resourceGroupName, String accountName) { - PrivateEndpointConnectionListResultInner inner = this.serviceClient().list(resourceGroupName, accountName); - if (inner != null) { - return new PrivateEndpointConnectionListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse( String resourceGroupName, String accountName, Context context) { Response inner = @@ -53,10 +44,10 @@ public Response listWithResponse( } } - public PrivateEndpointConnection get(String resourceGroupName, String accountName, String name) { - PrivateEndpointConnectionInner inner = this.serviceClient().get(resourceGroupName, accountName, name); + public PrivateEndpointConnectionListResult list(String resourceGroupName, String accountName) { + PrivateEndpointConnectionListResultInner inner = this.serviceClient().list(resourceGroupName, accountName); if (inner != null) { - return new PrivateEndpointConnectionImpl(inner, this.manager()); + return new PrivateEndpointConnectionListResultImpl(inner, this.manager()); } else { return null; } @@ -77,8 +68,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String name) { - this.serviceClient().delete(resourceGroupName, accountName, name); + public PrivateEndpointConnection get(String resourceGroupName, String accountName, String name) { + PrivateEndpointConnectionInner inner = this.serviceClient().get(resourceGroupName, accountName, name); + if (inner != null) { + return new PrivateEndpointConnectionImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -86,6 +82,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, name, context); } + public void delete(String resourceGroupName, String accountName, String name) { + this.serviceClient().delete(resourceGroupName, accountName, name); + } + public PrivateEndpointConnection getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java index f6cf5ccd5c040..7a7b1df751567 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java @@ -52,7 +52,7 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesPr") - private interface PrivateLinkResourcesService { + public interface PrivateLinkResourcesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" @@ -209,14 +209,16 @@ private Mono listAsync(String resourceGroupN * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources. + * @return a list of private link resources along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourceListResultInner list(String resourceGroupName, String accountName) { - return listAsync(resourceGroupName, accountName).block(); + public Response listWithResponse( + String resourceGroupName, String accountName, Context context) { + return listWithResponseAsync(resourceGroupName, accountName, context).block(); } /** @@ -226,16 +228,14 @@ public PrivateLinkResourceListResultInner list(String resourceGroupName, String * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources along with {@link Response}. + * @return a list of private link resources. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, String accountName, Context context) { - return listWithResponseAsync(resourceGroupName, accountName, context).block(); + public PrivateLinkResourceListResultInner list(String resourceGroupName, String accountName) { + return listWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } /** @@ -375,14 +375,16 @@ private Mono getAsync(String resourceGroupName, String * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of a group ID. + * @return details of a group ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourceInner get(String resourceGroupName, String accountName, String name) { - return getAsync(resourceGroupName, accountName, name).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, name, context).block(); } /** @@ -393,15 +395,13 @@ public PrivateLinkResourceInner get(String resourceGroupName, String accountName * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of a group ID along with {@link Response}. + * @return details of a group ID. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, name, context).block(); + public PrivateLinkResourceInner get(String resourceGroupName, String accountName, String name) { + return getWithResponse(resourceGroupName, accountName, name, Context.NONE).getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesImpl.java index e5809ecac8aab..cef262e66aacd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesImpl.java @@ -29,15 +29,6 @@ public PrivateLinkResourcesImpl( this.serviceManager = serviceManager; } - public PrivateLinkResourceListResult list(String resourceGroupName, String accountName) { - PrivateLinkResourceListResultInner inner = this.serviceClient().list(resourceGroupName, accountName); - if (inner != null) { - return new PrivateLinkResourceListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse( String resourceGroupName, String accountName, Context context) { Response inner = @@ -53,10 +44,10 @@ public Response listWithResponse( } } - public PrivateLinkResource get(String resourceGroupName, String accountName, String name) { - PrivateLinkResourceInner inner = this.serviceClient().get(resourceGroupName, accountName, name); + public PrivateLinkResourceListResult list(String resourceGroupName, String accountName) { + PrivateLinkResourceListResultInner inner = this.serviceClient().list(resourceGroupName, accountName); if (inner != null) { - return new PrivateLinkResourceImpl(inner, this.manager()); + return new PrivateLinkResourceListResultImpl(inner, this.manager()); } else { return null; } @@ -77,6 +68,15 @@ public Response getWithResponse( } } + public PrivateLinkResource get(String resourceGroupName, String accountName, String name) { + PrivateLinkResourceInner inner = this.serviceClient().get(resourceGroupName, accountName, name); + if (inner != null) { + return new PrivateLinkResourceImpl(inner, this.manager()); + } else { + return null; + } + } + private PrivateLinkResourcesClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java index 203b9b928151b..a586eeb3f3a75 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java @@ -68,7 +68,7 @@ public final class StreamingEndpointsClientImpl implements StreamingEndpointsCli */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesSt") - private interface StreamingEndpointsService { + public interface StreamingEndpointsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" @@ -591,14 +591,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint. + * @return a streaming endpoint along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingEndpointInner get(String resourceGroupName, String accountName, String streamingEndpointName) { - return getAsync(resourceGroupName, accountName, streamingEndpointName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, context).block(); } /** @@ -609,16 +611,14 @@ public StreamingEndpointInner get(String resourceGroupName, String accountName, * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint along with {@link Response}. + * @return a streaming endpoint. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, context).block(); + public StreamingEndpointInner get(String resourceGroupName, String accountName, String streamingEndpointName) { + return getWithResponse(resourceGroupName, accountName, streamingEndpointName, Context.NONE).getValue(); } /** @@ -794,6 +794,36 @@ private PollerFlux, StreamingEndpointInner> b this.client.getContext()); } + /** + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param parameters Streaming endpoint properties needed for creation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the streaming endpoint. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, StreamingEndpointInner> beginCreateAsync( + String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters) { + final Boolean autoStart = null; + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, parameters, autoStart); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + StreamingEndpointInner.class, + StreamingEndpointInner.class, + this.client.getContext()); + } + /** * Create StreamingEndpoint * @@ -841,7 +871,6 @@ private PollerFlux, StreamingEndpointInner> b * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param parameters Streaming endpoint properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -849,11 +878,8 @@ private PollerFlux, StreamingEndpointInner> b */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, StreamingEndpointInner> beginCreate( - String resourceGroupName, - String accountName, - String streamingEndpointName, - StreamingEndpointInner parameters, - Boolean autoStart) { + String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters) { + final Boolean autoStart = null; return beginCreateAsync(resourceGroupName, accountName, streamingEndpointName, parameters, autoStart) .getSyncPoller(); } @@ -965,31 +991,6 @@ private Mono createAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create StreamingEndpoint - * - *

Creates a streaming endpoint. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. - * @param parameters Streaming endpoint properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the streaming endpoint. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingEndpointInner create( - String resourceGroupName, - String accountName, - String streamingEndpointName, - StreamingEndpointInner parameters, - Boolean autoStart) { - return createAsync(resourceGroupName, accountName, streamingEndpointName, parameters, autoStart).block(); - } - /** * Create StreamingEndpoint * @@ -1790,15 +1791,16 @@ private Mono skusAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingEndpointSkuInfoListResultInner skus( - String resourceGroupName, String accountName, String streamingEndpointName) { - return skusAsync(resourceGroupName, accountName, streamingEndpointName).block(); + public Response skusWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context) { + return skusWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, context).block(); } /** @@ -1809,16 +1811,15 @@ public StreamingEndpointSkuInfoListResultInner skus( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response skusWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context) { - return skusWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, context).block(); + public StreamingEndpointSkuInfoListResultInner skus( + String resourceGroupName, String accountName, String streamingEndpointName) { + return skusWithResponse(resourceGroupName, accountName, streamingEndpointName, Context.NONE).getValue(); } /** @@ -2853,14 +2854,16 @@ private Mono asyncOperationAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { - return asyncOperationAsync(resourceGroupName, accountName, operationId).block(); + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); } /** @@ -2871,16 +2874,14 @@ public AsyncOperationResultInner asyncOperation(String resourceGroupName, String * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context) { - return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); + public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { + return asyncOperationWithResponse(resourceGroupName, accountName, operationId, Context.NONE).getValue(); } /** @@ -3041,15 +3042,22 @@ private Mono operationLocationAsync( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingEndpointInner operationLocation( - String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { - return operationLocationAsync(resourceGroupName, accountName, streamingEndpointName, operationId).block(); + public Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context) { + return operationLocationWithResponseAsync( + resourceGroupName, accountName, streamingEndpointName, operationId, context) + .block(); } /** @@ -3061,22 +3069,17 @@ public StreamingEndpointInner operationLocation( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String streamingEndpointName, - String operationId, - Context context) { - return operationLocationWithResponseAsync( - resourceGroupName, accountName, streamingEndpointName, operationId, context) - .block(); + public StreamingEndpointInner operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { + return operationLocationWithResponse( + resourceGroupName, accountName, streamingEndpointName, operationId, Context.NONE) + .getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java index e41510b6f4384..574445d251af6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java @@ -44,15 +44,6 @@ public PagedIterable list(String resourceGroupName, String ac return Utils.mapPage(inner, inner1 -> new StreamingEndpointImpl(inner1, this.manager())); } - public StreamingEndpoint get(String resourceGroupName, String accountName, String streamingEndpointName) { - StreamingEndpointInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingEndpointName); - if (inner != null) { - return new StreamingEndpointImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String streamingEndpointName, Context context) { Response inner = @@ -68,6 +59,15 @@ public Response getWithResponse( } } + public StreamingEndpoint get(String resourceGroupName, String accountName, String streamingEndpointName) { + StreamingEndpointInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingEndpointName); + if (inner != null) { + return new StreamingEndpointImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String streamingEndpointName) { this.serviceClient().delete(resourceGroupName, accountName, streamingEndpointName); } @@ -76,17 +76,6 @@ public void delete(String resourceGroupName, String accountName, String streamin this.serviceClient().delete(resourceGroupName, accountName, streamingEndpointName, context); } - public StreamingEndpointSkuInfoListResult skus( - String resourceGroupName, String accountName, String streamingEndpointName) { - StreamingEndpointSkuInfoListResultInner inner = - this.serviceClient().skus(resourceGroupName, accountName, streamingEndpointName); - if (inner != null) { - return new StreamingEndpointSkuInfoListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response skusWithResponse( String resourceGroupName, String accountName, String streamingEndpointName, Context context) { Response inner = @@ -102,6 +91,17 @@ public Response skusWithResponse( } } + public StreamingEndpointSkuInfoListResult skus( + String resourceGroupName, String accountName, String streamingEndpointName) { + StreamingEndpointSkuInfoListResultInner inner = + this.serviceClient().skus(resourceGroupName, accountName, streamingEndpointName); + if (inner != null) { + return new StreamingEndpointSkuInfoListResultImpl(inner, this.manager()); + } else { + return null; + } + } + public void start(String resourceGroupName, String accountName, String streamingEndpointName) { this.serviceClient().start(resourceGroupName, accountName, streamingEndpointName); } @@ -135,16 +135,6 @@ public void scale( this.serviceClient().scale(resourceGroupName, accountName, streamingEndpointName, parameters, context); } - public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { - AsyncOperationResultInner inner = - this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); - if (inner != null) { - return new AsyncOperationResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response asyncOperationWithResponse( String resourceGroupName, String accountName, String operationId, Context context) { Response inner = @@ -160,12 +150,11 @@ public Response asyncOperationWithResponse( } } - public StreamingEndpoint operationLocation( - String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { - StreamingEndpointInner inner = - this.serviceClient().operationLocation(resourceGroupName, accountName, streamingEndpointName, operationId); + public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { + AsyncOperationResultInner inner = + this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); if (inner != null) { - return new StreamingEndpointImpl(inner, this.manager()); + return new AsyncOperationResultImpl(inner, this.manager()); } else { return null; } @@ -193,6 +182,17 @@ public Response operationLocationWithResponse( } } + public StreamingEndpoint operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { + StreamingEndpointInner inner = + this.serviceClient().operationLocation(resourceGroupName, accountName, streamingEndpointName, operationId); + if (inner != null) { + return new StreamingEndpointImpl(inner, this.manager()); + } else { + return null; + } + } + public StreamingEndpoint getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java index a98cb68e4d0f1..61e17fd158d83 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java @@ -162,18 +162,14 @@ public StreamingLocator refresh(Context context) { return this; } - public ListContentKeysResponse listContentKeys() { - return serviceManager.streamingLocators().listContentKeys(resourceGroupName, accountName, streamingLocatorName); - } - public Response listContentKeysWithResponse(Context context) { return serviceManager .streamingLocators() .listContentKeysWithResponse(resourceGroupName, accountName, streamingLocatorName, context); } - public ListPathsResponse listPaths() { - return serviceManager.streamingLocators().listPaths(resourceGroupName, accountName, streamingLocatorName); + public ListContentKeysResponse listContentKeys() { + return serviceManager.streamingLocators().listContentKeys(resourceGroupName, accountName, streamingLocatorName); } public Response listPathsWithResponse(Context context) { @@ -182,6 +178,10 @@ public Response listPathsWithResponse(Context context) { .listPathsWithResponse(resourceGroupName, accountName, streamingLocatorName, context); } + public ListPathsResponse listPaths() { + return serviceManager.streamingLocators().listPaths(resourceGroupName, accountName, streamingLocatorName); + } + public StreamingLocatorImpl withAssetName(String assetName) { this.innerModel().withAssetName(assetName); return this; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java index c345653065a3b..e298a5b2f97b5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java @@ -61,7 +61,7 @@ public final class StreamingLocatorsClientImpl implements StreamingLocatorsClien */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesSt") - private interface StreamingLocatorsService { + public interface StreamingLocatorsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -563,14 +563,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Locator in the Media Services account. + * @return the details of a Streaming Locator in the Media Services account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingLocatorInner get(String resourceGroupName, String accountName, String streamingLocatorName) { - return getAsync(resourceGroupName, accountName, streamingLocatorName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); } /** @@ -581,16 +583,14 @@ public StreamingLocatorInner get(String resourceGroupName, String accountName, S * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Locator in the Media Services account along with {@link Response}. + * @return the details of a Streaming Locator in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); + public StreamingLocatorInner get(String resourceGroupName, String accountName, String streamingLocatorName) { + return getWithResponse(resourceGroupName, accountName, streamingLocatorName, Context.NONE).getValue(); } /** @@ -753,15 +753,21 @@ private Mono createAsync( * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Locator resource. + * @return a Streaming Locator resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingLocatorInner create( - String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters) { - return createAsync(resourceGroupName, accountName, streamingLocatorName, parameters).block(); + public Response createWithResponse( + String resourceGroupName, + String accountName, + String streamingLocatorName, + StreamingLocatorInner parameters, + Context context) { + return createWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, parameters, context) + .block(); } /** @@ -773,21 +779,16 @@ public StreamingLocatorInner create( * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Locator resource along with {@link Response}. + * @return a Streaming Locator resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String resourceGroupName, - String accountName, - String streamingLocatorName, - StreamingLocatorInner parameters, - Context context) { - return createWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, parameters, context) - .block(); + public StreamingLocatorInner create( + String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters) { + return createWithResponse(resourceGroupName, accountName, streamingLocatorName, parameters, Context.NONE) + .getValue(); } /** @@ -929,13 +930,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String streamingLocatorName) { - deleteAsync(resourceGroupName, accountName, streamingLocatorName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); } /** @@ -946,16 +950,13 @@ public void delete(String resourceGroupName, String accountName, String streamin * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); + public void delete(String resourceGroupName, String accountName, String streamingLocatorName) { + deleteWithResponse(resourceGroupName, accountName, streamingLocatorName, Context.NONE); } /** @@ -1100,15 +1101,16 @@ private Mono listContentKeysAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listContentKeys action. + * @return class of response for listContentKeys action along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ListContentKeysResponseInner listContentKeys( - String resourceGroupName, String accountName, String streamingLocatorName) { - return listContentKeysAsync(resourceGroupName, accountName, streamingLocatorName).block(); + public Response listContentKeysWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context) { + return listContentKeysWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); } /** @@ -1119,16 +1121,16 @@ public ListContentKeysResponseInner listContentKeys( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listContentKeys action along with {@link Response}. + * @return class of response for listContentKeys action. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listContentKeysWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context) { - return listContentKeysWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); + public ListContentKeysResponseInner listContentKeys( + String resourceGroupName, String accountName, String streamingLocatorName) { + return listContentKeysWithResponse(resourceGroupName, accountName, streamingLocatorName, Context.NONE) + .getValue(); } /** @@ -1273,14 +1275,16 @@ private Mono listPathsAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listPaths action. + * @return class of response for listPaths action along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ListPathsResponseInner listPaths(String resourceGroupName, String accountName, String streamingLocatorName) { - return listPathsAsync(resourceGroupName, accountName, streamingLocatorName).block(); + public Response listPathsWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context) { + return listPathsWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); } /** @@ -1291,16 +1295,14 @@ public ListPathsResponseInner listPaths(String resourceGroupName, String account * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listPaths action along with {@link Response}. + * @return class of response for listPaths action. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listPathsWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context) { - return listPathsWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); + public ListPathsResponseInner listPaths(String resourceGroupName, String accountName, String streamingLocatorName) { + return listPathsWithResponse(resourceGroupName, accountName, streamingLocatorName, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsImpl.java index 48e3dc49c22ef..3053fc6b122bb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsImpl.java @@ -44,15 +44,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new StreamingLocatorImpl(inner1, this.manager())); } - public StreamingLocator get(String resourceGroupName, String accountName, String streamingLocatorName) { - StreamingLocatorInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingLocatorName); - if (inner != null) { - return new StreamingLocatorImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context) { Response inner = @@ -68,8 +59,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String streamingLocatorName) { - this.serviceClient().delete(resourceGroupName, accountName, streamingLocatorName); + public StreamingLocator get(String resourceGroupName, String accountName, String streamingLocatorName) { + StreamingLocatorInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingLocatorName); + if (inner != null) { + return new StreamingLocatorImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -77,15 +73,8 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, streamingLocatorName, context); } - public ListContentKeysResponse listContentKeys( - String resourceGroupName, String accountName, String streamingLocatorName) { - ListContentKeysResponseInner inner = - this.serviceClient().listContentKeys(resourceGroupName, accountName, streamingLocatorName); - if (inner != null) { - return new ListContentKeysResponseImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroupName, String accountName, String streamingLocatorName) { + this.serviceClient().delete(resourceGroupName, accountName, streamingLocatorName); } public Response listContentKeysWithResponse( @@ -105,11 +94,12 @@ public Response listContentKeysWithResponse( } } - public ListPathsResponse listPaths(String resourceGroupName, String accountName, String streamingLocatorName) { - ListPathsResponseInner inner = - this.serviceClient().listPaths(resourceGroupName, accountName, streamingLocatorName); + public ListContentKeysResponse listContentKeys( + String resourceGroupName, String accountName, String streamingLocatorName) { + ListContentKeysResponseInner inner = + this.serviceClient().listContentKeys(resourceGroupName, accountName, streamingLocatorName); if (inner != null) { - return new ListPathsResponseImpl(inner, this.manager()); + return new ListContentKeysResponseImpl(inner, this.manager()); } else { return null; } @@ -130,6 +120,16 @@ public Response listPathsWithResponse( } } + public ListPathsResponse listPaths(String resourceGroupName, String accountName, String streamingLocatorName) { + ListPathsResponseInner inner = + this.serviceClient().listPaths(resourceGroupName, accountName, streamingLocatorName); + if (inner != null) { + return new ListPathsResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public StreamingLocator getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java index 270177af0dc65..c0a282709b253 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java @@ -58,7 +58,7 @@ public final class StreamingPoliciesClientImpl implements StreamingPoliciesClien */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesSt") - private interface StreamingPoliciesService { + public interface StreamingPoliciesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -527,14 +527,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Policy in the Media Services account. + * @return the details of a Streaming Policy in the Media Services account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingPolicyInner get(String resourceGroupName, String accountName, String streamingPolicyName) { - return getAsync(resourceGroupName, accountName, streamingPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, context).block(); } /** @@ -545,16 +547,14 @@ public StreamingPolicyInner get(String resourceGroupName, String accountName, St * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Policy in the Media Services account along with {@link Response}. + * @return the details of a Streaming Policy in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, context).block(); + public StreamingPolicyInner get(String resourceGroupName, String accountName, String streamingPolicyName) { + return getWithResponse(resourceGroupName, accountName, streamingPolicyName, Context.NONE).getValue(); } /** @@ -717,15 +717,21 @@ private Mono createAsync( * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Policy resource. + * @return a Streaming Policy resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingPolicyInner create( - String resourceGroupName, String accountName, String streamingPolicyName, StreamingPolicyInner parameters) { - return createAsync(resourceGroupName, accountName, streamingPolicyName, parameters).block(); + public Response createWithResponse( + String resourceGroupName, + String accountName, + String streamingPolicyName, + StreamingPolicyInner parameters, + Context context) { + return createWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, parameters, context) + .block(); } /** @@ -737,21 +743,16 @@ public StreamingPolicyInner create( * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Policy resource along with {@link Response}. + * @return a Streaming Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String resourceGroupName, - String accountName, - String streamingPolicyName, - StreamingPolicyInner parameters, - Context context) { - return createWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, parameters, context) - .block(); + public StreamingPolicyInner create( + String resourceGroupName, String accountName, String streamingPolicyName, StreamingPolicyInner parameters) { + return createWithResponse(resourceGroupName, accountName, streamingPolicyName, parameters, Context.NONE) + .getValue(); } /** @@ -893,13 +894,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String streamingPolicyName) { - deleteAsync(resourceGroupName, accountName, streamingPolicyName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, context).block(); } /** @@ -910,16 +914,13 @@ public void delete(String resourceGroupName, String accountName, String streamin * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, context).block(); + public void delete(String resourceGroupName, String accountName, String streamingPolicyName) { + deleteWithResponse(resourceGroupName, accountName, streamingPolicyName, Context.NONE); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesImpl.java index a74a060dc4c73..c11e00a80a695 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesImpl.java @@ -40,15 +40,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new StreamingPolicyImpl(inner1, this.manager())); } - public StreamingPolicy get(String resourceGroupName, String accountName, String streamingPolicyName) { - StreamingPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingPolicyName); - if (inner != null) { - return new StreamingPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String streamingPolicyName, Context context) { Response inner = @@ -64,8 +55,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String streamingPolicyName) { - this.serviceClient().delete(resourceGroupName, accountName, streamingPolicyName); + public StreamingPolicy get(String resourceGroupName, String accountName, String streamingPolicyName) { + StreamingPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingPolicyName); + if (inner != null) { + return new StreamingPolicyImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -73,6 +69,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, streamingPolicyName, context); } + public void delete(String resourceGroupName, String accountName, String streamingPolicyName) { + this.serviceClient().delete(resourceGroupName, accountName, streamingPolicyName); + } + public StreamingPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java index 51e8c379dc8c5..1f03b012b51e3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java @@ -64,7 +64,7 @@ public final class TracksClientImpl implements TracksClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesTr") - private interface TracksService { + public interface TracksService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -515,14 +515,16 @@ private Mono getAsync( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param trackName The Asset Track name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Track in the Asset. + * @return the details of a Track in the Asset along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetTrackInner get(String resourceGroupName, String accountName, String assetName, String trackName) { - return getAsync(resourceGroupName, accountName, assetName, trackName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String assetName, String trackName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, context).block(); } /** @@ -534,16 +536,14 @@ public AssetTrackInner get(String resourceGroupName, String accountName, String * @param accountName The Media Services account name. * @param assetName The Asset name. * @param trackName The Asset Track name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Track in the Asset along with {@link Response}. + * @return the details of a Track in the Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String assetName, String trackName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, context).block(); + public AssetTrackInner get(String resourceGroupName, String accountName, String assetName, String trackName) { + return getWithResponse(resourceGroupName, accountName, assetName, trackName, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksImpl.java index 42c9f7a16d9b8..bc632487b0766 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksImpl.java @@ -39,15 +39,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new AssetTrackImpl(inner1, this.manager())); } - public AssetTrack get(String resourceGroupName, String accountName, String assetName, String trackName) { - AssetTrackInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName, trackName); - if (inner != null) { - return new AssetTrackImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String assetName, String trackName, Context context) { Response inner = @@ -63,6 +54,15 @@ public Response getWithResponse( } } + public AssetTrack get(String resourceGroupName, String accountName, String assetName, String trackName) { + AssetTrackInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName, trackName); + if (inner != null) { + return new AssetTrackImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String assetName, String trackName) { this.serviceClient().delete(resourceGroupName, accountName, assetName, trackName); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java index 7a2830e730b86..2c7269f143389 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java @@ -59,7 +59,7 @@ public final class TransformsClientImpl implements TransformsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesTr") - private interface TransformsService { + public interface TransformsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -191,7 +191,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -257,7 +257,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -426,7 +426,7 @@ private Mono> getWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -483,7 +483,7 @@ private Mono> getWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -525,14 +525,16 @@ private Mono getAsync(String resourceGroupName, String accountNa * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Transform. + * @return a Transform along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TransformInner get(String resourceGroupName, String accountName, String transformName) { - return getAsync(resourceGroupName, accountName, transformName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String transformName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, transformName, context).block(); } /** @@ -543,16 +545,14 @@ public TransformInner get(String resourceGroupName, String accountName, String t * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Transform along with {@link Response}. + * @return a Transform. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String transformName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, transformName, context).block(); + public TransformInner get(String resourceGroupName, String accountName, String transformName) { + return getWithResponse(resourceGroupName, accountName, transformName, Context.NONE).getValue(); } /** @@ -601,7 +601,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -671,7 +671,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -718,16 +718,22 @@ private Mono createOrUpdateAsync( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights. + * as by transcoding or by extracting insights along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TransformInner createOrUpdate( - String resourceGroupName, String accountName, String transformName, TransformInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, transformName, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String accountName, + String transformName, + TransformInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, transformName, parameters, context) + .block(); } /** @@ -739,22 +745,17 @@ public TransformInner createOrUpdate( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights along with {@link Response}. + * as by transcoding or by extracting insights. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String accountName, - String transformName, - TransformInner parameters, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, accountName, transformName, parameters, context) - .block(); + public TransformInner createOrUpdate( + String resourceGroupName, String accountName, String transformName, TransformInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, accountName, transformName, parameters, Context.NONE) + .getValue(); } /** @@ -795,7 +796,7 @@ private Mono> deleteWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -852,7 +853,7 @@ private Mono> deleteWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -893,13 +894,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String transformName) { - deleteAsync(resourceGroupName, accountName, transformName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String transformName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, transformName, context).block(); } /** @@ -910,16 +914,13 @@ public void delete(String resourceGroupName, String accountName, String transfor * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String transformName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, transformName, context).block(); + public void delete(String resourceGroupName, String accountName, String transformName) { + deleteWithResponse(resourceGroupName, accountName, transformName, Context.NONE); } /** @@ -968,7 +969,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1038,7 +1039,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1085,16 +1086,21 @@ private Mono updateAsync( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights. + * as by transcoding or by extracting insights along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TransformInner update( - String resourceGroupName, String accountName, String transformName, TransformInner parameters) { - return updateAsync(resourceGroupName, accountName, transformName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, + String accountName, + String transformName, + TransformInner parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, transformName, parameters, context).block(); } /** @@ -1106,21 +1112,16 @@ public TransformInner update( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights along with {@link Response}. + * as by transcoding or by extracting insights. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String accountName, - String transformName, - TransformInner parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, transformName, parameters, context).block(); + public TransformInner update( + String resourceGroupName, String accountName, String transformName, TransformInner parameters) { + return updateWithResponse(resourceGroupName, accountName, transformName, parameters, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsImpl.java index 38371dcdb5abc..c2f8fde0bc7a7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsImpl.java @@ -39,15 +39,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new TransformImpl(inner1, this.manager())); } - public Transform get(String resourceGroupName, String accountName, String transformName) { - TransformInner inner = this.serviceClient().get(resourceGroupName, accountName, transformName); - if (inner != null) { - return new TransformImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String transformName, Context context) { Response inner = @@ -63,8 +54,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String transformName) { - this.serviceClient().delete(resourceGroupName, accountName, transformName); + public Transform get(String resourceGroupName, String accountName, String transformName) { + TransformInner inner = this.serviceClient().get(resourceGroupName, accountName, transformName); + if (inner != null) { + return new TransformImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -72,6 +68,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, transformName, context); } + public void delete(String resourceGroupName, String accountName, String transformName) { + this.serviceClient().delete(resourceGroupName, accountName, transformName); + } + public Transform getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudio.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudio.java index 0c4623315c466..a86f8dc75bc69 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudio.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudio.java @@ -20,6 +20,10 @@ public final class AacAudio extends Audio { @JsonProperty(value = "profile") private AacAudioProfile profile; + /** Creates an instance of AacAudio class. */ + public AacAudio() { + } + /** * Get the profile property: The encoding profile to be used when encoding audio with AAC. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java index 4d433de456ef4..037c4614b53bc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java @@ -26,6 +26,10 @@ public final class AbsoluteClipTime extends ClipTime { @JsonProperty(value = "time", required = true) private Duration time; + /** Creates an instance of AbsoluteClipTime class. */ + public AbsoluteClipTime() { + } + /** * Get the time property: The time position on the timeline of the input media. It is usually specified as an * ISO8601 period. e.g PT30S for 30 seconds. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java index 06a719f4dd852..f3a856cfb2191 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java @@ -24,6 +24,10 @@ public final class AccessControl { @JsonProperty(value = "ipAllowList") private List ipAllowList; + /** Creates an instance of AccessControl class. */ + public AccessControl() { + } + /** * Get the defaultAction property: The behavior for IP access control in Key Delivery. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryption.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryption.java index fdcee0e2de92c..0226bf8fb3f1c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryption.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryption.java @@ -35,6 +35,10 @@ public final class AccountEncryption { @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private String status; + /** Creates an instance of AccountEncryption class. */ + public AccountEncryption() { + } + /** * Get the type property: The type of key used to encrypt the Account Key. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilterCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilterCollection.java index 673465df12f51..a751c956d7eab 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilterCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilterCollection.java @@ -25,6 +25,10 @@ public final class AccountFilterCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of AccountFilterCollection class. */ + public AccountFilterCollection() { + } + /** * Get the value property: A collection of AccountFilter items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilters.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilters.java index 7df847b626ed1..f9e79352a71af 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilters.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilters.java @@ -47,12 +47,14 @@ public interface AccountFilters { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Account Filter in the Media Services account. + * @return the details of an Account Filter in the Media Services account along with {@link Response}. */ - AccountFilter get(String resourceGroupName, String accountName, String filterName); + Response getWithResponse( + String resourceGroupName, String accountName, String filterName, Context context); /** * Get an Account Filter. @@ -62,14 +64,12 @@ public interface AccountFilters { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Account Filter in the Media Services account along with {@link Response}. + * @return the details of an Account Filter in the Media Services account. */ - Response getWithResponse( - String resourceGroupName, String accountName, String filterName, Context context); + AccountFilter get(String resourceGroupName, String accountName, String filterName); /** * Delete an Account Filter. @@ -79,11 +79,13 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String resourceGroupName, String accountName, String filterName); + Response deleteWithResponse(String resourceGroupName, String accountName, String filterName, Context context); /** * Delete an Account Filter. @@ -93,13 +95,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String accountName, String filterName, Context context); + void delete(String resourceGroupName, String accountName, String filterName); /** * Get an Account Filter. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiAccessControl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiAccessControl.java index d12ddbc21ced2..110a91ef05fd8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiAccessControl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiAccessControl.java @@ -17,6 +17,10 @@ public final class AkamaiAccessControl { @JsonProperty(value = "akamaiSignatureHeaderAuthenticationKeyList") private List akamaiSignatureHeaderAuthenticationKeyList; + /** Creates an instance of AkamaiAccessControl class. */ + public AkamaiAccessControl() { + } + /** * Get the akamaiSignatureHeaderAuthenticationKeyList property: authentication key list. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiSignatureHeaderAuthenticationKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiSignatureHeaderAuthenticationKey.java index cbac3a36eb841..323ee18b9a5c4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiSignatureHeaderAuthenticationKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiSignatureHeaderAuthenticationKey.java @@ -29,6 +29,10 @@ public final class AkamaiSignatureHeaderAuthenticationKey { @JsonProperty(value = "expiration") private OffsetDateTime expiration; + /** Creates an instance of AkamaiSignatureHeaderAuthenticationKey class. */ + public AkamaiSignatureHeaderAuthenticationKey() { + } + /** * Get the identifier property: identifier of the key. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointCapacity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointCapacity.java index ce94e07ec926c..a890d7d258150 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointCapacity.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointCapacity.java @@ -34,6 +34,10 @@ public final class ArmStreamingEndpointCapacity { @JsonProperty(value = "maximum") private Integer maximum; + /** Creates an instance of ArmStreamingEndpointCapacity class. */ + public ArmStreamingEndpointCapacity() { + } + /** * Get the scaleType property: The scaleType property. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointCurrentSku.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointCurrentSku.java index f179f0474291c..489fb38ff6960 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointCurrentSku.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointCurrentSku.java @@ -22,6 +22,10 @@ public final class ArmStreamingEndpointCurrentSku { @JsonProperty(value = "capacity") private Integer capacity; + /** Creates an instance of ArmStreamingEndpointCurrentSku class. */ + public ArmStreamingEndpointCurrentSku() { + } + /** * Get the name property: The streaming endpoint sku name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointSku.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointSku.java index b3e2f6877fa96..6aa57f95bbf88 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointSku.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointSku.java @@ -16,6 +16,10 @@ public final class ArmStreamingEndpointSku { @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; + /** Creates an instance of ArmStreamingEndpointSku class. */ + public ArmStreamingEndpointSku() { + } + /** * Get the name property: The streaming endpoint sku name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointSkuInfo.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointSkuInfo.java index 961636d612ab7..5e1c34bf1386c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointSkuInfo.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ArmStreamingEndpointSkuInfo.java @@ -28,6 +28,10 @@ public final class ArmStreamingEndpointSkuInfo { @JsonProperty(value = "sku") private ArmStreamingEndpointSku sku; + /** Creates an instance of ArmStreamingEndpointSkuInfo class. */ + public ArmStreamingEndpointSkuInfo() { + } + /** * Get the resourceType property: The resourceType property. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java index 0c768e59e8293..d300b4ad44066 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java @@ -289,12 +289,13 @@ interface WithStorageAccountName { * The signatures are derived from the storage account keys. * * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset Storage container SAS URLs. + * @return the Asset Storage container SAS URLs along with {@link Response}. */ - AssetContainerSas listContainerSas(ListContainerSasInput parameters); + Response listContainerSasWithResponse(ListContainerSasInput parameters, Context context); /** * List the Asset URLs @@ -303,60 +304,59 @@ interface WithStorageAccountName { * The signatures are derived from the storage account keys. * * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset Storage container SAS URLs along with {@link Response}. + * @return the Asset Storage container SAS URLs. */ - Response listContainerSasWithResponse(ListContainerSasInput parameters, Context context); + AssetContainerSas listContainerSas(ListContainerSasInput parameters); /** * Gets the Asset storage key * *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API + * along with {@link Response}. */ - StorageEncryptedAssetDecryptionData getEncryptionKey(); + Response getEncryptionKeyWithResponse(Context context); /** * Gets the Asset storage key * *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API - * along with {@link Response}. + * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. */ - Response getEncryptionKeyWithResponse(Context context); + StorageEncryptedAssetDecryptionData getEncryptionKey(); /** * List Streaming Locators * *

Lists Streaming Locators which are associated with this asset. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Streaming Locators associated with this Asset. + * @return the Streaming Locators associated with this Asset along with {@link Response}. */ - ListStreamingLocatorsResponse listStreamingLocators(); + Response listStreamingLocatorsWithResponse(Context context); /** * List Streaming Locators * *

Lists Streaming Locators which are associated with this asset. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Streaming Locators associated with this Asset along with {@link Response}. + * @return the Streaming Locators associated with this Asset. */ - Response listStreamingLocatorsWithResponse(Context context); + ListStreamingLocatorsResponse listStreamingLocators(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java index a782491310453..7e4f3f59c9647 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java @@ -25,6 +25,10 @@ public final class AssetCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of AssetCollection class. */ + public AssetCollection() { + } + /** * Get the value property: A collection of Asset items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFileEncryptionMetadata.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFileEncryptionMetadata.java index 0a20eb9986f06..b27195ffab723 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFileEncryptionMetadata.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFileEncryptionMetadata.java @@ -30,6 +30,10 @@ public final class AssetFileEncryptionMetadata { @JsonProperty(value = "assetFileId", required = true) private UUID assetFileId; + /** Creates an instance of AssetFileEncryptionMetadata class. */ + public AssetFileEncryptionMetadata() { + } + /** * Get the initializationVector property: The Asset File initialization vector. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilterCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilterCollection.java index ff7e812061d1d..9375c970eaf0d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilterCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilterCollection.java @@ -25,6 +25,10 @@ public final class AssetFilterCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of AssetFilterCollection class. */ + public AssetFilterCollection() { + } + /** * Get the value property: A collection of AssetFilter items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilters.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilters.java index 3cbb3a8c64d36..75f5fce663d55 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilters.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilters.java @@ -50,12 +50,14 @@ public interface AssetFilters { * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Asset Filter associated with the specified Asset. + * @return the details of an Asset Filter associated with the specified Asset along with {@link Response}. */ - AssetFilter get(String resourceGroupName, String accountName, String assetName, String filterName); + Response getWithResponse( + String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** * Get an Asset Filter. @@ -66,14 +68,12 @@ public interface AssetFilters { * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Asset Filter associated with the specified Asset along with {@link Response}. + * @return the details of an Asset Filter associated with the specified Asset. */ - Response getWithResponse( - String resourceGroupName, String accountName, String assetName, String filterName, Context context); + AssetFilter get(String resourceGroupName, String accountName, String assetName, String filterName); /** * Delete an Asset Filter. @@ -84,11 +84,14 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String resourceGroupName, String accountName, String assetName, String filterName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** * Delete an Asset Filter. @@ -99,14 +102,11 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String assetName, String filterName, Context context); + void delete(String resourceGroupName, String accountName, String assetName, String filterName); /** * Get an Asset Filter. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetStreamingLocator.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetStreamingLocator.java index 28ccf4eeafd9b..fd06c1e80b24e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetStreamingLocator.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetStreamingLocator.java @@ -60,6 +60,10 @@ public final class AssetStreamingLocator { @JsonProperty(value = "defaultContentKeyPolicyName", access = JsonProperty.Access.WRITE_ONLY) private String defaultContentKeyPolicyName; + /** Creates an instance of AssetStreamingLocator class. */ + public AssetStreamingLocator() { + } + /** * Get the name property: Streaming Locator name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetTrackCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetTrackCollection.java index 3854685f4cedd..d3498d4775810 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetTrackCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetTrackCollection.java @@ -18,6 +18,10 @@ public final class AssetTrackCollection { @JsonProperty(value = "value") private List value; + /** Creates an instance of AssetTrackCollection class. */ + public AssetTrackCollection() { + } + /** * Get the value property: A collection of AssetTrack items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java index 8e51ed49af2a8..fe099149da57f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java @@ -44,21 +44,6 @@ public interface Assets { PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); - /** - * Get an Asset - * - *

Get the details of an Asset in the Media Services account. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param assetName The Asset name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Asset in the Media Services account. - */ - Asset get(String resourceGroupName, String accountName, String assetName); - /** * Get an Asset * @@ -76,9 +61,9 @@ PagedIterable list( Response getWithResponse(String resourceGroupName, String accountName, String assetName, Context context); /** - * Delete an Asset. + * Get an Asset * - *

Deletes an Asset in the Media Services account. + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -86,8 +71,9 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of an Asset in the Media Services account. */ - void delete(String resourceGroupName, String accountName, String assetName); + Asset get(String resourceGroupName, String accountName, String assetName); /** * Delete an Asset. @@ -106,22 +92,18 @@ PagedIterable list( Response deleteWithResponse(String resourceGroupName, String accountName, String assetName, Context context); /** - * List the Asset URLs + * Delete an Asset. * - *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. - * The signatures are derived from the storage account keys. + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset Storage container SAS URLs. */ - AssetContainerSas listContainerSas( - String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters); + void delete(String resourceGroupName, String accountName, String assetName); /** * List the Asset URLs @@ -147,20 +129,22 @@ Response listContainerSasWithResponse( Context context); /** - * Gets the Asset storage key + * List the Asset URLs * - *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * @return the Asset Storage container SAS URLs. */ - StorageEncryptedAssetDecryptionData getEncryptionKey( - String resourceGroupName, String accountName, String assetName); + AssetContainerSas listContainerSas( + String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters); /** * Gets the Asset storage key @@ -181,9 +165,9 @@ Response getEncryptionKeyWithResponse( String resourceGroupName, String accountName, String assetName, Context context); /** - * List Streaming Locators + * Gets the Asset storage key * - *

Lists Streaming Locators which are associated with this asset. + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -191,9 +175,10 @@ Response getEncryptionKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Streaming Locators associated with this Asset. + * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. */ - ListStreamingLocatorsResponse listStreamingLocators(String resourceGroupName, String accountName, String assetName); + StorageEncryptedAssetDecryptionData getEncryptionKey( + String resourceGroupName, String accountName, String assetName); /** * List Streaming Locators @@ -212,6 +197,21 @@ Response getEncryptionKeyWithResponse( Response listStreamingLocatorsWithResponse( String resourceGroupName, String accountName, String assetName, Context context); + /** + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param assetName The Asset name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Streaming Locators associated with this Asset. + */ + ListStreamingLocatorsResponse listStreamingLocators(String resourceGroupName, String accountName, String assetName); + /** * Get an Asset * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Audio.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Audio.java index 9c78b41250a19..e597e211e99d1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Audio.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Audio.java @@ -17,7 +17,10 @@ property = "@odata.type", defaultImpl = Audio.class) @JsonTypeName("#Microsoft.Media.Audio") -@JsonSubTypes({@JsonSubTypes.Type(name = "#Microsoft.Media.AacAudio", value = AacAudio.class)}) +@JsonSubTypes({ + @JsonSubTypes.Type(name = "#Microsoft.Media.AacAudio", value = AacAudio.class), + @JsonSubTypes.Type(name = "#Microsoft.Media.DDAudio", value = DDAudio.class) +}) @Fluent public class Audio extends Codec { /* @@ -38,6 +41,10 @@ public class Audio extends Codec { @JsonProperty(value = "bitrate") private Integer bitrate; + /** Creates an instance of Audio class. */ + public Audio() { + } + /** * Get the channels property: The number of channels in the audio. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalyzerPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalyzerPreset.java index 131ff1a130b74..35d7e48de1960 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalyzerPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalyzerPreset.java @@ -53,6 +53,10 @@ public class AudioAnalyzerPreset extends Preset { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map experimentalOptions; + /** Creates an instance of AudioAnalyzerPreset class. */ + public AudioAnalyzerPreset() { + } + /** * Get the audioLanguage property: The language for the audio payload in the input using the BCP-47 format of * 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioOverlay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioOverlay.java index 13c1db9cfa433..ef5a870b3a377 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioOverlay.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioOverlay.java @@ -14,6 +14,10 @@ @JsonTypeName("#Microsoft.Media.AudioOverlay") @Fluent public final class AudioOverlay extends Overlay { + /** Creates an instance of AudioOverlay class. */ + public AudioOverlay() { + } + /** {@inheritDoc} */ @Override public AudioOverlay withInputLabel(String inputLabel) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrack.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrack.java index f97d14e7af592..fe8726105e5d8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrack.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrack.java @@ -56,6 +56,10 @@ public final class AudioTrack extends TrackBase { @JsonProperty(value = "bitRate", access = JsonProperty.Access.WRITE_ONLY) private Integer bitRate; + /** Creates an instance of AudioTrack class. */ + public AudioTrack() { + } + /** * Get the fileName property: The file name to the source file. This file is located in the storage container of the * asset. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java index 9233d32b584f1..98b3af49f137d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java @@ -32,6 +32,10 @@ public class AudioTrackDescriptor extends TrackDescriptor { @JsonProperty(value = "channelMapping") private ChannelMapping channelMapping; + /** Creates an instance of AudioTrackDescriptor class. */ + public AudioTrackDescriptor() { + } + /** * Get the channelMapping property: Optional designation for single channel audio tracks. Can be used to combine the * tracks into stereo or multi-channel audio tracks. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java index 1cbf0fd16c225..de7c2e212971c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java @@ -28,6 +28,10 @@ public final class BuiltInStandardEncoderPreset extends Preset { @JsonProperty(value = "presetName", required = true) private EncoderNamedPreset presetName; + /** Creates an instance of BuiltInStandardEncoderPreset class. */ + public BuiltInStandardEncoderPreset() { + } + /** * Get the configurations property: Optional configuration settings for encoder. Configurations is only supported * for ContentAwareEncoding and H265ContentAwareEncoding BuiltInStandardEncoderPreset. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CbcsDrmConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CbcsDrmConfiguration.java index 9807c62f71051..2a4d9f56ab80b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CbcsDrmConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CbcsDrmConfiguration.java @@ -28,6 +28,10 @@ public final class CbcsDrmConfiguration { @JsonProperty(value = "widevine") private StreamingPolicyWidevineConfiguration widevine; + /** Creates an instance of CbcsDrmConfiguration class. */ + public CbcsDrmConfiguration() { + } + /** * Get the fairPlay property: FairPlay configurations. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CencDrmConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CencDrmConfiguration.java index a7736baccb192..8c479e82cf719 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CencDrmConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CencDrmConfiguration.java @@ -22,6 +22,10 @@ public final class CencDrmConfiguration { @JsonProperty(value = "widevine") private StreamingPolicyWidevineConfiguration widevine; + /** Creates an instance of CencDrmConfiguration class. */ + public CencDrmConfiguration() { + } + /** * Get the playReady property: PlayReady configurations. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java index 307235861f965..1f6cae57e221e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java @@ -22,6 +22,10 @@ public final class CheckNameAvailabilityInput { @JsonProperty(value = "type") private String type; + /** Creates an instance of CheckNameAvailabilityInput class. */ + public CheckNameAvailabilityInput() { + } + /** * Get the name property: The account name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClearKeyEncryptionConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClearKeyEncryptionConfiguration.java index 852753862687d..548faafd06591 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClearKeyEncryptionConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClearKeyEncryptionConfiguration.java @@ -19,6 +19,10 @@ public final class ClearKeyEncryptionConfiguration { @JsonProperty(value = "customKeysAcquisitionUrlTemplate") private String customKeysAcquisitionUrlTemplate; + /** Creates an instance of ClearKeyEncryptionConfiguration class. */ + public ClearKeyEncryptionConfiguration() { + } + /** * Get the customKeysAcquisitionUrlTemplate property: Template for the URL of the custom service delivering content * keys to end user players. Not required when using Azure Media Services for issuing licenses. The template diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClipTime.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClipTime.java index 61b1a518533ea..7e06685b4861b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClipTime.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClipTime.java @@ -22,6 +22,10 @@ }) @Immutable public class ClipTime { + /** Creates an instance of ClipTime class. */ + public ClipTime() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java index b670086cf0a72..1b29547f5b80d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java @@ -31,6 +31,10 @@ public class Codec { @JsonProperty(value = "label") private String label; + /** Creates an instance of Codec class. */ + public Codec() { + } + /** * Get the label property: An optional label for the codec. The label can be used to control muxing behavior. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java index 23eb7aec60b77..c6dca39b8e27b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java @@ -41,6 +41,10 @@ public final class CommonEncryptionCbcs { @JsonProperty(value = "clearKeyEncryptionConfiguration") private ClearKeyEncryptionConfiguration clearKeyEncryptionConfiguration; + /** Creates an instance of CommonEncryptionCbcs class. */ + public CommonEncryptionCbcs() { + } + /** * Get the enabledProtocols property: Representing supported protocols. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java index 72ffe79a33314..2a162365f0a15 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java @@ -41,6 +41,10 @@ public final class CommonEncryptionCenc { @JsonProperty(value = "clearKeyEncryptionConfiguration") private ClearKeyEncryptionConfiguration clearKeyEncryptionConfiguration; + /** Creates an instance of CommonEncryptionCenc class. */ + public CommonEncryptionCenc() { + } + /** * Get the enabledProtocols property: Representing supported protocols. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java index 2e52d2747c651..1d514dd422ab6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java @@ -52,12 +52,14 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Content Key Policy in the Media Services account. + * @return the details of a Content Key Policy in the Media Services account along with {@link Response}. */ - ContentKeyPolicy get(String resourceGroupName, String accountName, String contentKeyPolicyName); + Response getWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** * Get a Content Key Policy @@ -67,14 +69,12 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Content Key Policy in the Media Services account along with {@link Response}. + * @return the details of a Content Key Policy in the Media Services account. */ - Response getWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); + ContentKeyPolicy get(String resourceGroupName, String accountName, String contentKeyPolicyName); /** * Delete a Content Key Policy @@ -84,11 +84,14 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String resourceGroupName, String accountName, String contentKeyPolicyName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** * Delete a Content Key Policy @@ -98,14 +101,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); + void delete(String resourceGroupName, String accountName, String contentKeyPolicyName); /** * Get a Content Key Policy with secrets @@ -115,13 +115,14 @@ Response deleteWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy including secret values. + * @return a Content Key Policy including secret values along with {@link Response}. */ - ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( - String resourceGroupName, String accountName, String contentKeyPolicyName); + Response getPolicyPropertiesWithSecretsWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** * Get a Content Key Policy with secrets @@ -131,14 +132,13 @@ ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy including secret values along with {@link Response}. + * @return a Content Key Policy including secret values. */ - Response getPolicyPropertiesWithSecretsWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); + ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( + String resourceGroupName, String accountName, String contentKeyPolicyName); /** * Get a Content Key Policy diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java index 373ebbcdcd6e6..783e27b5ad2de 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java @@ -219,22 +219,22 @@ interface WithOptions { * *

Get a Content Key Policy including secret values. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy including secret values. + * @return a Content Key Policy including secret values along with {@link Response}. */ - ContentKeyPolicyProperties getPolicyPropertiesWithSecrets(); + Response getPolicyPropertiesWithSecretsWithResponse(Context context); /** * Get a Content Key Policy with secrets * *

Get a Content Key Policy including secret values. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy including secret values along with {@link Response}. + * @return a Content Key Policy including secret values. */ - Response getPolicyPropertiesWithSecretsWithResponse(Context context); + ContentKeyPolicyProperties getPolicyPropertiesWithSecrets(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyClearKeyConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyClearKeyConfiguration.java index 7378e19332e92..2f9ff113613d9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyClearKeyConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyClearKeyConfiguration.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration") @Immutable public final class ContentKeyPolicyClearKeyConfiguration extends ContentKeyPolicyConfiguration { + /** Creates an instance of ContentKeyPolicyClearKeyConfiguration class. */ + public ContentKeyPolicyClearKeyConfiguration() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java index 05975a9f85ed0..880b6b144a85e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java @@ -25,6 +25,10 @@ public final class ContentKeyPolicyCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of ContentKeyPolicyCollection class. */ + public ContentKeyPolicyCollection() { + } + /** * Get the value property: A collection of ContentKeyPolicy items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyConfiguration.java index 75244d8d54dde..4f73cce457189 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyConfiguration.java @@ -35,6 +35,10 @@ }) @Immutable public class ContentKeyPolicyConfiguration { + /** Creates an instance of ContentKeyPolicyConfiguration class. */ + public ContentKeyPolicyConfiguration() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java index 0fdb74c0f5f9f..08e713b64ef25 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java @@ -17,7 +17,7 @@ @Fluent public final class ContentKeyPolicyFairPlayConfiguration extends ContentKeyPolicyConfiguration { /* - * The key that must be used as FairPlay Application Secret key. + * The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded. */ @JsonProperty(value = "ask", required = true) private byte[] ask; @@ -52,8 +52,13 @@ public final class ContentKeyPolicyFairPlayConfiguration extends ContentKeyPolic @JsonProperty(value = "offlineRentalConfiguration") private ContentKeyPolicyFairPlayOfflineRentalConfiguration offlineRentalConfiguration; + /** Creates an instance of ContentKeyPolicyFairPlayConfiguration class. */ + public ContentKeyPolicyFairPlayConfiguration() { + } + /** - * Get the ask property: The key that must be used as FairPlay Application Secret key. + * Get the ask property: The key that must be used as FairPlay Application Secret key. This needs to be base64 + * encoded. * * @return the ask value. */ @@ -62,7 +67,8 @@ public byte[] ask() { } /** - * Set the ask property: The key that must be used as FairPlay Application Secret key. + * Set the ask property: The key that must be used as FairPlay Application Secret key. This needs to be base64 + * encoded. * * @param ask the ask value to set. * @return the ContentKeyPolicyFairPlayConfiguration object itself. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java index c1900f9afca8a..b6b8bb9854a93 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java @@ -22,6 +22,10 @@ public final class ContentKeyPolicyFairPlayOfflineRentalConfiguration { @JsonProperty(value = "storageDurationSeconds", required = true) private long storageDurationSeconds; + /** Creates an instance of ContentKeyPolicyFairPlayOfflineRentalConfiguration class. */ + public ContentKeyPolicyFairPlayOfflineRentalConfiguration() { + } + /** * Get the playbackDurationSeconds property: Playback duration. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOpenRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOpenRestriction.java index 908415af29bfa..259056f3cbdb0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOpenRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOpenRestriction.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.ContentKeyPolicyOpenRestriction") @Immutable public final class ContentKeyPolicyOpenRestriction extends ContentKeyPolicyRestriction { + /** Creates an instance of ContentKeyPolicyOpenRestriction class. */ + public ContentKeyPolicyOpenRestriction() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java index ebee9b711cf8a..1c852727b8f34 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java @@ -36,6 +36,10 @@ public final class ContentKeyPolicyOption { @JsonProperty(value = "restriction", required = true) private ContentKeyPolicyRestriction restriction; + /** Creates an instance of ContentKeyPolicyOption class. */ + public ContentKeyPolicyOption() { + } + /** * Get the policyOptionId property: The legacy Policy Option ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyConfiguration.java index 15351b5643d93..cf6c472891fcf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyConfiguration.java @@ -28,6 +28,10 @@ public final class ContentKeyPolicyPlayReadyConfiguration extends ContentKeyPoli @JsonProperty(value = "responseCustomData") private String responseCustomData; + /** Creates an instance of ContentKeyPolicyPlayReadyConfiguration class. */ + public ContentKeyPolicyPlayReadyConfiguration() { + } + /** * Get the licenses property: The PlayReady licenses. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.java index 00c38cab725a1..16b1ed76c0157 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.java @@ -14,6 +14,10 @@ @Immutable public final class ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader extends ContentKeyPolicyPlayReadyContentKeyLocation { + /** Creates an instance of ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader class. */ + public ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.java index 71d2bf3ed77dc..6daf211904624 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.java @@ -23,6 +23,10 @@ public final class ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifie @JsonProperty(value = "keyId", required = true) private UUID keyId; + /** Creates an instance of ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier class. */ + public ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier() { + } + /** * Get the keyId property: The content key ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentKeyLocation.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentKeyLocation.java index 89d4634fa3acd..5ba68405adafa 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentKeyLocation.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentKeyLocation.java @@ -26,6 +26,10 @@ }) @Immutable public class ContentKeyPolicyPlayReadyContentKeyLocation { + /** Creates an instance of ContentKeyPolicyPlayReadyContentKeyLocation class. */ + public ContentKeyPolicyPlayReadyContentKeyLocation() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java index 122d3b3817aa5..3d4daf09fd834 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java @@ -25,6 +25,10 @@ public final class ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction @JsonProperty(value = "configurationData", required = true) private int configurationData; + /** Creates an instance of ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction class. */ + public ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction() { + } + /** * Get the bestEffort property: Indicates whether this restriction is enforced on a Best Effort basis. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicense.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicense.java index 80eec52312429..ad10f30e177ee 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicense.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicense.java @@ -79,6 +79,10 @@ public final class ContentKeyPolicyPlayReadyLicense { @JsonProperty(value = "contentType", required = true) private ContentKeyPolicyPlayReadyContentType contentType; + /** Creates an instance of ContentKeyPolicyPlayReadyLicense class. */ + public ContentKeyPolicyPlayReadyLicense() { + } + /** * Get the allowTestDevices property: A flag indicating whether test devices can use the license. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java index 84f1eb68c22ce..bd266e3413934 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java @@ -91,6 +91,10 @@ public final class ContentKeyPolicyPlayReadyPlayRight { @JsonProperty(value = "uncompressedDigitalAudioOpl") private Integer uncompressedDigitalAudioOpl; + /** Creates an instance of ContentKeyPolicyPlayReadyPlayRight class. */ + public ContentKeyPolicyPlayReadyPlayRight() { + } + /** * Get the firstPlayExpiration property: The amount of time that the license is valid after the license is first * used to play content. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestriction.java index 33b5585e55414..9ca6c60836642 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestriction.java @@ -29,6 +29,10 @@ }) @Immutable public class ContentKeyPolicyRestriction { + /** Creates an instance of ContentKeyPolicyRestriction class. */ + public ContentKeyPolicyRestriction() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenKey.java index 0f117dd35da2d..b59e52737b228 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenKey.java @@ -29,6 +29,10 @@ }) @Immutable public class ContentKeyPolicyRestrictionTokenKey { + /** Creates an instance of ContentKeyPolicyRestrictionTokenKey class. */ + public ContentKeyPolicyRestrictionTokenKey() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRsaTokenKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRsaTokenKey.java index 6103418cdd274..144182162187e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRsaTokenKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRsaTokenKey.java @@ -28,6 +28,10 @@ public final class ContentKeyPolicyRsaTokenKey extends ContentKeyPolicyRestricti @JsonProperty(value = "modulus", required = true) private byte[] modulus; + /** Creates an instance of ContentKeyPolicyRsaTokenKey class. */ + public ContentKeyPolicyRsaTokenKey() { + } + /** * Get the exponent property: The RSA Parameter exponent. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicySymmetricTokenKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicySymmetricTokenKey.java index 5b63bcc687cf0..fa5311f816fcc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicySymmetricTokenKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicySymmetricTokenKey.java @@ -22,6 +22,10 @@ public final class ContentKeyPolicySymmetricTokenKey extends ContentKeyPolicyRes @JsonProperty(value = "keyValue", required = true) private byte[] keyValue; + /** Creates an instance of ContentKeyPolicySymmetricTokenKey class. */ + public ContentKeyPolicySymmetricTokenKey() { + } + /** * Get the keyValue property: The key value of the key. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenClaim.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenClaim.java index a71f548ec7a92..efc32aeef59f1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenClaim.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenClaim.java @@ -22,6 +22,10 @@ public final class ContentKeyPolicyTokenClaim { @JsonProperty(value = "claimValue") private String claimValue; + /** Creates an instance of ContentKeyPolicyTokenClaim class. */ + public ContentKeyPolicyTokenClaim() { + } + /** * Get the claimType property: Token claim type. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenRestriction.java index 361a62fb83524..fcc6d54b2e234 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenRestriction.java @@ -60,6 +60,10 @@ public final class ContentKeyPolicyTokenRestriction extends ContentKeyPolicyRest @JsonProperty(value = "openIdConnectDiscoveryDocument") private String openIdConnectDiscoveryDocument; + /** Creates an instance of ContentKeyPolicyTokenRestriction class. */ + public ContentKeyPolicyTokenRestriction() { + } + /** * Get the issuer property: The token issuer. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownConfiguration.java index 4d4eb45086b94..85a4168a53124 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownConfiguration.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.ContentKeyPolicyUnknownConfiguration") @Immutable public final class ContentKeyPolicyUnknownConfiguration extends ContentKeyPolicyConfiguration { + /** Creates an instance of ContentKeyPolicyUnknownConfiguration class. */ + public ContentKeyPolicyUnknownConfiguration() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownRestriction.java index 01a2ab165147a..37e93b4c8d0eb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownRestriction.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.ContentKeyPolicyUnknownRestriction") @Immutable public final class ContentKeyPolicyUnknownRestriction extends ContentKeyPolicyRestriction { + /** Creates an instance of ContentKeyPolicyUnknownRestriction class. */ + public ContentKeyPolicyUnknownRestriction() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyWidevineConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyWidevineConfiguration.java index 81648417bce4f..1ee43c44b3a04 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyWidevineConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyWidevineConfiguration.java @@ -21,6 +21,10 @@ public final class ContentKeyPolicyWidevineConfiguration extends ContentKeyPolic @JsonProperty(value = "widevineTemplate", required = true) private String widevineTemplate; + /** Creates an instance of ContentKeyPolicyWidevineConfiguration class. */ + public ContentKeyPolicyWidevineConfiguration() { + } + /** * Get the widevineTemplate property: The Widevine template. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java index 7ac89ac41deb0..2bc441225eb8e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java @@ -22,6 +22,10 @@ public final class ContentKeyPolicyX509CertificateTokenKey extends ContentKeyPol @JsonProperty(value = "rawBody", required = true) private byte[] rawBody; + /** Creates an instance of ContentKeyPolicyX509CertificateTokenKey class. */ + public ContentKeyPolicyX509CertificateTokenKey() { + } + /** * Get the rawBody property: The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET). * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyAudio.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyAudio.java index 399413cb98714..04612e03d30eb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyAudio.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyAudio.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.CopyAudio") @Fluent public final class CopyAudio extends Codec { + /** Creates an instance of CopyAudio class. */ + public CopyAudio() { + } + /** {@inheritDoc} */ @Override public CopyAudio withLabel(String label) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyVideo.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyVideo.java index 7f91ddef77337..f18df5a466bb8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyVideo.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyVideo.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.CopyVideo") @Fluent public final class CopyVideo extends Codec { + /** Creates an instance of CopyVideo class. */ + public CopyVideo() { + } + /** {@inheritDoc} */ @Override public CopyVideo withLabel(String label) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CrossSiteAccessPolicies.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CrossSiteAccessPolicies.java index 4f83c868ea0e9..6a240cc497702 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CrossSiteAccessPolicies.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CrossSiteAccessPolicies.java @@ -22,6 +22,10 @@ public final class CrossSiteAccessPolicies { @JsonProperty(value = "crossDomainPolicy") private String crossDomainPolicy; + /** Creates an instance of CrossSiteAccessPolicies class. */ + public CrossSiteAccessPolicies() { + } + /** * Get the clientAccessPolicy property: The content of clientaccesspolicy.xml used by Silverlight. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DDAudio.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DDAudio.java new file mode 100644 index 0000000000000..4b7294d3ba8f8 --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DDAudio.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Describes Dolby Digital Audio Codec (AC3) audio encoding settings. The current implementation for Dolby Digital Audio + * support are: Audio channel numbers at 1((mono), 2(stereo), 6(5.1side); Audio sampling frequency rates at: + * 32K/44.1K/48K Hz; Audio bitrate values as AC3 specification supports: 32000, 40000, 48000, 56000, 64000, 80000, + * 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000, 384000, 448000, 512000, 576000, 640000 bps. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") +@JsonTypeName("#Microsoft.Media.DDAudio") +@Fluent +public final class DDAudio extends Audio { + /** Creates an instance of DDAudio class. */ + public DDAudio() { + } + + /** {@inheritDoc} */ + @Override + public DDAudio withChannels(Integer channels) { + super.withChannels(channels); + return this; + } + + /** {@inheritDoc} */ + @Override + public DDAudio withSamplingRate(Integer samplingRate) { + super.withSamplingRate(samplingRate); + return this; + } + + /** {@inheritDoc} */ + @Override + public DDAudio withBitrate(Integer bitrate) { + super.withBitrate(bitrate); + return this; + } + + /** {@inheritDoc} */ + @Override + public DDAudio withLabel(String label) { + super.withLabel(label); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DashSettings.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DashSettings.java index 1775e43bb614f..a2960525d41be 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DashSettings.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DashSettings.java @@ -16,6 +16,10 @@ public final class DashSettings { @JsonProperty(value = "role") private String role; + /** Creates an instance of DashSettings class. */ + public DashSettings() { + } + /** * Get the role property: The role for the DASH setting. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java index 9b127bc8871e3..d165ac427c0e8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java @@ -22,6 +22,10 @@ public final class DefaultKey { @JsonProperty(value = "policyName") private String policyName; + /** Creates an instance of DefaultKey class. */ + public DefaultKey() { + } + /** * Get the label property: Label can be used to specify Content Key when creating a Streaming Locator. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Deinterlace.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Deinterlace.java index 1799004020cb6..4eb8d53e4bfb6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Deinterlace.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Deinterlace.java @@ -22,6 +22,10 @@ public final class Deinterlace { @JsonProperty(value = "mode") private DeinterlaceMode mode; + /** Creates an instance of Deinterlace class. */ + public Deinterlace() { + } + /** * Get the parity property: The field parity for de-interlacing, defaults to Auto. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataCollectionPolicy.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataCollectionPolicy.java index f8540e43247be..acf565c8fc840 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataCollectionPolicy.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataCollectionPolicy.java @@ -34,6 +34,10 @@ public final class EdgeUsageDataCollectionPolicy { @JsonProperty(value = "eventHubDetails") private EdgeUsageDataEventHub eventHubDetails; + /** Creates an instance of EdgeUsageDataCollectionPolicy class. */ + public EdgeUsageDataCollectionPolicy() { + } + /** * Get the dataCollectionFrequency property: Usage data collection frequency in ISO 8601 duration format e.g. PT10M * , PT5H. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataEventHub.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataEventHub.java index ca253ec925bbc..15460430d2b33 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataEventHub.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataEventHub.java @@ -28,6 +28,10 @@ public final class EdgeUsageDataEventHub { @JsonProperty(value = "token") private String token; + /** Creates an instance of EdgeUsageDataEventHub class. */ + public EdgeUsageDataEventHub() { + } + /** * Get the name property: Name of the Event Hub where usage will be reported. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnabledProtocols.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnabledProtocols.java index e8ca51954a330..2b034bb9cfb28 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnabledProtocols.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnabledProtocols.java @@ -34,6 +34,10 @@ public final class EnabledProtocols { @JsonProperty(value = "smoothStreaming", required = true) private boolean smoothStreaming; + /** Creates an instance of EnabledProtocols class. */ + public EnabledProtocols() { + } + /** * Get the download property: Enable Download protocol or not. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EncoderNamedPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EncoderNamedPreset.java index 74dbab9fdfc78..8cb341b645104 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EncoderNamedPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EncoderNamedPreset.java @@ -25,6 +25,9 @@ public final class EncoderNamedPreset extends ExpandableStringEnum experimentalOptions; + /** Creates an instance of FaceDetectorPreset class. */ + public FaceDetectorPreset() { + } + /** * Get the resolution property: Specifies the maximum resolution at which your video is analyzed. The default * behavior is "SourceResolution," which will keep the input video at its original resolution when analyzed. Using diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Fade.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Fade.java new file mode 100644 index 0000000000000..1deb3ff33a14e --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Fade.java @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Describes the properties of a Fade effect applied to the input media. */ +@Fluent +public final class Fade { + /* + * The Duration of the fade effect in the video. The value can be in ISO 8601 format (For example, PT05S to fade + * In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from the start time), or a + * relative value to stream duration (For example, 10% to fade 10% of stream duration) + */ + @JsonProperty(value = "duration", required = true) + private String duration; + + /* + * The Color for the fade In/Out. it can be on the CSS Level1 colors + * https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: + * rgb(255,0,0), 0xFF0000 or #FF0000 + */ + @JsonProperty(value = "fadeColor", required = true) + private String fadeColor; + + /* + * The position in the input video from where to start fade. The value can be in ISO 8601 format (For example, + * PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value + * to stream duration (For example, 10% to start at 10% of stream duration). Default is 0 + */ + @JsonProperty(value = "start") + private String start; + + /** Creates an instance of Fade class. */ + public Fade() { + } + + /** + * Get the duration property: The Duration of the fade effect in the video. The value can be in ISO 8601 format (For + * example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from + * the start time), or a relative value to stream duration (For example, 10% to fade 10% of stream duration). + * + * @return the duration value. + */ + public String duration() { + return this.duration; + } + + /** + * Set the duration property: The Duration of the fade effect in the video. The value can be in ISO 8601 format (For + * example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from + * the start time), or a relative value to stream duration (For example, 10% to fade 10% of stream duration). + * + * @param duration the duration value to set. + * @return the Fade object itself. + */ + public Fade withDuration(String duration) { + this.duration = duration; + return this; + } + + /** + * Get the fadeColor property: The Color for the fade In/Out. it can be on the CSS Level1 colors + * https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: + * rgb(255,0,0), 0xFF0000 or #FF0000. + * + * @return the fadeColor value. + */ + public String fadeColor() { + return this.fadeColor; + } + + /** + * Set the fadeColor property: The Color for the fade In/Out. it can be on the CSS Level1 colors + * https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: + * rgb(255,0,0), 0xFF0000 or #FF0000. + * + * @param fadeColor the fadeColor value to set. + * @return the Fade object itself. + */ + public Fade withFadeColor(String fadeColor) { + this.fadeColor = fadeColor; + return this; + } + + /** + * Get the start property: The position in the input video from where to start fade. The value can be in ISO 8601 + * format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), + * or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Default is 0. + * + * @return the start value. + */ + public String start() { + return this.start; + } + + /** + * Set the start property: The position in the input video from where to start fade. The value can be in ISO 8601 + * format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), + * or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Default is 0. + * + * @param start the start value to set. + * @return the Fade object itself. + */ + public Fade withStart(String start) { + this.start = start; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (duration() == null) { + throw LOGGER + .logExceptionAsError(new IllegalArgumentException("Missing required property duration in model Fade")); + } + if (fadeColor() == null) { + throw LOGGER + .logExceptionAsError(new IllegalArgumentException("Missing required property fadeColor in model Fade")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(Fade.class); +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FilterTrackPropertyCondition.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FilterTrackPropertyCondition.java index 4cf6ec56c70e7..cebfa48fea8fd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FilterTrackPropertyCondition.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FilterTrackPropertyCondition.java @@ -29,6 +29,10 @@ public final class FilterTrackPropertyCondition { @JsonProperty(value = "operation", required = true) private FilterTrackPropertyCompareOperation operation; + /** Creates an instance of FilterTrackPropertyCondition class. */ + public FilterTrackPropertyCondition() { + } + /** * Get the property property: The track property type. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FilterTrackSelection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FilterTrackSelection.java index 74b385553de62..fbeeae3c01f73 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FilterTrackSelection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FilterTrackSelection.java @@ -21,6 +21,10 @@ public final class FilterTrackSelection { @JsonProperty(value = "trackSelections", required = true) private List trackSelections; + /** Creates an instance of FilterTrackSelection class. */ + public FilterTrackSelection() { + } + /** * Get the trackSelections property: The track selections. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java index 8e4f9d06a4e91..e0d6dff10b4cc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java @@ -32,12 +32,28 @@ public final class Filters { @JsonProperty(value = "crop") private Rectangle crop; + /* + * Describes the properties of a Fade effect applied to the input media. + */ + @JsonProperty(value = "fadeIn") + private Fade fadeIn; + + /* + * Describes the properties of a Fade effect applied to the input media. + */ + @JsonProperty(value = "fadeOut") + private Fade fadeOut; + /* * The properties of overlays to be applied to the input video. These could be audio, image or video overlays. */ @JsonProperty(value = "overlays") private List overlays; + /** Creates an instance of Filters class. */ + public Filters() { + } + /** * Get the deinterlace property: The de-interlacing settings. * @@ -100,6 +116,46 @@ public Filters withCrop(Rectangle crop) { return this; } + /** + * Get the fadeIn property: Describes the properties of a Fade effect applied to the input media. + * + * @return the fadeIn value. + */ + public Fade fadeIn() { + return this.fadeIn; + } + + /** + * Set the fadeIn property: Describes the properties of a Fade effect applied to the input media. + * + * @param fadeIn the fadeIn value to set. + * @return the Filters object itself. + */ + public Filters withFadeIn(Fade fadeIn) { + this.fadeIn = fadeIn; + return this; + } + + /** + * Get the fadeOut property: Describes the properties of a Fade effect applied to the input media. + * + * @return the fadeOut value. + */ + public Fade fadeOut() { + return this.fadeOut; + } + + /** + * Set the fadeOut property: Describes the properties of a Fade effect applied to the input media. + * + * @param fadeOut the fadeOut value to set. + * @return the Filters object itself. + */ + public Filters withFadeOut(Fade fadeOut) { + this.fadeOut = fadeOut; + return this; + } + /** * Get the overlays property: The properties of overlays to be applied to the input video. These could be audio, * image or video overlays. @@ -134,6 +190,12 @@ public void validate() { if (crop() != null) { crop().validate(); } + if (fadeIn() != null) { + fadeIn().validate(); + } + if (fadeOut() != null) { + fadeOut().validate(); + } if (overlays() != null) { overlays().forEach(e -> e.validate()); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FirstQuality.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FirstQuality.java index 839d085beabcc..f50ffe018631a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FirstQuality.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FirstQuality.java @@ -16,6 +16,10 @@ public final class FirstQuality { @JsonProperty(value = "bitrate", required = true) private int bitrate; + /** Creates an instance of FirstQuality class. */ + public FirstQuality() { + } + /** * Get the bitrate property: The first quality bitrate. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java index 5787102fa554c..f167daffb79cc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java @@ -25,29 +25,34 @@ @Fluent public class Format { /* - * The pattern of the file names for the generated output files. The following macros are supported in the file + * The file naming pattern used for the creation of output files. The following macros are supported in the file * name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file * suffix is not included) of the input video file is less than 32 characters long, the base name of input video * files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is * truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. * {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to - * thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the - * audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed - * from the filename. + * thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). {Bitrate} - The audio/video + * bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The + * video resolution. Any unsubstituted macros will be collapsed and removed from the filename. */ @JsonProperty(value = "filenamePattern", required = true) private String filenamePattern; + /** Creates an instance of Format class. */ + public Format() { + } + /** - * Get the filenamePattern property: The pattern of the file names for the generated output files. The following + * Get the filenamePattern property: The file naming pattern used for the creation of output files. The following * macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video * file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, * the base name of input video files will be used. If the length of base name of the input video file exceeds 32 * characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate * extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for - * thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. - * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will - * be collapsed and removed from the filename. + * thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). + * {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video + * codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the + * filename. * * @return the filenamePattern value. */ @@ -56,15 +61,16 @@ public String filenamePattern() { } /** - * Set the filenamePattern property: The pattern of the file names for the generated output files. The following + * Set the filenamePattern property: The file naming pattern used for the creation of output files. The following * macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video * file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, * the base name of input video files will be used. If the length of base name of the input video file exceeds 32 * characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate * extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for - * thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. - * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will - * be collapsed and removed from the filename. + * thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). + * {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video + * codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the + * filename. * * @param filenamePattern the filenamePattern value to set. * @return the Format object itself. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java index 8c2eaee6ed30c..91107b9337908 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java @@ -18,6 +18,10 @@ @JsonTypeName("#Microsoft.Media.FromAllInputFile") @Fluent public final class FromAllInputFile extends InputDefinition { + /** Creates an instance of FromAllInputFile class. */ + public FromAllInputFile() { + } + /** {@inheritDoc} */ @Override public FromAllInputFile withIncludedTracks(List includedTracks) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java index 43d45b71aba57..d70f54a6d08a4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java @@ -17,6 +17,10 @@ @JsonTypeName("#Microsoft.Media.FromEachInputFile") @Fluent public final class FromEachInputFile extends InputDefinition { + /** Creates an instance of FromEachInputFile class. */ + public FromEachInputFile() { + } + /** {@inheritDoc} */ @Override public FromEachInputFile withIncludedTracks(List includedTracks) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java index b06f64750bdc4..c7554145a16ef 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java @@ -57,6 +57,10 @@ public final class H264Layer extends VideoLayer { @JsonProperty(value = "entropyMode") private EntropyMode entropyMode; + /** Creates an instance of H264Layer class. */ + public H264Layer() { + } + /** * Get the profile property: We currently support Baseline, Main, High, High422, High444. Default is Auto. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Video.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Video.java index cb6e2ce10e88a..263ff2dce3778 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Video.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Video.java @@ -41,6 +41,10 @@ public final class H264Video extends Video { @JsonProperty(value = "sceneChangeDetection") private Boolean sceneChangeDetection; + /** Creates an instance of H264Video class. */ + public H264Video() { + } + /** * Get the complexity property: Tells the encoder how to choose its encoding settings. The default value is * Balanced. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java index 39d9a68fe9317..148e3c3b7d237 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java @@ -50,6 +50,10 @@ public final class H265Layer extends H265VideoLayer { @JsonProperty(value = "referenceFrames") private Integer referenceFrames; + /** Creates an instance of H265Layer class. */ + public H265Layer() { + } + /** * Get the profile property: We currently support Main. Default is Auto. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java index 93bd9690de938..10ff853778bad 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java @@ -38,6 +38,10 @@ public final class H265Video extends Video { @JsonProperty(value = "layers") private List layers; + /** Creates an instance of H265Video class. */ + public H265Video() { + } + /** * Get the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene * changes. If not specified, the default is false. This flag should be set to true only when the encoder is being diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java index c84e51c1331e0..97718956c45db 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java @@ -54,6 +54,10 @@ public class H265VideoLayer extends Layer { @JsonProperty(value = "adaptiveBFrame") private Boolean adaptiveBFrame; + /** Creates an instance of H265VideoLayer class. */ + public H265VideoLayer() { + } + /** * Get the bitrate property: The average bitrate in bits per second at which to encode the input video when * generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Hls.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Hls.java index 241b7ec390e0c..ae026cdf73833 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Hls.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Hls.java @@ -17,6 +17,10 @@ public final class Hls { @JsonProperty(value = "fragmentsPerTsSegment") private Integer fragmentsPerTsSegment; + /** Creates an instance of Hls class. */ + public Hls() { + } + /** * Get the fragmentsPerTsSegment property: The number of fragments in an HTTP Live Streaming (HLS) TS segment in the * output of the live event. This value does not affect the packing ratio for HLS CMAF output. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/HlsSettings.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/HlsSettings.java index 84d15a1cac789..9d7bf9d440079 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/HlsSettings.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/HlsSettings.java @@ -28,6 +28,10 @@ public final class HlsSettings { @JsonProperty(value = "characteristics") private String characteristics; + /** Creates an instance of HlsSettings class. */ + public HlsSettings() { + } + /** * Get the defaultProperty property: The default for the HLS setting. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Image.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Image.java index a84791f0d28a1..2bef0ae481456 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Image.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Image.java @@ -61,6 +61,10 @@ public class Image extends Video { @JsonProperty(value = "range") private String range; + /** Creates an instance of Image class. */ + public Image() { + } + /** * Get the start property: The position in the input video from where to start generating thumbnails. The value can * be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ImageFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ImageFormat.java index 5d9ebe2ffc59a..f8142275ed947 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ImageFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ImageFormat.java @@ -22,6 +22,10 @@ }) @Fluent public class ImageFormat extends Format { + /** Creates an instance of ImageFormat class. */ + public ImageFormat() { + } + /** {@inheritDoc} */ @Override public ImageFormat withFilenamePattern(String filenamePattern) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java index f514570142c6a..8d1353d07bd4d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java @@ -33,6 +33,10 @@ public class InputDefinition { @JsonProperty(value = "includedTracks") private List includedTracks; + /** Creates an instance of InputDefinition class. */ + public InputDefinition() { + } + /** * Get the includedTracks property: The list of TrackDescriptors which define the metadata and selection of tracks * in the input. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java index 355e395f47ad8..8b90556dae551 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java @@ -21,6 +21,10 @@ public final class InputFile extends InputDefinition { @JsonProperty(value = "filename") private String filename; + /** Creates an instance of InputFile class. */ + public InputFile() { + } + /** * Get the filename property: Name of the file that this input definition applies to. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpAccessControl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpAccessControl.java index 733aff00854e6..c0d21f12c3da2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpAccessControl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpAccessControl.java @@ -17,6 +17,10 @@ public final class IpAccessControl { @JsonProperty(value = "allow") private List allow; + /** Creates an instance of IpAccessControl class. */ + public IpAccessControl() { + } + /** * Get the allow property: The IP allow list. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpRange.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpRange.java index 8fa5b34ab3ce6..6554e0add6aff 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpRange.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpRange.java @@ -28,6 +28,10 @@ public final class IpRange { @JsonProperty(value = "subnetPrefixLength") private Integer subnetPrefixLength; + /** Creates an instance of IpRange class. */ + public IpRange() { + } + /** * Get the name property: The friendly name for the IP address range. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java index c4f02ab31d24d..945e9795dadf5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java @@ -337,21 +337,21 @@ interface WithCorrelationData { * *

Cancel a Job. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void cancelJob(); + Response cancelJobWithResponse(Context context); /** * Cancel Job * *

Cancel a Job. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response cancelJobWithResponse(Context context); + void cancelJob(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java index df970af4ac7a1..02d58810d7851 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java @@ -25,6 +25,10 @@ public final class JobCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of JobCollection class. */ + public JobCollection() { + } + /** * Get the value property: A collection of Job items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java index c21047d8b0f51..7cc870dab0f33 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java @@ -42,6 +42,10 @@ public final class JobError { @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY) private List details; + /** Creates an instance of JobError class. */ + public JobError() { + } + /** * Get the code property: Error code describing the error. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorCategory.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorCategory.java index 4b18a9b615641..6861e37166770 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorCategory.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorCategory.java @@ -25,6 +25,9 @@ public final class JobErrorCategory extends ExpandableStringEnum { /** Static value ContentUnsupported for JobErrorCode. */ public static final JobErrorCode CONTENT_UNSUPPORTED = fromString("ContentUnsupported"); + /** Static value IdentityUnsupported for JobErrorCode. */ + public static final JobErrorCode IDENTITY_UNSUPPORTED = fromString("IdentityUnsupported"); + /** * Creates or finds a JobErrorCode from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorDetail.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorDetail.java index 365d01cd9f302..3bdfa9c77d590 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorDetail.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorDetail.java @@ -22,6 +22,10 @@ public final class JobErrorDetail { @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; + /** Creates an instance of JobErrorDetail class. */ + public JobErrorDetail() { + } + /** * Get the code property: Code describing the error detail. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java index f646f8d5976f4..0a2e2f1ea7370 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java @@ -23,6 +23,10 @@ }) @Immutable public class JobInput { + /** Creates an instance of JobInput class. */ + public JobInput() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java index b6a496f372464..d9ec750e7e681 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java @@ -22,6 +22,10 @@ public final class JobInputAsset extends JobInputClip { @JsonProperty(value = "assetName", required = true) private String assetName; + /** Creates an instance of JobInputAsset class. */ + public JobInputAsset() { + } + /** * Get the assetName property: The name of the input Asset. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java index 125bd53d39b15..50d97897ff03f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java @@ -61,6 +61,10 @@ public class JobInputClip extends JobInput { @JsonProperty(value = "inputDefinitions") private List inputDefinitions; + /** Creates an instance of JobInputClip class. */ + public JobInputClip() { + } + /** * Get the files property: List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings * will not be returned in service responses to prevent sensitive data exposure. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java index 5811820354a01..1f195f7594816 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java @@ -23,6 +23,10 @@ public final class JobInputHttp extends JobInputClip { @JsonProperty(value = "baseUri") private String baseUri; + /** Creates an instance of JobInputHttp class. */ + public JobInputHttp() { + } + /** * Get the baseUri property: Base URI for HTTPS job input. It will be concatenated with provided file names. If no * base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java index f0af74bd1c672..545c542913ca1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java @@ -24,6 +24,10 @@ public final class JobInputSequence extends JobInput { @JsonProperty(value = "inputs") private List inputs; + /** Creates an instance of JobInputSequence class. */ + public JobInputSequence() { + } + /** * Get the inputs property: JobInputs that make up the timeline. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputs.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputs.java index 4e88836c3e52a..0697a912b80d8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputs.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputs.java @@ -21,6 +21,10 @@ public final class JobInputs extends JobInput { @JsonProperty(value = "inputs") private List inputs; + /** Creates an instance of JobInputs class. */ + public JobInputs() { + } + /** * Get the inputs property: List of inputs to a Job. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java index b77d4b108fee1..0724ba18cd6dc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java @@ -72,6 +72,10 @@ public class JobOutput { @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime endTime; + /** Creates an instance of JobOutput class. */ + public JobOutput() { + } + /** * Get the error property: If the JobOutput is in the Error state, it contains the details of the error. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutputAsset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutputAsset.java index de43bf2e73323..1e7cb0eae670d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutputAsset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutputAsset.java @@ -21,6 +21,10 @@ public final class JobOutputAsset extends JobOutput { @JsonProperty(value = "assetName", required = true) private String assetName; + /** Creates an instance of JobOutputAsset class. */ + public JobOutputAsset() { + } + /** * Get the assetName property: The name of the output Asset. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java index da3da6bc419f3..d01fdf1d74400 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java @@ -58,12 +58,14 @@ PagedIterable list( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job. + * @return a Job along with {@link Response}. */ - Job get(String resourceGroupName, String accountName, String transformName, String jobName); + Response getWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** * Get Job @@ -74,14 +76,12 @@ PagedIterable list( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job along with {@link Response}. + * @return a Job. */ - Response getWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context); + Job get(String resourceGroupName, String accountName, String transformName, String jobName); /** * Delete Job @@ -92,11 +92,14 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String resourceGroupName, String accountName, String transformName, String jobName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** * Delete Job @@ -107,14 +110,11 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context); + void delete(String resourceGroupName, String accountName, String transformName, String jobName); /** * Cancel Job @@ -125,11 +125,14 @@ Response deleteWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName); + Response cancelJobWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** * Cancel Job @@ -140,14 +143,11 @@ Response deleteWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response cancelJobWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context); + void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName); /** * Get Job diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgFormat.java index 58e844d06d5c2..4fd8fdb9ac465 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgFormat.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.JpgFormat") @Fluent public final class JpgFormat extends ImageFormat { + /** Creates an instance of JpgFormat class. */ + public JpgFormat() { + } + /** {@inheritDoc} */ @Override public JpgFormat withFilenamePattern(String filenamePattern) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java index 28b7f98db4ae0..2ae0c1111622b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java @@ -31,6 +31,10 @@ public final class JpgImage extends Image { @JsonProperty(value = "spriteColumn") private Integer spriteColumn; + /** Creates an instance of JpgImage class. */ + public JpgImage() { + } + /** * Get the layers property: A collection of output JPEG image layers to be produced by the encoder. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java index 173fb959df678..65ae799a30c53 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java @@ -16,6 +16,10 @@ public final class JpgLayer extends Layer { @JsonProperty(value = "quality") private Integer quality; + /** Creates an instance of JpgLayer class. */ + public JpgLayer() { + } + /** * Get the quality property: The compression quality of the JPEG output. Range is from 0-100 and the default is 70. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyDelivery.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyDelivery.java index 418d8eb480258..3cf0d8fd4428e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyDelivery.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyDelivery.java @@ -16,6 +16,10 @@ public final class KeyDelivery { @JsonProperty(value = "accessControl") private AccessControl accessControl; + /** Creates an instance of KeyDelivery class. */ + public KeyDelivery() { + } + /** * Get the accessControl property: The access control properties for Key Delivery. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java index 9936de72431f4..b5c33d3819edc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java @@ -23,6 +23,10 @@ public final class KeyVaultProperties { @JsonProperty(value = "currentKeyIdentifier", access = JsonProperty.Access.WRITE_ONLY) private String currentKeyIdentifier; + /** Creates an instance of KeyVaultProperties class. */ + public KeyVaultProperties() { + } + /** * Get the keyIdentifier property: The URL of the Key Vault key used to encrypt the account. The key may either be * versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java index ced15e0479840..ce74f5ec6c38b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java @@ -34,6 +34,10 @@ public class Layer { @JsonProperty(value = "label") private String label; + /** Creates an instance of Layer class. */ + public Layer() { + } + /** * Get the width property: The width of the output video for this layer. The value can be absolute (in pixels) or * relative (in percentage). For example 50% means the output video has half as many pixels in width as the input. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java index 32cbb583f180c..627c8f3bd9c38 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java @@ -23,6 +23,10 @@ public final class ListContainerSasInput { @JsonProperty(value = "expiryTime") private OffsetDateTime expiryTime; + /** Creates an instance of ListContainerSasInput class. */ + public ListContainerSasInput() { + } + /** * Get the permissions property: The permissions to set on the SAS URL. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListEdgePoliciesInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListEdgePoliciesInput.java index 802323d656376..87a2aad1f3e8e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListEdgePoliciesInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListEdgePoliciesInput.java @@ -16,6 +16,10 @@ public final class ListEdgePoliciesInput { @JsonProperty(value = "deviceId") private String deviceId; + /** Creates an instance of ListEdgePoliciesInput class. */ + public ListEdgePoliciesInput() { + } + /** * Get the deviceId property: Unique identifier of the edge device. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java index 289408cd1f1f6..810f856065420 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java @@ -17,6 +17,10 @@ public final class LiveEventActionInput { @JsonProperty(value = "removeOutputsOnStop") private Boolean removeOutputsOnStop; + /** Creates an instance of LiveEventActionInput class. */ + public LiveEventActionInput() { + } + /** * Get the removeOutputsOnStop property: The flag indicates whether live outputs are automatically deleted when live * event is being stopped. Deleting live outputs do not delete the underlying assets. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java index f62800e45f068..28f3ce9a853f3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java @@ -45,6 +45,10 @@ public final class LiveEventEncoding { @JsonProperty(value = "keyFrameInterval") private Duration keyFrameInterval; + /** Creates an instance of LiveEventEncoding class. */ + public LiveEventEncoding() { + } + /** * Get the encodingType property: Live event type. When encodingType is set to PassthroughBasic or * PassthroughStandard, the service simply passes through the incoming video and audio layer(s) to the output. When diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEndpoint.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEndpoint.java index 8d1a3354b847d..1f1422e374aec 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEndpoint.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEndpoint.java @@ -22,6 +22,10 @@ public final class LiveEventEndpoint { @JsonProperty(value = "url") private String url; + /** Creates an instance of LiveEventEndpoint class. */ + public LiveEventEndpoint() { + } + /** * Get the protocol property: The endpoint protocol. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInput.java index 7da80243f031d..de6001f908792 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInput.java @@ -45,6 +45,10 @@ public final class LiveEventInput { @JsonProperty(value = "endpoints") private List endpoints; + /** Creates an instance of LiveEventInput class. */ + public LiveEventInput() { + } + /** * Get the streamingProtocol property: The input protocol for the live event. This is specified at creation time and * cannot be updated. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputAccessControl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputAccessControl.java index 2b443872de1b9..8bea90db4c2b6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputAccessControl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputAccessControl.java @@ -16,6 +16,10 @@ public final class LiveEventInputAccessControl { @JsonProperty(value = "ip") private IpAccessControl ip; + /** Creates an instance of LiveEventInputAccessControl class. */ + public LiveEventInputAccessControl() { + } + /** * Get the ip property: The IP access control properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputTrackSelection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputTrackSelection.java index 29788dfc182bb..427daef927568 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputTrackSelection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputTrackSelection.java @@ -33,6 +33,10 @@ public final class LiveEventInputTrackSelection { @JsonProperty(value = "value") private String value; + /** Creates an instance of LiveEventInputTrackSelection class. */ + public LiveEventInputTrackSelection() { + } + /** * Get the property property: Property name to select. This property is reserved for future use, any value set on * this property will be ignored. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventListResult.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventListResult.java index 1f867dffdc8c9..32fa6bb4a94e4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventListResult.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventListResult.java @@ -34,6 +34,10 @@ public final class LiveEventListResult { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of LiveEventListResult class. */ + public LiveEventListResult() { + } + /** * Get the value property: The result of the List Live Event operation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventOutputTranscriptionTrack.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventOutputTranscriptionTrack.java index 7358980cd30c4..f8781303064d1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventOutputTranscriptionTrack.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventOutputTranscriptionTrack.java @@ -20,6 +20,10 @@ public final class LiveEventOutputTranscriptionTrack { @JsonProperty(value = "trackName", required = true) private String trackName; + /** Creates an instance of LiveEventOutputTranscriptionTrack class. */ + public LiveEventOutputTranscriptionTrack() { + } + /** * Get the trackName property: The output track name. This property is reserved for future use, any value set on * this property will be ignored. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreview.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreview.java index 8acbd366d6bdb..744fe2d4f2557 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreview.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreview.java @@ -47,6 +47,10 @@ public final class LiveEventPreview { @JsonProperty(value = "alternativeMediaId") private String alternativeMediaId; + /** Creates an instance of LiveEventPreview class. */ + public LiveEventPreview() { + } + /** * Get the endpoints property: The endpoints for preview. Do not share the preview URL with the live event audience. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreviewAccessControl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreviewAccessControl.java index ba03b1378714c..3425e87c98894 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreviewAccessControl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreviewAccessControl.java @@ -16,6 +16,10 @@ public final class LiveEventPreviewAccessControl { @JsonProperty(value = "ip") private IpAccessControl ip; + /** Creates an instance of LiveEventPreviewAccessControl class. */ + public LiveEventPreviewAccessControl() { + } + /** * Get the ip property: The IP access control properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventTranscription.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventTranscription.java index 23d39353166cd..a0fdafa9b6af8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventTranscription.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventTranscription.java @@ -37,6 +37,10 @@ public final class LiveEventTranscription { @JsonProperty(value = "outputTranscriptionTrack") private LiveEventOutputTranscriptionTrack outputTranscriptionTrack; + /** Creates an instance of LiveEventTranscription class. */ + public LiveEventTranscription() { + } + /** * Get the language property: Specifies the language (locale) to be used for speech-to-text transcription – it * should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US'). See diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvents.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvents.java index b19b23677f2ed..85f535a066ad9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvents.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvents.java @@ -47,12 +47,14 @@ public interface LiveEvents { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a live event. + * @return properties of a live event along with {@link Response}. */ - LiveEvent get(String resourceGroupName, String accountName, String liveEventName); + Response getWithResponse( + String resourceGroupName, String accountName, String liveEventName, Context context); /** * Get Live Event @@ -62,14 +64,12 @@ public interface LiveEvents { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a live event along with {@link Response}. + * @return properties of a live event. */ - Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, Context context); + LiveEvent get(String resourceGroupName, String accountName, String liveEventName); /** * Delete Live Event @@ -235,12 +235,14 @@ void stop( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ - AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -250,14 +252,12 @@ void stop( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -268,12 +268,14 @@ Response asyncOperationWithResponse( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ - LiveEvent operationLocation(String resourceGroupName, String accountName, String liveEventName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context); /** * Get operation status. @@ -284,14 +286,12 @@ Response asyncOperationWithResponse( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ - Response operationLocationWithResponse( - String resourceGroupName, String accountName, String liveEventName, String operationId, Context context); + LiveEvent operationLocation(String resourceGroupName, String accountName, String liveEventName, String operationId); /** * Get Live Event diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java index e69a511748783..1486fcad42a99 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java @@ -34,6 +34,10 @@ public final class LiveOutputListResult { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of LiveOutputListResult class. */ + public LiveOutputListResult() { + } + /** * Get the value property: The result of the List LiveOutput operation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputs.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputs.java index 5efc88ab04bdd..0949fd3dc08b6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputs.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputs.java @@ -50,12 +50,14 @@ public interface LiveOutputs { * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output. + * @return a live output along with {@link Response}. */ - LiveOutput get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); + Response getWithResponse( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); /** * Get Live Output @@ -66,14 +68,12 @@ public interface LiveOutputs { * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output along with {@link Response}. + * @return a live output. */ - Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); + LiveOutput get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); /** * Delete Live Output @@ -115,12 +115,14 @@ void delete( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ - AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -130,14 +132,12 @@ void delete( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -149,13 +149,19 @@ Response asyncOperationWithResponse( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ - LiveOutput operationLocation( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context); /** * Get operation status. @@ -167,19 +173,13 @@ LiveOutput operationLocation( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ - Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String liveEventName, - String liveOutputName, - String operationId, - Context context); + LiveOutput operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId); /** * Get Live Output diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java index db4bd4020ddc1..2781db56c4e4a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java @@ -16,12 +16,14 @@ public interface Locations { * * @param locationName Location name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response from the check name availability request. + * @return the response from the check name availability request along with {@link Response}. */ - EntityNameAvailabilityCheckOutput checkNameAvailability(String locationName, CheckNameAvailabilityInput parameters); + Response checkNameAvailabilityWithResponse( + String locationName, CheckNameAvailabilityInput parameters, Context context); /** * Check Name Availability @@ -30,12 +32,10 @@ public interface Locations { * * @param locationName Location name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response from the check name availability request along with {@link Response}. + * @return the response from the check name availability request. */ - Response checkNameAvailabilityWithResponse( - String locationName, CheckNameAvailabilityInput parameters, Context context); + EntityNameAvailabilityCheckOutput checkNameAvailability(String locationName, CheckNameAvailabilityInput parameters); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LogSpecification.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LogSpecification.java index d1d1e21bd1a99..bb1d13cfb7b8f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LogSpecification.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LogSpecification.java @@ -28,6 +28,10 @@ public final class LogSpecification { @JsonProperty(value = "blobDuration", access = JsonProperty.Access.WRITE_ONLY) private String blobDuration; + /** Creates an instance of LogSpecification class. */ + public LogSpecification() { + } + /** * Get the name property: The diagnostic log category name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java index 5ae6bf8d31b9a..0d95252c75552 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java @@ -417,11 +417,13 @@ interface WithPublicNetworkAccess { *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void syncStorageKeys(SyncStorageKeysInput parameters); + Response syncStorageKeysWithResponse(SyncStorageKeysInput parameters, Context context); /** * Synchronizes Storage Account Keys @@ -429,13 +431,11 @@ interface WithPublicNetworkAccess { *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response syncStorageKeysWithResponse(SyncStorageKeysInput parameters, Context context); + void syncStorageKeys(SyncStorageKeysInput parameters); /** * List the media edge policies associated with the Media Services account. @@ -443,12 +443,13 @@ interface WithPublicNetworkAccess { *

List all the media edge policies associated with the Media Services account. * * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ - EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters); + Response listEdgePoliciesWithResponse(ListEdgePoliciesInput parameters, Context context); /** * List the media edge policies associated with the Media Services account. @@ -456,11 +457,10 @@ interface WithPublicNetworkAccess { *

List all the media edge policies associated with the Media Services account. * * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ - Response listEdgePoliciesWithResponse(ListEdgePoliciesInput parameters, Context context); + EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java index fc477a5cc3f80..dfb631f4f598f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java @@ -25,6 +25,10 @@ public final class MediaServiceCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of MediaServiceCollection class. */ + public MediaServiceCollection() { + } + /** * Get the value property: A collection of MediaService items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceIdentity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceIdentity.java index 3739c4de7f4e0..ead90e8a51cc1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceIdentity.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceIdentity.java @@ -39,6 +39,10 @@ public class MediaServiceIdentity { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; + /** Creates an instance of MediaServiceIdentity class. */ + public MediaServiceIdentity() { + } + /** * Get the type property: The identity type. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceUpdate.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceUpdate.java index f81d141899f34..e66b53ca2bd0e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceUpdate.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceUpdate.java @@ -35,6 +35,10 @@ public final class MediaServiceUpdate { @JsonProperty(value = "identity") private MediaServiceIdentity identity; + /** Creates an instance of MediaServiceUpdate class. */ + public MediaServiceUpdate() { + } + /** * Get the tags property: Resource tags. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java index 2cee82cedf636..876d88cd2e2ce 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java @@ -16,12 +16,13 @@ public interface MediaServicesOperationResults { * * @param locationName Location name. * @param operationId Operation Id. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return media service operation result. */ - MediaService get(String locationName, String operationId); + Response getWithResponse(String locationName, String operationId, Context context); /** * Get operation result. @@ -30,11 +31,10 @@ public interface MediaServicesOperationResults { * * @param locationName Location name. * @param operationId Operation Id. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return media service operation result. */ - Response getWithResponse(String locationName, String operationId, Context context); + MediaService get(String locationName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResultsGetHeaders.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResultsGetHeaders.java index fa39cdcd4142f..a795008abf719 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResultsGetHeaders.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResultsGetHeaders.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.mediaservices.models; import com.azure.core.annotation.Fluent; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.fasterxml.jackson.annotation.JsonProperty; @@ -29,6 +30,8 @@ public final class MediaServicesOperationResultsGetHeaders { @JsonProperty(value = "Location") private String location; + private static final HttpHeaderName AZURE_ASYNC_OPERATION = HttpHeaderName.fromString("Azure-AsyncOperation"); + // HttpHeaders containing the raw property values. /** * Creates an instance of MediaServicesOperationResultsGetHeaders class. @@ -36,9 +39,12 @@ public final class MediaServicesOperationResultsGetHeaders { * @param rawHeaders The raw HttpHeaders that will be used to create the property values. */ public MediaServicesOperationResultsGetHeaders(HttpHeaders rawHeaders) { - this.retryAfter = Integer.parseInt(rawHeaders.getValue("Retry-After")); - this.azureAsyncOperation = rawHeaders.getValue("Azure-AsyncOperation"); - this.location = rawHeaders.getValue("Location"); + String retryAfter = rawHeaders.getValue(HttpHeaderName.RETRY_AFTER); + if (retryAfter != null) { + this.retryAfter = Integer.parseInt(retryAfter); + } + this.azureAsyncOperation = rawHeaders.getValue(AZURE_ASYNC_OPERATION); + this.location = rawHeaders.getValue(HttpHeaderName.LOCATION); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java index 41f6a7d512d4c..bcc377f6810e5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java @@ -16,12 +16,13 @@ public interface MediaServicesOperationStatuses { * * @param locationName Location name. * @param operationId Operation ID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return media service operation status. + * @return media service operation status along with {@link Response}. */ - MediaServiceOperationStatus get(String locationName, String operationId); + Response getWithResponse(String locationName, String operationId, Context context); /** * Get operation status. @@ -30,11 +31,10 @@ public interface MediaServicesOperationStatuses { * * @param locationName Location name. * @param operationId Operation ID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return media service operation status along with {@link Response}. + * @return media service operation status. */ - Response getWithResponse(String locationName, String operationId, Context context); + MediaServiceOperationStatus get(String locationName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java index 78e39e2625867..ed3c33f093972 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java @@ -44,12 +44,14 @@ public interface Mediaservices { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Media Services account. + * @return the details of a Media Services account along with {@link Response}. */ - MediaService getByResourceGroup(String resourceGroupName, String accountName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context); /** * Get a Media Services account @@ -58,14 +60,12 @@ public interface Mediaservices { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Media Services account along with {@link Response}. + * @return the details of a Media Services account. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context); + MediaService getByResourceGroup(String resourceGroupName, String accountName); /** * Delete a Media Services account. @@ -74,11 +74,13 @@ Response getByResourceGroupWithResponse( * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void deleteByResourceGroup(String resourceGroupName, String accountName); + Response deleteByResourceGroupWithResponse(String resourceGroupName, String accountName, Context context); /** * Delete a Media Services account. @@ -87,13 +89,11 @@ Response getByResourceGroupWithResponse( * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String accountName, Context context); + void deleteByResourceGroup(String resourceGroupName, String accountName); /** * Synchronizes Storage Account Keys @@ -103,11 +103,14 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters); + Response syncStorageKeysWithResponse( + String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context); /** * Synchronizes Storage Account Keys @@ -117,14 +120,11 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response syncStorageKeysWithResponse( - String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context); + void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters); /** * List the media edge policies associated with the Media Services account. @@ -134,12 +134,14 @@ Response syncStorageKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ - EdgePolicies listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters); + Response listEdgePoliciesWithResponse( + String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context); /** * List the media edge policies associated with the Media Services account. @@ -149,14 +151,12 @@ Response syncStorageKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ - Response listEdgePoliciesWithResponse( - String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context); + EdgePolicies listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters); /** * List Media Services accounts diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricDimension.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricDimension.java index e128095f764f3..d02068483e75d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricDimension.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricDimension.java @@ -28,6 +28,10 @@ public final class MetricDimension { @JsonProperty(value = "toBeExportedForShoebox", access = JsonProperty.Access.WRITE_ONLY) private Boolean toBeExportedForShoebox; + /** Creates an instance of MetricDimension class. */ + public MetricDimension() { + } + /** * Get the name property: The metric dimension name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricSpecification.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricSpecification.java index b4c2c487c4bc3..ba008daf5dab8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricSpecification.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricSpecification.java @@ -83,6 +83,10 @@ public final class MetricSpecification { @JsonProperty(value = "supportedTimeGrainTypes", access = JsonProperty.Access.WRITE_ONLY) private List supportedTimeGrainTypes; + /** Creates an instance of MetricSpecification class. */ + public MetricSpecification() { + } + /** * Get the name property: The metric name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mp4Format.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mp4Format.java index f429a36db938b..72352621f5524 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mp4Format.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mp4Format.java @@ -14,6 +14,10 @@ @JsonTypeName("#Microsoft.Media.Mp4Format") @Fluent public final class Mp4Format extends MultiBitrateFormat { + /** Creates an instance of Mp4Format class. */ + public Mp4Format() { + } + /** {@inheritDoc} */ @Override public Mp4Format withOutputFiles(List outputFiles) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java index a072238803ee0..946504f0a594d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java @@ -35,6 +35,10 @@ public class MultiBitrateFormat extends Format { @JsonProperty(value = "outputFiles") private List outputFiles; + /** Creates an instance of MultiBitrateFormat class. */ + public MultiBitrateFormat() { + } + /** * Get the outputFiles property: The list of output files to produce. Each entry in the list is a set of audio and * video layer labels to be muxed together . diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/NoEncryption.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/NoEncryption.java index bfedb43641892..2beaab332a0a7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/NoEncryption.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/NoEncryption.java @@ -16,6 +16,10 @@ public final class NoEncryption { @JsonProperty(value = "enabledProtocols") private EnabledProtocols enabledProtocols; + /** Creates an instance of NoEncryption class. */ + public NoEncryption() { + } + /** * Get the enabledProtocols property: Representing supported protocols. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operation.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operation.java index 7231d008dc42e..ccb2f8ef2c4fb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operation.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operation.java @@ -47,6 +47,10 @@ public final class Operation { @JsonProperty(value = "actionType") private ActionType actionType; + /** Creates an instance of Operation class. */ + public Operation() { + } + /** * Get the name property: The operation name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationDisplay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationDisplay.java index 85fabb5b63d9a..c536d4f3e81b6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationDisplay.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationDisplay.java @@ -34,6 +34,10 @@ public final class OperationDisplay { @JsonProperty(value = "description") private String description; + /** Creates an instance of OperationDisplay class. */ + public OperationDisplay() { + } + /** * Get the provider property: The service provider. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java index dd575ba97a08b..1551da3109caf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java @@ -19,13 +19,19 @@ public interface OperationResults { * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return asset track operation result. */ - AssetTrack get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId); + Response getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context); /** * Get operation result. @@ -37,17 +43,11 @@ AssetTrack get( * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return asset track operation result. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context); + AssetTrack get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResultsGetHeaders.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResultsGetHeaders.java index 8fde5c9dfced0..4a73845d51376 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResultsGetHeaders.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResultsGetHeaders.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.mediaservices.models; import com.azure.core.annotation.Fluent; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.fasterxml.jackson.annotation.JsonProperty; @@ -29,6 +30,8 @@ public final class OperationResultsGetHeaders { @JsonProperty(value = "Location") private String location; + private static final HttpHeaderName AZURE_ASYNC_OPERATION = HttpHeaderName.fromString("Azure-AsyncOperation"); + // HttpHeaders containing the raw property values. /** * Creates an instance of OperationResultsGetHeaders class. @@ -36,9 +39,12 @@ public final class OperationResultsGetHeaders { * @param rawHeaders The raw HttpHeaders that will be used to create the property values. */ public OperationResultsGetHeaders(HttpHeaders rawHeaders) { - this.retryAfter = Integer.parseInt(rawHeaders.getValue("Retry-After")); - this.azureAsyncOperation = rawHeaders.getValue("Azure-AsyncOperation"); - this.location = rawHeaders.getValue("Location"); + String retryAfter = rawHeaders.getValue(HttpHeaderName.RETRY_AFTER); + if (retryAfter != null) { + this.retryAfter = Integer.parseInt(retryAfter); + } + this.azureAsyncOperation = rawHeaders.getValue(AZURE_ASYNC_OPERATION); + this.location = rawHeaders.getValue(HttpHeaderName.LOCATION); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java index 75e37e5cc36dc..fbe6344e09600 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java @@ -19,13 +19,19 @@ public interface OperationStatuses { * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return asset track operation status. + * @return asset track operation status along with {@link Response}. */ - AssetTrackOperationStatus get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId); + Response getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context); /** * Get operation status. @@ -37,17 +43,11 @@ AssetTrackOperationStatus get( * @param assetName The Asset name. * @param trackName The Asset Track name. * @param operationId Operation Id. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return asset track operation status along with {@link Response}. + * @return asset track operation status. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context); + AssetTrackOperationStatus get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java index 272a4b62680c4..8c793858ebf5a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java @@ -14,22 +14,22 @@ public interface Operations { * *

Lists all the Media Services operations. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of Operation items. + * @return a collection of Operation items along with {@link Response}. */ - OperationCollection list(); + Response listWithResponse(Context context); /** * List Operations * *

Lists all the Media Services operations. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of Operation items along with {@link Response}. + * @return a collection of Operation items. */ - Response listWithResponse(Context context); + OperationCollection list(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java index 0187885106985..2beca552cff92 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java @@ -21,6 +21,10 @@ public final class OutputFile { @JsonProperty(value = "labels", required = true) private List labels; + /** Creates an instance of OutputFile class. */ + public OutputFile() { + } + /** * Get the labels property: The list of labels that describe how the encoder should multiplex video and audio into * an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java index a068e8bfe20f0..60c968a56e329 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java @@ -71,6 +71,10 @@ public class Overlay { @JsonProperty(value = "audioGainLevel") private Double audioGainLevel; + /** Creates an instance of Overlay class. */ + public Overlay() { + } + /** * Get the inputLabel property: The label of the job input which is to be used as an overlay. The Input must specify * exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngFormat.java index 91034df34d960..e012b875d8293 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngFormat.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.PngFormat") @Fluent public final class PngFormat extends ImageFormat { + /** Creates an instance of PngFormat class. */ + public PngFormat() { + } + /** {@inheritDoc} */ @Override public PngFormat withFilenamePattern(String filenamePattern) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngImage.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngImage.java index 8b3572be9edbe..3ebc8d6279ce4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngImage.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngImage.java @@ -22,6 +22,10 @@ public final class PngImage extends Image { @JsonProperty(value = "layers") private List layers; + /** Creates an instance of PngImage class. */ + public PngImage() { + } + /** * Get the layers property: A collection of output PNG image layers to be produced by the encoder. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngLayer.java index 965296f54314e..169d74831a8f2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngLayer.java @@ -9,6 +9,10 @@ /** Describes the settings to produce a PNG image from the input video. */ @Fluent public final class PngLayer extends Layer { + /** Creates an instance of PngLayer class. */ + public PngLayer() { + } + /** {@inheritDoc} */ @Override public PngLayer withWidth(String width) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresentationTimeRange.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresentationTimeRange.java index 522cf78be6ab6..b37eae3714198 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresentationTimeRange.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresentationTimeRange.java @@ -46,6 +46,10 @@ public final class PresentationTimeRange { @JsonProperty(value = "forceEndTimestamp") private Boolean forceEndTimestamp; + /** Creates an instance of PresentationTimeRange class. */ + public PresentationTimeRange() { + } + /** * Get the startTimestamp property: The absolute start time boundary. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Preset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Preset.java index f796f784201d4..19446513b5132 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Preset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Preset.java @@ -28,6 +28,10 @@ }) @Immutable public class Preset { + /** Creates an instance of Preset class. */ + public Preset() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java index e6e5faff3acd5..44490ee5acfad 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java @@ -67,6 +67,10 @@ public final class PresetConfigurations { @JsonProperty(value = "minHeight") private Integer minHeight; + /** Creates an instance of PresetConfigurations class. */ + public PresetConfigurations() { + } + /** * Get the complexity property: Allows you to configure the encoder settings to control the balance between speed * and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpoint.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpoint.java index c835a44d11348..b393dff57ef88 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpoint.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpoint.java @@ -16,6 +16,10 @@ public final class PrivateEndpoint { @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; + /** Creates an instance of PrivateEndpoint class. */ + public PrivateEndpoint() { + } + /** * Get the id property: The ARM identifier for Private Endpoint. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java index 74236240639b7..47e2e8acbc041 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java @@ -16,12 +16,15 @@ public interface PrivateEndpointConnections { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of private endpoint connection associated with the specified storage account. + * @return list of private endpoint connection associated with the specified storage account along with {@link + * Response}. */ - PrivateEndpointConnectionListResult list(String resourceGroupName, String accountName); + Response listWithResponse( + String resourceGroupName, String accountName, Context context); /** * List private endpoint connections. @@ -30,15 +33,12 @@ public interface PrivateEndpointConnections { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of private endpoint connection associated with the specified storage account along with {@link - * Response}. + * @return list of private endpoint connection associated with the specified storage account. */ - Response listWithResponse( - String resourceGroupName, String accountName, Context context); + PrivateEndpointConnectionListResult list(String resourceGroupName, String accountName); /** * Get private endpoint connection. @@ -48,12 +48,14 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a private endpoint connection. + * @return the details of a private endpoint connection along with {@link Response}. */ - PrivateEndpointConnection get(String resourceGroupName, String accountName, String name); + Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context); /** * Get private endpoint connection. @@ -63,14 +65,12 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a private endpoint connection along with {@link Response}. + * @return the details of a private endpoint connection. */ - Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context); + PrivateEndpointConnection get(String resourceGroupName, String accountName, String name); /** * Delete a private endpoint connection. @@ -80,11 +80,13 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String resourceGroupName, String accountName, String name); + Response deleteWithResponse(String resourceGroupName, String accountName, String name, Context context); /** * Delete a private endpoint connection. @@ -94,13 +96,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String accountName, String name, Context context); + void delete(String resourceGroupName, String accountName, String name); /** * Get private endpoint connection. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java index 5070d2e702275..7cb32883ba7e8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java @@ -16,12 +16,14 @@ public interface PrivateLinkResources { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources. + * @return a list of private link resources along with {@link Response}. */ - PrivateLinkResourceListResult list(String resourceGroupName, String accountName); + Response listWithResponse( + String resourceGroupName, String accountName, Context context); /** * Get list of group IDs. @@ -30,14 +32,12 @@ public interface PrivateLinkResources { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources along with {@link Response}. + * @return a list of private link resources. */ - Response listWithResponse( - String resourceGroupName, String accountName, Context context); + PrivateLinkResourceListResult list(String resourceGroupName, String accountName); /** * Get group ID. @@ -47,12 +47,14 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of a group ID. + * @return details of a group ID along with {@link Response}. */ - PrivateLinkResource get(String resourceGroupName, String accountName, String name); + Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context); /** * Get group ID. @@ -62,12 +64,10 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of a group ID along with {@link Response}. + * @return details of a group ID. */ - Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context); + PrivateLinkResource get(String resourceGroupName, String accountName, String name); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java index 88611207d292a..6901c23f50355 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java @@ -28,6 +28,10 @@ public final class PrivateLinkServiceConnectionState { @JsonProperty(value = "actionsRequired") private String actionsRequired; + /** Creates an instance of PrivateLinkServiceConnectionState class. */ + public PrivateLinkServiceConnectionState() { + } + /** * Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the * service. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Properties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Properties.java index 5389058be59fe..f049388fb2136 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Properties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Properties.java @@ -16,6 +16,10 @@ public final class Properties { @JsonProperty(value = "serviceSpecification", access = JsonProperty.Access.WRITE_ONLY) private ServiceSpecification serviceSpecification; + /** Creates an instance of Properties class. */ + public Properties() { + } + /** * Get the serviceSpecification property: The service specifications. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Rectangle.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Rectangle.java index 91e94f7d0adbd..700f62abd3e4d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Rectangle.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Rectangle.java @@ -38,6 +38,10 @@ public final class Rectangle { @JsonProperty(value = "height") private String height; + /** Creates an instance of Rectangle class. */ + public Rectangle() { + } + /** * Get the left property: The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or * relative to the size of the video (For example, 50%). diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ResourceIdentity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ResourceIdentity.java index ff282f08ceb13..09e283374513b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ResourceIdentity.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ResourceIdentity.java @@ -22,6 +22,10 @@ public class ResourceIdentity { @JsonProperty(value = "useSystemAssignedIdentity", required = true) private boolean useSystemAssignedIdentity; + /** Creates an instance of ResourceIdentity class. */ + public ResourceIdentity() { + } + /** * Get the userAssignedIdentity property: The user assigned managed identity's ARM ID to use when accessing a * resource. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java index c1e343f390cf9..89839d39a1aac 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java @@ -34,6 +34,10 @@ public final class SelectAudioTrackByAttribute extends AudioTrackDescriptor { @JsonProperty(value = "filterValue") private String filterValue; + /** Creates an instance of SelectAudioTrackByAttribute class. */ + public SelectAudioTrackByAttribute() { + } + /** * Get the attribute property: The TrackAttribute to filter the tracks by. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java index 9eb2b6acd0dcc..2067e5d155994 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java @@ -20,6 +20,10 @@ public final class SelectAudioTrackById extends AudioTrackDescriptor { @JsonProperty(value = "trackId", required = true) private long trackId; + /** Creates an instance of SelectAudioTrackById class. */ + public SelectAudioTrackById() { + } + /** * Get the trackId property: Track identifier to select. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java index 6148f9f0702b8..f2dc577a90024 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java @@ -35,6 +35,10 @@ public final class SelectVideoTrackByAttribute extends VideoTrackDescriptor { @JsonProperty(value = "filterValue") private String filterValue; + /** Creates an instance of SelectVideoTrackByAttribute class. */ + public SelectVideoTrackByAttribute() { + } + /** * Get the attribute property: The TrackAttribute to filter the tracks by. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java index f06932f59e247..72a296ae794ff 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java @@ -20,6 +20,10 @@ public final class SelectVideoTrackById extends VideoTrackDescriptor { @JsonProperty(value = "trackId", required = true) private long trackId; + /** Creates an instance of SelectVideoTrackById class. */ + public SelectVideoTrackById() { + } + /** * Get the trackId property: Track identifier to select. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ServiceSpecification.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ServiceSpecification.java index c441975cb2052..15792e79a15be 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ServiceSpecification.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ServiceSpecification.java @@ -23,6 +23,10 @@ public final class ServiceSpecification { @JsonProperty(value = "metricSpecifications", access = JsonProperty.Access.WRITE_ONLY) private List metricSpecifications; + /** Creates an instance of ServiceSpecification class. */ + public ServiceSpecification() { + } + /** * Get the logSpecifications property: List of log specifications. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java index fcea5d7c30803..057c347bdfdc1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java @@ -6,16 +6,25 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; +import java.util.Map; /** Describes all the settings to be used when encoding the input video with the Standard Encoder. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Media.StandardEncoderPreset") @Fluent public final class StandardEncoderPreset extends Preset { + /* + * Dictionary containing key value pairs for parameters not exposed in the preset itself + */ + @JsonProperty(value = "experimentalOptions") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map experimentalOptions; + /* * One or more filtering operations that are applied to the input media before encoding. */ @@ -34,6 +43,32 @@ public final class StandardEncoderPreset extends Preset { @JsonProperty(value = "formats", required = true) private List formats; + /** Creates an instance of StandardEncoderPreset class. */ + public StandardEncoderPreset() { + } + + /** + * Get the experimentalOptions property: Dictionary containing key value pairs for parameters not exposed in the + * preset itself. + * + * @return the experimentalOptions value. + */ + public Map experimentalOptions() { + return this.experimentalOptions; + } + + /** + * Set the experimentalOptions property: Dictionary containing key value pairs for parameters not exposed in the + * preset itself. + * + * @param experimentalOptions the experimentalOptions value to set. + * @return the StandardEncoderPreset object itself. + */ + public StandardEncoderPreset withExperimentalOptions(Map experimentalOptions) { + this.experimentalOptions = experimentalOptions; + return this; + } + /** * Get the filters property: One or more filtering operations that are applied to the input media before encoding. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java index a66ca6e3ede6b..7c56f5996bec3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java @@ -37,6 +37,10 @@ public final class StorageAccount { @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private String status; + /** Creates an instance of StorageAccount class. */ + public StorageAccount() { + } + /** * Get the id property: The ID of the storage account resource. Media Services relies on tables and queues as well * as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointAccessControl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointAccessControl.java index 9faf4bedda6fa..6a888ba0e72bb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointAccessControl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointAccessControl.java @@ -22,6 +22,10 @@ public final class StreamingEndpointAccessControl { @JsonProperty(value = "ip") private IpAccessControl ip; + /** Creates an instance of StreamingEndpointAccessControl class. */ + public StreamingEndpointAccessControl() { + } + /** * Get the akamai property: The access control of Akamai. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointListResult.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointListResult.java index 7f2eb6eb759e9..bbbb9f30129ce 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointListResult.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointListResult.java @@ -34,6 +34,10 @@ public final class StreamingEndpointListResult { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of StreamingEndpointListResult class. */ + public StreamingEndpointListResult() { + } + /** * Get the value property: The result of the List StreamingEndpoint operation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoints.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoints.java index bdd3e3694b08d..2bb9c4554a0c1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoints.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoints.java @@ -47,12 +47,14 @@ public interface StreamingEndpoints { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint. + * @return a streaming endpoint along with {@link Response}. */ - StreamingEndpoint get(String resourceGroupName, String accountName, String streamingEndpointName); + Response getWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** * Get StreamingEndpoint @@ -62,14 +64,12 @@ public interface StreamingEndpoints { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint along with {@link Response}. + * @return a streaming endpoint. */ - Response getWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context); + StreamingEndpoint get(String resourceGroupName, String accountName, String streamingEndpointName); /** * Delete StreamingEndpoint @@ -108,12 +108,14 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ - StreamingEndpointSkuInfoListResult skus(String resourceGroupName, String accountName, String streamingEndpointName); + Response skusWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** * List StreamingEndpoint skus @@ -123,14 +125,12 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ - Response skusWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context); + StreamingEndpointSkuInfoListResult skus(String resourceGroupName, String accountName, String streamingEndpointName); /** * Start StreamingEndpoint @@ -238,12 +238,14 @@ void scale( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ - AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -253,14 +255,12 @@ void scale( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -271,13 +271,18 @@ Response asyncOperationWithResponse( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ - StreamingEndpoint operationLocation( - String resourceGroupName, String accountName, String streamingEndpointName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context); /** * Get operation status. @@ -288,18 +293,13 @@ StreamingEndpoint operationLocation( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ - Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String streamingEndpointName, - String operationId, - Context context); + StreamingEndpoint operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId); /** * Get StreamingEndpoint diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEntityScaleUnit.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEntityScaleUnit.java index 11a80d6d5dd0c..674a04de99b79 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEntityScaleUnit.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEntityScaleUnit.java @@ -16,6 +16,10 @@ public final class StreamingEntityScaleUnit { @JsonProperty(value = "scaleUnit") private Integer scaleUnit; + /** Creates an instance of StreamingEntityScaleUnit class. */ + public StreamingEntityScaleUnit() { + } + /** * Get the scaleUnit property: The scale unit number of the streaming endpoint. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java index a57e5908d6503..fa4398fba4ab6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java @@ -293,46 +293,46 @@ interface WithFilters { * *

List Content Keys used by this Streaming Locator. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listContentKeys action. + * @return class of response for listContentKeys action along with {@link Response}. */ - ListContentKeysResponse listContentKeys(); + Response listContentKeysWithResponse(Context context); /** * List Content Keys * *

List Content Keys used by this Streaming Locator. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listContentKeys action along with {@link Response}. + * @return class of response for listContentKeys action. */ - Response listContentKeysWithResponse(Context context); + ListContentKeysResponse listContentKeys(); /** * List Paths * *

List Paths supported by this Streaming Locator. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listPaths action. + * @return class of response for listPaths action along with {@link Response}. */ - ListPathsResponse listPaths(); + Response listPathsWithResponse(Context context); /** * List Paths * *

List Paths supported by this Streaming Locator. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listPaths action along with {@link Response}. + * @return class of response for listPaths action. */ - Response listPathsWithResponse(Context context); + ListPathsResponse listPaths(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java index 09fa12ba4eca1..112f5b031c160 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java @@ -25,6 +25,10 @@ public final class StreamingLocatorCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of StreamingLocatorCollection class. */ + public StreamingLocatorCollection() { + } + /** * Get the value property: A collection of StreamingLocator items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKey.java index 7b09cce7eb538..dde13ef1d93d7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKey.java @@ -49,6 +49,10 @@ public final class StreamingLocatorContentKey { @JsonProperty(value = "tracks", access = JsonProperty.Access.WRITE_ONLY) private List tracks; + /** Creates an instance of StreamingLocatorContentKey class. */ + public StreamingLocatorContentKey() { + } + /** * Get the id property: ID of Content Key. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocators.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocators.java index aff9a731fb401..e5d29279be1e1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocators.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocators.java @@ -52,12 +52,14 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Locator in the Media Services account. + * @return the details of a Streaming Locator in the Media Services account along with {@link Response}. */ - StreamingLocator get(String resourceGroupName, String accountName, String streamingLocatorName); + Response getWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** * Get a Streaming Locator @@ -67,14 +69,12 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Locator in the Media Services account along with {@link Response}. + * @return the details of a Streaming Locator in the Media Services account. */ - Response getWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context); + StreamingLocator get(String resourceGroupName, String accountName, String streamingLocatorName); /** * Delete a Streaming Locator @@ -84,11 +84,14 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String resourceGroupName, String accountName, String streamingLocatorName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** * Delete a Streaming Locator @@ -98,14 +101,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context); + void delete(String resourceGroupName, String accountName, String streamingLocatorName); /** * List Content Keys @@ -115,12 +115,14 @@ Response deleteWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listContentKeys action. + * @return class of response for listContentKeys action along with {@link Response}. */ - ListContentKeysResponse listContentKeys(String resourceGroupName, String accountName, String streamingLocatorName); + Response listContentKeysWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** * List Content Keys @@ -130,14 +132,12 @@ Response deleteWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listContentKeys action along with {@link Response}. + * @return class of response for listContentKeys action. */ - Response listContentKeysWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context); + ListContentKeysResponse listContentKeys(String resourceGroupName, String accountName, String streamingLocatorName); /** * List Paths @@ -147,12 +147,14 @@ Response listContentKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listPaths action. + * @return class of response for listPaths action along with {@link Response}. */ - ListPathsResponse listPaths(String resourceGroupName, String accountName, String streamingLocatorName); + Response listPathsWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** * List Paths @@ -162,14 +164,12 @@ Response listContentKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listPaths action along with {@link Response}. + * @return class of response for listPaths action. */ - Response listPathsWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context); + ListPathsResponse listPaths(String resourceGroupName, String accountName, String streamingLocatorName); /** * Get a Streaming Locator diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPath.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPath.java index 2d74213d4bdad..3194f815310bf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPath.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPath.java @@ -30,6 +30,10 @@ public final class StreamingPath { @JsonProperty(value = "paths") private List paths; + /** Creates an instance of StreamingPath class. */ + public StreamingPath() { + } + /** * Get the streamingProtocol property: Streaming protocol. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java index bb710f06e43f8..fa6f54c69693d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java @@ -52,12 +52,14 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Policy in the Media Services account. + * @return the details of a Streaming Policy in the Media Services account along with {@link Response}. */ - StreamingPolicy get(String resourceGroupName, String accountName, String streamingPolicyName); + Response getWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** * Get a Streaming Policy @@ -67,14 +69,12 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Policy in the Media Services account along with {@link Response}. + * @return the details of a Streaming Policy in the Media Services account. */ - Response getWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context); + StreamingPolicy get(String resourceGroupName, String accountName, String streamingPolicyName); /** * Delete a Streaming Policy @@ -84,11 +84,14 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String resourceGroupName, String accountName, String streamingPolicyName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** * Delete a Streaming Policy @@ -98,14 +101,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context); + void delete(String resourceGroupName, String accountName, String streamingPolicyName); /** * Get a Streaming Policy diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java index 556959f334b0c..ccaca163bd628 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java @@ -25,6 +25,10 @@ public final class StreamingPolicyCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of StreamingPolicyCollection class. */ + public StreamingPolicyCollection() { + } + /** * Get the value property: A collection of StreamingPolicy items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java index 777ea3ed28354..185a58129f954 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java @@ -29,6 +29,10 @@ public final class StreamingPolicyContentKey { @JsonProperty(value = "tracks") private List tracks; + /** Creates an instance of StreamingPolicyContentKey class. */ + public StreamingPolicyContentKey() { + } + /** * Get the label property: Label can be used to specify Content Key when creating a Streaming Locator. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKeys.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKeys.java index 54fd0479a9ba2..8f569f740b644 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKeys.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKeys.java @@ -23,6 +23,10 @@ public final class StreamingPolicyContentKeys { @JsonProperty(value = "keyToTrackMappings") private List keyToTrackMappings; + /** Creates an instance of StreamingPolicyContentKeys class. */ + public StreamingPolicyContentKeys() { + } + /** * Get the defaultKey property: Default content key for an encryption scheme. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java index 3d73230852ab0..6a05b1d9cef8d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java @@ -26,6 +26,10 @@ public final class StreamingPolicyFairPlayConfiguration { @JsonProperty(value = "allowPersistentLicense", required = true) private boolean allowPersistentLicense; + /** Creates an instance of StreamingPolicyFairPlayConfiguration class. */ + public StreamingPolicyFairPlayConfiguration() { + } + /** * Get the customLicenseAcquisitionUrlTemplate property: Template for the URL of the custom service delivering * licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java index 5036a2e6779cb..da34f7da88dc9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java @@ -26,6 +26,10 @@ public final class StreamingPolicyPlayReadyConfiguration { @JsonProperty(value = "playReadyCustomAttributes") private String playReadyCustomAttributes; + /** Creates an instance of StreamingPolicyPlayReadyConfiguration class. */ + public StreamingPolicyPlayReadyConfiguration() { + } + /** * Get the customLicenseAcquisitionUrlTemplate property: Template for the URL of the custom service delivering * licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java index f0928d52b1014..96b8e9e5f9a48 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java @@ -20,6 +20,10 @@ public final class StreamingPolicyWidevineConfiguration { @JsonProperty(value = "customLicenseAcquisitionUrlTemplate") private String customLicenseAcquisitionUrlTemplate; + /** Creates an instance of StreamingPolicyWidevineConfiguration class. */ + public StreamingPolicyWidevineConfiguration() { + } + /** * Get the customLicenseAcquisitionUrlTemplate property: Template for the URL of the custom service delivering * licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SyncStorageKeysInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SyncStorageKeysInput.java index 8088ac875eed6..1d74777e08314 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SyncStorageKeysInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SyncStorageKeysInput.java @@ -16,6 +16,10 @@ public final class SyncStorageKeysInput { @JsonProperty(value = "id") private String id; + /** Creates an instance of SyncStorageKeysInput class. */ + public SyncStorageKeysInput() { + } + /** * Get the id property: The ID of the storage account resource. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java index bb779f2aa5b02..76f663dbd79c3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java @@ -49,6 +49,10 @@ public final class TextTrack extends TrackBase { @JsonProperty(value = "hlsSettings") private HlsSettings hlsSettings; + /** Creates an instance of TextTrack class. */ + public TextTrack() { + } + /** * Get the fileName property: The file name to the source file. This file is located in the storage container of the * asset. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackBase.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackBase.java index 7e8f39144f614..0aeaf0ea20986 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackBase.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackBase.java @@ -23,6 +23,10 @@ }) @Immutable public class TrackBase { + /** Creates an instance of TrackBase class. */ + public TrackBase() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java index 2d7b575e17ad3..081e748bd96f7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java @@ -25,6 +25,10 @@ }) @Immutable public class TrackDescriptor { + /** Creates an instance of TrackDescriptor class. */ + public TrackDescriptor() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackPropertyCondition.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackPropertyCondition.java index 1bb774b9dd8b8..1ec4797cbd67a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackPropertyCondition.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackPropertyCondition.java @@ -29,6 +29,10 @@ public final class TrackPropertyCondition { @JsonProperty(value = "value") private String value; + /** Creates an instance of TrackPropertyCondition class. */ + public TrackPropertyCondition() { + } + /** * Get the property property: Track property type. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackSelection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackSelection.java index 5dd381dd1ecfc..e2f2c5ea2449e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackSelection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackSelection.java @@ -17,6 +17,10 @@ public final class TrackSelection { @JsonProperty(value = "trackSelections") private List trackSelections; + /** Creates an instance of TrackSelection class. */ + public TrackSelection() { + } + /** * Get the trackSelections property: TrackSelections is a track property condition list which can specify track(s). * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java index f7bc794c04193..da8a76030b3e3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java @@ -50,12 +50,14 @@ public interface Tracks { * @param accountName The Media Services account name. * @param assetName The Asset name. * @param trackName The Asset Track name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Track in the Asset. + * @return the details of a Track in the Asset along with {@link Response}. */ - AssetTrack get(String resourceGroupName, String accountName, String assetName, String trackName); + Response getWithResponse( + String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** * Get a Track @@ -66,14 +68,12 @@ public interface Tracks { * @param accountName The Media Services account name. * @param assetName The Asset name. * @param trackName The Asset Track name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Track in the Asset along with {@link Response}. + * @return the details of a Track in the Asset. */ - Response getWithResponse( - String resourceGroupName, String accountName, String assetName, String trackName, Context context); + AssetTrack get(String resourceGroupName, String accountName, String assetName, String trackName); /** * Delete a Track diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java index 08ac27f38eacc..224f1e844cd6d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java @@ -25,6 +25,10 @@ public final class TransformCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of TransformCollection class. */ + public TransformCollection() { + } + /** * Get the value property: A collection of Transform items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java index ffcd946ecad3b..ce2ed8dee2beb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java @@ -35,6 +35,10 @@ public final class TransformOutput { @JsonProperty(value = "preset", required = true) private Preset preset; + /** Creates an instance of TransformOutput class. */ + public TransformOutput() { + } + /** * Get the onError property: A Transform can define more than one outputs. This property defines what the service * should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java index abad63703fb97..bfdf2fc3aae47 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java @@ -50,12 +50,14 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Transform. + * @return a Transform along with {@link Response}. */ - Transform get(String resourceGroupName, String accountName, String transformName); + Response getWithResponse( + String resourceGroupName, String accountName, String transformName, Context context); /** * Get Transform @@ -65,14 +67,12 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Transform along with {@link Response}. + * @return a Transform. */ - Response getWithResponse( - String resourceGroupName, String accountName, String transformName, Context context); + Transform get(String resourceGroupName, String accountName, String transformName); /** * Delete Transform @@ -82,11 +82,14 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String resourceGroupName, String accountName, String transformName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String transformName, Context context); /** * Delete Transform @@ -96,14 +99,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String transformName, Context context); + void delete(String resourceGroupName, String accountName, String transformName); /** * Get Transform diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransportStreamFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransportStreamFormat.java index 62fe4ca29b5ae..1513c53c8f667 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransportStreamFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransportStreamFormat.java @@ -14,6 +14,10 @@ @JsonTypeName("#Microsoft.Media.TransportStreamFormat") @Fluent public final class TransportStreamFormat extends MultiBitrateFormat { + /** Creates an instance of TransportStreamFormat class. */ + public TransportStreamFormat() { + } + /** {@inheritDoc} */ @Override public TransportStreamFormat withOutputFiles(List outputFiles) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UserAssignedManagedIdentity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UserAssignedManagedIdentity.java index 1f659e945d90c..88827e56ad646 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UserAssignedManagedIdentity.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UserAssignedManagedIdentity.java @@ -23,6 +23,10 @@ public class UserAssignedManagedIdentity { @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private UUID principalId; + /** Creates an instance of UserAssignedManagedIdentity class. */ + public UserAssignedManagedIdentity() { + } + /** * Get the clientId property: The client ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UtcClipTime.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UtcClipTime.java index e994e076fbaef..a66913edf9695 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UtcClipTime.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UtcClipTime.java @@ -25,6 +25,10 @@ public final class UtcClipTime extends ClipTime { @JsonProperty(value = "time", required = true) private OffsetDateTime time; + /** Creates an instance of UtcClipTime class. */ + public UtcClipTime() { + } + /** * Get the time property: The time position on the timeline of the input media based on Utc time. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java index 6ab19bc3721c8..235d41357c928 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java @@ -46,6 +46,10 @@ public class Video extends Codec { @JsonProperty(value = "syncMode") private VideoSyncMode syncMode; + /** Creates an instance of Video class. */ + public Video() { + } + /** * Get the keyFrameInterval property: The distance between two key frames. The value should be non-zero in the range * [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java index 3fa4f725079a5..856552176e4bd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java @@ -29,6 +29,10 @@ public final class VideoAnalyzerPreset extends AudioAnalyzerPreset { @JsonProperty(value = "insightsToExtract") private InsightsType insightsToExtract; + /** Creates an instance of VideoAnalyzerPreset class. */ + public VideoAnalyzerPreset() { + } + /** * Get the insightsToExtract property: Defines the type of insights that you want the service to generate. The * allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java index 2157064807ce5..ef7c3117da19d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java @@ -54,6 +54,10 @@ public class VideoLayer extends Layer { @JsonProperty(value = "adaptiveBFrame") private Boolean adaptiveBFrame; + /** Creates an instance of VideoLayer class. */ + public VideoLayer() { + } + /** * Get the bitrate property: The average bitrate in bits per second at which to encode the input video when * generating this layer. This is a required field. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java index 69b0a9a2cf0a2..5072e891e3694 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java @@ -34,6 +34,10 @@ public final class VideoOverlay extends Overlay { @JsonProperty(value = "cropRectangle") private Rectangle cropRectangle; + /** Creates an instance of VideoOverlay class. */ + public VideoOverlay() { + } + /** * Get the position property: The location in the input video where the overlay is applied. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrack.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrack.java index e08edf0551e14..67172abc7ab67 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrack.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrack.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.VideoTrack") @Immutable public final class VideoTrack extends TrackBase { + /** Creates an instance of VideoTrack class. */ + public VideoTrack() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java index f60aee310327b..56c1db4acc6ca 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java @@ -24,6 +24,10 @@ }) @Immutable public class VideoTrackDescriptor extends TrackDescriptor { + /** Creates an instance of VideoTrackDescriptor class. */ + public VideoTrackDescriptor() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersCreateOrUpdateSamples.java index 26027a2fe504b..9500cedb554f7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ /** Samples for AccountFilters CreateOrUpdate. */ public final class AccountFiltersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersDeleteSamples.java index 952806bc41609..db407dee037b6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for AccountFilters Delete. */ public final class AccountFiltersDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersGetSamples.java index f52aaec4ecb02..9dd1a2d7136dc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersGetSamples.java @@ -9,7 +9,7 @@ /** Samples for AccountFilters Get. */ public final class AccountFiltersGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersListSamples.java index 9251c9e3e39c3..4243b16f35dfa 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersListSamples.java @@ -9,7 +9,7 @@ /** Samples for AccountFilters List. */ public final class AccountFiltersListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersUpdateSamples.java index 05e6d035f6981..f865a03cd8f09 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for AccountFilters Update. */ public final class AccountFiltersUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersCreateOrUpdateSamples.java index 805a285791995..cc69e35d3de58 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ /** Samples for AssetFilters CreateOrUpdate. */ public final class AssetFiltersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-create.json */ /** * Sample code: Create an Asset Filter. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersDeleteSamples.java index ff137f2623b55..db0ff22201be6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for AssetFilters Delete. */ public final class AssetFiltersDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-delete.json */ /** * Sample code: Delete an Asset Filter. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersGetSamples.java index 5afcbfd683992..2992c4d96b2f1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersGetSamples.java @@ -9,7 +9,7 @@ /** Samples for AssetFilters Get. */ public final class AssetFiltersGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-get-by-name.json */ /** * Sample code: Get an Asset Filter by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersListSamples.java index d970808b4c66f..6c918040950cb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersListSamples.java @@ -9,7 +9,7 @@ /** Samples for AssetFilters List. */ public final class AssetFiltersListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-list-all.json */ /** * Sample code: List all Asset Filters. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersUpdateSamples.java index 6982831f753ae..d931f842fd14d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for AssetFilters Update. */ public final class AssetFiltersUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-update.json */ /** * Sample code: Update an Asset Filter. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsCreateOrUpdateSamples.java index 24c5ceb1b0143..622ba131960ab 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsCreateOrUpdateSamples.java @@ -7,7 +7,7 @@ /** Samples for Assets CreateOrUpdate. */ public final class AssetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-create.json */ /** * Sample code: Create an Asset. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsDeleteSamples.java index 66339746cd64e..cd39e92013dde 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Assets Delete. */ public final class AssetsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-delete.json */ /** * Sample code: Delete an Asset. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetEncryptionKeySamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetEncryptionKeySamples.java index 7722033dcda83..a57a0f6c19b9a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetEncryptionKeySamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetEncryptionKeySamples.java @@ -9,7 +9,7 @@ /** Samples for Assets GetEncryptionKey. */ public final class AssetsGetEncryptionKeySamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-encryption-keys.json */ /** * Sample code: Get Asset Storage Encryption Keys. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetSamples.java index c7f2685f5ec3f..0e37094af370b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Assets Get. */ public final class AssetsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-by-name.json */ /** * Sample code: Get an Asset by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListContainerSasSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListContainerSasSamples.java index 944a1ba2ed011..9917b7fffec76 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListContainerSasSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListContainerSasSamples.java @@ -12,7 +12,7 @@ /** Samples for Assets ListContainerSas. */ public final class AssetsListContainerSasSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-sas-urls.json */ /** * Sample code: List Asset SAS URLs. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListSamples.java index f6c38f8c22903..a41e1d213ce88 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Assets List. */ public final class AssetsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-by-date.json */ /** * Sample code: List Asset ordered by date. @@ -21,7 +21,7 @@ public static void listAssetOrderedByDate(com.azure.resourcemanager.mediaservice } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-in-date-range.json */ /** * Sample code: List Asset created in a date range. @@ -42,7 +42,7 @@ public static void listAssetCreatedInADateRange( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-all.json */ /** * Sample code: List all Assets. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListStreamingLocatorsSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListStreamingLocatorsSamples.java index 5655b1c9e6834..0b376199580ed 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListStreamingLocatorsSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListStreamingLocatorsSamples.java @@ -9,7 +9,7 @@ /** Samples for Assets ListStreamingLocators. */ public final class AssetsListStreamingLocatorsSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-streaming-locators.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-streaming-locators.json */ /** * Sample code: List Asset SAS URLs. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsUpdateSamples.java index 0782b1320dbf7..63aff37b1dfbf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for Assets Update. */ public final class AssetsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-update.json */ /** * Sample code: Update an Asset. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesCreateOrUpdateSamples.java index 73af20c2cc75d..eca5e79408389 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesCreateOrUpdateSamples.java @@ -26,7 +26,7 @@ /** Samples for ContentKeyPolicies CreateOrUpdate. */ public final class ContentKeyPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json */ /** * Sample code: Creates a Content Key Policy with multiple options. @@ -65,7 +65,7 @@ public static void createsAContentKeyPolicyWithMultipleOptions( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json */ /** * Sample code: Creates a Content Key Policy with ClearKey option and Token Restriction. @@ -97,7 +97,7 @@ public static void createsAContentKeyPolicyWithClearKeyOptionAndTokenRestriction } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-playready-open.json */ /** * Sample code: Creates a Content Key Policy with PlayReady option and Open Restriction. @@ -145,7 +145,7 @@ public static void createsAContentKeyPolicyWithPlayReadyOptionAndOpenRestriction } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json */ /** * Sample code: Creates a Content Key Policy with Widevine option and Token Restriction. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesDeleteSamples.java index b29f152fbb60a..3ed1b79b5a3c8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for ContentKeyPolicies Delete. */ public final class ContentKeyPoliciesDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-delete.json */ /** * Sample code: Delete a Key Policy. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples.java index 4617a8f64369d..621565321fcf1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples.java @@ -9,7 +9,7 @@ /** Samples for ContentKeyPolicies GetPolicyPropertiesWithSecrets. */ public final class ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json */ /** * Sample code: Get an Content Key Policy with secrets. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetSamples.java index 69b02337b767e..8022b58f9200c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for ContentKeyPolicies Get. */ public final class ContentKeyPoliciesGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-by-name.json */ /** * Sample code: Get a Content Key Policy by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesListSamples.java index 2db9ded9d933d..d1a7b6affdecf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesListSamples.java @@ -9,7 +9,7 @@ /** Samples for ContentKeyPolicies List. */ public final class ContentKeyPoliciesListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-all.json */ /** * Sample code: Lists all Content Key Policies. @@ -22,7 +22,7 @@ public static void listsAllContentKeyPolicies( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json */ /** * Sample code: Lists Content Key Policies with created and last modified filters. @@ -43,7 +43,7 @@ public static void listsContentKeyPoliciesWithCreatedAndLastModifiedFilters( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json */ /** * Sample code: Lists Content Key Policies ordered by last modified. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesUpdateSamples.java index 1e1f3ff6ab478..46b1e5910c19b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesUpdateSamples.java @@ -14,7 +14,7 @@ /** Samples for ContentKeyPolicies Update. */ public final class ContentKeyPoliciesUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-update.json */ /** * Sample code: Update a Content Key Policy. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCancelJobSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCancelJobSamples.java index 2442b630b4367..a89c43839a038 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCancelJobSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCancelJobSamples.java @@ -9,7 +9,7 @@ /** Samples for Jobs CancelJob. */ public final class JobsCancelJobSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCreateSamples.java index 60ba98800c0ca..07a87c079a1fc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCreateSamples.java @@ -13,7 +13,7 @@ /** Samples for Jobs Create. */ public final class JobsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsDeleteSamples.java index 82a120eed6cc7..026929da1d72a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Jobs Delete. */ public final class JobsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsGetSamples.java index 6a8d9ba61ac4e..010cb395d63bc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Jobs Get. */ public final class JobsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsListSamples.java index 8f5eff2eddf89..2b43d10bbebe2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Jobs List. */ public final class JobsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -30,7 +30,7 @@ public static void listsJobsForTheTransformFilterByStateNotEqual( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -51,7 +51,7 @@ public static void listsJobsForTheTransformFilterByStateEqual( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -72,7 +72,7 @@ public static void listsJobsForTheTransformFilterByName( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -87,14 +87,14 @@ public static void listsJobsForTheTransformFilterByLastmodified( "contosoresources", "contosomedia", "exampleTransform", - "properties/lastmodified ge 2021-11-01T00:00:10.0000000Z and properties/lastmodified le" - + " 2021-11-01T00:00:20.0000000Z", + "properties/lastmodified ge 2021-06-01T00:00:10.0000000Z and properties/lastmodified le" + + " 2021-06-01T00:00:20.0000000Z", "properties/lastmodified desc", Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -109,14 +109,14 @@ public static void listsJobsForTheTransformFilterByCreated( "contosoresources", "contosomedia", "exampleTransform", - "properties/created ge 2021-11-01T00:00:10.0000000Z and properties/created le" - + " 2021-11-01T00:00:20.0000000Z", + "properties/created ge 2021-06-01T00:00:10.0000000Z and properties/created le" + + " 2021-06-01T00:00:20.0000000Z", "properties/created", Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -129,7 +129,7 @@ public static void listsAllOfTheJobsForTheTransform( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsUpdateSamples.java index 65a684a1239fe..6f86f322801dd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsUpdateSamples.java @@ -14,7 +14,7 @@ /** Samples for Jobs Update. */ public final class JobsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java index a5b469aa6aa3f..0ec480b9a6335 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents Allocate. */ public final class LiveEventsAllocateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-allocate.json */ /** * Sample code: Allocate a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java index 54d289b447907..d0e0b73cdee21 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents AsyncOperation. */ public final class LiveEventsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the LiveEvent operation status. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java index 8aa7be94b1fda..14d24d5aca913 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java @@ -18,7 +18,7 @@ /** Samples for LiveEvents Create. */ public final class LiveEventsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-create.json */ /** * Sample code: Create a LiveEvent. @@ -47,7 +47,7 @@ public static void createALiveEvent(com.azure.resourcemanager.mediaservices.Medi .withName("AllowAll") .withAddress("0.0.0.0") .withSubnetPrefixLength(0))))) - .withKeyFrameIntervalDuration("PT6S")) + .withKeyFrameIntervalDuration("fakeTokenPlaceholder")) .withPreview( new LiveEventPreview() .withAccessControl( diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java index 700dadc406fa5..cf54669a6e635 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents Delete. */ public final class LiveEventsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-delete.json */ /** * Sample code: Delete a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java index 05daeb76e5cdc..2aa81f84afd4e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents Get. */ public final class LiveEventsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-by-name.json */ /** * Sample code: Get a LiveEvent by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java index ef7962cd3bedf..957bc0a96370d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents List. */ public final class LiveEventsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-all.json */ /** * Sample code: List all LiveEvents. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java index a46687272becf..d1d7e6965d7af 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents OperationLocation. */ public final class LiveEventsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-operation-location.json */ /** * Sample code: Get the LiveEvent operation status. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java index fc52a8d31a0ed..f28aa002a1afd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents Reset. */ public final class LiveEventsResetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-reset.json */ /** * Sample code: Reset a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java index c2bfe543a8298..fd855acd40a8a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents Start. */ public final class LiveEventsStartSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-start.json */ /** * Sample code: Start a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java index a6e7d1a518809..6b4a876634c73 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java @@ -10,7 +10,7 @@ /** Samples for LiveEvents Stop. */ public final class LiveEventsStopSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-stop.json */ /** * Sample code: Stop a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java index 975c3ba94a27e..98acf49aa0f76 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java @@ -20,7 +20,7 @@ /** Samples for LiveEvents Update. */ public final class LiveEventsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-update.json */ /** * Sample code: Update a LiveEvent. @@ -46,7 +46,7 @@ public static void updateALiveEvent(com.azure.resourcemanager.mediaservices.Medi new IpAccessControl() .withAllow( Arrays.asList(new IpRange().withName("AllowOne").withAddress("192.1.1.0"))))) - .withKeyFrameIntervalDuration("PT6S")) + .withKeyFrameIntervalDuration("fakeTokenPlaceholder")) .withPreview( new LiveEventPreview() .withAccessControl( diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java index c3a7ccec746f6..73b58f3a8e7de 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveOutputs AsyncOperation. */ public final class LiveOutputsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the LiveOutput operation status. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java index dc328c7e8c0a3..85dcba9285586 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java @@ -10,7 +10,7 @@ /** Samples for LiveOutputs Create. */ public final class LiveOutputsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-create.json */ /** * Sample code: Create a LiveOutput. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java index a718bf74b3969..5834ef3dd2099 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveOutputs Delete. */ public final class LiveOutputsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-delete.json */ /** * Sample code: Delete a LiveOutput. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java index b2039a10bb7cf..86d07d2f7a6ee 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveOutputs Get. */ public final class LiveOutputsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-by-name.json */ /** * Sample code: Get a LiveOutput by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java index 174e51cbe4fa9..02abb57249e51 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveOutputs List. */ public final class LiveOutputsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-all.json */ /** * Sample code: List all LiveOutputs. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java index be92d5fedacef..240aff6b3752b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveOutputs OperationLocation. */ public final class LiveOutputsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-operation-location.json */ /** * Sample code: Get the LiveOutput operation status. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LocationsCheckNameAvailabilitySamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LocationsCheckNameAvailabilitySamples.java index 8473c05b4f9e1..9341c59946b5b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LocationsCheckNameAvailabilitySamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LocationsCheckNameAvailabilitySamples.java @@ -10,7 +10,7 @@ /** Samples for Locations CheckNameAvailability. */ public final class LocationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-check-name-availability.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-check-name-availability.json */ /** * Sample code: Check Name Availability. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationResultsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationResultsGetSamples.java index 565cf9ca16552..0d8f32747c6df 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationResultsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationResultsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for MediaServicesOperationResults Get. */ public final class MediaServicesOperationResultsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-result-by-id.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-result-by-id.json */ /** * Sample code: Get status of asynchronous operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationStatusesGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationStatusesGetSamples.java index b3609d8997840..df528540ccd81 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationStatusesGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationStatusesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for MediaServicesOperationStatuses Get. */ public final class MediaServicesOperationStatusesGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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/2021-11-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. @@ -24,7 +24,7 @@ public static void getStatusOfAsynchronousOperationWhenItIsCompletedWithError( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-status-by-id-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is completed. @@ -39,7 +39,7 @@ public static void getStatusOfAsynchronousOperationWhenItIsCompleted( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is ongoing. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesCreateOrUpdateSamples.java index 7cd585d7b98f3..27e7a51019246 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesCreateOrUpdateSamples.java @@ -23,7 +23,7 @@ /** Samples for Mediaservices CreateOrUpdate. */ public final class MediaservicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/async-accounts-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json */ /** * Sample code: Create a Media Services account. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesDeleteSamples.java index 73f23a1324602..3d1c2ddcf28c0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Mediaservices Delete. */ public final class MediaservicesDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-delete.json */ /** * Sample code: Delete a Media Services account. @@ -18,6 +18,6 @@ public final class MediaservicesDeleteSamples { */ public static void deleteAMediaServicesAccount( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.mediaservices().deleteWithResponse("contoso", "contososports", Context.NONE); + manager.mediaservices().deleteByResourceGroupWithResponse("contoso", "contososports", Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesGetByResourceGroupSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesGetByResourceGroupSamples.java index d3cbf1856fe59..9be165e8857a4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesGetByResourceGroupSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Mediaservices GetByResourceGroup. */ public final class MediaservicesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-get-by-name.json */ /** * Sample code: Get a Media Services account by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListByResourceGroupSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListByResourceGroupSamples.java index 244716ad29b31..8f3eb6b435e98 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListByResourceGroupSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Mediaservices ListByResourceGroup. */ public final class MediaservicesListByResourceGroupSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-list-all-accounts.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-all-accounts.json */ /** * Sample code: List all Media Services accounts. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListEdgePoliciesSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListEdgePoliciesSamples.java index dd05a8ef15051..64ccd71283d1d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListEdgePoliciesSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListEdgePoliciesSamples.java @@ -10,7 +10,7 @@ /** Samples for Mediaservices ListEdgePolicies. */ public final class MediaservicesListEdgePoliciesSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-list-media-edge-policies.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-media-edge-policies.json */ /** * Sample code: List the media edge policies. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListSamples.java index 2421aa94e80bd..d2c216d6062eb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListSamples.java @@ -9,7 +9,7 @@ /** Samples for Mediaservices List. */ public final class MediaservicesListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-subscription-list-all-accounts.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-subscription-list-all-accounts.json */ /** * Sample code: List all Media Services accounts. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesSyncStorageKeysSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesSyncStorageKeysSamples.java index aacf72fff6726..18689f2c00d1d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesSyncStorageKeysSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesSyncStorageKeysSamples.java @@ -10,7 +10,7 @@ /** Samples for Mediaservices SyncStorageKeys. */ public final class MediaservicesSyncStorageKeysSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-sync-storage-keys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-sync-storage-keys.json */ /** * Sample code: Synchronizes Storage Account Keys. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesUpdateSamples.java index 153287dc21380..1671a06a71b5e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for Mediaservices Update. */ public final class MediaservicesUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/async-accounts-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-update.json */ /** * Sample code: Update a Media Services accounts. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationResultsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationResultsGetSamples.java index 86dc18caee737..cdb46949bc227 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationResultsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationResultsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for OperationResults Get. */ public final class OperationResultsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json */ /** * Sample code: Get result of asynchronous operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationStatusesGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationStatusesGetSamples.java index aec1221c309ad..b0aa74cc857c4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationStatusesGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationStatusesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for OperationStatuses Get. */ public final class OperationStatusesGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json */ /** * Sample code: Get status of asynchronous operation when it is completed with error. @@ -30,7 +30,7 @@ public static void getStatusOfAsynchronousOperationWhenItIsCompletedWithError( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is completed. @@ -51,7 +51,7 @@ public static void getStatusOfAsynchronousOperationWhenItIsCompleted( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is ongoing. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationsListSamples.java index 494d9dc54cfa0..55f5aac5f5fb2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/operations-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/operations-list-all.json */ /** * Sample code: List Operations. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java index 12dd1a95bab5b..e55af6f01709b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for PrivateEndpointConnections CreateOrUpdate. */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-put.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-put.json */ /** * Sample code: Update private endpoint connection. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsDeleteSamples.java index fbc88b9c87621..96889bab0d2ec 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-delete.json */ /** * Sample code: Delete private endpoint connection. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsGetSamples.java index 4470efcdf10e6..1b55574986f3a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-get-by-name.json */ /** * Sample code: Get private endpoint connection. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsListSamples.java index 3209b083b21e5..ea4b54c69f86f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsListSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-list.json */ /** * Sample code: Get all private endpoint connections. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesGetSamples.java index 14e46a07a0f43..2cdeff1bbc4a0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-link-resources-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-get-by-name.json */ /** * Sample code: Get details of a group ID. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesListSamples.java index b1a9798f6d4b3..a0b6e9839e00d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesListSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateLinkResources List. */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-link-resources-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-list.json */ /** * Sample code: Get list of all group IDs. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java index 5f16e8c701426..ae58dd2c66769 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints AsyncOperation. */ public final class StreamingEndpointsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the streaming endpoint operation status. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java index 824175598138e..bda31d70b29dc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java @@ -17,7 +17,7 @@ /** Samples for StreamingEndpoints Create. */ public final class StreamingEndpointsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-create.json */ /** * Sample code: Create a streaming endpoint. @@ -43,11 +43,11 @@ public static void createAStreamingEndpoint(com.azure.resourcemanager.mediaservi .asList( new AkamaiSignatureHeaderAuthenticationKey() .withIdentifier("id1") - .withBase64Key("dGVzdGlkMQ==") + .withBase64Key("fakeTokenPlaceholder") .withExpiration(OffsetDateTime.parse("2029-12-31T16:00:00-08:00")), new AkamaiSignatureHeaderAuthenticationKey() .withIdentifier("id2") - .withBase64Key("dGVzdGlkMQ==") + .withBase64Key("fakeTokenPlaceholder") .withExpiration(OffsetDateTime.parse("2030-12-31T16:00:00-08:00"))))) .withIp( new IpAccessControl() diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java index 16e058a966dd6..694fac2ab4164 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints Delete. */ public final class StreamingEndpointsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-delete.json */ /** * Sample code: Delete a streaming endpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java index 378cf9bd2487a..df1ca4f394ba9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints Get. */ public final class StreamingEndpointsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-by-name.json */ /** * Sample code: Get a streaming endpoint by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java index 4d074630b3e19..0eda861704e66 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints List. */ public final class StreamingEndpointsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-all.json */ /** * Sample code: List all streaming endpoints. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java index 45b6190f85aad..c9a0d60a609fd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints OperationLocation. */ public final class StreamingEndpointsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-operation-location.json */ /** * Sample code: Get the streaming endpoint operation status. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java index 0013e5a0411d8..c722a41f8ebfe 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java @@ -10,7 +10,7 @@ /** Samples for StreamingEndpoints Scale. */ public final class StreamingEndpointsScaleSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-scale.json */ /** * Sample code: Scale a StreamingEndpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java index 989d09fcd09c3..09215acb42147 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints Skus. */ public final class StreamingEndpointsSkusSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-skus.json */ /** * Sample code: List a streaming endpoint sku. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java index afdba244ff2d5..52cef32f7f898 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints Start. */ public final class StreamingEndpointsStartSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-start.json */ /** * Sample code: Start a streaming endpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java index c7d2f83fd5c52..47c41db346171 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints Stop. */ public final class StreamingEndpointsStopSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-stop.json */ /** * Sample code: Stop a streaming endpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java index ddc4606f81fcb..60c0d02f8d05e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for StreamingEndpoints Update. */ public final class StreamingEndpointsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-update.json */ /** * Sample code: Update a streaming endpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsCreateSamples.java index 8cb4a2f780e50..1f6770876a192 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsCreateSamples.java @@ -12,7 +12,7 @@ /** Samples for StreamingLocators Create. */ public final class StreamingLocatorsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-clear.json */ /** * Sample code: Creates a Streaming Locator with clear streaming. @@ -31,7 +31,7 @@ public static void createsAStreamingLocatorWithClearStreaming( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure.json */ /** * Sample code: Creates a Streaming Locator with secure streaming. @@ -52,7 +52,7 @@ public static void createsAStreamingLocatorWithSecureStreaming( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json */ /** * Sample code: Creates a Streaming Locator with user defined content keys. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsDeleteSamples.java index 9c4ca72177f07..f25adbd16cd52 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingLocators Delete. */ public final class StreamingLocatorsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-delete.json */ /** * Sample code: Delete a Streaming Locator. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsGetSamples.java index f28ac3a6e36e9..c51ba795f388a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingLocators Get. */ public final class StreamingLocatorsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-get-by-name.json */ /** * Sample code: Get a Streaming Locator by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListContentKeysSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListContentKeysSamples.java index 7ff5c93a8b623..82276fbfc1cfb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListContentKeysSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListContentKeysSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingLocators ListContentKeys. */ public final class StreamingLocatorsListContentKeysSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-content-keys.json */ /** * Sample code: List Content Keys. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListPathsSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListPathsSamples.java index 9c2a06b68045a..ef62685e936b9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListPathsSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListPathsSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingLocators ListPaths. */ public final class StreamingLocatorsListPathsSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json */ /** * Sample code: List Paths which has streaming paths only. @@ -24,7 +24,7 @@ public static void listPathsWhichHasStreamingPathsOnly( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json */ /** * Sample code: List Paths which has streaming paths and download paths. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListSamples.java index 59d8085591747..fd1642299baef 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingLocators List. */ public final class StreamingLocatorsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list.json */ /** * Sample code: Lists Streaming Locators. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesCreateSamples.java index ac78c929c1aed..877486b753c6d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesCreateSamples.java @@ -26,7 +26,7 @@ /** Samples for StreamingPolicies Create. */ public final class StreamingPoliciesCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json */ /** * Sample code: Creates a Streaming Policy with secure streaming. @@ -50,8 +50,7 @@ public static void createsAStreamingPolicyWithSecureStreaming( .withSmoothStreaming(true)) .withContentKeys( new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("aesDefaultKey"))) - .withCustomKeyAcquisitionUrlTemplate( - "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}")) + .withCustomKeyAcquisitionUrlTemplate("fakeTokenPlaceholder")) .withCommonEncryptionCenc( new CommonEncryptionCenc() .withEnabledProtocols( @@ -105,7 +104,7 @@ public static void createsAStreamingPolicyWithSecureStreaming( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json */ /** * Sample code: Creates a Streaming Policy with ClearKey encryption in commonEncryptionCenc. @@ -142,13 +141,12 @@ public static void createsAStreamingPolicyWithClearKeyEncryptionInCommonEncrypti new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cencDefaultKey"))) .withClearKeyEncryptionConfiguration( new ClearKeyEncryptionConfiguration() - .withCustomKeysAcquisitionUrlTemplate( - "https://contoso.com/{AlternativeMediaId}/clearkey/"))) + .withCustomKeysAcquisitionUrlTemplate("fakeTokenPlaceholder"))) .create(); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json */ /** * Sample code: Creates a Streaming Policy with commonEncryptionCenc only. @@ -198,7 +196,7 @@ public static void createsAStreamingPolicyWithCommonEncryptionCencOnly( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json */ /** * Sample code: Creates a Streaming Policy with commonEncryptionCbcs only. @@ -233,7 +231,7 @@ public static void createsAStreamingPolicyWithCommonEncryptionCbcsOnly( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json */ /** * Sample code: Creates a Streaming Policy with ClearKey encryption in commonEncryptionCbcs. @@ -259,13 +257,12 @@ public static void createsAStreamingPolicyWithClearKeyEncryptionInCommonEncrypti new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cbcsDefaultKey"))) .withClearKeyEncryptionConfiguration( new ClearKeyEncryptionConfiguration() - .withCustomKeysAcquisitionUrlTemplate( - "https://contoso.com/{AlternativeMediaId}/clearkey/"))) + .withCustomKeysAcquisitionUrlTemplate("fakeTokenPlaceholder"))) .create(); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-clear.json */ /** * Sample code: Creates a Streaming Policy with clear streaming. @@ -290,7 +287,7 @@ public static void createsAStreamingPolicyWithClearStreaming( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json */ /** * Sample code: Creates a Streaming Policy with envelopeEncryption only. @@ -314,8 +311,7 @@ public static void createsAStreamingPolicyWithEnvelopeEncryptionOnly( .withSmoothStreaming(true)) .withContentKeys( new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("aesDefaultKey"))) - .withCustomKeyAcquisitionUrlTemplate( - "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}")) + .withCustomKeyAcquisitionUrlTemplate("fakeTokenPlaceholder")) .create(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesDeleteSamples.java index f3e3f29a4c580..b9e94b7a097b3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingPolicies Delete. */ public final class StreamingPoliciesDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-delete.json */ /** * Sample code: Delete a Streaming Policy. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesGetSamples.java index fd943d9161876..23a34d2b6c270 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingPolicies Get. */ public final class StreamingPoliciesGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policy-get-by-name.json */ /** * Sample code: Get a Streaming Policy by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesListSamples.java index ea4a282d03724..2627a15c621b5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesListSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingPolicies List. */ public final class StreamingPoliciesListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-list.json */ /** * Sample code: Lists Streaming Policies. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksCreateOrUpdateSamples.java index 8cab28c13d4fd..20f81c9cff544 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksCreateOrUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for Tracks CreateOrUpdate. */ public final class TracksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksDeleteSamples.java index d809fe8708979..956be16d64830 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Tracks Delete. */ public final class TracksDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksGetSamples.java index 2f1f4a1e08415..2cf9adc1f53a6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Tracks Get. */ public final class TracksGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksListSamples.java index 31a79a2c5f4a0..c1b94f18868d0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksListSamples.java @@ -9,7 +9,7 @@ /** Samples for Tracks List. */ public final class TracksListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateSamples.java index b99da7a5c3161..138de5d2b0304 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateSamples.java @@ -11,7 +11,7 @@ /** Samples for Tracks Update. */ public final class TracksUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update.json */ /** * Sample code: Update a Track. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateTrackDataSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateTrackDataSamples.java index 2e5c082139a12..f7d6e9d08429a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateTrackDataSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateTrackDataSamples.java @@ -9,7 +9,7 @@ /** Samples for Tracks UpdateTrackData. */ public final class TracksUpdateTrackDataSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update-data.json */ /** * Sample code: Update the data for a tracks. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsCreateOrUpdateSamples.java index dfd44d1be9bb4..8bcfab9d5c9d5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for Transforms CreateOrUpdate. */ public final class TransformsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsDeleteSamples.java index 9f36e06696777..512f7fe2893eb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Transforms Delete. */ public final class TransformsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsGetSamples.java index 7ff34508bdbe7..a6fdb5019de47 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Transforms Get. */ public final class TransformsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsListSamples.java index 8d06eab476ccb..3649bf6346fa2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Transforms List. */ public final class TransformsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -23,14 +23,14 @@ public static void listsTheTransformsFilterByCreated( .list( "contosoresources", "contosomedia", - "properties/created gt 2021-11-01T00:00:00.0000000Z and properties/created le" - + " 2021-11-01T00:00:10.0000000Z", + "properties/created gt 2021-06-01T00:00:00.0000000Z and properties/created le" + + " 2021-06-01T00:00:10.0000000Z", "properties/created", Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -50,7 +50,7 @@ public static void listsTheTransformsFilterByName( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. @@ -64,14 +64,14 @@ public static void listsTheTransformsFilterByLastmodified( .list( "contosoresources", "contosomedia", - "properties/lastmodified gt 2021-11-01T00:00:00.0000000Z and properties/lastmodified le" - + " 2021-11-01T00:00:10.0000000Z", + "properties/lastmodified gt 2021-06-01T00:00:00.0000000Z and properties/lastmodified le" + + " 2021-06-01T00:00:10.0000000Z", "properties/lastmodified desc", Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsUpdateSamples.java index d03a2b0a93abd..d4214fbc6b410 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsUpdateSamples.java @@ -15,7 +15,7 @@ /** Samples for Transforms Update. */ public final class TransformsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-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.