Skip to content
Merged
Prev Previous commit
Next Next commit
Generated from 3089cb519400047ddfeaffa5fac50c5f1c7a3c85
test enum default
  • Loading branch information
AutorestCI committed Oct 16, 2018
commit a39d4f3102dba5a3ac9729b6e2b72f33ce59c8b6
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ class OperationInputs(Model):
:param name: Required. The name of the IoT Central application instance to
check.
:type name: str
:param type: Required. The type of the IoT Central resource to query.
Default value: "IoTApps" .
:type type: str
:param type: The type of the IoT Central resource to query. Possible
values include: 'IoTApps'. Default value: "IoTApps" .
:type type: str or ~azure.mgmt.iotcentral.models.enum
"""

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

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,21 @@ class OperationInputs(Model):
:param name: Required. The name of the IoT Central application instance to
check.
:type name: str
:param type: Required. The type of the IoT Central resource to query.
Default value: "IoTApps" .
:type type: str
:param type: The type of the IoT Central resource to query. Possible
values include: 'IoTApps'. Default value: "IoTApps" .
:type type: str or ~azure.mgmt.iotcentral.models.enum
"""

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

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

def __init__(self, *, name: str, type: str="IoTApps", **kwargs) -> None:
def __init__(self, *, name: str, type="IoTApps", **kwargs) -> None:
super(OperationInputs, self).__init__(**kwargs)
self.name = name
self.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,9 @@ def check_name_availability(
:param name: The name of the IoT Central application instance to
check.
:type name: str
:param type: The type of the IoT Central resource to query.
:type type: str
:param type: The type of the IoT Central resource to query. Possible
values include: 'IoTApps'
:type type: str or ~azure.mgmt.iotcentral.models.enum
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
Expand Down Expand Up @@ -593,8 +594,9 @@ def check_subdomain_availability(
:param name: The name of the IoT Central application instance to
check.
:type name: str
:param type: The type of the IoT Central resource to query.
:type type: str
:param type: The type of the IoT Central resource to query. Possible
values include: 'IoTApps'
:type type: str or ~azure.mgmt.iotcentral.models.enum
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
Expand Down