@@ -145,6 +145,9 @@ class AzureCliScript(DeploymentScript):
145
145
:param container_settings: Container settings.
146
146
:type container_settings:
147
147
~azure.mgmt.resource.deploymentscripts.v2019_10_preview.models.ContainerConfiguration
148
+ :param storage_account_settings: Storage Account settings.
149
+ :type storage_account_settings:
150
+ ~azure.mgmt.resource.deploymentscripts.v2019_10_preview.models.StorageAccountConfiguration
148
151
:param cleanup_preference: The clean up preference when the script
149
152
execution gets in a terminal state. Default setting is 'Always'. Possible
150
153
values include: 'Always', 'OnSuccess', 'OnExpiration'
@@ -216,6 +219,7 @@ class AzureCliScript(DeploymentScript):
216
219
'system_data' : {'key' : 'systemData' , 'type' : 'SystemData' },
217
220
'kind' : {'key' : 'kind' , 'type' : 'str' },
218
221
'container_settings' : {'key' : 'properties.containerSettings' , 'type' : 'ContainerConfiguration' },
222
+ 'storage_account_settings' : {'key' : 'properties.storageAccountSettings' , 'type' : 'StorageAccountConfiguration' },
219
223
'cleanup_preference' : {'key' : 'properties.cleanupPreference' , 'type' : 'str' },
220
224
'provisioning_state' : {'key' : 'properties.provisioningState' , 'type' : 'str' },
221
225
'status' : {'key' : 'properties.status' , 'type' : 'ScriptStatus' },
@@ -234,6 +238,7 @@ class AzureCliScript(DeploymentScript):
234
238
def __init__ (self , ** kwargs ):
235
239
super (AzureCliScript , self ).__init__ (** kwargs )
236
240
self .container_settings = kwargs .get ('container_settings' , None )
241
+ self .storage_account_settings = kwargs .get ('storage_account_settings' , None )
237
242
self .cleanup_preference = kwargs .get ('cleanup_preference' , None )
238
243
self .provisioning_state = None
239
244
self .status = None
@@ -281,6 +286,9 @@ class AzurePowerShellScript(DeploymentScript):
281
286
:param container_settings: Container settings.
282
287
:type container_settings:
283
288
~azure.mgmt.resource.deploymentscripts.v2019_10_preview.models.ContainerConfiguration
289
+ :param storage_account_settings: Storage Account settings.
290
+ :type storage_account_settings:
291
+ ~azure.mgmt.resource.deploymentscripts.v2019_10_preview.models.StorageAccountConfiguration
284
292
:param cleanup_preference: The clean up preference when the script
285
293
execution gets in a terminal state. Default setting is 'Always'. Possible
286
294
values include: 'Always', 'OnSuccess', 'OnExpiration'
@@ -353,6 +361,7 @@ class AzurePowerShellScript(DeploymentScript):
353
361
'system_data' : {'key' : 'systemData' , 'type' : 'SystemData' },
354
362
'kind' : {'key' : 'kind' , 'type' : 'str' },
355
363
'container_settings' : {'key' : 'properties.containerSettings' , 'type' : 'ContainerConfiguration' },
364
+ 'storage_account_settings' : {'key' : 'properties.storageAccountSettings' , 'type' : 'StorageAccountConfiguration' },
356
365
'cleanup_preference' : {'key' : 'properties.cleanupPreference' , 'type' : 'str' },
357
366
'provisioning_state' : {'key' : 'properties.provisioningState' , 'type' : 'str' },
358
367
'status' : {'key' : 'properties.status' , 'type' : 'ScriptStatus' },
@@ -371,6 +380,7 @@ class AzurePowerShellScript(DeploymentScript):
371
380
def __init__ (self , ** kwargs ):
372
381
super (AzurePowerShellScript , self ).__init__ (** kwargs )
373
382
self .container_settings = kwargs .get ('container_settings' , None )
383
+ self .storage_account_settings = kwargs .get ('storage_account_settings' , None )
374
384
self .cleanup_preference = kwargs .get ('cleanup_preference' , None )
375
385
self .provisioning_state = None
376
386
self .status = None
@@ -435,6 +445,9 @@ class DeploymentScriptPropertiesBase(Model):
435
445
:param container_settings: Container settings.
436
446
:type container_settings:
437
447
~azure.mgmt.resource.deploymentscripts.v2019_10_preview.models.ContainerConfiguration
448
+ :param storage_account_settings: Storage Account settings.
449
+ :type storage_account_settings:
450
+ ~azure.mgmt.resource.deploymentscripts.v2019_10_preview.models.StorageAccountConfiguration
438
451
:param cleanup_preference: The clean up preference when the script
439
452
execution gets in a terminal state. Default setting is 'Always'. Possible
440
453
values include: 'Always', 'OnSuccess', 'OnExpiration'
@@ -460,6 +473,7 @@ class DeploymentScriptPropertiesBase(Model):
460
473
461
474
_attribute_map = {
462
475
'container_settings' : {'key' : 'containerSettings' , 'type' : 'ContainerConfiguration' },
476
+ 'storage_account_settings' : {'key' : 'storageAccountSettings' , 'type' : 'StorageAccountConfiguration' },
463
477
'cleanup_preference' : {'key' : 'cleanupPreference' , 'type' : 'str' },
464
478
'provisioning_state' : {'key' : 'provisioningState' , 'type' : 'str' },
465
479
'status' : {'key' : 'status' , 'type' : 'ScriptStatus' },
@@ -469,12 +483,42 @@ class DeploymentScriptPropertiesBase(Model):
469
483
def __init__ (self , ** kwargs ):
470
484
super (DeploymentScriptPropertiesBase , self ).__init__ (** kwargs )
471
485
self .container_settings = kwargs .get ('container_settings' , None )
486
+ self .storage_account_settings = kwargs .get ('storage_account_settings' , None )
472
487
self .cleanup_preference = kwargs .get ('cleanup_preference' , None )
473
488
self .provisioning_state = None
474
489
self .status = None
475
490
self .outputs = None
476
491
477
492
493
+ class DeploymentScriptsError (Model ):
494
+ """Deployment scripts error response.
495
+
496
+ :param error:
497
+ :type error:
498
+ ~azure.mgmt.resource.deploymentscripts.v2019_10_preview.models.ErrorResponse
499
+ """
500
+
501
+ _attribute_map = {
502
+ 'error' : {'key' : 'error' , 'type' : 'ErrorResponse' },
503
+ }
504
+
505
+ def __init__ (self , ** kwargs ):
506
+ super (DeploymentScriptsError , self ).__init__ (** kwargs )
507
+ self .error = kwargs .get ('error' , None )
508
+
509
+
510
+ class DeploymentScriptsErrorException (HttpOperationError ):
511
+ """Server responsed with exception of type: 'DeploymentScriptsError'.
512
+
513
+ :param deserialize: A deserializer
514
+ :param response: Server response to be deserialized.
515
+ """
516
+
517
+ def __init__ (self , deserialize , response , * args ):
518
+
519
+ super (DeploymentScriptsErrorException , self ).__init__ (deserialize , response , 'DeploymentScriptsError' , * args )
520
+
521
+
478
522
class DeploymentScriptUpdateParameter (AzureResourceBase ):
479
523
"""Deployment script parameters to be updated. .
480
524
@@ -509,35 +553,6 @@ def __init__(self, **kwargs):
509
553
self .tags = kwargs .get ('tags' , None )
510
554
511
555
512
- class DeploymentScriptsError (Model ):
513
- """Deployment scripts error response.
514
-
515
- :param error:
516
- :type error:
517
- ~azure.mgmt.resource.deploymentscripts.v2019_10_preview.models.ErrorResponse
518
- """
519
-
520
- _attribute_map = {
521
- 'error' : {'key' : 'error' , 'type' : 'ErrorResponse' },
522
- }
523
-
524
- def __init__ (self , ** kwargs ):
525
- super (DeploymentScriptsError , self ).__init__ (** kwargs )
526
- self .error = kwargs .get ('error' , None )
527
-
528
-
529
- class DeploymentScriptsErrorException (HttpOperationError ):
530
- """Server responsed with exception of type: 'DeploymentScriptsError'.
531
-
532
- :param deserialize: A deserializer
533
- :param response: Server response to be deserialized.
534
- """
535
-
536
- def __init__ (self , deserialize , response , * args ):
537
-
538
- super (DeploymentScriptsErrorException , self ).__init__ (deserialize , response , 'DeploymentScriptsError' , * args )
539
-
540
-
541
556
class EnvironmentVariable (Model ):
542
557
"""The environment variable to pass to the script in the container instance.
543
558
@@ -828,6 +843,27 @@ def __init__(self, **kwargs):
828
843
self .error = kwargs .get ('error' , None )
829
844
830
845
846
+ class StorageAccountConfiguration (Model ):
847
+ """Settings to use an existing storage account. Valid storage account kinds
848
+ are: Storage, StorageV2 and FileStorage.
849
+
850
+ :param storage_account_name: The storage account name.
851
+ :type storage_account_name: str
852
+ :param storage_account_key: The storage account access key.
853
+ :type storage_account_key: str
854
+ """
855
+
856
+ _attribute_map = {
857
+ 'storage_account_name' : {'key' : 'storageAccountName' , 'type' : 'str' },
858
+ 'storage_account_key' : {'key' : 'storageAccountKey' , 'type' : 'str' },
859
+ }
860
+
861
+ def __init__ (self , ** kwargs ):
862
+ super (StorageAccountConfiguration , self ).__init__ (** kwargs )
863
+ self .storage_account_name = kwargs .get ('storage_account_name' , None )
864
+ self .storage_account_key = kwargs .get ('storage_account_key' , None )
865
+
866
+
831
867
class SystemData (Model ):
832
868
"""Metadata pertaining to creation and last modification of the resource.
833
869
0 commit comments