示例#1
0
def load_arguments(self, _):

    with self.argument_context('mail delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('if_match', type=str, help='ETag')
        c.argument('message_id', type=str, help='key: id of message')

    with self.argument_context('mail create-mail-folder') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('child_folder_count', type=int, help='The number of immediate child mailFolders in the current '
                   'mailFolder.')
        c.argument('display_name', type=str, help='The mailFolder\'s display name.')
        c.argument('parent_folder_id', type=str,
                   help='The unique identifier for the mailFolder\'s parent mailFolder.')
        c.argument('total_item_count', type=int, help='The number of items in the mailFolder.')
        c.argument('unread_item_count', type=int, help='The number of items in the mailFolder marked as unread.')
        c.argument('well_known_name', type=str, help='')
        c.argument('child_folders', type=validate_file_or_dict, help='The collection of child folders in the '
                   'mailFolder. Expected value: json-string/@json-file.')
        c.argument('message_rules', type=validate_file_or_dict, help='The collection of rules that apply to the '
                   'user\'s Inbox folder. Expected value: json-string/@json-file.')
        c.argument('messages', type=validate_file_or_dict, help='The collection of messages in the mailFolder. '
                   'Expected value: json-string/@json-file.')
        c.argument('multi_value_extended_properties', action=AddMultiValueExtendedProperties, nargs='*', help='The '
                   'collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.')
        c.argument('single_value_extended_properties', action=AddSingleValueExtendedProperties, nargs='*', help='The '
                   'collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.')
        c.argument('user_configurations', action=AddUserConfigurations, nargs='*', help='')

    with self.argument_context('mail create-message') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body', type=validate_file_or_dict, help='New navigation property Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('mail get-inference-classification') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-mail-folder') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-message') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-message-content') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')

    with self.argument_context('mail list-mail-folder') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-message') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail set-message-content') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('data', help='New media content.')

    with self.argument_context('mail update-inference-classification') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('overrides', action=AddOverrides, nargs='*', help='A set of overrides for a user to always classify '
                   'messages from specific senders in certain ways: focused, or other. Read-only. Nullable.')

    with self.argument_context('mail update-mail-folder') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('child_folder_count', type=int, help='The number of immediate child mailFolders in the current '
                   'mailFolder.')
        c.argument('display_name', type=str, help='The mailFolder\'s display name.')
        c.argument('parent_folder_id', type=str,
                   help='The unique identifier for the mailFolder\'s parent mailFolder.')
        c.argument('total_item_count', type=int, help='The number of items in the mailFolder.')
        c.argument('unread_item_count', type=int, help='The number of items in the mailFolder marked as unread.')
        c.argument('well_known_name', type=str, help='')
        c.argument('child_folders', type=validate_file_or_dict, help='The collection of child folders in the '
                   'mailFolder. Expected value: json-string/@json-file.')
        c.argument('message_rules', type=validate_file_or_dict, help='The collection of rules that apply to the '
                   'user\'s Inbox folder. Expected value: json-string/@json-file.')
        c.argument('messages', type=validate_file_or_dict, help='The collection of messages in the mailFolder. '
                   'Expected value: json-string/@json-file.')
        c.argument('multi_value_extended_properties', action=AddMultiValueExtendedProperties, nargs='*', help='The '
                   'collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.')
        c.argument('single_value_extended_properties', action=AddSingleValueExtendedProperties, nargs='*', help='The '
                   'collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.')
        c.argument('user_configurations', action=AddUserConfigurations, nargs='*', help='')

    with self.argument_context('mail update-message') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('body', type=validate_file_or_dict, help='New navigation property values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('mail delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('inference_classification_override_id', type=str,
                   help='key: id of inferenceClassificationOverride')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('mail create-override') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('classify_as', arg_type=get_enum_type(['focused', 'other']), help='')
        c.argument('sender_email_address_address', type=str, help='The email address of the person or entity.')
        c.argument('sender_email_address_name', type=str, help='The display name of the person or entity.')

    with self.argument_context('mail get-override') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('inference_classification_override_id', type=str,
                   help='key: id of inferenceClassificationOverride')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-override') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail update-override') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('inference_classification_override_id', type=str,
                   help='key: id of inferenceClassificationOverride')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('classify_as', arg_type=get_enum_type(['focused', 'other']), help='')
        c.argument('sender_email_address_address', type=str, help='The email address of the person or entity.')
        c.argument('sender_email_address_name', type=str, help='The display name of the person or entity.')

    with self.argument_context('mail delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('mail_folder_id1', type=str, help='key: id of mailFolder')
        c.argument('if_match', type=str, help='ETag')
        c.argument('message_rule_id', type=str, help='key: id of messageRule')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('multi_value_legacy_extended_property_id', type=str, help='key: id of '
                   'multiValueLegacyExtendedProperty')
        c.argument('single_value_legacy_extended_property_id', type=str, help='key: id of '
                   'singleValueLegacyExtendedProperty')
        c.argument('user_configuration_id', type=str, help='key: id of userConfiguration')

    with self.argument_context('mail create-child-folder') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('child_folder_count', type=int, help='The number of immediate child mailFolders in the current '
                   'mailFolder.')
        c.argument('display_name', type=str, help='The mailFolder\'s display name.')
        c.argument('parent_folder_id', type=str,
                   help='The unique identifier for the mailFolder\'s parent mailFolder.')
        c.argument('total_item_count', type=int, help='The number of items in the mailFolder.')
        c.argument('unread_item_count', type=int, help='The number of items in the mailFolder marked as unread.')
        c.argument('well_known_name', type=str, help='')
        c.argument('child_folders', type=validate_file_or_dict, help='The collection of child folders in the '
                   'mailFolder. Expected value: json-string/@json-file.')
        c.argument('message_rules', type=validate_file_or_dict, help='The collection of rules that apply to the '
                   'user\'s Inbox folder. Expected value: json-string/@json-file.')
        c.argument('messages', type=validate_file_or_dict, help='The collection of messages in the mailFolder. '
                   'Expected value: json-string/@json-file.')
        c.argument('multi_value_extended_properties', action=AddMultiValueExtendedProperties, nargs='*', help='The '
                   'collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.')
        c.argument('single_value_extended_properties', action=AddSingleValueExtendedProperties, nargs='*', help='The '
                   'collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.')
        c.argument('user_configurations', action=AddUserConfigurations, nargs='*', help='')

    with self.argument_context('mail create-message') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('body', type=validate_file_or_dict, help='New navigation property Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('mail create-message-rule') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('body', type=validate_file_or_dict, help='New navigation property Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('mail create-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', nargs='*', help='A collection of property values.')

    with self.argument_context('mail create-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', type=str, help='A property value.')

    with self.argument_context('mail create-user-configuration') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('binary_data', help='')

    with self.argument_context('mail get-child-folder') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('mail_folder_id1', type=str, help='key: id of mailFolder')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-message') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-message-content') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')

    with self.argument_context('mail get-message-rule') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_rule_id', type=str, help='key: id of messageRule')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('multi_value_legacy_extended_property_id', type=str, help='key: id of '
                   'multiValueLegacyExtendedProperty')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('single_value_legacy_extended_property_id', type=str, help='key: id of '
                   'singleValueLegacyExtendedProperty')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-user-configuration') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('user_configuration_id', type=str, help='key: id of userConfiguration')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-child-folder') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-message') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-message-rule') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-user-configuration') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail set-message-content') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('data', help='New media content.')

    with self.argument_context('mail update-child-folder') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('mail_folder_id1', type=str, help='key: id of mailFolder')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('child_folder_count', type=int, help='The number of immediate child mailFolders in the current '
                   'mailFolder.')
        c.argument('display_name', type=str, help='The mailFolder\'s display name.')
        c.argument('parent_folder_id', type=str,
                   help='The unique identifier for the mailFolder\'s parent mailFolder.')
        c.argument('total_item_count', type=int, help='The number of items in the mailFolder.')
        c.argument('unread_item_count', type=int, help='The number of items in the mailFolder marked as unread.')
        c.argument('well_known_name', type=str, help='')
        c.argument('child_folders', type=validate_file_or_dict, help='The collection of child folders in the '
                   'mailFolder. Expected value: json-string/@json-file.')
        c.argument('message_rules', type=validate_file_or_dict, help='The collection of rules that apply to the '
                   'user\'s Inbox folder. Expected value: json-string/@json-file.')
        c.argument('messages', type=validate_file_or_dict, help='The collection of messages in the mailFolder. '
                   'Expected value: json-string/@json-file.')
        c.argument('multi_value_extended_properties', action=AddMultiValueExtendedProperties, nargs='*', help='The '
                   'collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.')
        c.argument('single_value_extended_properties', action=AddSingleValueExtendedProperties, nargs='*', help='The '
                   'collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.')
        c.argument('user_configurations', action=AddUserConfigurations, nargs='*', help='')

    with self.argument_context('mail update-message') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('body', type=validate_file_or_dict, help='New navigation property values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('mail update-message-rule') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_rule_id', type=str, help='key: id of messageRule')
        c.argument('body', type=validate_file_or_dict, help='New navigation property values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('mail update-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('multi_value_legacy_extended_property_id', type=str, help='key: id of '
                   'multiValueLegacyExtendedProperty')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', nargs='*', help='A collection of property values.')

    with self.argument_context('mail update-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('single_value_legacy_extended_property_id', type=str, help='key: id of '
                   'singleValueLegacyExtendedProperty')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', type=str, help='A property value.')

    with self.argument_context('mail update-user-configuration') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('user_configuration_id', type=str, help='key: id of userConfiguration')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('binary_data', help='')

    with self.argument_context('mail delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('attachment_id', type=str, help='key: id of attachment')
        c.argument('if_match', type=str, help='ETag')
        c.argument('extension_id', type=str, help='key: id of extension')
        c.argument('mention_id', type=str, help='key: id of mention')
        c.argument('multi_value_legacy_extended_property_id', type=str, help='key: id of '
                   'multiValueLegacyExtendedProperty')
        c.argument('single_value_legacy_extended_property_id', type=str, help='key: id of '
                   'singleValueLegacyExtendedProperty')

    with self.argument_context('mail create-attachment') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('content_type', type=str, help='The MIME type.')
        c.argument('is_inline', arg_type=get_three_state_flag(), help='true if the attachment is an inline attachment; '
                   'otherwise, false.')
        c.argument('last_modified_date_time', help='The Timestamp type represents date and time information using ISO '
                   '8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like '
                   'this: \'2014-01-01T00:00:00Z\'')
        c.argument('name', type=str, help='The attachment\'s file name.')
        c.argument('size', type=int, help='The length of the attachment in bytes.')

    with self.argument_context('mail create-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')

    with self.argument_context('mail create-mention') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('application', type=str, help='')
        c.argument('client_reference', type=str, help='')
        c.argument('created_by', action=AddCreatedBy, nargs='*', help='emailAddress')
        c.argument('created_date_time', help='')
        c.argument('deep_link', type=str, help='')
        c.argument('mentioned', action=AddCreatedBy, nargs='*', help='emailAddress')
        c.argument('mention_text', type=str, help='')
        c.argument('server_created_date_time', help='')

    with self.argument_context('mail create-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', nargs='*', help='A collection of property values.')

    with self.argument_context('mail create-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', type=str, help='A property value.')

    with self.argument_context('mail get-attachment') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('attachment_id', type=str, help='key: id of attachment')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('extension_id', type=str, help='key: id of extension')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-mention') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('mention_id', type=str, help='key: id of mention')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('multi_value_legacy_extended_property_id', type=str, help='key: id of '
                   'multiValueLegacyExtendedProperty')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('single_value_legacy_extended_property_id', type=str, help='key: id of '
                   'singleValueLegacyExtendedProperty')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-attachment') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-mention') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail update-attachment') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('attachment_id', type=str, help='key: id of attachment')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('content_type', type=str, help='The MIME type.')
        c.argument('is_inline', arg_type=get_three_state_flag(), help='true if the attachment is an inline attachment; '
                   'otherwise, false.')
        c.argument('last_modified_date_time', help='The Timestamp type represents date and time information using ISO '
                   '8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like '
                   'this: \'2014-01-01T00:00:00Z\'')
        c.argument('name', type=str, help='The attachment\'s file name.')
        c.argument('size', type=int, help='The length of the attachment in bytes.')

    with self.argument_context('mail update-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('extension_id', type=str, help='key: id of extension')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')

    with self.argument_context('mail update-mention') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('mention_id', type=str, help='key: id of mention')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('application', type=str, help='')
        c.argument('client_reference', type=str, help='')
        c.argument('created_by', action=AddCreatedBy, nargs='*', help='emailAddress')
        c.argument('created_date_time', help='')
        c.argument('deep_link', type=str, help='')
        c.argument('mentioned', action=AddCreatedBy, nargs='*', help='emailAddress')
        c.argument('mention_text', type=str, help='')
        c.argument('server_created_date_time', help='')

    with self.argument_context('mail update-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('multi_value_legacy_extended_property_id', type=str, help='key: id of '
                   'multiValueLegacyExtendedProperty')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', nargs='*', help='A collection of property values.')

    with self.argument_context('mail update-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('single_value_legacy_extended_property_id', type=str, help='key: id of '
                   'singleValueLegacyExtendedProperty')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', type=str, help='A property value.')

    with self.argument_context('mail delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('attachment_id', type=str, help='key: id of attachment')
        c.argument('if_match', type=str, help='ETag')
        c.argument('extension_id', type=str, help='key: id of extension')
        c.argument('mention_id', type=str, help='key: id of mention')
        c.argument('multi_value_legacy_extended_property_id', type=str, help='key: id of '
                   'multiValueLegacyExtendedProperty')
        c.argument('single_value_legacy_extended_property_id', type=str, help='key: id of '
                   'singleValueLegacyExtendedProperty')

    with self.argument_context('mail create-attachment') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('content_type', type=str, help='The MIME type.')
        c.argument('is_inline', arg_type=get_three_state_flag(), help='true if the attachment is an inline attachment; '
                   'otherwise, false.')
        c.argument('last_modified_date_time', help='The Timestamp type represents date and time information using ISO '
                   '8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like '
                   'this: \'2014-01-01T00:00:00Z\'')
        c.argument('name', type=str, help='The attachment\'s file name.')
        c.argument('size', type=int, help='The length of the attachment in bytes.')

    with self.argument_context('mail create-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')

    with self.argument_context('mail create-mention') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('application', type=str, help='')
        c.argument('client_reference', type=str, help='')
        c.argument('created_by', action=AddCreatedBy, nargs='*', help='emailAddress')
        c.argument('created_date_time', help='')
        c.argument('deep_link', type=str, help='')
        c.argument('mentioned', action=AddCreatedBy, nargs='*', help='emailAddress')
        c.argument('mention_text', type=str, help='')
        c.argument('server_created_date_time', help='')

    with self.argument_context('mail create-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', nargs='*', help='A collection of property values.')

    with self.argument_context('mail create-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', type=str, help='A property value.')

    with self.argument_context('mail get-attachment') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('attachment_id', type=str, help='key: id of attachment')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('extension_id', type=str, help='key: id of extension')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-mention') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('mention_id', type=str, help='key: id of mention')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('multi_value_legacy_extended_property_id', type=str, help='key: id of '
                   'multiValueLegacyExtendedProperty')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail get-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('single_value_legacy_extended_property_id', type=str, help='key: id of '
                   'singleValueLegacyExtendedProperty')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-attachment') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-mention') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail list-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('mail update-attachment') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('attachment_id', type=str, help='key: id of attachment')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('content_type', type=str, help='The MIME type.')
        c.argument('is_inline', arg_type=get_three_state_flag(), help='true if the attachment is an inline attachment; '
                   'otherwise, false.')
        c.argument('last_modified_date_time', help='The Timestamp type represents date and time information using ISO '
                   '8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like '
                   'this: \'2014-01-01T00:00:00Z\'')
        c.argument('name', type=str, help='The attachment\'s file name.')
        c.argument('size', type=int, help='The length of the attachment in bytes.')

    with self.argument_context('mail update-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('extension_id', type=str, help='key: id of extension')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')

    with self.argument_context('mail update-mention') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('mention_id', type=str, help='key: id of mention')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('application', type=str, help='')
        c.argument('client_reference', type=str, help='')
        c.argument('created_by', action=AddCreatedBy, nargs='*', help='emailAddress')
        c.argument('created_date_time', help='')
        c.argument('deep_link', type=str, help='')
        c.argument('mentioned', action=AddCreatedBy, nargs='*', help='emailAddress')
        c.argument('mention_text', type=str, help='')
        c.argument('server_created_date_time', help='')

    with self.argument_context('mail update-multi-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('multi_value_legacy_extended_property_id', type=str, help='key: id of '
                   'multiValueLegacyExtendedProperty')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', nargs='*', help='A collection of property values.')

    with self.argument_context('mail update-single-value-extended-property') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('message_id', type=str, help='key: id of message')
        c.argument('single_value_legacy_extended_property_id', type=str, help='key: id of '
                   'singleValueLegacyExtendedProperty')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('value', type=str, help='A property value.')
