Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Generated from b8420a388d27fe9089e179f0d9b6bd126f43ad60
remote wrong readOnly
  • Loading branch information
AutorestCI committed Sep 14, 2018
commit 08162d713bcb4bb2f31686e4f4f189330d015728
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,17 @@
class HDInsightProperties(Model):
"""HDInsightProperties.

Variables are only populated by the server, and will be ignored when
sending a request.

:param ssh_port: Port open for ssh connections on the master node of the
cluster.
:type ssh_port: int
:ivar address: Public IP address of the master node of the cluster.
:vartype address: str
:param address: Public IP address of the master node of the cluster.
:type address: str
:param administrator_account: Admin credentials for master node of the
cluster
:type administrator_account:
~azure.mgmt.machinelearningservices.models.VirtualMachineSshCredentials
"""

_validation = {
'address': {'readonly': True},
}

_attribute_map = {
'ssh_port': {'key': 'sshPort', 'type': 'int'},
'address': {'key': 'address', 'type': 'str'},
Expand All @@ -42,5 +35,5 @@ class HDInsightProperties(Model):
def __init__(self, **kwargs):
super(HDInsightProperties, self).__init__(**kwargs)
self.ssh_port = kwargs.get('ssh_port', None)
self.address = None
self.address = kwargs.get('address', None)
self.administrator_account = kwargs.get('administrator_account', None)
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,25 @@
class HDInsightProperties(Model):
"""HDInsightProperties.

Variables are only populated by the server, and will be ignored when
sending a request.

:param ssh_port: Port open for ssh connections on the master node of the
cluster.
:type ssh_port: int
:ivar address: Public IP address of the master node of the cluster.
:vartype address: str
:param address: Public IP address of the master node of the cluster.
:type address: str
:param administrator_account: Admin credentials for master node of the
cluster
:type administrator_account:
~azure.mgmt.machinelearningservices.models.VirtualMachineSshCredentials
"""

_validation = {
'address': {'readonly': True},
}

_attribute_map = {
'ssh_port': {'key': 'sshPort', 'type': 'int'},
'address': {'key': 'address', 'type': 'str'},
'administrator_account': {'key': 'administratorAccount', 'type': 'VirtualMachineSshCredentials'},
}

def __init__(self, *, ssh_port: int=None, administrator_account=None, **kwargs) -> None:
def __init__(self, *, ssh_port: int=None, address: str=None, administrator_account=None, **kwargs) -> None:
super(HDInsightProperties, self).__init__(**kwargs)
self.ssh_port = ssh_port
self.address = None
self.address = address
self.administrator_account = administrator_account
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,17 @@
class VirtualMachineProperties(Model):
"""VirtualMachineProperties.

Variables are only populated by the server, and will be ignored when
sending a request.

:param virtual_machine_size: Virtual Machine size
:type virtual_machine_size: str
:param ssh_port: Port open for ssh connections.
:type ssh_port: int
:ivar address: Public IP address of the virtual machine.
:vartype address: str
:param address: Public IP address of the virtual machine.
:type address: str
:param administrator_account: Admin credentials for virtual machine
:type administrator_account:
~azure.mgmt.machinelearningservices.models.VirtualMachineSshCredentials
"""

_validation = {
'address': {'readonly': True},
}

_attribute_map = {
'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'},
'ssh_port': {'key': 'sshPort', 'type': 'int'},
Expand All @@ -44,5 +37,5 @@ def __init__(self, **kwargs):
super(VirtualMachineProperties, self).__init__(**kwargs)
self.virtual_machine_size = kwargs.get('virtual_machine_size', None)
self.ssh_port = kwargs.get('ssh_port', None)
self.address = None
self.address = kwargs.get('address', None)
self.administrator_account = kwargs.get('administrator_account', None)
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,27 @@
class VirtualMachineProperties(Model):
"""VirtualMachineProperties.

Variables are only populated by the server, and will be ignored when
sending a request.

:param virtual_machine_size: Virtual Machine size
:type virtual_machine_size: str
:param ssh_port: Port open for ssh connections.
:type ssh_port: int
:ivar address: Public IP address of the virtual machine.
:vartype address: str
:param address: Public IP address of the virtual machine.
:type address: str
:param administrator_account: Admin credentials for virtual machine
:type administrator_account:
~azure.mgmt.machinelearningservices.models.VirtualMachineSshCredentials
"""

_validation = {
'address': {'readonly': True},
}

_attribute_map = {
'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'},
'ssh_port': {'key': 'sshPort', 'type': 'int'},
'address': {'key': 'address', 'type': 'str'},
'administrator_account': {'key': 'administratorAccount', 'type': 'VirtualMachineSshCredentials'},
}

def __init__(self, *, virtual_machine_size: str=None, ssh_port: int=None, administrator_account=None, **kwargs) -> None:
def __init__(self, *, virtual_machine_size: str=None, ssh_port: int=None, address: str=None, administrator_account=None, **kwargs) -> None:
super(VirtualMachineProperties, self).__init__(**kwargs)
self.virtual_machine_size = virtual_machine_size
self.ssh_port = ssh_port
self.address = None
self.address = address
self.administrator_account = administrator_account