Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-resource] Added examples for Microsoft.Solutions 2018-06-01 for S360 item. #3850

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ class AzureCliScript(DeploymentScript):
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.StorageAccountConfiguration
:param cleanup_preference: The clean up preference when the script
execution gets in a terminal state. Default setting is 'Always'. Possible
values include: 'Always', 'OnSuccess', 'OnExpiration'
values include: 'Always', 'OnSuccess', 'OnExpiration'. Default value:
"Always" .
:type cleanup_preference: str or
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.CleanupOptions
:ivar provisioning_state: State of the script execution. This only appears
Expand Down Expand Up @@ -187,7 +188,7 @@ class AzureCliScript(DeploymentScript):
pattern (for example P7D means one week).
:type retention_interval: timedelta
:param timeout: Maximum allowed script execution time specified in ISO
8601 format. Default value is PT1H
8601 format. Default value is P1D. Default value: "P1D" .
:type timeout: timedelta
:param az_cli_version: Required. Azure CLI module version to be used.
:type az_cli_version: str
Expand Down Expand Up @@ -239,7 +240,7 @@ def __init__(self, **kwargs):
super(AzureCliScript, self).__init__(**kwargs)
self.container_settings = kwargs.get('container_settings', None)
self.storage_account_settings = kwargs.get('storage_account_settings', None)
self.cleanup_preference = kwargs.get('cleanup_preference', None)
self.cleanup_preference = kwargs.get('cleanup_preference', "Always")
self.provisioning_state = None
self.status = None
self.outputs = None
Expand All @@ -250,7 +251,7 @@ def __init__(self, **kwargs):
self.environment_variables = kwargs.get('environment_variables', None)
self.force_update_tag = kwargs.get('force_update_tag', None)
self.retention_interval = kwargs.get('retention_interval', None)
self.timeout = kwargs.get('timeout', None)
self.timeout = kwargs.get('timeout', "P1D")
self.az_cli_version = kwargs.get('az_cli_version', None)
self.kind = 'AzureCLI'

Expand Down Expand Up @@ -291,7 +292,8 @@ class AzurePowerShellScript(DeploymentScript):
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.StorageAccountConfiguration
:param cleanup_preference: The clean up preference when the script
execution gets in a terminal state. Default setting is 'Always'. Possible
values include: 'Always', 'OnSuccess', 'OnExpiration'
values include: 'Always', 'OnSuccess', 'OnExpiration'. Default value:
"Always" .
:type cleanup_preference: str or
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.CleanupOptions
:ivar provisioning_state: State of the script execution. This only appears
Expand Down Expand Up @@ -328,7 +330,7 @@ class AzurePowerShellScript(DeploymentScript):
pattern (for example P7D means one week).
:type retention_interval: timedelta
:param timeout: Maximum allowed script execution time specified in ISO
8601 format. Default value is PT1H
8601 format. Default value is P1D. Default value: "P1D" .
:type timeout: timedelta
:param az_power_shell_version: Required. Azure PowerShell module version
to be used.
Expand Down Expand Up @@ -381,7 +383,7 @@ def __init__(self, **kwargs):
super(AzurePowerShellScript, self).__init__(**kwargs)
self.container_settings = kwargs.get('container_settings', None)
self.storage_account_settings = kwargs.get('storage_account_settings', None)
self.cleanup_preference = kwargs.get('cleanup_preference', None)
self.cleanup_preference = kwargs.get('cleanup_preference', "Always")
self.provisioning_state = None
self.status = None
self.outputs = None
Expand All @@ -392,7 +394,7 @@ def __init__(self, **kwargs):
self.environment_variables = kwargs.get('environment_variables', None)
self.force_update_tag = kwargs.get('force_update_tag', None)
self.retention_interval = kwargs.get('retention_interval', None)
self.timeout = kwargs.get('timeout', None)
self.timeout = kwargs.get('timeout', "P1D")
self.az_power_shell_version = kwargs.get('az_power_shell_version', None)
self.kind = 'AzurePowerShell'