示例#2
0
def load_arguments(self, _):

    with self.argument_context('usersfunctions recent') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user', type=str, help='')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('user', type=str, help='')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('contact_folder_id',
                   type=str,
                   help='key: id of contactFolder')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('contact_folder_id',
                   type=str,
                   help='key: id of contactFolder')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions get-user-id-with-flagged-app-registration') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions get-managed-app-diagnostic-statuses') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions get-managed-app-policy') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions reminder-view') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('start_date_time', type=str, help='')
        c.argument('end_date_time', type=str, help='')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('notebook_id', type=str, help='key: id of notebook')
        c.argument('section_group_id',
                   type=str,
                   help='key: id of sectionGroup')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('notebook_id', type=str, help='key: id of notebook')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions get-recent-notebook') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('include_personal_notebooks',
                   arg_type=get_three_state_flag(),
                   help='')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')
        c.argument('section_group_id',
                   type=str,
                   help='key: id of sectionGroup')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id1', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id1', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')
        c.argument('onenote_page_id1', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('section_group_id',
                   type=str,
                   help='key: id of sectionGroup')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('section_group_id',
                   type=str,
                   help='key: id of sectionGroup')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions supported-language') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions supported-time-zone-ee48') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions supported-time-zones51-c6') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('time_zone_standard',
                   arg_type=get_enum_type(['windows', 'iana']),
                   help='')
