@@ -195,6 +195,29 @@ def __init__(self, **kwargs):
195
195
self .odatatype = '#Microsoft.Media.AbsoluteClipTime'
196
196
197
197
198
+ class AccessControl (Model ):
199
+ """AccessControl.
200
+
201
+ :param default_action: The behavior for IP access control in Key Delivery.
202
+ Possible values include: 'Allow', 'Deny'
203
+ :type default_action: str or ~azure.mgmt.media.models.DefaultAction
204
+ :param ip_allow_list: The IP allow list for access control in Key
205
+ Delivery. If the default action is set to 'Allow', the IP allow list must
206
+ be empty.
207
+ :type ip_allow_list: list[str]
208
+ """
209
+
210
+ _attribute_map = {
211
+ 'default_action' : {'key' : 'defaultAction' , 'type' : 'str' },
212
+ 'ip_allow_list' : {'key' : 'ipAllowList' , 'type' : '[str]' },
213
+ }
214
+
215
+ def __init__ (self , ** kwargs ):
216
+ super (AccessControl , self ).__init__ (** kwargs )
217
+ self .default_action = kwargs .get ('default_action' , None )
218
+ self .ip_allow_list = kwargs .get ('ip_allow_list' , None )
219
+
220
+
198
221
class AccountEncryption (Model ):
199
222
"""AccountEncryption.
200
223
@@ -4255,6 +4278,22 @@ def __init__(self, **kwargs):
4255
4278
self .odatatype = '#Microsoft.Media.JpgLayer'
4256
4279
4257
4280
4281
+ class KeyDelivery (Model ):
4282
+ """KeyDelivery.
4283
+
4284
+ :param access_control: The access control properties for Key Delivery.
4285
+ :type access_control: ~azure.mgmt.media.models.AccessControl
4286
+ """
4287
+
4288
+ _attribute_map = {
4289
+ 'access_control' : {'key' : 'accessControl' , 'type' : 'AccessControl' },
4290
+ }
4291
+
4292
+ def __init__ (self , ** kwargs ):
4293
+ super (KeyDelivery , self ).__init__ (** kwargs )
4294
+ self .access_control = kwargs .get ('access_control' , None )
4295
+
4296
+
4258
4297
class KeyVaultProperties (Model ):
4259
4298
"""KeyVaultProperties.
4260
4299
@@ -5031,6 +5070,9 @@ class MediaService(TrackedResource):
5031
5070
~azure.mgmt.media.models.StorageAuthentication
5032
5071
:param encryption: The account encryption properties.
5033
5072
:type encryption: ~azure.mgmt.media.models.AccountEncryption
5073
+ :param key_delivery: The Key Delivery properties for Media Services
5074
+ account.
5075
+ :type key_delivery: ~azure.mgmt.media.models.KeyDelivery
5034
5076
:param identity: The Managed Identity for the Media Services account.
5035
5077
:type identity: ~azure.mgmt.media.models.MediaServiceIdentity
5036
5078
:ivar system_data: The system metadata relating to this resource.
@@ -5056,6 +5098,7 @@ class MediaService(TrackedResource):
5056
5098
'storage_accounts' : {'key' : 'properties.storageAccounts' , 'type' : '[StorageAccount]' },
5057
5099
'storage_authentication' : {'key' : 'properties.storageAuthentication' , 'type' : 'str' },
5058
5100
'encryption' : {'key' : 'properties.encryption' , 'type' : 'AccountEncryption' },
5101
+ 'key_delivery' : {'key' : 'properties.keyDelivery' , 'type' : 'KeyDelivery' },
5059
5102
'identity' : {'key' : 'identity' , 'type' : 'MediaServiceIdentity' },
5060
5103
'system_data' : {'key' : 'systemData' , 'type' : 'SystemData' },
5061
5104
}
@@ -5066,6 +5109,7 @@ def __init__(self, **kwargs):
5066
5109
self .storage_accounts = kwargs .get ('storage_accounts' , None )
5067
5110
self .storage_authentication = kwargs .get ('storage_authentication' , None )
5068
5111
self .encryption = kwargs .get ('encryption' , None )
5112
+ self .key_delivery = kwargs .get ('key_delivery' , None )
5069
5113
self .identity = kwargs .get ('identity' , None )
5070
5114
self .system_data = None
5071
5115
@@ -5106,6 +5150,56 @@ def __init__(self, **kwargs):
5106
5150
self .tenant_id = None
5107
5151
5108
5152
5153
+ class MediaServiceUpdate (Model ):
5154
+ """A Media Services account update.
5155
+
5156
+ Variables are only populated by the server, and will be ignored when
5157
+ sending a request.
5158
+
5159
+ :param tags: Resource tags.
5160
+ :type tags: dict[str, str]
5161
+ :ivar media_service_id: The Media Services account ID.
5162
+ :vartype media_service_id: str
5163
+ :param storage_accounts: The storage accounts for this resource.
5164
+ :type storage_accounts: list[~azure.mgmt.media.models.StorageAccount]
5165
+ :param storage_authentication: Possible values include: 'System',
5166
+ 'ManagedIdentity'
5167
+ :type storage_authentication: str or
5168
+ ~azure.mgmt.media.models.StorageAuthentication
5169
+ :param encryption: The account encryption properties.
5170
+ :type encryption: ~azure.mgmt.media.models.AccountEncryption
5171
+ :param key_delivery: The Key Delivery properties for Media Services
5172
+ account.
5173
+ :type key_delivery: ~azure.mgmt.media.models.KeyDelivery
5174
+ :param identity: The Managed Identity for the Media Services account.
5175
+ :type identity: ~azure.mgmt.media.models.MediaServiceIdentity
5176
+ """
5177
+
5178
+ _validation = {
5179
+ 'media_service_id' : {'readonly' : True },
5180
+ }
5181
+
5182
+ _attribute_map = {
5183
+ 'tags' : {'key' : 'tags' , 'type' : '{str}' },
5184
+ 'media_service_id' : {'key' : 'properties.mediaServiceId' , 'type' : 'str' },
5185
+ 'storage_accounts' : {'key' : 'properties.storageAccounts' , 'type' : '[StorageAccount]' },
5186
+ 'storage_authentication' : {'key' : 'properties.storageAuthentication' , 'type' : 'str' },
5187
+ 'encryption' : {'key' : 'properties.encryption' , 'type' : 'AccountEncryption' },
5188
+ 'key_delivery' : {'key' : 'properties.keyDelivery' , 'type' : 'KeyDelivery' },
5189
+ 'identity' : {'key' : 'identity' , 'type' : 'MediaServiceIdentity' },
5190
+ }
5191
+
5192
+ def __init__ (self , ** kwargs ):
5193
+ super (MediaServiceUpdate , self ).__init__ (** kwargs )
5194
+ self .tags = kwargs .get ('tags' , None )
5195
+ self .media_service_id = None
5196
+ self .storage_accounts = kwargs .get ('storage_accounts' , None )
5197
+ self .storage_authentication = kwargs .get ('storage_authentication' , None )
5198
+ self .encryption = kwargs .get ('encryption' , None )
5199
+ self .key_delivery = kwargs .get ('key_delivery' , None )
5200
+ self .identity = kwargs .get ('identity' , None )
5201
+
5202
+
5109
5203
class MetricDimension (Model ):
5110
5204
"""A metric dimension.
5111
5205
@@ -5166,6 +5260,15 @@ class MetricSpecification(Model):
5166
5260
:type supported_aggregation_types: list[str]
5167
5261
:ivar dimensions: The metric dimensions.
5168
5262
:vartype dimensions: list[~azure.mgmt.media.models.MetricDimension]
5263
+ :ivar enable_regional_mdm_account: Indicates whether regional MDM account
5264
+ is enabled.
5265
+ :vartype enable_regional_mdm_account: bool
5266
+ :ivar source_mdm_account: The source MDM account.
5267
+ :vartype source_mdm_account: str
5268
+ :ivar source_mdm_namespace: The source MDM namespace.
5269
+ :vartype source_mdm_namespace: str
5270
+ :ivar supported_time_grain_types: The supported time grain types.
5271
+ :vartype supported_time_grain_types: list[str]
5169
5272
"""
5170
5273
5171
5274
_validation = {
@@ -5176,6 +5279,10 @@ class MetricSpecification(Model):
5176
5279
'aggregation_type' : {'readonly' : True },
5177
5280
'lock_aggregation_type' : {'readonly' : True },
5178
5281
'dimensions' : {'readonly' : True },
5282
+ 'enable_regional_mdm_account' : {'readonly' : True },
5283
+ 'source_mdm_account' : {'readonly' : True },
5284
+ 'source_mdm_namespace' : {'readonly' : True },
5285
+ 'supported_time_grain_types' : {'readonly' : True },
5179
5286
}
5180
5287
5181
5288
_attribute_map = {
@@ -5187,6 +5294,10 @@ class MetricSpecification(Model):
5187
5294
'lock_aggregation_type' : {'key' : 'lockAggregationType' , 'type' : 'str' },
5188
5295
'supported_aggregation_types' : {'key' : 'supportedAggregationTypes' , 'type' : '[str]' },
5189
5296
'dimensions' : {'key' : 'dimensions' , 'type' : '[MetricDimension]' },
5297
+ 'enable_regional_mdm_account' : {'key' : 'enableRegionalMdmAccount' , 'type' : 'bool' },
5298
+ 'source_mdm_account' : {'key' : 'sourceMdmAccount' , 'type' : 'str' },
5299
+ 'source_mdm_namespace' : {'key' : 'sourceMdmNamespace' , 'type' : 'str' },
5300
+ 'supported_time_grain_types' : {'key' : 'supportedTimeGrainTypes' , 'type' : '[str]' },
5190
5301
}
5191
5302
5192
5303
def __init__ (self , ** kwargs ):
@@ -5199,6 +5310,10 @@ def __init__(self, **kwargs):
5199
5310
self .lock_aggregation_type = None
5200
5311
self .supported_aggregation_types = kwargs .get ('supported_aggregation_types' , None )
5201
5312
self .dimensions = None
5313
+ self .enable_regional_mdm_account = None
5314
+ self .source_mdm_account = None
5315
+ self .source_mdm_namespace = None
5316
+ self .supported_time_grain_types = None
5202
5317
5203
5318
5204
5319
class MultiBitrateFormat (Format ):
@@ -5355,6 +5470,11 @@ class Operation(Model):
5355
5470
:type origin: str
5356
5471
:param properties: Operation properties format.
5357
5472
:type properties: ~azure.mgmt.media.models.Properties
5473
+ :param is_data_action: Whether the operation applies to data-plane.
5474
+ :type is_data_action: bool
5475
+ :param action_type: Indicates the action type. Possible values include:
5476
+ 'Internal'
5477
+ :type action_type: str or ~azure.mgmt.media.models.ActionType
5358
5478
"""
5359
5479
5360
5480
_validation = {
@@ -5366,6 +5486,8 @@ class Operation(Model):
5366
5486
'display' : {'key' : 'display' , 'type' : 'OperationDisplay' },
5367
5487
'origin' : {'key' : 'origin' , 'type' : 'str' },
5368
5488
'properties' : {'key' : 'properties' , 'type' : 'Properties' },
5489
+ 'is_data_action' : {'key' : 'isDataAction' , 'type' : 'bool' },
5490
+ 'action_type' : {'key' : 'actionType' , 'type' : 'str' },
5369
5491
}
5370
5492
5371
5493
def __init__ (self , ** kwargs ):
@@ -5374,6 +5496,8 @@ def __init__(self, **kwargs):
5374
5496
self .display = kwargs .get ('display' , None )
5375
5497
self .origin = kwargs .get ('origin' , None )
5376
5498
self .properties = kwargs .get ('properties' , None )
5499
+ self .is_data_action = kwargs .get ('is_data_action' , None )
5500
+ self .action_type = kwargs .get ('action_type' , None )
5377
5501
5378
5502
5379
5503
class OperationDisplay (Model ):
0 commit comments