Skip to content
Merged
Prev Previous commit
Next Next commit
Generated from 1c89739e3a40c9bf7a6f40e86367d50e6b88f776
Add required field to definitions
  • Loading branch information
AutorestCI committed Sep 27, 2018
commit 3f20f7a0af06ea2f43a3a26ad542e27462db65be
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@
class NameAvailabilityInputs(Model):
"""Input values.

:param name: The name of the IoT Central application instance to check.
All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the IoT Central application instance to
check.
:type name: str
:param type: The type of the IoT Central resource to query. Default value:
"IoTApps" .
:type type: str
"""

_validation = {
'name': {'pattern': r'^[a-z0-9-]{1,63}$'},
'name': {'required': True, 'pattern': r'^[a-z0-9-]{1,63}$'},
}

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,26 @@
class NameAvailabilityInputs(Model):
"""Input values.

:param name: The name of the IoT Central application instance to check.
All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the IoT Central application instance to
check.
:type name: str
:param type: The type of the IoT Central resource to query. Default value:
"IoTApps" .
:type type: str
"""

_validation = {
'name': {'pattern': r'^[a-z0-9-]{1,63}$'},
'name': {'required': True, 'pattern': r'^[a-z0-9-]{1,63}$'},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, *, name: str=None, type: str="IoTApps", **kwargs) -> None:
def __init__(self, *, name: str, type: str="IoTApps", **kwargs) -> None:
super(NameAvailabilityInputs, self).__init__(**kwargs)
self.name = name
self.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@
class SubdomainAvailabilityInputs(Model):
"""Input values.

:param subdomain: The subdomain of the IoT Central application instance to
check.
All required parameters must be populated in order to send to Azure.

:param subdomain: Required. The subdomain of the IoT Central application
instance to check.
:type subdomain: str
:param type: The type of the IoT Central resource to query. Default value:
"IoTApps" .
:type type: str
"""

_validation = {
'subdomain': {'pattern': r'^[a-z0-9-]{1,63}$'},
'subdomain': {'required': True, 'pattern': r'^[a-z0-9-]{1,63}$'},
}

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,26 @@
class SubdomainAvailabilityInputs(Model):
"""Input values.

:param subdomain: The subdomain of the IoT Central application instance to
check.
All required parameters must be populated in order to send to Azure.

:param subdomain: Required. The subdomain of the IoT Central application
instance to check.
:type subdomain: str
:param type: The type of the IoT Central resource to query. Default value:
"IoTApps" .
:type type: str
"""

_validation = {
'subdomain': {'pattern': r'^[a-z0-9-]{1,63}$'},
'subdomain': {'required': True, 'pattern': r'^[a-z0-9-]{1,63}$'},
}

_attribute_map = {
'subdomain': {'key': 'subdomain', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, *, subdomain: str=None, type: str="IoTApps", **kwargs) -> None:
def __init__(self, *, subdomain: str, type: str="IoTApps", **kwargs) -> None:
super(SubdomainAvailabilityInputs, self).__init__(**kwargs)
self.subdomain = subdomain
self.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def internal_paging(next_link=None, raw=False):
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps'}

def check_name_availability(
self, name=None, type="IoTApps", custom_headers=None, raw=False, **operation_config):
self, name, type="IoTApps", custom_headers=None, raw=False, **operation_config):
"""Check if an IoT Central application name is available.

:param name: The name of the IoT Central application instance to
Expand Down Expand Up @@ -587,7 +587,7 @@ def check_name_availability(
check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/checkNameAvailability'}

def check_subdomain_availability(
self, subdomain=None, type="IoTApps", custom_headers=None, raw=False, **operation_config):
self, subdomain, type="IoTApps", custom_headers=None, raw=False, **operation_config):
"""Check if an IoT Central application subdomain is available.

:param subdomain: The subdomain of the IoT Central application
Expand Down