Skip to content

Commit 19e35d6

Browse files
Azure CLI BotSDKAutoRAY-316
authored
[AutoRelease] t2-media-2021-06-03-79154 (Azure#19067)
* CodeGen from PR 14161 in Azure/azure-rest-api-specs add tags for go SDK release v54.0.0 (Azure#14161) * add tags for go SDK release v54.0.0 * add a new tag * version,CHANGELOG * t2 config Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed <[email protected]>
1 parent 6c2ea91 commit 19e35d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3225
-740
lines changed

sdk/media/azure-mgmt-media/CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# Release History
22

3+
## 7.0.0 (2021-06-03)
4+
5+
**Features**
6+
7+
- Model Asset has a new parameter system_data
8+
- Model StreamingPolicy has a new parameter system_data
9+
- Model Operation has a new parameter action_type
10+
- Model Operation has a new parameter is_data_action
11+
- Model JobInputAsset has a new parameter input_definitions
12+
- Model AccountFilter has a new parameter system_data
13+
- Model FaceDetectorPreset has a new parameter mode
14+
- Model FaceDetectorPreset has a new parameter blur_type
15+
- Model LiveEvent has a new parameter system_data
16+
- Model MediaService has a new parameter key_delivery
17+
- Model MediaService has a new parameter system_data
18+
- Model Job has a new parameter system_data
19+
- Model StreamingLocator has a new parameter system_data
20+
- Model StreamingEndpoint has a new parameter system_data
21+
- Model ContentKeyPolicy has a new parameter system_data
22+
- Model JobInputClip has a new parameter input_definitions
23+
- Model JobInputHttp has a new parameter input_definitions
24+
- Model MetricSpecification has a new parameter lock_aggregation_type
25+
- Model MetricSpecification has a new parameter supported_time_grain_types
26+
- Model MetricSpecification has a new parameter source_mdm_namespace
27+
- Model MetricSpecification has a new parameter source_mdm_account
28+
- Model MetricSpecification has a new parameter enable_regional_mdm_account
29+
- Model AssetFilter has a new parameter system_data
30+
- Model Transform has a new parameter system_data
31+
32+
**Breaking changes**
33+
34+
- Removed operation MediaservicesOperations.get_by_subscription
35+
336
## 7.0.0b1 (2020-12-01)
437

538
This is beta preview version.

sdk/media/azure-mgmt-media/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "3.3.0",
3+
"use": "@autorest/[email protected]",
4+
"commit": "d78e99bbaa8170a72c38d8a6dad8a896f9a5c636",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/mediaservices/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --version=3.3.0",
7+
"readme": "specification/mediaservices/resource-manager/readme.md"
8+
}

sdk/media/azure-mgmt-media/azure/mgmt/media/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# --------------------------------------------------------------------------
88

99
from ._azure_media_services import AzureMediaServices
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
1013
__all__ = ['AzureMediaServices']
1114

1215
try:

sdk/media/azure-mgmt-media/azure/mgmt/media/_azure_media_services.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import AzureMediaServicesConfiguration
2122
from .operations import AccountFiltersOperations
@@ -131,6 +132,24 @@ def __init__(
131132
self.streaming_endpoints = StreamingEndpointsOperations(
132133
self._client, self._config, self._serialize, self._deserialize)
133134

135+
def _send_request(self, http_request, **kwargs):
136+
# type: (HttpRequest, Any) -> HttpResponse
137+
"""Runs the network request through the client's chained policies.
138+
139+
:param http_request: The network request you want to make. Required.
140+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
141+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
142+
:return: The response of your network call. Does not do error handling on your response.
143+
:rtype: ~azure.core.pipeline.transport.HttpResponse
144+
"""
145+
path_format_arguments = {
146+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
147+
}
148+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
149+
stream = kwargs.pop("stream", True)
150+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
151+
return pipeline_response.http_response
152+
134153
def close(self):
135154
# type: () -> None
136155
self._client.close()

sdk/media/azure-mgmt-media/azure/mgmt/media/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from ._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from typing import Any
1820

1921
from azure.core.credentials import TokenCredential
2022

21-
VERSION = "unknown"
2223

2324
class AzureMediaServicesConfiguration(Configuration):
2425
"""Configuration for AzureMediaServices.
@@ -47,7 +48,6 @@ def __init__(
4748

4849
self.credential = credential
4950
self.subscription_id = subscription_id
50-
self.api_version = "2020-05-01"
5151
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5252
kwargs.setdefault('sdk_moniker', 'mgmt-media/{}'.format(VERSION))
5353
self._configure(**kwargs)
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"chosen_version": "",
3+
"total_api_version_list": ["2020-05-01", "2021-05-01"],
4+
"client": {
5+
"name": "AzureMediaServices",
6+
"filename": "_azure_media_services",
7+
"description": "This Swagger was generated by the API Framework.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true,
12+
"client_side_validation": false,
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureMediaServicesConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureMediaServicesConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
15+
},
16+
"global_parameters": {
17+
"sync": {
18+
"credential": {
19+
"signature": "credential, # type: \"TokenCredential\"",
20+
"description": "Credential needed for the client to connect to Azure.",
21+
"docstring_type": "~azure.core.credentials.TokenCredential",
22+
"required": true
23+
},
24+
"subscription_id": {
25+
"signature": "subscription_id, # type: str",
26+
"description": "The unique identifier for a Microsoft Azure subscription.",
27+
"docstring_type": "str",
28+
"required": true
29+
}
30+
},
31+
"async": {
32+
"credential": {
33+
"signature": "credential: \"AsyncTokenCredential\",",
34+
"description": "Credential needed for the client to connect to Azure.",
35+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
36+
"required": true
37+
},
38+
"subscription_id": {
39+
"signature": "subscription_id: str,",
40+
"description": "The unique identifier for a Microsoft Azure subscription.",
41+
"docstring_type": "str",
42+
"required": true
43+
}
44+
},
45+
"constant": {
46+
},
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
90+
},
91+
"config": {
92+
"credential": true,
93+
"credential_scopes": ["https://management.azure.com/.default"],
94+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
95+
"credential_default_policy_type_has_async_version": true,
96+
"credential_key_header_name": null,
97+
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
98+
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
99+
},
100+
"operation_groups": {
101+
"account_filters": "AccountFiltersOperations",
102+
"operations": "Operations",
103+
"mediaservices": "MediaservicesOperations",
104+
"private_link_resources": "PrivateLinkResourcesOperations",
105+
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
106+
"locations": "LocationsOperations",
107+
"assets": "AssetsOperations",
108+
"asset_filters": "AssetFiltersOperations",
109+
"content_key_policies": "ContentKeyPoliciesOperations",
110+
"transforms": "TransformsOperations",
111+
"jobs": "JobsOperations",
112+
"streaming_policies": "StreamingPoliciesOperations",
113+
"streaming_locators": "StreamingLocatorsOperations",
114+
"live_events": "LiveEventsOperations",
115+
"live_outputs": "LiveOutputsOperations",
116+
"streaming_endpoints": "StreamingEndpointsOperations"
117+
}
118+
}

sdk/media/azure-mgmt-media/azure/mgmt/media/_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "7.0.0b1"
10-
9+
VERSION = "7.0.0"

sdk/media/azure-mgmt-media/azure/mgmt/media/aio/_azure_media_services.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -128,6 +129,23 @@ def __init__(
128129
self.streaming_endpoints = StreamingEndpointsOperations(
129130
self._client, self._config, self._serialize, self._deserialize)
130131

132+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
133+
"""Runs the network request through the client's chained policies.
134+
135+
:param http_request: The network request you want to make. Required.
136+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
137+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
138+
:return: The response of your network call. Does not do error handling on your response.
139+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
140+
"""
141+
path_format_arguments = {
142+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
143+
}
144+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
145+
stream = kwargs.pop("stream", True)
146+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
147+
return pipeline_response.http_response
148+
131149
async def close(self) -> None:
132150
await self._client.close()
133151

sdk/media/azure-mgmt-media/azure/mgmt/media/aio/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from .._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from azure.core.credentials_async import AsyncTokenCredential
1820

19-
VERSION = "unknown"
2021

2122
class AzureMediaServicesConfiguration(Configuration):
2223
"""Configuration for AzureMediaServices.
@@ -44,7 +45,6 @@ def __init__(
4445

4546
self.credential = credential
4647
self.subscription_id = subscription_id
47-
self.api_version = "2020-05-01"
4848
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
4949
kwargs.setdefault('sdk_moniker', 'mgmt-media/{}'.format(VERSION))
5050
self._configure(**kwargs)

0 commit comments

Comments
 (0)