Expand Down Expand Up @@ -450,7 +452,8 @@ class DeploymentScriptPropertiesBase(Model):
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.StorageAccountConfiguration
:param cleanup_preference: The clean up preference when the script
execution gets in a terminal state. Default setting is 'Always'. Possible
values include: 'Always', 'OnSuccess', 'OnExpiration'
values include: 'Always', 'OnSuccess', 'OnExpiration'. Default value:
"Always" .
:type cleanup_preference: str or
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.CleanupOptions
:ivar provisioning_state: State of the script execution. This only appears
Expand Down Expand Up @@ -484,7 +487,7 @@ def __init__(self, **kwargs):
super(DeploymentScriptPropertiesBase, self).__init__(**kwargs)
self.container_settings = kwargs.get('container_settings', None)
self.storage_account_settings = kwargs.get('storage_account_settings', None)
self.cleanup_preference = kwargs.get('cleanup_preference', None)
self.cleanup_preference = kwargs.get('cleanup_preference', "Always")
self.provisioning_state = None
self.status = None
self.outputs = None
Expand Down Expand Up @@ -719,7 +722,7 @@ class ScriptConfigurationBase(Model):
pattern (for example P7D means one week).
:type retention_interval: timedelta
:param timeout: Maximum allowed script execution time specified in ISO
8601 format. Default value is PT1H
8601 format. Default value is P1D. Default value: "P1D" .
:type timeout: timedelta
"""

Expand Down Expand Up @@ -748,7 +751,7 @@ def __init__(self, **kwargs):
self.environment_variables = kwargs.get('environment_variables', None)
self.force_update_tag = kwargs.get('force_update_tag', None)
self.retention_interval = kwargs.get('retention_interval', None)
self.timeout = kwargs.get('timeout', None)
self.timeout = kwargs.get('timeout', "P1D")


class ScriptLog(AzureResourceBase):
Expand Down Expand Up @@ -917,19 +920,27 @@ def __init__(self, **kwargs):
class UserAssignedIdentity(Model):
"""User-assigned managed identity.

:param principal_id: Azure Active Directory principal ID associated with
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar principal_id: Azure Active Directory principal ID associated with
this identity.
:type principal_id: str
:param client_id: Client App Id associated with this identity.
:type client_id: str
:vartype principal_id: str
:ivar client_id: Client App Id associated with this identity.
:vartype client_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'client_id': {'readonly': True},
}

_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'client_id': {'key': 'clientId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(UserAssignedIdentity, self).__init__(**kwargs)
self.principal_id = kwargs.get('principal_id', None)
self.client_id = kwargs.get('client_id', None)
self.principal_id = None
self.client_id = None
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ class AzureCliScript(DeploymentScript):
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.StorageAccountConfiguration
:param cleanup_preference: The clean up preference when the script
execution gets in a terminal state. Default setting is 'Always'. Possible
values include: 'Always', 'OnSuccess', 'OnExpiration'
values include: 'Always', 'OnSuccess', 'OnExpiration'. Default value:
"Always" .
:type cleanup_preference: str or
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.CleanupOptions
:ivar provisioning_state: State of the script execution. This only appears
Expand Down Expand Up @@ -187,7 +188,7 @@ class AzureCliScript(DeploymentScript):
pattern (for example P7D means one week).
:type retention_interval: timedelta
:param timeout: Maximum allowed script execution time specified in ISO
8601 format. Default value is PT1H
8601 format. Default value is P1D. Default value: "P1D" .
:type timeout: timedelta
:param az_cli_version: Required. Azure CLI module version to be used.
:type az_cli_version: str
Expand Down Expand Up @@ -235,7 +236,7 @@ class AzureCliScript(DeploymentScript):
'az_cli_version': {'key': 'properties.azCliVersion', 'type': 'str'},
}

def __init__(self, *, identity, location: str, retention_interval, az_cli_version: str, tags=None, container_settings=None, storage_account_settings=None, cleanup_preference=None, primary_script_uri: str=None, supporting_script_uris=None, script_content: str=None, arguments: str=None, environment_variables=None, force_update_tag: str=None, timeout=None, **kwargs) -> None:
def __init__(self, *, identity, location: str, retention_interval, az_cli_version: str, tags=None, container_settings=None, storage_account_settings=None, cleanup_preference="Always", primary_script_uri: str=None, supporting_script_uris=None, script_content: str=None, arguments: str=None, environment_variables=None, force_update_tag: str=None, timeout="P1D", **kwargs) -> None:
super(AzureCliScript, self).__init__(identity=identity, location=location, tags=tags, **kwargs)
self.container_settings = container_settings
self.storage_account_settings = storage_account_settings
Expand Down Expand Up @@ -291,7 +292,8 @@ class AzurePowerShellScript(DeploymentScript):
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.StorageAccountConfiguration
:param cleanup_preference: The clean up preference when the script
execution gets in a terminal state. Default setting is 'Always'. Possible
values include: 'Always', 'OnSuccess', 'OnExpiration'
values include: 'Always', 'OnSuccess', 'OnExpiration'. Default value:
"Always" .
:type cleanup_preference: str or
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.CleanupOptions
:ivar provisioning_state: State of the script execution. This only appears
Expand Down Expand Up @@ -328,7 +330,7 @@ class AzurePowerShellScript(DeploymentScript):
pattern (for example P7D means one week).
:type retention_interval: timedelta
:param timeout: Maximum allowed script execution time specified in ISO
8601 format. Default value is PT1H
8601 format. Default value is P1D. Default value: "P1D" .
:type timeout: timedelta
:param az_power_shell_version: Required. Azure PowerShell module version
to be used.
Expand Down Expand Up @@ -377,7 +379,7 @@ class AzurePowerShellScript(DeploymentScript):
'az_power_shell_version': {'key': 'properties.azPowerShellVersion', 'type': 'str'},
}

