Skip to content

Commit

Permalink
Generated from 47437444923d91c6ca1aa836f59287c5ac6edf89
Browse files Browse the repository at this point in the history
privateLinkUsage -> provisionPublicIp
  • Loading branch information
SDK Automation committed May 1, 2020
1 parent 7d7faef commit 249562c
Show file tree
Hide file tree
Showing 26 changed files with 80 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-03-01"
self.api_version = "2020-05-01"
self.credential_scopes = ['https://management.azure.com/.default']
kwargs.setdefault('sdk_moniker', 'mgmt-machinelearningservices/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-03-01"
self.api_version = "2020-05-01"
self.credential_scopes = ['https://management.azure.com/.default']
kwargs.setdefault('sdk_moniker', 'mgmt-machinelearningservices/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def list_sku(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.SkuListResult"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

def prepare_request(next_link=None):
if not next_link:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def list_by_workspace(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.PaginatedComputeResourcesList"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

def prepare_request(next_link=None):
if not next_link:
Expand Down Expand Up @@ -141,7 +141,7 @@ async def get(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ComputeResource"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.get.metadata['url']
Expand Down Expand Up @@ -195,7 +195,7 @@ async def _create_or_update_initial(
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})

_parameters = models.ComputeResource(identity=identity, location=location, tags=tags, sku=sku, properties=properties)
api_version = "2020-03-01"
api_version = "2020-05-01"
content_type = kwargs.pop("content_type", "application/json")

# Construct URL
Expand Down Expand Up @@ -332,7 +332,7 @@ async def _update_initial(
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})

_parameters = models.ClusterUpdateParameters(scale_settings=scale_settings)
api_version = "2020-03-01"
api_version = "2020-05-01"
content_type = kwargs.pop("content_type", "application/json")

# Construct URL
Expand Down Expand Up @@ -441,7 +441,7 @@ async def _delete_initial(
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self._delete_initial.metadata['url']
Expand Down Expand Up @@ -556,7 +556,7 @@ async def list_node(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.AmlComputeNodesInformation"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.list_node.metadata['url']
Expand Down Expand Up @@ -616,7 +616,7 @@ async def list_key(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ComputeSecrets"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.list_key.metadata['url']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def list(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.OperationListResult"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

def prepare_request(next_link=None):
if not next_link:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def get(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.get.metadata['url']
Expand Down Expand Up @@ -145,7 +145,7 @@ async def put(
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})

_properties = models.PrivateEndpointConnection(identity=identity, location=location, tags=tags, sku=sku, private_endpoint=private_endpoint, private_link_service_connection_state=private_link_service_connection_state)
api_version = "2020-03-01"
api_version = "2020-05-01"
content_type = kwargs.pop("content_type", "application/json")

# Construct URL
Expand Down Expand Up @@ -212,7 +212,7 @@ async def delete(
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.delete.metadata['url']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def list_by_workspace(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResult"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.list_by_workspace.metadata['url']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def update(
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})

_parameters = models.QuotaUpdateParameters(value=value)
api_version = "2020-03-01"
api_version = "2020-05-01"
content_type = kwargs.pop("content_type", "application/json")

# Construct URL
Expand Down Expand Up @@ -120,7 +120,7 @@ def list(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ListWorkspaceQuotas"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

def prepare_request(next_link=None):
if not next_link:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ListUsagesResult"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

def prepare_request(next_link=None):
if not next_link:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def list(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.VirtualMachineSizeListResult"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.list.metadata['url']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def list(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ListAmlUserFeatureResult"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

def prepare_request(next_link=None):
if not next_link:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def get(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.get.metadata['url']
Expand Down Expand Up @@ -126,7 +126,7 @@ async def _create_or_update_initial(
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})

_parameters = models.Workspace(identity=identity, location=location, tags=tags, sku=sku, description=description, friendly_name=friendly_name, key_vault=key_vault, application_insights=application_insights, container_registry=container_registry, storage_account=storage_account, discovery_url=discovery_url, hbi_workspace=hbi_workspace, image_build_compute=image_build_compute, allow_public_access_when_behind_vnet=allow_public_access_when_behind_vnet, shared_private_link_resources=shared_private_link_resources, status=status, key_vault_properties=key_vault_properties)
api_version = "2020-03-01"
api_version = "2020-05-01"
content_type = kwargs.pop("content_type", "application/json")

# Construct URL
Expand Down Expand Up @@ -316,7 +316,7 @@ async def delete(
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.delete.metadata['url']
Expand Down Expand Up @@ -382,7 +382,7 @@ async def update(
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})

_parameters = models.WorkspaceUpdateParameters(tags=tags, sku=sku, description=description, friendly_name=friendly_name)
api_version = "2020-03-01"
api_version = "2020-05-01"
content_type = kwargs.pop("content_type", "application/json")

# Construct URL
Expand Down Expand Up @@ -444,7 +444,7 @@ def list_by_resource_group(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.WorkspaceListResult"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

def prepare_request(next_link=None):
if not next_link:
Expand Down Expand Up @@ -516,7 +516,7 @@ async def list_key(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ListWorkspaceKeysResult"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.list_key.metadata['url']
Expand Down Expand Up @@ -572,7 +572,7 @@ async def resync_key(
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

# Construct URL
url = self.resync_key.metadata['url']
Expand Down Expand Up @@ -621,7 +621,7 @@ def list_by_subscription(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.WorkspaceListResult"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

def prepare_request(next_link=None):
if not next_link:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
NodeState,
PrivateEndpointConnectionProvisioningState,
PrivateEndpointServiceConnectionStatus,
ProvisionPublicIp,
ProvisioningState,
ReasonCode,
RemoteLoginPortPublicAccess,
Expand Down Expand Up @@ -251,6 +252,7 @@
'NodeState',
'PrivateEndpointConnectionProvisioningState',
'PrivateEndpointServiceConnectionStatus',
'ProvisionPublicIp',
'ProvisioningState',
'ReasonCode',
'RemoteLoginPortPublicAccess',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ class ProvisioningState(str, Enum):
failed = "Failed"
canceled = "Canceled"

class ProvisionPublicIp(str, Enum):
"""State of public IP provisioning. Possible values are: Enabled - Indicates that the compute
nodes will have public IPs provisioned. Disabled - Indicates that the compute nodes will have a
private endpoint and no public IPs.
"""

enabled = "Enabled"
disabled = "Disabled"

class ReasonCode(str, Enum):
"""The reason for the restriction.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,11 @@ class AmlComputeProperties(msrest.serialization.Model):
"NotSpecified". Default value: "NotSpecified".
:type remote_login_port_public_access: str or
~azure.mgmt.machinelearningservices.models.RemoteLoginPortPublicAccess
:param provision_public_ip: State of public IP provisioning. Possible values are: Enabled -
Indicates that the compute nodes will have public IPs provisioned. Disabled - Indicates that
the compute nodes will have a private endpoint and no public IPs. Possible values include:
"Enabled", "Disabled". Default value: "Enabled".
:type provision_public_ip: str or ~azure.mgmt.machinelearningservices.models.ProvisionPublicIp
:ivar allocation_state: Allocation state of the compute. Possible values are: steady -
Indicates that the compute is not resizing. There are no changes to the number of compute nodes
in the compute in progress. A compute enters this state when it is created and when no
Expand Down Expand Up @@ -581,6 +586,7 @@ class AmlComputeProperties(msrest.serialization.Model):
'user_account_credentials': {'key': 'userAccountCredentials', 'type': 'UserAccountCredentials'},
'subnet': {'key': 'subnet', 'type': 'ResourceId'},
'remote_login_port_public_access': {'key': 'remoteLoginPortPublicAccess', 'type': 'str'},
'provision_public_ip': {'key': 'provisionPublicIp', 'type': 'str'},
'allocation_state': {'key': 'allocationState', 'type': 'str'},
'allocation_state_transition_time': {'key': 'allocationStateTransitionTime', 'type': 'iso-8601'},
'errors': {'key': 'errors', 'type': '[MachineLearningServiceError]'},
Expand All @@ -600,6 +606,7 @@ def __init__(
self.user_account_credentials = kwargs.get('user_account_credentials', None)
self.subnet = kwargs.get('subnet', None)
self.remote_login_port_public_access = kwargs.get('remote_login_port_public_access', "NotSpecified")
self.provision_public_ip = kwargs.get('provision_public_ip', "Enabled")
self.allocation_state = None
self.allocation_state_transition_time = None
self.errors = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,11 @@ class AmlComputeProperties(msrest.serialization.Model):
"NotSpecified". Default value: "NotSpecified".
:type remote_login_port_public_access: str or
~azure.mgmt.machinelearningservices.models.RemoteLoginPortPublicAccess
:param provision_public_ip: State of public IP provisioning. Possible values are: Enabled -
Indicates that the compute nodes will have public IPs provisioned. Disabled - Indicates that
the compute nodes will have a private endpoint and no public IPs. Possible values include:
"Enabled", "Disabled". Default value: "Enabled".
:type provision_public_ip: str or ~azure.mgmt.machinelearningservices.models.ProvisionPublicIp
:ivar allocation_state: Allocation state of the compute. Possible values are: steady -
Indicates that the compute is not resizing. There are no changes to the number of compute nodes
in the compute in progress. A compute enters this state when it is created and when no
Expand Down Expand Up @@ -613,6 +618,7 @@ class AmlComputeProperties(msrest.serialization.Model):
'user_account_credentials': {'key': 'userAccountCredentials', 'type': 'UserAccountCredentials'},
'subnet': {'key': 'subnet', 'type': 'ResourceId'},
'remote_login_port_public_access': {'key': 'remoteLoginPortPublicAccess', 'type': 'str'},
'provision_public_ip': {'key': 'provisionPublicIp', 'type': 'str'},
'allocation_state': {'key': 'allocationState', 'type': 'str'},
'allocation_state_transition_time': {'key': 'allocationStateTransitionTime', 'type': 'iso-8601'},
'errors': {'key': 'errors', 'type': '[MachineLearningServiceError]'},
Expand All @@ -630,6 +636,7 @@ def __init__(
user_account_credentials: Optional["UserAccountCredentials"] = None,
subnet: Optional["ResourceId"] = None,
remote_login_port_public_access: Optional[Union[str, "RemoteLoginPortPublicAccess"]] = "NotSpecified",
provision_public_ip: Optional[Union[str, "ProvisionPublicIp"]] = "Enabled",
**kwargs
):
super(AmlComputeProperties, self).__init__(**kwargs)
Expand All @@ -639,6 +646,7 @@ def __init__(
self.user_account_credentials = user_account_credentials
self.subnet = subnet
self.remote_login_port_public_access = remote_login_port_public_access
self.provision_public_ip = provision_public_ip
self.allocation_state = None
self.allocation_state_transition_time = None
self.errors = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def list_sku(
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.SkuListResult"]
error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
api_version = "2020-03-01"
api_version = "2020-05-01"

def prepare_request(next_link=None):
if not next_link:
Expand Down
Loading

0 comments on commit 249562c

Please sign in to comment.