Skip to content

Commit

Permalink
Generated from 3308624925c083291276cee7e786608425b48e3b
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Oct 6, 2020
1 parent 79bb773 commit 4f49030
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,9 @@ def __init__(self, **kwargs):
class ImageTemplateIdentity(Model):
"""Identity for the image template.
:param type: The type of identity used for the image template. Possible
values include: 'UserAssigned'
:param type: The type of identity used for the image template. The type
'None' will remove any identities from the image template. Possible values
include: 'UserAssigned', 'None'
:type type: str or ~azure.mgmt.imagebuilder.models.ResourceIdentityType
:param user_assigned_identities: The list of user identities associated
with the image template. The user identity dictionary key references will
Expand Down Expand Up @@ -608,6 +609,10 @@ class ImageTemplatePowerShellCustomizer(ImageTemplateCustomizer):
:param run_elevated: If specified, the PowerShell script will be run with
elevated privileges
:type run_elevated: bool
:param run_as_system: If specified, the PowerShell script will be run with
elevated privileges using the Local System user. Can only be true when the
runElevated field above is set to true.
:type run_as_system: bool
:param valid_exit_codes: Valid exit codes for the PowerShell script.
[Default: 0]
:type valid_exit_codes: list[int]
Expand All @@ -624,6 +629,7 @@ class ImageTemplatePowerShellCustomizer(ImageTemplateCustomizer):
'sha256_checksum': {'key': 'sha256Checksum', 'type': 'str'},
'inline': {'key': 'inline', 'type': '[str]'},
'run_elevated': {'key': 'runElevated', 'type': 'bool'},
'run_as_system': {'key': 'runAsSystem', 'type': 'bool'},
'valid_exit_codes': {'key': 'validExitCodes', 'type': '[int]'},
}

Expand All @@ -633,6 +639,7 @@ def __init__(self, **kwargs):
self.sha256_checksum = kwargs.get('sha256_checksum', None)
self.inline = kwargs.get('inline', None)
self.run_elevated = kwargs.get('run_elevated', None)
self.run_as_system = kwargs.get('run_as_system', None)
self.valid_exit_codes = kwargs.get('valid_exit_codes', None)
self.type = 'PowerShell'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,9 @@ def __init__(self, *, name: str=None, source_uri: str=None, sha256_checksum: str
class ImageTemplateIdentity(Model):
"""Identity for the image template.
:param type: The type of identity used for the image template. Possible
values include: 'UserAssigned'
:param type: The type of identity used for the image template. The type
'None' will remove any identities from the image template. Possible values
include: 'UserAssigned', 'None'
:type type: str or ~azure.mgmt.imagebuilder.models.ResourceIdentityType
:param user_assigned_identities: The list of user identities associated
with the image template. The user identity dictionary key references will
Expand Down Expand Up @@ -608,6 +609,10 @@ class ImageTemplatePowerShellCustomizer(ImageTemplateCustomizer):
:param run_elevated: If specified, the PowerShell script will be run with
elevated privileges
:type run_elevated: bool
:param run_as_system: If specified, the PowerShell script will be run with
elevated privileges using the Local System user. Can only be true when the
runElevated field above is set to true.
:type run_as_system: bool
:param valid_exit_codes: Valid exit codes for the PowerShell script.
[Default: 0]
:type valid_exit_codes: list[int]
Expand All @@ -624,15 +629,17 @@ class ImageTemplatePowerShellCustomizer(ImageTemplateCustomizer):
'sha256_checksum': {'key': 'sha256Checksum', 'type': 'str'},
'inline': {'key': 'inline', 'type': '[str]'},
'run_elevated': {'key': 'runElevated', 'type': 'bool'},
'run_as_system': {'key': 'runAsSystem', 'type': 'bool'},
'valid_exit_codes': {'key': 'validExitCodes', 'type': '[int]'},
}

def __init__(self, *, name: str=None, script_uri: str=None, sha256_checksum: str=None, inline=None, run_elevated: bool=None, valid_exit_codes=None, **kwargs) -> None:
def __init__(self, *, name: str=None, script_uri: str=None, sha256_checksum: str=None, inline=None, run_elevated: bool=None, run_as_system: bool=None, valid_exit_codes=None, **kwargs) -> None:
super(ImageTemplatePowerShellCustomizer, self).__init__(name=name, **kwargs)
self.script_uri = script_uri
self.sha256_checksum = sha256_checksum
self.inline = inline
self.run_elevated = run_elevated
self.run_as_system = run_as_system
self.valid_exit_codes = valid_exit_codes
self.type = 'PowerShell'

Expand Down

0 comments on commit 4f49030

Please sign in to comment.