def __init__(self, *, identity, location: str, retention_interval, az_power_shell_version: str, tags=None, container_settings=None, storage_account_settings=None, cleanup_preference=None, primary_script_uri: str=None, supporting_script_uris=None, script_content: str=None, arguments: str=None, environment_variables=None, force_update_tag: str=None, timeout=None, **kwargs) -> None:
def __init__(self, *, identity, location: str, retention_interval, az_power_shell_version: str, tags=None, container_settings=None, storage_account_settings=None, cleanup_preference="Always", primary_script_uri: str=None, supporting_script_uris=None, script_content: str=None, arguments: str=None, environment_variables=None, force_update_tag: str=None, timeout="P1D", **kwargs) -> None:
super(AzurePowerShellScript, self).__init__(identity=identity, location=location, tags=tags, **kwargs)
self.container_settings = container_settings
self.storage_account_settings = storage_account_settings
Expand Down Expand Up @@ -450,7 +452,8 @@ class DeploymentScriptPropertiesBase(Model):
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.StorageAccountConfiguration
:param cleanup_preference: The clean up preference when the script
execution gets in a terminal state. Default setting is 'Always'. Possible
values include: 'Always', 'OnSuccess', 'OnExpiration'
values include: 'Always', 'OnSuccess', 'OnExpiration'. Default value:
"Always" .
:type cleanup_preference: str or
~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.CleanupOptions
:ivar provisioning_state: State of the script execution. This only appears
Expand Down Expand Up @@ -480,7 +483,7 @@ class DeploymentScriptPropertiesBase(Model):
'outputs': {'key': 'outputs', 'type': '{object}'},
}

def __init__(self, *, container_settings=None, storage_account_settings=None, cleanup_preference=None, **kwargs) -> None:
def __init__(self, *, container_settings=None, storage_account_settings=None, cleanup_preference="Always", **kwargs) -> None:
super(DeploymentScriptPropertiesBase, self).__init__(**kwargs)
self.container_settings = container_settings
self.storage_account_settings = storage_account_settings
Expand Down Expand Up @@ -719,7 +722,7 @@ class ScriptConfigurationBase(Model):
pattern (for example P7D means one week).
:type retention_interval: timedelta
:param timeout: Maximum allowed script execution time specified in ISO
8601 format. Default value is PT1H
8601 format. Default value is P1D. Default value: "P1D" .
:type timeout: timedelta
"""

Expand All @@ -739,7 +742,7 @@ class ScriptConfigurationBase(Model):
'timeout': {'key': 'timeout', 'type': 'duration'},
}

def __init__(self, *, retention_interval, primary_script_uri: str=None, supporting_script_uris=None, script_content: str=None, arguments: str=None, environment_variables=None, force_update_tag: str=None, timeout=None, **kwargs) -> None:
def __init__(self, *, retention_interval, primary_script_uri: str=None, supporting_script_uris=None, script_content: str=None, arguments: str=None, environment_variables=None, force_update_tag: str=None, timeout="P1D", **kwargs) -> None:
super(ScriptConfigurationBase, self).__init__(**kwargs)
self.primary_script_uri = primary_script_uri
self.supporting_script_uris = supporting_script_uris
Expand Down Expand Up @@ -917,19 +920,27 @@ def __init__(self, *, created_by: str=None, created_by_type=None, created_at=Non
class UserAssignedIdentity(Model):
"""User-assigned managed identity.

:param principal_id: Azure Active Directory principal ID associated with
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar principal_id: Azure Active Directory principal ID associated with
this identity.
:type principal_id: str
:param client_id: Client App Id associated with this identity.
:type client_id: str
:vartype principal_id: str
:ivar client_id: Client App Id associated with this identity.
:vartype client_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'client_id': {'readonly': True},
}

_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'client_id': {'key': 'clientId', 'type': 'str'},
}

def __init__(self, *, principal_id: str=None, client_id: str=None, **kwargs) -> None:
def __init__(self, **kwargs) -> None:
super(UserAssignedIdentity, self).__init__(**kwargs)
self.principal_id = principal_id
self.client_id = client_id
self.principal_id = None
self.client_id = None
Loading