示例#3
0
def load_arguments(self, _):

    with self.argument_context('crossdeviceexperiences delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('crossdeviceexperiences create-activity') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument(
            'activation_url',
            type=str,
            help='Required. URL used to launch the activity in the best native '
            'experience represented by the appId. Might launch a web-based app if no native app exists.'
        )
        c.argument(
            'activity_source_host',
            type=str,
            help='Required. URL for the domain representing the '
            'cross-platform identity mapping for the app. Mapping is stored either as a JSON file hosted on the '
            'domain or configurable via Windows Dev Center. The JSON file is named '
            'cross-platform-app-identifiers and is hosted at root of your HTTPS domain, either at the top level '
            'domain or include a sub domain. For example: https://contoso.com or https://myapp.contoso.com but '
            'NOT https://myapp.contoso.com/somepath. You must have a unique file and domain (or sub domain) per '
            'cross-platform app identity. For example, a separate file and domain is needed for Word vs. '
            'PowerPoint.')
        c.argument(
            'app_activity_id',
            type=str,
            help='Required. The unique activity ID in the context of the app - '
            'supplied by caller and immutable thereafter.')
        c.argument(
            'app_display_name',
            type=str,
            help='Optional. Short text description of the app used to generate '
            'the activity for use in cases when the app is not installed on the user’s local device.'
        )
        c.argument('content_info',
                   type=validate_file_or_dict,
                   help='Json Expected value: json-string/@json-file.')
        c.argument(
            'content_url',
            type=str,
            help=
            'Optional. Used in the event the content can be rendered outside of a '
            'native or web-based app experience (for example, a pointer to an item in an RSS feed).'
        )
        c.argument(
            'created_date_time',
            help=
            'Set by the server. DateTime in UTC when the object was created on the '
            'server.')
        c.argument(
            'expiration_date_time',
            help=
            'Set by the server. DateTime in UTC when the object expired on the '
            'server.')
        c.argument(
            'fallback_url',
            type=str,
            help=
            'Optional. URL used to launch the activity in a web-based app, if '
            'available.')
        c.argument(
            'last_modified_date_time',
            help=
            'Set by the server. DateTime in UTC when the object was modified on '
            'the server.')
        c.argument('status',
                   arg_type=get_enum_type([
                       'active', 'updated', 'deleted', 'ignored',
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'user_timezone',
            type=str,
            help='Optional. The timezone in which the user\'s device used to '
            'generate the activity was located at activity creation time; values supplied as Olson IDs in order '
            'to support cross-platform representation.')
        c.argument(
            'history_items',
            type=validate_file_or_dict,
            help='Optional. NavigationProperty/Containment; '
            'navigation property to the activity\'s historyItems. Expected value: json-string/@json-file.'
        )
        c.argument('visual_elements_attribution',
                   action=AddVisualElementsAttribution,
                   nargs='*',
                   help='imageInfo')
        c.argument(
            'visual_elements_background_color',
            type=str,
            help='Optional. Background color used to render the '
            'activity in the UI - brand color for the application source of the activity. Must be a valid hex '
            'color')
        c.argument('visual_elements_content',
                   type=validate_file_or_dict,
                   help='Json Expected value: '
                   'json-string/@json-file.')
        c.argument(
            'visual_elements_description',
            type=str,
            help='Optional. Longer text description of the user\'s '
            'unique activity (example: document name, first sentence, and/or metadata)'
        )
        c.argument(
            'visual_elements_display_text',
            type=str,
            help='Required. Short text description of the user\'s '
            'unique activity (for example, document name in cases where an activity refers to document '
            'creation)')

    with self.argument_context('crossdeviceexperiences get-activity') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('crossdeviceexperiences list-activity') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('crossdeviceexperiences update-activity') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument(
            'activation_url',
            type=str,
            help='Required. URL used to launch the activity in the best native '
            'experience represented by the appId. Might launch a web-based app if no native app exists.'
        )
        c.argument(
            'activity_source_host',
            type=str,
            help='Required. URL for the domain representing the '
            'cross-platform identity mapping for the app. Mapping is stored either as a JSON file hosted on the '
            'domain or configurable via Windows Dev Center. The JSON file is named '
            'cross-platform-app-identifiers and is hosted at root of your HTTPS domain, either at the top level '
            'domain or include a sub domain. For example: https://contoso.com or https://myapp.contoso.com but '
            'NOT https://myapp.contoso.com/somepath. You must have a unique file and domain (or sub domain) per '
            'cross-platform app identity. For example, a separate file and domain is needed for Word vs. '
            'PowerPoint.')
        c.argument(
            'app_activity_id',
            type=str,
            help='Required. The unique activity ID in the context of the app - '
            'supplied by caller and immutable thereafter.')
        c.argument(
            'app_display_name',
            type=str,
            help='Optional. Short text description of the app used to generate '
            'the activity for use in cases when the app is not installed on the user’s local device.'
        )
        c.argument('content_info',
                   type=validate_file_or_dict,
                   help='Json Expected value: json-string/@json-file.')
        c.argument(
            'content_url',
            type=str,
            help=
            'Optional. Used in the event the content can be rendered outside of a '
            'native or web-based app experience (for example, a pointer to an item in an RSS feed).'
        )
        c.argument(
            'created_date_time',
            help=
            'Set by the server. DateTime in UTC when the object was created on the '
            'server.')
        c.argument(
            'expiration_date_time',
            help=
            'Set by the server. DateTime in UTC when the object expired on the '
            'server.')
        c.argument(
            'fallback_url',
            type=str,
            help=
            'Optional. URL used to launch the activity in a web-based app, if '
            'available.')
        c.argument(
            'last_modified_date_time',
            help=
            'Set by the server. DateTime in UTC when the object was modified on '
            'the server.')
        c.argument('status',
                   arg_type=get_enum_type([
                       'active', 'updated', 'deleted', 'ignored',
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'user_timezone',
            type=str,
            help='Optional. The timezone in which the user\'s device used to '
            'generate the activity was located at activity creation time; values supplied as Olson IDs in order '
            'to support cross-platform representation.')
        c.argument(
            'history_items',
            type=validate_file_or_dict,
            help='Optional. NavigationProperty/Containment; '
            'navigation property to the activity\'s historyItems. Expected value: json-string/@json-file.'
        )
        c.argument('visual_elements_attribution',
                   action=AddVisualElementsAttribution,
                   nargs='*',
                   help='imageInfo')
        c.argument(
            'visual_elements_background_color',
            type=str,
            help='Optional. Background color used to render the '
            'activity in the UI - brand color for the application source of the activity. Must be a valid hex '
            'color')
        c.argument('visual_elements_content',
                   type=validate_file_or_dict,
                   help='Json Expected value: '
                   'json-string/@json-file.')
        c.argument(
            'visual_elements_description',
            type=str,
            help='Optional. Longer text description of the user\'s '
            'unique activity (example: document name, first sentence, and/or metadata)'
        )
        c.argument(
            'visual_elements_display_text',
            type=str,
            help='Required. Short text description of the user\'s '
            'unique activity (for example, document name in cases where an activity refers to document '
            'creation)')

    with self.argument_context('crossdeviceexperiences delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('activity_history_item_id',
                   type=str,
                   help='key: id of activityHistoryItem')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context(
            'crossdeviceexperiences create-history-item') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument(
            'active_duration_seconds',
            type=int,
            help='Optional. The duration of active user engagement. if not '
            'supplied, this is calculated from the startedDateTime and lastActiveDateTime.'
        )
        c.argument(
            'created_date_time',
            help=
            'Set by the server. DateTime in UTC when the object was created on the '
            'server.')
        c.argument(
            'expiration_date_time',
            help=
            'Optional. UTC DateTime when the historyItem will undergo hard-delete. '
            'Can be set by the client.')
        c.argument(
            'last_active_date_time',
            help=
            'Optional. UTC DateTime when the historyItem (activity session) was '
            'last understood as active or finished - if null, historyItem status should be Ongoing.'
        )
        c.argument(
            'last_modified_date_time',
            help=
            'Set by the server. DateTime in UTC when the object was modified on '
            'the server.')
        c.argument(
            'started_date_time',
            help=
            'Required. UTC DateTime when the historyItem (activity session) was '
            'started. Required for timeline history.')
        c.argument('status',
                   arg_type=get_enum_type([
                       'active', 'updated', 'deleted', 'ignored',
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'user_timezone',
            type=str,
            help='Optional. The timezone in which the user\'s device used to '
            'generate the activity was located at activity creation time. Values supplied as Olson IDs in order '
            'to support cross-platform representation.')
        c.argument('activity',
                   type=validate_file_or_dict,
                   help='userActivity Expected value: json-string/@json-file.')

    with self.argument_context('crossdeviceexperiences get-history-item') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('activity_history_item_id',
                   type=str,
                   help='key: id of activityHistoryItem')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context(
            'crossdeviceexperiences list-history-item') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context(
            'crossdeviceexperiences update-history-item') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('activity_history_item_id',
                   type=str,
                   help='key: id of activityHistoryItem')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument(
            'active_duration_seconds',
            type=int,
            help='Optional. The duration of active user engagement. if not '
            'supplied, this is calculated from the startedDateTime and lastActiveDateTime.'
        )
        c.argument(
            'created_date_time',
            help=
            'Set by the server. DateTime in UTC when the object was created on the '
            'server.')
        c.argument(
            'expiration_date_time',
            help=
            'Optional. UTC DateTime when the historyItem will undergo hard-delete. '
            'Can be set by the client.')
        c.argument(
            'last_active_date_time',
            help=
            'Optional. UTC DateTime when the historyItem (activity session) was '
            'last understood as active or finished - if null, historyItem status should be Ongoing.'
        )
        c.argument(
            'last_modified_date_time',
            help=
            'Set by the server. DateTime in UTC when the object was modified on '
            'the server.')
        c.argument(
            'started_date_time',
            help=
            'Required. UTC DateTime when the historyItem (activity session) was '
            'started. Required for timeline history.')
        c.argument('status',
                   arg_type=get_enum_type([
                       'active', 'updated', 'deleted', 'ignored',
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'user_timezone',
            type=str,
            help='Optional. The timezone in which the user\'s device used to '
            'generate the activity was located at activity creation time. Values supplied as Olson IDs in order '
            'to support cross-platform representation.')
        c.argument('activity',
                   type=validate_file_or_dict,
                   help='userActivity Expected value: json-string/@json-file.')

    with self.argument_context('crossdeviceexperiences delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('activity_history_item_id',
                   type=str,
                   help='key: id of activityHistoryItem')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('crossdeviceexperiences get-activity') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('activity_history_item_id',
                   type=str,
                   help='key: id of activityHistoryItem')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('crossdeviceexperiences get-ref-activity') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('activity_history_item_id',
                   type=str,
                   help='key: id of activityHistoryItem')

    with self.argument_context('crossdeviceexperiences set-ref-activity') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user_activity_id',
                   type=str,
                   help='key: id of userActivity')
        c.argument('activity_history_item_id',
                   type=str,
                   help='key: id of activityHistoryItem')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref values Expected value: '
                   'json-string/@json-file.')
示例#4
0
def load_arguments(self, _):

    with self.argument_context('users delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('users create-user') as c:
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New entity Expected value: json-string/@json-file.')

    with self.argument_context('users get-user') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-user') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users update-user') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New property values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('users delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('extension_id', type=str, help='key: id of extension')
        c.argument('if_match', type=str, help='ETag')
        c.argument('license_details_id',
                   type=str,
                   help='key: id of licenseDetails')
        c.argument('profile_photo_id',
                   type=str,
                   help='key: id of profilePhoto')

    with self.argument_context('users create-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')

    with self.argument_context('users create-license-detail') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('service_plans',
                   action=AddServicePlans,
                   nargs='*',
                   help='Information about the service plans '
                   'assigned with the license. Read-only, Not nullable')
        c.argument(
            'sku_id',
            help=
            'Unique identifier (GUID) for the service SKU. Equal to the skuId property on the '
            'related SubscribedSku object. Read-only')
        c.argument(
            'sku_part_number',
            type=str,
            help='Unique SKU display name. Equal to the skuPartNumber on the '
            'related SubscribedSku object; for example: \'AAD_Premium\'. Read-only'
        )

    with self.argument_context('users create-photo') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('height',
                   type=int,
                   help='The height of the photo. Read-only.')
        c.argument('width',
                   type=int,
                   help='The width of the photo. Read-only.')

    with self.argument_context('users create-ref-created-object') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('users create-ref-direct-report') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('users create-ref-member-of') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context(
            'users create-ref-oauth2-permission-grant') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('users create-ref-owned-device') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('users create-ref-owned-object') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('users create-ref-registered-device') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('users create-ref-transitive-member-of') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('users get-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('extension_id', type=str, help='key: id of extension')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users get-license-detail') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('license_details_id',
                   type=str,
                   help='key: id of licenseDetails')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users get-manager') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users get-outlook') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users get-photo') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('profile_photo_id',
                   type=str,
                   help='key: id of profilePhoto')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users get-ref-manager') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('users get-setting') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-created-object') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-direct-report') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-license-detail') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-member-of') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-oauth2-permission-grant') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-owned-device') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-owned-object') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-photo') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-ref-created-object') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('users list-ref-direct-report') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('users list-ref-member-of') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('users list-ref-oauth2-permission-grant') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('users list-ref-owned-device') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('users list-ref-owned-object') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('users list-ref-registered-device') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('users list-ref-transitive-member-of') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('users list-registered-device') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-transitive-member-of') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users set-ref-manager') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('users update-extension') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('extension_id', type=str, help='key: id of extension')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')

    with self.argument_context('users update-license-detail') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('license_details_id',
                   type=str,
                   help='key: id of licenseDetails')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('service_plans',
                   action=AddServicePlans,
                   nargs='*',
                   help='Information about the service plans '
                   'assigned with the license. Read-only, Not nullable')
        c.argument(
            'sku_id',
            help=
            'Unique identifier (GUID) for the service SKU. Equal to the skuId property on the '
            'related SubscribedSku object. Read-only')
        c.argument(
            'sku_part_number',
            type=str,
            help='Unique SKU display name. Equal to the skuPartNumber on the '
            'related SubscribedSku object; for example: \'AAD_Premium\'. Read-only'
        )

    with self.argument_context('users update-outlook') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('master_categories',
                   action=AddMasterCategories,
                   nargs='*',
                   help='A list of categories defined for '
                   'the user.')

    with self.argument_context('users update-photo') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('profile_photo_id',
                   type=str,
                   help='key: id of profilePhoto')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('height',
                   type=int,
                   help='The height of the photo. Read-only.')
        c.argument('width',
                   type=int,
                   help='The width of the photo. Read-only.')

    with self.argument_context('users update-setting') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument(
            'contribution_to_content_discovery_as_organization_disabled',
            arg_type=get_three_state_flag(),
            help='')
        c.argument('contribution_to_content_discovery_disabled',
                   arg_type=get_three_state_flag(),
                   help='')
        c.argument('shift_preferences_id', type=str, help='Read-only.')
        c.argument(
            'shift_preferences_created_date_time',
            help='The Timestamp type represents date and time '
            'information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, '
            '2014 would look like this: \'2014-01-01T00:00:00Z\'')
        c.argument(
            'shift_preferences_last_modified_date_time',
            help='The Timestamp type represents date and time '
            'information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, '
            '2014 would look like this: \'2014-01-01T00:00:00Z\'')
        c.argument('shift_preferences_last_modified_by_application',
                   action=AddShiftPreferencesLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('shift_preferences_last_modified_by_device',
                   action=AddShiftPreferencesLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('shift_preferences_last_modified_by_user',
                   action=AddShiftPreferencesLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument(
            'shift_preferences_availability',
            type=validate_file_or_dict,
            help='Availability of the user to be '
            'scheduled for work and its recurrence pattern. Expected value: json-string/@json-file.'
        )

    with self.argument_context('users delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('outlook_category_id',
                   type=str,
                   help='key: id of outlookCategory')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('users create-master-category') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('color',
                   arg_type=get_enum_type([
                       'preset0', 'preset1', 'none', 'preset2', 'preset3',
                       'preset4', ''
                       'preset5', 'preset6', 'preset7', 'preset8', 'preset9',
                       'preset10', 'preset11', 'preset12', 'preset13',
                       'preset14', 'preset15', ''
                       'preset16', 'preset17', 'preset18', 'preset19',
                       'preset20', ''
                       'preset21', 'preset22', 'preset23', 'preset24'
                   ]),
                   help='')
        c.argument(
            'display_name',
            type=str,
            help=
            'A unique name that identifies a category in the user\'s mailbox. '
            'After a category is created, the name cannot be changed. Read-only.'
        )

    with self.argument_context('users get-master-category') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('outlook_category_id',
                   type=str,
                   help='key: id of outlookCategory')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users list-master-category') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users update-master-category') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('outlook_category_id',
                   type=str,
                   help='key: id of outlookCategory')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('color',
                   arg_type=get_enum_type([
                       'preset0', 'preset1', 'none', 'preset2', 'preset3',
                       'preset4', ''
                       'preset5', 'preset6', 'preset7', 'preset8', 'preset9',
                       'preset10', 'preset11', 'preset12', 'preset13',
                       'preset14', 'preset15', ''
                       'preset16', 'preset17', 'preset18', 'preset19',
                       'preset20', ''
                       'preset21', 'preset22', 'preset23', 'preset24'
                   ]),
                   help='')
        c.argument(
            'display_name',
            type=str,
            help=
            'A unique name that identifies a category in the user\'s mailbox. '
            'After a category is created, the name cannot be changed. Read-only.'
        )

    with self.argument_context('users delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('users get-shift-preference') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('users update-shift-preference') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument(
            'created_date_time',
            help=
            'The Timestamp type represents date and time information using ISO 8601 '
            'format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '
            '\'2014-01-01T00:00:00Z\'')
        c.argument(
            'last_modified_date_time',
            help=
            'The Timestamp type represents date and time information using ISO '
            '8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like '
            'this: \'2014-01-01T00:00:00Z\'')
        c.argument('last_modified_by_application',
                   action=AddShiftPreferencesLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('last_modified_by_device',
                   action=AddShiftPreferencesLastModifiedByApplication,
                   nargs='*',
                   help=''
                   'identity')
        c.argument('last_modified_by_user',
                   action=AddShiftPreferencesLastModifiedByApplication,
                   nargs='*',
                   help=''
                   'identity')
        c.argument(
            'availability',
            type=validate_file_or_dict,
            help='Availability of the user to be scheduled for work '
            'and its recurrence pattern. Expected value: json-string/@json-file.'
        )
示例#5
0
def load_arguments(self, _):

    with self.argument_context('compliance get-compliance') as c:
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance update-compliance') as c:
        c.argument('ediscovery_id', type=str, help='Read-only.')
        c.argument('ediscovery_cases',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')

    with self.argument_context('compliance delete') as c:
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('compliance get-ediscovery') as c:
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance update-ediscovery') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('cases',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')

    with self.argument_context('compliance delete') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('compliance create-case') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('closed_date_time', help='')
        c.argument('created_date_time', help='')
        c.argument('description', type=str, help='')
        c.argument('display_name', type=str, help='')
        c.argument('external_id', type=str, help='')
        c.argument('last_modified_date_time', help='')
        c.argument('status',
                   arg_type=get_enum_type([
                       'unknown', 'active', 'pendingDelete', 'closing',
                       'closed', ''
                       'closedWithError'
                   ]),
                   help='')
        c.argument('custodians',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('review_sets',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('last_modified_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('last_modified_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('last_modified_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('closed_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('closed_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('closed_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')

    with self.argument_context('compliance get-case') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance list-case') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance update-case') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('closed_date_time', help='')
        c.argument('created_date_time', help='')
        c.argument('description', type=str, help='')
        c.argument('display_name', type=str, help='')
        c.argument('external_id', type=str, help='')
        c.argument('last_modified_date_time', help='')
        c.argument('status',
                   arg_type=get_enum_type([
                       'unknown', 'active', 'pendingDelete', 'closing',
                       'closed', ''
                       'closedWithError'
                   ]),
                   help='')
        c.argument('custodians',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('review_sets',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('last_modified_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('last_modified_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('last_modified_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('closed_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('closed_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('closed_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')

    with self.argument_context('compliance delete') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('if_match', type=str, help='ETag')
        c.argument('review_set_id', type=str, help='key: id of reviewSet')

    with self.argument_context('compliance close') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')

    with self.argument_context('compliance create-custodian') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('acknowledged_date_time', help='')
        c.argument('apply_hold_to_sources',
                   arg_type=get_three_state_flag(),
                   help='')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('email', type=str, help='')
        c.argument('last_modified_date_time', help='')
        c.argument('released_date_time', help='')
        c.argument('status',
                   arg_type=get_enum_type(['active', 'released']),
                   help='')
        c.argument('last_index_operation',
                   action=AddLastIndexOperation,
                   nargs='*',
                   help='caseIndexOperation')
        c.argument('site_sources',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('unified_group_sources',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('user_sources', action=AddUserSources, nargs='*', help='')

    with self.argument_context('compliance create-review-set') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('queries',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('created_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')

    with self.argument_context('compliance get-custodian') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance get-review-set') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('review_set_id', type=str, help='key: id of reviewSet')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance list-custodian') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance list-review-set') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance reopen') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')

    with self.argument_context('compliance update-custodian') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('acknowledged_date_time', help='')
        c.argument('apply_hold_to_sources',
                   arg_type=get_three_state_flag(),
                   help='')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('email', type=str, help='')
        c.argument('last_modified_date_time', help='')
        c.argument('released_date_time', help='')
        c.argument('status',
                   arg_type=get_enum_type(['active', 'released']),
                   help='')
        c.argument('last_index_operation',
                   action=AddLastIndexOperation,
                   nargs='*',
                   help='caseIndexOperation')
        c.argument('site_sources',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('unified_group_sources',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('user_sources', action=AddUserSources, nargs='*', help='')

    with self.argument_context('compliance update-review-set') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('review_set_id', type=str, help='key: id of reviewSet')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('queries',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('created_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')

    with self.argument_context('compliance delete') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('site_source_id', type=str, help='key: id of siteSource')
        c.argument('if_match', type=str, help='ETag')
        c.argument('unified_group_source_id',
                   type=str,
                   help='key: id of unifiedGroupSource')
        c.argument('user_source_id', type=str, help='key: id of userSource')

    with self.argument_context('compliance activate') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')

    with self.argument_context('compliance create-site-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('created_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('site',
                   type=validate_file_or_dict,
                   help='site Expected value: json-string/@json-file.')

    with self.argument_context('compliance create-unified-group-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('created_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('included_sources',
                   arg_type=get_enum_type(['mailbox', 'site']),
                   help='')
        c.argument(
            'group',
            type=validate_file_or_dict,
            help='Represents an Azure Active Directory object. The '
            'directoryObject type is the base type for many other directory entity types. Expected value: '
            'json-string/@json-file.')

    with self.argument_context('compliance create-user-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('created_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('email', type=str, help='')
        c.argument('included_sources',
                   arg_type=get_enum_type(['mailbox', 'site']),
                   help='')

    with self.argument_context('compliance get-last-index-operation') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance get-ref-last-index-operation') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')

    with self.argument_context('compliance get-site-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('site_source_id', type=str, help='key: id of siteSource')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance get-unified-group-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('unified_group_source_id',
                   type=str,
                   help='key: id of unifiedGroupSource')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance get-user-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('user_source_id', type=str, help='key: id of userSource')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance list-site-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance list-unified-group-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance list-user-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance release') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')

    with self.argument_context('compliance set-ref-last-index-operation') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('compliance update-index') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')

    with self.argument_context('compliance update-site-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('site_source_id', type=str, help='key: id of siteSource')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('created_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('site',
                   type=validate_file_or_dict,
                   help='site Expected value: json-string/@json-file.')

    with self.argument_context('compliance update-unified-group-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('unified_group_source_id',
                   type=str,
                   help='key: id of unifiedGroupSource')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('created_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('included_sources',
                   arg_type=get_enum_type(['mailbox', 'site']),
                   help='')
        c.argument(
            'group',
            type=validate_file_or_dict,
            help='Represents an Azure Active Directory object. The '
            'directoryObject type is the base type for many other directory entity types. Expected value: '
            'json-string/@json-file.')

    with self.argument_context('compliance update-user-source') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('user_source_id', type=str, help='key: id of userSource')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('created_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('email', type=str, help='')
        c.argument('included_sources',
                   arg_type=get_enum_type(['mailbox', 'site']),
                   help='')

    with self.argument_context('compliance delete') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('site_source_id', type=str, help='key: id of siteSource')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('compliance get-ref-site') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('site_source_id', type=str, help='key: id of siteSource')

    with self.argument_context('compliance get-site') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('site_source_id', type=str, help='key: id of siteSource')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance set-ref-site') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('site_source_id', type=str, help='key: id of siteSource')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('compliance delete') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('unified_group_source_id',
                   type=str,
                   help='key: id of unifiedGroupSource')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('compliance get-group') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('unified_group_source_id',
                   type=str,
                   help='key: id of unifiedGroupSource')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance get-ref-group') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('unified_group_source_id',
                   type=str,
                   help='key: id of unifiedGroupSource')

    with self.argument_context('compliance set-ref-group') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('custodian_id', type=str, help='key: id of custodian')
        c.argument('unified_group_source_id',
                   type=str,
                   help='key: id of unifiedGroupSource')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('compliance delete') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('review_set_id', type=str, help='key: id of reviewSet')
        c.argument('review_set_query_id',
                   type=str,
                   help='key: id of reviewSetQuery')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('compliance create-query') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('review_set_id', type=str, help='key: id of reviewSet')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('last_modified_date_time', help='')
        c.argument('query', type=str, help='')
        c.argument('last_modified_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('last_modified_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('last_modified_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')

    with self.argument_context('compliance get-query') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('review_set_id', type=str, help='key: id of reviewSet')
        c.argument('review_set_query_id',
                   type=str,
                   help='key: id of reviewSetQuery')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance list-query') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('review_set_id', type=str, help='key: id of reviewSet')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('compliance update-query') as c:
        c.argument('ediscovery_case_id',
                   type=str,
                   help='key: id of ediscoveryCase')
        c.argument('review_set_id', type=str, help='key: id of reviewSet')
        c.argument('review_set_query_id',
                   type=str,
                   help='key: id of reviewSetQuery')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('created_date_time', help='')
        c.argument('display_name', type=str, help='')
        c.argument('last_modified_date_time', help='')
        c.argument('query', type=str, help='')
        c.argument('last_modified_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('last_modified_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('last_modified_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_application',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_device',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
        c.argument('created_by_user',
                   action=AddLastModifiedByApplication,
                   nargs='*',
                   help='identity')
示例#6
0
def load_arguments(self, _):

    with self.argument_context('reports get-audit-log-root') as c:
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('reports update-audit-log-root') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('directory_audits',
                   type=validate_file_or_dict,
                   help='Read-only. Nullable. Expected value: '
                   'json-string/@json-file.')
        c.argument('restricted_sign_ins',
                   action=AddRestrictedSignIns,
                   nargs='*',
                   help='')
        c.argument('sign_ins',
                   type=validate_file_or_dict,
                   help='Read-only. Nullable. Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('reports delete') as c:
        c.argument('directory_audit_id',
                   type=str,
                   help='key: id of directoryAudit')
        c.argument('if_match', type=str, help='ETag')
        c.argument('restricted_sign_in_id',
                   type=str,
                   help='key: id of restrictedSignIn')
        c.argument('sign_in_id', type=str, help='key: id of signIn')

    with self.argument_context('reports create-directory-audit') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument(
            'activity_date_time',
            help=
            'Indicates the date and time the activity was performed. The Timestamp '
            'type is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '
            '\'2014-01-01T00:00:00Z\'')
        c.argument(
            'activity_display_name',
            type=str,
            help='Indicates the activity name or the operation name '
            '(examples: \'Create User\' and \'Add member to group\'). For full list, see Azure AD activity '
            'list.')
        c.argument('additional_details',
                   action=AddAdditionalDetails,
                   nargs='*',
                   help='Indicates additional details on '
                   'the activity.')
        c.argument(
            'category',
            type=str,
            help=
            'Indicates which resource category that\'s targeted by the activity. '
            '(For example: User Management, Group Management etc..)')
        c.argument(
            'correlation_id',
            type=str,
            help=
            'Indicates a unique ID that helps correlate activities that span '
            'across various services. Can be used to trace logs across services.'
        )
        c.argument(
            'logged_by_service',
            type=str,
            help='Indicates information on which service initiated the activity '
            '(For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft '
            'Identity Manager, Privileged Identity Management.')
        c.argument('operation_type', type=str, help='')
        c.argument('result',
                   arg_type=get_enum_type(
                       ['success', 'failure', 'timeout',
                        'unknownFutureValue']),
                   help='')
        c.argument(
            'result_reason',
            type=str,
            help='Describes cause of \'failure\' or \'timeout\' results.')
        c.argument(
            'target_resources',
            action=AddTargetResources,
            nargs='*',
            help='Indicates information on which '
            'resource was changed due to the activity. Target Resource Type can be User, Device, Directory, '
            'App, Role, Group, Policy or Other.')
        c.argument('initiated_by_app',
                   action=AddInitiatedByApp,
                   nargs='*',
                   help='appIdentity')
        c.argument('initiated_by_user',
                   action=AddInitiatedByUser,
                   nargs='*',
                   help='userIdentity')

    with self.argument_context('reports create-restricted-sign-in') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('app_display_name',
                   type=str,
                   help='App name displayed in the Azure Portal.')
        c.argument(
            'app_id',
            type=str,
            help=
            'Unique GUID representing the app ID in the Azure Active Directory.'
        )
        c.argument('applied_conditional_access_policies',
                   action=AddAppliedConditionalAccessPolicies,
                   nargs='*',
                   help=''
                   '')
        c.argument(
            'client_app_used',
            type=str,
            help='Identifies the legacy client used for sign-in activity.  '
            'Includes Browser, Exchange Active Sync, modern clients, IMAP, MAPI, SMTP, and POP.'
        )
        c.argument('conditional_access_status',
                   arg_type=get_enum_type([
                       'success', 'failure', 'notApplied', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'correlation_id',
            type=str,
            help='The request ID sent from the client when the sign-in is '
            'initiated; used to troubleshoot sign-in activity.')
        c.argument(
            'created_date_time',
            help=
            'Date and time (UTC) the sign-in was initiated. Example: midnight on Jan '
            '1, 2014 is reported as \'2014-01-01T00:00:00Z\'.')
        c.argument('device_detail',
                   action=AddDeviceDetail,
                   nargs='*',
                   help='deviceDetail')
        c.argument('ip_address',
                   type=str,
                   help='IP address of the client used to sign in.')
        c.argument('is_interactive',
                   arg_type=get_three_state_flag(),
                   help='Indicates if a sign-in is interactive or '
                   'not.')
        c.argument('resource_display_name',
                   type=str,
                   help='Name of the resource the user signed into.')
        c.argument('resource_id',
                   type=str,
                   help='ID of the resource that the user signed into.')
        c.argument('risk_detail',
                   arg_type=get_enum_type([
                       'none', 'adminGeneratedTemporaryPassword', ''
                       'userPerformedSecuredPasswordChange', ''
                       'userPerformedSecuredPasswordReset', ''
                       'adminConfirmedSigninSafe', 'aiConfirmedSigninSafe', ''
                       'userPassedMFADrivenByRiskBasedPolicy', ''
                       'adminDismissedAllRiskForUser', ''
                       'adminConfirmedSigninCompromised', 'hidden', ''
                       'adminConfirmedUserCompromised', 'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'risk_event_types',
            nargs='*',
            help='Risk event types associated with the sign-in. The possible '
            'values are: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, '
            'malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence,'
            '  generic, and unknownFutureValue.')
        c.argument(
            'risk_event_types_v2',
            nargs='*',
            help='The list of risk event types associated with the sign-in. '
            'Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, '
            'malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence,'
            '  generic, or unknownFutureValue.')
        c.argument('risk_level_aggregated',
                   arg_type=get_enum_type([
                       'low', 'medium', 'high', 'hidden', 'none', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument('risk_level_during_sign_in',
                   arg_type=get_enum_type([
                       'low', 'medium', 'high', 'hidden', 'none', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument('risk_state',
                   arg_type=get_enum_type([
                       'none', 'confirmedSafe', 'remediated', 'dismissed',
                       'atRisk', 'confirmedCompromised', 'unknownFutureValue'
                   ]),
                   help='')
        c.argument('status', action=AddStatus, nargs='*', help='signInStatus')
        c.argument('user_display_name',
                   type=str,
                   help='Display name of the user that initiated the sign-in.')
        c.argument('user_id',
                   type=str,
                   help='ID of the user that initiated the sign-in.')
        c.argument(
            'user_principal_name',
            type=str,
            help='User principal name of the user that initiated the sign-in.')
        c.argument(
            'location_city',
            type=str,
            help=
            'Provides the city where the sign-in originated. This is calculated '
            'using latitude/longitude information from the sign-in activity.')
        c.argument(
            'location_country_or_region',
            type=str,
            help='Provides the country code info (2 letter code) where '
            'the sign-in originated.  This is calculated using latitude/longitude information from the sign-in '
            'activity.')
        c.argument('location_geo_coordinates',
                   action=AddLocationGeoCoordinates,
                   nargs='*',
                   help='geoCoordinates')
        c.argument(
            'location_state',
            type=str,
            help='Provides the State where the sign-in originated. This is '
            'calculated using latitude/longitude information from the sign-in activity.'
        )
        c.argument('target_tenant_id', help='')

    with self.argument_context('reports create-sign-in') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('app_display_name',
                   type=str,
                   help='App name displayed in the Azure Portal.')
        c.argument(
            'app_id',
            type=str,
            help=
            'Unique GUID representing the app ID in the Azure Active Directory.'
        )
        c.argument('applied_conditional_access_policies',
                   action=AddAppliedConditionalAccessPolicies,
                   nargs='*',
                   help=''
                   '')
        c.argument(
            'client_app_used',
            type=str,
            help='Identifies the legacy client used for sign-in activity.  '
            'Includes Browser, Exchange Active Sync, modern clients, IMAP, MAPI, SMTP, and POP.'
        )
        c.argument('conditional_access_status',
                   arg_type=get_enum_type([
                       'success', 'failure', 'notApplied', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'correlation_id',
            type=str,
            help='The request ID sent from the client when the sign-in is '
            'initiated; used to troubleshoot sign-in activity.')
        c.argument(
            'created_date_time',
            help=
            'Date and time (UTC) the sign-in was initiated. Example: midnight on Jan '
            '1, 2014 is reported as \'2014-01-01T00:00:00Z\'.')
        c.argument('device_detail',
                   action=AddDeviceDetail,
                   nargs='*',
                   help='deviceDetail')
        c.argument('ip_address',
                   type=str,
                   help='IP address of the client used to sign in.')
        c.argument('is_interactive',
                   arg_type=get_three_state_flag(),
                   help='Indicates if a sign-in is interactive or '
                   'not.')
        c.argument('resource_display_name',
                   type=str,
                   help='Name of the resource the user signed into.')
        c.argument('resource_id',
                   type=str,
                   help='ID of the resource that the user signed into.')
        c.argument('risk_detail',
                   arg_type=get_enum_type([
                       'none', 'adminGeneratedTemporaryPassword', ''
                       'userPerformedSecuredPasswordChange', ''
                       'userPerformedSecuredPasswordReset', ''
                       'adminConfirmedSigninSafe', 'aiConfirmedSigninSafe', ''
                       'userPassedMFADrivenByRiskBasedPolicy', ''
                       'adminDismissedAllRiskForUser', ''
                       'adminConfirmedSigninCompromised', 'hidden', ''
                       'adminConfirmedUserCompromised', 'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'risk_event_types',
            nargs='*',
            help='Risk event types associated with the sign-in. The possible '
            'values are: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, '
            'malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence,'
            '  generic, and unknownFutureValue.')
        c.argument(
            'risk_event_types_v2',
            nargs='*',
            help='The list of risk event types associated with the sign-in. '
            'Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, '
            'malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence,'
            '  generic, or unknownFutureValue.')
        c.argument('risk_level_aggregated',
                   arg_type=get_enum_type([
                       'low', 'medium', 'high', 'hidden', 'none', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument('risk_level_during_sign_in',
                   arg_type=get_enum_type([
                       'low', 'medium', 'high', 'hidden', 'none', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument('risk_state',
                   arg_type=get_enum_type([
                       'none', 'confirmedSafe', 'remediated', 'dismissed',
                       'atRisk', 'confirmedCompromised', 'unknownFutureValue'
                   ]),
                   help='')
        c.argument('status', action=AddStatus, nargs='*', help='signInStatus')
        c.argument('user_display_name',
                   type=str,
                   help='Display name of the user that initiated the sign-in.')
        c.argument('user_id',
                   type=str,
                   help='ID of the user that initiated the sign-in.')
        c.argument(
            'user_principal_name',
            type=str,
            help='User principal name of the user that initiated the sign-in.')
        c.argument(
            'location_city',
            type=str,
            help=
            'Provides the city where the sign-in originated. This is calculated '
            'using latitude/longitude information from the sign-in activity.')
        c.argument(
            'location_country_or_region',
            type=str,
            help='Provides the country code info (2 letter code) where '
            'the sign-in originated.  This is calculated using latitude/longitude information from the sign-in '
            'activity.')
        c.argument('location_geo_coordinates',
                   action=AddLocationGeoCoordinates,
                   nargs='*',
                   help='geoCoordinates')
        c.argument(
            'location_state',
            type=str,
            help='Provides the State where the sign-in originated. This is '
            'calculated using latitude/longitude information from the sign-in activity.'
        )

    with self.argument_context('reports get-directory-audit') as c:
        c.argument('directory_audit_id',
                   type=str,
                   help='key: id of directoryAudit')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('reports get-restricted-sign-in') as c:
        c.argument('restricted_sign_in_id',
                   type=str,
                   help='key: id of restrictedSignIn')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('reports get-sign-in') as c:
        c.argument('sign_in_id', type=str, help='key: id of signIn')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('reports list-directory-audit') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('reports list-restricted-sign-in') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('reports list-sign-in') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('reports update-directory-audit') as c:
        c.argument('directory_audit_id',
                   type=str,
                   help='key: id of directoryAudit')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument(
            'activity_date_time',
            help=
            'Indicates the date and time the activity was performed. The Timestamp '
            'type is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '
            '\'2014-01-01T00:00:00Z\'')
        c.argument(
            'activity_display_name',
            type=str,
            help='Indicates the activity name or the operation name '
            '(examples: \'Create User\' and \'Add member to group\'). For full list, see Azure AD activity '
            'list.')
        c.argument('additional_details',
                   action=AddAdditionalDetails,
                   nargs='*',
                   help='Indicates additional details on '
                   'the activity.')
        c.argument(
            'category',
            type=str,
            help=
            'Indicates which resource category that\'s targeted by the activity. '
            '(For example: User Management, Group Management etc..)')
        c.argument(
            'correlation_id',
            type=str,
            help=
            'Indicates a unique ID that helps correlate activities that span '
            'across various services. Can be used to trace logs across services.'
        )
        c.argument(
            'logged_by_service',
            type=str,
            help='Indicates information on which service initiated the activity '
            '(For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft '
            'Identity Manager, Privileged Identity Management.')
        c.argument('operation_type', type=str, help='')
        c.argument('result',
                   arg_type=get_enum_type(
                       ['success', 'failure', 'timeout',
                        'unknownFutureValue']),
                   help='')
        c.argument(
            'result_reason',
            type=str,
            help='Describes cause of \'failure\' or \'timeout\' results.')
        c.argument(
            'target_resources',
            action=AddTargetResources,
            nargs='*',
            help='Indicates information on which '
            'resource was changed due to the activity. Target Resource Type can be User, Device, Directory, '
            'App, Role, Group, Policy or Other.')
        c.argument('initiated_by_app',
                   action=AddInitiatedByApp,
                   nargs='*',
                   help='appIdentity')
        c.argument('initiated_by_user',
                   action=AddInitiatedByUser,
                   nargs='*',
                   help='userIdentity')

    with self.argument_context('reports update-restricted-sign-in') as c:
        c.argument('restricted_sign_in_id',
                   type=str,
                   help='key: id of restrictedSignIn')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('app_display_name',
                   type=str,
                   help='App name displayed in the Azure Portal.')
        c.argument(
            'app_id',
            type=str,
            help=
            'Unique GUID representing the app ID in the Azure Active Directory.'
        )
        c.argument('applied_conditional_access_policies',
                   action=AddAppliedConditionalAccessPolicies,
                   nargs='*',
                   help=''
                   '')
        c.argument(
            'client_app_used',
            type=str,
            help='Identifies the legacy client used for sign-in activity.  '
            'Includes Browser, Exchange Active Sync, modern clients, IMAP, MAPI, SMTP, and POP.'
        )
        c.argument('conditional_access_status',
                   arg_type=get_enum_type([
                       'success', 'failure', 'notApplied', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'correlation_id',
            type=str,
            help='The request ID sent from the client when the sign-in is '
            'initiated; used to troubleshoot sign-in activity.')
        c.argument(
            'created_date_time',
            help=
            'Date and time (UTC) the sign-in was initiated. Example: midnight on Jan '
            '1, 2014 is reported as \'2014-01-01T00:00:00Z\'.')
        c.argument('device_detail',
                   action=AddDeviceDetail,
                   nargs='*',
                   help='deviceDetail')
        c.argument('ip_address',
                   type=str,
                   help='IP address of the client used to sign in.')
        c.argument('is_interactive',
                   arg_type=get_three_state_flag(),
                   help='Indicates if a sign-in is interactive or '
                   'not.')
        c.argument('resource_display_name',
                   type=str,
                   help='Name of the resource the user signed into.')
        c.argument('resource_id',
                   type=str,
                   help='ID of the resource that the user signed into.')
        c.argument('risk_detail',
                   arg_type=get_enum_type([
                       'none', 'adminGeneratedTemporaryPassword', ''
                       'userPerformedSecuredPasswordChange', ''
                       'userPerformedSecuredPasswordReset', ''
                       'adminConfirmedSigninSafe', 'aiConfirmedSigninSafe', ''
                       'userPassedMFADrivenByRiskBasedPolicy', ''
                       'adminDismissedAllRiskForUser', ''
                       'adminConfirmedSigninCompromised', 'hidden', ''
                       'adminConfirmedUserCompromised', 'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'risk_event_types',
            nargs='*',
            help='Risk event types associated with the sign-in. The possible '
            'values are: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, '
            'malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence,'
            '  generic, and unknownFutureValue.')
        c.argument(
            'risk_event_types_v2',
            nargs='*',
            help='The list of risk event types associated with the sign-in. '
            'Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, '
            'malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence,'
            '  generic, or unknownFutureValue.')
        c.argument('risk_level_aggregated',
                   arg_type=get_enum_type([
                       'low', 'medium', 'high', 'hidden', 'none', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument('risk_level_during_sign_in',
                   arg_type=get_enum_type([
                       'low', 'medium', 'high', 'hidden', 'none', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument('risk_state',
                   arg_type=get_enum_type([
                       'none', 'confirmedSafe', 'remediated', 'dismissed',
                       'atRisk', 'confirmedCompromised', 'unknownFutureValue'
                   ]),
                   help='')
        c.argument('status', action=AddStatus, nargs='*', help='signInStatus')
        c.argument('user_display_name',
                   type=str,
                   help='Display name of the user that initiated the sign-in.')
        c.argument('user_id',
                   type=str,
                   help='ID of the user that initiated the sign-in.')
        c.argument(
            'user_principal_name',
            type=str,
            help='User principal name of the user that initiated the sign-in.')
        c.argument(
            'location_city',
            type=str,
            help=
            'Provides the city where the sign-in originated. This is calculated '
            'using latitude/longitude information from the sign-in activity.')
        c.argument(
            'location_country_or_region',
            type=str,
            help='Provides the country code info (2 letter code) where '
            'the sign-in originated.  This is calculated using latitude/longitude information from the sign-in '
            'activity.')
        c.argument('location_geo_coordinates',
                   action=AddLocationGeoCoordinates,
                   nargs='*',
                   help='geoCoordinates')
        c.argument(
            'location_state',
            type=str,
            help='Provides the State where the sign-in originated. This is '
            'calculated using latitude/longitude information from the sign-in activity.'
        )
        c.argument('target_tenant_id', help='')

    with self.argument_context('reports update-sign-in') as c:
        c.argument('sign_in_id', type=str, help='key: id of signIn')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('app_display_name',
                   type=str,
                   help='App name displayed in the Azure Portal.')
        c.argument(
            'app_id',
            type=str,
            help=
            'Unique GUID representing the app ID in the Azure Active Directory.'
        )
        c.argument('applied_conditional_access_policies',
                   action=AddAppliedConditionalAccessPolicies,
                   nargs='*',
                   help=''
                   '')
        c.argument(
            'client_app_used',
            type=str,
            help='Identifies the legacy client used for sign-in activity.  '
            'Includes Browser, Exchange Active Sync, modern clients, IMAP, MAPI, SMTP, and POP.'
        )
        c.argument('conditional_access_status',
                   arg_type=get_enum_type([
                       'success', 'failure', 'notApplied', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'correlation_id',
            type=str,
            help='The request ID sent from the client when the sign-in is '
            'initiated; used to troubleshoot sign-in activity.')
        c.argument(
            'created_date_time',
            help=
            'Date and time (UTC) the sign-in was initiated. Example: midnight on Jan '
            '1, 2014 is reported as \'2014-01-01T00:00:00Z\'.')
        c.argument('device_detail',
                   action=AddDeviceDetail,
                   nargs='*',
                   help='deviceDetail')
        c.argument('ip_address',
                   type=str,
                   help='IP address of the client used to sign in.')
        c.argument('is_interactive',
                   arg_type=get_three_state_flag(),
                   help='Indicates if a sign-in is interactive or '
                   'not.')
        c.argument('resource_display_name',
                   type=str,
                   help='Name of the resource the user signed into.')
        c.argument('resource_id',
                   type=str,
                   help='ID of the resource that the user signed into.')
        c.argument('risk_detail',
                   arg_type=get_enum_type([
                       'none', 'adminGeneratedTemporaryPassword', ''
                       'userPerformedSecuredPasswordChange', ''
                       'userPerformedSecuredPasswordReset', ''
                       'adminConfirmedSigninSafe', 'aiConfirmedSigninSafe', ''
                       'userPassedMFADrivenByRiskBasedPolicy', ''
                       'adminDismissedAllRiskForUser', ''
                       'adminConfirmedSigninCompromised', 'hidden', ''
                       'adminConfirmedUserCompromised', 'unknownFutureValue'
                   ]),
                   help='')
        c.argument(
            'risk_event_types',
            nargs='*',
            help='Risk event types associated with the sign-in. The possible '
            'values are: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, '
            'malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence,'
            '  generic, and unknownFutureValue.')
        c.argument(
            'risk_event_types_v2',
            nargs='*',
            help='The list of risk event types associated with the sign-in. '
            'Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, '
            'malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence,'
            '  generic, or unknownFutureValue.')
        c.argument('risk_level_aggregated',
                   arg_type=get_enum_type([
                       'low', 'medium', 'high', 'hidden', 'none', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument('risk_level_during_sign_in',
                   arg_type=get_enum_type([
                       'low', 'medium', 'high', 'hidden', 'none', ''
                       'unknownFutureValue'
                   ]),
                   help='')
        c.argument('risk_state',
                   arg_type=get_enum_type([
                       'none', 'confirmedSafe', 'remediated', 'dismissed',
                       'atRisk', 'confirmedCompromised', 'unknownFutureValue'
                   ]),
                   help='')
        c.argument('status', action=AddStatus, nargs='*', help='signInStatus')
        c.argument('user_display_name',
                   type=str,
                   help='Display name of the user that initiated the sign-in.')
        c.argument('user_id',
                   type=str,
                   help='ID of the user that initiated the sign-in.')
        c.argument(
            'user_principal_name',
            type=str,
            help='User principal name of the user that initiated the sign-in.')
        c.argument(
            'location_city',
            type=str,
            help=
            'Provides the city where the sign-in originated. This is calculated '
            'using latitude/longitude information from the sign-in activity.')
        c.argument(
            'location_country_or_region',
            type=str,
            help='Provides the country code info (2 letter code) where '
            'the sign-in originated.  This is calculated using latitude/longitude information from the sign-in '
            'activity.')
        c.argument('location_geo_coordinates',
                   action=AddLocationGeoCoordinates,
                   nargs='*',
                   help='geoCoordinates')
        c.argument(
            'location_state',
            type=str,
            help='Provides the State where the sign-in originated. This is '
            'calculated using latitude/longitude information from the sign-in activity.'
        )

    with self.argument_context('reports get-report-root') as c:
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('reports update-report-root') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')

    with self.argument_context('reports get-email-activity-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-email-activity-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-email-activity-user-detail-ddb2') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-email-activity-user-detail-fe32') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-email-app-usage-app-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-email-app-usage-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-email-app-usage-user-detail546-b') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-email-app-usage-user-detail62-ec') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-email-app-usage-version-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-mailbox-usage-detail') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-mailbox-usage-mailbox-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-mailbox-usage-quota-status-mailbox-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-mailbox-usage-storage') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-office365-active-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-office365-active-user-detail-d389') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-office365-active-user-detail68-ad') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-office365-group-activity-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-office365-group-activity-detail38-f6') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-office365-group-activity-detail81-cc') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-office365-group-activity-file-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-office365-group-activity-group-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-office365-group-activity-storage') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-office365-service-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-one-drive-activity-file-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-one-drive-activity-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-one-drive-activity-user-detail-c424') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-one-drive-activity-user-detail05-f1') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-one-drive-usage-account-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-one-drive-usage-account-detail-dd7-f') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-one-drive-usage-account-detail-e827') as c:
        c.argument('date', help='')

    with self.argument_context('reports get-one-drive-usage-file-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-one-drive-usage-storage') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-share-point-activity-file-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-share-point-activity-page') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-share-point-activity-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-share-point-activity-user-detail-b778') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-share-point-activity-user-detail-f3-be') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-share-point-site-usage-detail-d27-a') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-share-point-site-usage-detail204-b') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-share-point-site-usage-file-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-share-point-site-usage-page') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-share-point-site-usage-site-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-share-point-site-usage-storage') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-activity-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-activity-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-activity-user-detail-e4-c9') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-skype-for-business-activity-user-detail744-e') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-device-usage-distribution-user-count'
    ) as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-device-usage-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-device-usage-user-detail-a692'
    ) as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-skype-for-business-device-usage-user-detail-e753'
    ) as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-organizer-activity-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-organizer-activity-minute-count'
    ) as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-organizer-activity-user-count'
    ) as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-participant-activity-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-participant-activity-minute-count'
    ) as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-participant-activity-user-count'
    ) as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-peer-to-peer-activity-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-peer-to-peer-activity-minute-count'
    ) as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-skype-for-business-peer-to-peer-activity-user-count'
    ) as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-team-device-usage-distribution-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-team-device-usage-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-team-device-usage-user-detail7148') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-team-device-usage-user-detail7565') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-team-user-activity-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-team-user-activity-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-team-user-activity-user-detail-a3-f1') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-team-user-activity-user-detail-eb13') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-yammer-activity-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context('reports get-yammer-activity-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-yammer-activity-user-detail-ac30') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-yammer-activity-user-detail15-a5') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-yammer-device-usage-distribution-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-yammer-device-usage-user-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-yammer-device-usage-user-detail-cfad') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-yammer-device-usage-user-detail-d0-ac') as c:
        c.argument('date', help='')

    with self.argument_context('reports get-yammer-group-activity-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-yammer-group-activity-detail-da9-a') as c:
        c.argument('date', help='')

    with self.argument_context(
            'reports get-yammer-group-activity-detail0-d7-d') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports get-yammer-group-activity-group-count') as c:
        c.argument('period', type=str, help='')

    with self.argument_context(
            'reports managed-device-enrollment-failure-details2-b3-d') as c:
        c.argument('skip', type=int, help='')
        c.argument('top', type=int, help='')
        c.argument('filter_', options_list=['--filter'], type=str, help='')
        c.argument('skip_token', type=str, help='')

    with self.argument_context(
            'reports managed-device-enrollment-top-failure-afd1') as c:
        c.argument('period', type=str, help='')
示例#7
0
def load_arguments(self, _):

    with self.argument_context('search get-external') as c:
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('search update-external') as c:
        c.argument('connections', type=validate_file_or_dict, help=' Expected value: json-string/@json-file.')

    with self.argument_context('search delete') as c:
        c.argument('external_connection_id', type=str, help='key: id of externalConnection')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('search create-connection') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('configuration', action=AddConfiguration, nargs='*', help='configuration')
        c.argument('description', type=str, help='')
        c.argument('name', type=str, help='')
        c.argument('state', arg_type=get_enum_type(['draft', 'ready', 'obsolete', 'limitExceeded',
                                                    'unknownFutureValue']), help='')
        c.argument('groups', action=AddGroups, nargs='*', help='')
        c.argument('items', type=validate_file_or_dict, help=' Expected value: json-string/@json-file.')
        c.argument('operations', type=validate_file_or_dict, help=' Expected value: json-string/@json-file.')
        c.argument('schema_id', type=str, help='Read-only.')
        c.argument('schema_base_type', type=str, help='')
        c.argument('schema_properties', action=AddSchemaProperties, nargs='*', help='')

    with self.argument_context('search get-connection') as c:
        c.argument('external_connection_id', type=str, help='key: id of externalConnection')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('search list-connection') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('search update-connection') as c:
        c.argument('external_connection_id', type=str, help='key: id of externalConnection')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('configuration', action=AddConfiguration, nargs='*', help='configuration')
        c.argument('description', type=str, help='')
        c.argument('name', type=str, help='')
        c.argument('state', arg_type=get_enum_type(['draft', 'ready', 'obsolete', 'limitExceeded',
                                                    'unknownFutureValue']), help='')
        c.argument('groups', action=AddGroups, nargs='*', help='')
        c.argument('items', type=validate_file_or_dict, help=' Expected value: json-string/@json-file.')
        c.argument('operations', type=validate_file_or_dict, help=' Expected value: json-string/@json-file.')
        c.argument('schema_id', type=str, help='Read-only.')
        c.argument('schema_base_type', type=str, help='')
        c.argument('schema_properties', action=AddSchemaProperties, nargs='*', help='')

    with self.argument_context('search get-search-entity') as c:
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('search update-search-entity') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')

    with self.argument_context('search query') as c:
        c.argument('requests', type=validate_file_or_dict, help=' Expected value: json-string/@json-file.')
示例#8
0
def load_arguments(self, _):

    with self.argument_context('usersfunctions recent') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('user', type=str, help='')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_group_id',
                   type=str,
                   help='key: id of calendarGroup')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('user', type=str, help='')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('calendar_id', type=str, help='key: id of calendar')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('contact_folder_id',
                   type=str,
                   help='key: id of contactFolder')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('contact_folder_id',
                   type=str,
                   help='key: id of contactFolder')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context(
            'usersfunctions allowed-calendar-sharing-role') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')
        c.argument('user', type=str, help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('event_id', type=str, help='key: id of event')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('mail_folder_id', type=str, help='key: id of mailFolder')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions get-user-id-with-flagged-app-registration') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions get-file-vault-key') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('managed_device_id',
                   type=str,
                   help='key: id of managedDevice')

    with self.argument_context(
            'usersfunctions get-non-compliant-setting') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('managed_device_id',
                   type=str,
                   help='key: id of managedDevice')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions export-device-and-app-management-data-d390') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions export-device-and-app-management-data623-c') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('skip', type=int, help='')
        c.argument('top', type=int, help='')

    with self.argument_context('usersfunctions find-room-ac49') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('room_list', type=str, help='')

    with self.argument_context('usersfunctions find-room-d266') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions find-room-list') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions get-effective-device-enrollment-configuration'
    ) as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions get-logged-on-managed-device') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions get-managed-app-diagnostic-statuses') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions get-managed-app-policy') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions get-managed-device-with-app-failure') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions get-managed-device-with-failed-or-pending-app'
    ) as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions is-managed-app-user-blocked') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions reminder-view') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('start_date_time', type=str, help='')
        c.argument('end_date_time', type=str, help='')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('notebook_id', type=str, help='key: id of notebook')
        c.argument('section_group_id',
                   type=str,
                   help='key: id of sectionGroup')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('notebook_id', type=str, help='key: id of notebook')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions get-recent-notebook') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('include_personal_notebooks',
                   arg_type=get_three_state_flag(),
                   help='')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')
        c.argument('section_group_id',
                   type=str,
                   help='key: id of sectionGroup')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id1', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id1', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')
        c.argument('onenote_page_id1', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('section_group_id',
                   type=str,
                   help='key: id of sectionGroup')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('section_group_id',
                   type=str,
                   help='key: id of sectionGroup')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions preview') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('onenote_section_id',
                   type=str,
                   help='key: id of onenoteSection')
        c.argument('onenote_page_id', type=str, help='key: id of onenotePage')

    with self.argument_context('usersfunctions supported-language') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions supported-time-zone-ee48') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context(
            'usersfunctions supported-time-zones51-c6') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('time_zone_standard',
                   arg_type=get_enum_type(['windows', 'iana']),
                   help='')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('todo_task_list_id',
                   type=str,
                   help='key: id of todoTaskList')

    with self.argument_context('usersfunctions delta') as c:
        c.argument('user_id', type=str, help='key: id of user')
示例#9
0
def load_arguments(self, _):

    with self.argument_context('education get-education-root') as c:
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education update-education-root') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('classes', type=validate_file_or_dict, help='Read-only. Nullable. Expected value: '
                   'json-string/@json-file.')
        c.argument('me', type=validate_file_or_dict, help='educationUser Expected value: json-string/@json-file.')
        c.argument('schools', type=validate_file_or_dict, help='Read-only. Nullable. Expected value: '
                   'json-string/@json-file.')
        c.argument('users', type=validate_file_or_dict, help='Read-only. Nullable. Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education delete') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('if_match', type=str, help='ETag')
        c.argument('education_school_id', type=str, help='key: id of educationSchool')
        c.argument('education_user_id', type=str, help='key: id of educationUser')

    with self.argument_context('education create-class') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('class_code', type=str, help='Class code used by the school to identify the class.')
        c.argument('description', type=str, help='Description of the class.')
        c.argument('display_name', type=str, help='Name of the class.')
        c.argument('external_id', type=str, help='ID of the class from the syncing system.')
        c.argument('external_name', type=str, help='Name of the class in the syncing system.')
        c.argument('external_source', arg_type=get_enum_type(['sis', 'manual', 'unknownFutureValue']), help='')
        c.argument('mail_nickname', type=str, help='Mail name for sending email to all members, if this is enabled.')
        c.argument('term', action=AddTerm, nargs='*', help='educationTerm')
        c.argument('group', type=validate_file_or_dict, help='Represents an Azure Active Directory object. The '
                   'directoryObject type is the base type for many other directory entity types. Expected value: '
                   'json-string/@json-file.')
        c.argument('members', type=validate_file_or_dict, help='All users in the class. Nullable. Expected value: '
                   'json-string/@json-file.')
        c.argument('schools', type=validate_file_or_dict, help='All schools that this class is associated with. '
                   'Nullable. Expected value: json-string/@json-file.')
        c.argument('teachers', type=validate_file_or_dict, help='All teachers in the class. Nullable. Expected value: '
                   'json-string/@json-file.')
        c.argument('created_by_application', action=AddCreatedByApplication, nargs='*', help='identity')
        c.argument('created_by_device', action=AddCreatedByApplication, nargs='*', help='identity')
        c.argument('created_by_user', action=AddCreatedByApplication, nargs='*', help='identity')

    with self.argument_context('education create-school') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('description', type=str, help='Organization description.')
        c.argument('display_name', type=str, help='Organization display name.')
        c.argument('external_source', arg_type=get_enum_type(['sis', 'manual', 'unknownFutureValue']), help='')
        c.argument('address', action=AddAddress, nargs='*', help='physicalAddress')
        c.argument('external_id', type=str, help='ID of school in syncing system.')
        c.argument('external_principal_id', type=str, help='ID of principal in syncing system.')
        c.argument('fax', type=str, help='')
        c.argument('highest_grade', type=str, help='Highest grade taught.')
        c.argument('lowest_grade', type=str, help='Lowest grade taught.')
        c.argument('phone', type=str, help='Phone number of school.')
        c.argument('principal_email', type=str, help='Email address of the principal.')
        c.argument('principal_name', type=str, help='Name of the principal.')
        c.argument('school_number', type=str, help='School Number.')
        c.argument('classes', type=validate_file_or_dict, help='Classes taught at the school. Nullable. Expected '
                   'value: json-string/@json-file.')
        c.argument('users', type=validate_file_or_dict, help='Users in the school. Nullable. Expected value: '
                   'json-string/@json-file.')
        c.argument('created_by_application', action=AddCreatedByApplication, nargs='*', help='identity')
        c.argument('created_by_device', action=AddCreatedByApplication, nargs='*', help='identity')
        c.argument('created_by_user', action=AddCreatedByApplication, nargs='*', help='identity')

    with self.argument_context('education create-user') as c:
        c.argument('body', type=validate_file_or_dict, help='New navigation property Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education get-class') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education get-me') as c:
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education get-school') as c:
        c.argument('education_school_id', type=str, help='key: id of educationSchool')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education get-user') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education list-class') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education list-school') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education list-user') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education update-class') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('class_code', type=str, help='Class code used by the school to identify the class.')
        c.argument('description', type=str, help='Description of the class.')
        c.argument('display_name', type=str, help='Name of the class.')
        c.argument('external_id', type=str, help='ID of the class from the syncing system.')
        c.argument('external_name', type=str, help='Name of the class in the syncing system.')
        c.argument('external_source', arg_type=get_enum_type(['sis', 'manual', 'unknownFutureValue']), help='')
        c.argument('mail_nickname', type=str, help='Mail name for sending email to all members, if this is enabled.')
        c.argument('term', action=AddTerm, nargs='*', help='educationTerm')
        c.argument('group', type=validate_file_or_dict, help='Represents an Azure Active Directory object. The '
                   'directoryObject type is the base type for many other directory entity types. Expected value: '
                   'json-string/@json-file.')
        c.argument('members', type=validate_file_or_dict, help='All users in the class. Nullable. Expected value: '
                   'json-string/@json-file.')
        c.argument('schools', type=validate_file_or_dict, help='All schools that this class is associated with. '
                   'Nullable. Expected value: json-string/@json-file.')
        c.argument('teachers', type=validate_file_or_dict, help='All teachers in the class. Nullable. Expected value: '
                   'json-string/@json-file.')
        c.argument('created_by_application', action=AddCreatedByApplication, nargs='*', help='identity')
        c.argument('created_by_device', action=AddCreatedByApplication, nargs='*', help='identity')
        c.argument('created_by_user', action=AddCreatedByApplication, nargs='*', help='identity')

    with self.argument_context('education update-me') as c:
        c.argument('body', type=validate_file_or_dict, help='New navigation property values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education update-school') as c:
        c.argument('education_school_id', type=str, help='key: id of educationSchool')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('description', type=str, help='Organization description.')
        c.argument('display_name', type=str, help='Organization display name.')
        c.argument('external_source', arg_type=get_enum_type(['sis', 'manual', 'unknownFutureValue']), help='')
        c.argument('address', action=AddAddress, nargs='*', help='physicalAddress')
        c.argument('external_id', type=str, help='ID of school in syncing system.')
        c.argument('external_principal_id', type=str, help='ID of principal in syncing system.')
        c.argument('fax', type=str, help='')
        c.argument('highest_grade', type=str, help='Highest grade taught.')
        c.argument('lowest_grade', type=str, help='Lowest grade taught.')
        c.argument('phone', type=str, help='Phone number of school.')
        c.argument('principal_email', type=str, help='Email address of the principal.')
        c.argument('principal_name', type=str, help='Name of the principal.')
        c.argument('school_number', type=str, help='School Number.')
        c.argument('classes', type=validate_file_or_dict, help='Classes taught at the school. Nullable. Expected '
                   'value: json-string/@json-file.')
        c.argument('users', type=validate_file_or_dict, help='Users in the school. Nullable. Expected value: '
                   'json-string/@json-file.')
        c.argument('created_by_application', action=AddCreatedByApplication, nargs='*', help='identity')
        c.argument('created_by_device', action=AddCreatedByApplication, nargs='*', help='identity')
        c.argument('created_by_user', action=AddCreatedByApplication, nargs='*', help='identity')

    with self.argument_context('education update-user') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('body', type=validate_file_or_dict, help='New navigation property values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education delete') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('education create-ref-member') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education create-ref-school') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education create-ref-teacher') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education get-group') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education get-ref-group') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')

    with self.argument_context('education list-member') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education list-ref-member') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('education list-ref-school') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('education list-ref-teacher') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('education list-school') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education list-teacher') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education set-ref-group') as c:
        c.argument('education_class_id', type=str, help='key: id of educationClass')
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education delete') as c:
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('education create-ref-class') as c:
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education create-ref-school') as c:
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education get-user') as c:
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education list-class') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education list-ref-class') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('education list-ref-school') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('education list-school') as c:
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education set-ref-user') as c:
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education create-ref-class') as c:
        c.argument('education_school_id', type=str, help='key: id of educationSchool')
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education create-ref-user') as c:
        c.argument('education_school_id', type=str, help='key: id of educationSchool')
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education list-class') as c:
        c.argument('education_school_id', type=str, help='key: id of educationSchool')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education list-ref-class') as c:
        c.argument('education_school_id', type=str, help='key: id of educationSchool')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('education list-ref-user') as c:
        c.argument('education_school_id', type=str, help='key: id of educationSchool')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('education list-user') as c:
        c.argument('education_school_id', type=str, help='key: id of educationSchool')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education delete') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('education create-ref-class') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education create-ref-school') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('education get-ref-user') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')

    with self.argument_context('education get-user') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education list-class') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education list-ref-class') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('education list-ref-school') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('orderby', nargs='*', help='Order items by property values')

    with self.argument_context('education list-school') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('orderby', nargs='*', help='Order items by property values')
        c.argument('select', nargs='*', help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('education set-ref-user') as c:
        c.argument('education_user_id', type=str, help='key: id of educationUser')
        c.argument('body', type=validate_file_or_dict, help='New navigation property ref values Expected value: '
                   'json-string/@json-file.')