|
| 1 | +# -------------------------------------------------------------------------- |
| 2 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | +# Licensed under the MIT License. See License.txt in the project root for |
| 4 | +# license information. |
| 5 | +# |
| 6 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 7 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 8 | +# regenerated. |
| 9 | +# -------------------------------------------------------------------------- |
| 10 | +# pylint: disable=too-many-lines |
| 11 | +# pylint: disable=too-many-statements |
| 12 | + |
| 13 | +from azure.cli.core.commands.parameters import ( |
| 14 | + tags_type, |
| 15 | + resource_group_name_type, |
| 16 | + get_location_type |
| 17 | +) |
| 18 | +from azure.cli.core.commands.validators import get_default_location_from_resource_group |
| 19 | + |
| 20 | + |
| 21 | +def load_arguments(self, _): |
| 22 | + |
| 23 | + with self.argument_context('windowsiotservices service list') as c: |
| 24 | + c.argument('resource_group_name', resource_group_name_type) |
| 25 | + |
| 26 | + with self.argument_context('windowsiotservices service show') as c: |
| 27 | + c.argument('resource_group_name', resource_group_name_type) |
| 28 | + c.argument('device_name', type=str, help='The name of the Windows IoT Device Service.', id_part='name') |
| 29 | + |
| 30 | + with self.argument_context('windowsiotservices service create') as c: |
| 31 | + c.argument('resource_group_name', resource_group_name_type) |
| 32 | + c.argument('device_name', type=str, help='The name of the Windows IoT Device Service.') |
| 33 | + c.argument('if_match', type=str, help='ETag of the Windows IoT Device Service. Do not specify for creating a ' |
| 34 | + 'new Windows IoT Device Service. Required to update an existing Windows IoT Device Service.') |
| 35 | + c.argument('tags', tags_type) |
| 36 | + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, |
| 37 | + validator=get_default_location_from_resource_group) |
| 38 | + c.argument('etag', type=str, help='The Etag field is *not* required. If it is provided in the response body, ' |
| 39 | + 'it must also be provided as a header per the normal ETag convention.') |
| 40 | + c.argument('notes', type=str, help='Windows IoT Device Service notes.') |
| 41 | + c.argument('quantity', type=int, help='Windows IoT Device Service device allocation,') |
| 42 | + c.argument('billing_domain_name', type=str, help='Windows IoT Device Service ODM AAD domain') |
| 43 | + c.argument('admin_domain_name', type=str, help='Windows IoT Device Service OEM AAD domain') |
| 44 | + |
| 45 | + with self.argument_context('windowsiotservices service update') as c: |
| 46 | + c.argument('resource_group_name', resource_group_name_type) |
| 47 | + c.argument('device_name', type=str, help='The name of the Windows IoT Device Service.', id_part='name') |
| 48 | + c.argument('if_match', type=str, help='ETag of the Windows IoT Device Service. Do not specify for creating a ' |
| 49 | + 'brand new Windows IoT Device Service. Required to update an existing Windows IoT Device Service.') |
| 50 | + c.argument('tags', tags_type) |
| 51 | + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, |
| 52 | + validator=get_default_location_from_resource_group) |
| 53 | + c.argument('etag', type=str, help='The Etag field is *not* required. If it is provided in the response body, ' |
| 54 | + 'it must also be provided as a header per the normal ETag convention.') |
| 55 | + c.argument('notes', type=str, help='Windows IoT Device Service notes.') |
| 56 | + c.argument('quantity', type=int, help='Windows IoT Device Service device allocation,') |
| 57 | + c.argument('billing_domain_name', type=str, help='Windows IoT Device Service ODM AAD domain') |
| 58 | + c.argument('admin_domain_name', type=str, help='Windows IoT Device Service OEM AAD domain') |
| 59 | + |
| 60 | + with self.argument_context('windowsiotservices service delete') as c: |
| 61 | + c.argument('resource_group_name', resource_group_name_type) |
| 62 | + c.argument('device_name', type=str, help='The name of the Windows IoT Device Service.', id_part='name') |
| 63 | + |
| 64 | + with self.argument_context('windowsiotservices service check-device-service-name-availability') as c: |
| 65 | + c.argument('name', type=str, help='The name of the Windows IoT Device Service to check.') |
0 commit comments