コード例 #1
0
def load_arguments(self, _):

    with self.argument_context('directoryobjects delete') as c:
        c.argument('directory_object_id', type=str, help='key: id of directoryObject')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('directoryobjects create-directory-object') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('deleted_date_time', help='')

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

    with self.argument_context('directoryobjects list-directory-object') 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('directoryobjects update-directory-object') as c:
        c.argument('directory_object_id', type=str, help='key: id of directoryObject')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('deleted_date_time', help='')

    with self.argument_context('directoryobjects check-member-group') as c:
        c.argument('directory_object_id', type=str, help='key: id of directoryObject')
        c.argument('group_ids', nargs='*', help='')

    with self.argument_context('directoryobjects check-member-object') as c:
        c.argument('directory_object_id', type=str, help='key: id of directoryObject')
        c.argument('ids', nargs='*', help='')

    with self.argument_context('directoryobjects get-available-extension-property') as c:
        c.argument('is_synced_from_on_premises', arg_type=get_three_state_flag(), help='')

    with self.argument_context('directoryobjects get-by-id') as c:
        c.argument('ids', nargs='*', help='')
        c.argument('types', nargs='*', help='')

    with self.argument_context('directoryobjects get-member-group') as c:
        c.argument('directory_object_id', type=str, help='key: id of directoryObject')
        c.argument('security_enabled_only', arg_type=get_three_state_flag(), help='')

    with self.argument_context('directoryobjects get-member-object') as c:
        c.argument('directory_object_id', type=str, help='key: id of directoryObject')
        c.argument('security_enabled_only', arg_type=get_three_state_flag(), help='')

    with self.argument_context('directoryobjects restore') as c:
        c.argument('directory_object_id', type=str, help='key: id of directoryObject')

    with self.argument_context('directoryobjects validate-property') as c:
        c.argument('entity_type', type=str, help='')
        c.argument('display_name', type=str, help='')
        c.argument('mail_nickname', type=str, help='')
        c.argument('on_behalf_of_user_id', help='')
コード例 #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
ファイル: _params.py プロジェクト: ezkemboi/msgraph-cli
def load_arguments(self, _):

    with self.argument_context('changenotifications delete') as c:
        c.argument('subscription_id', type=str, help='key: id of subscription', id_part='subscription')
        c.argument('if_match', type=str, help='ETag')

    with self.argument_context('changenotifications create-subscription') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('application_id', type=str, help='Identifier of the application used to create the subscription. '
                   'Read-only.')
        c.argument('change_type', type=str, help='Required. Indicates the type of change in the subscribed resource '
                   'that will raise a change notification. The supported values are: created, updated, deleted. '
                   'Multiple values can be combined using a comma-separated list.Note: Drive root item and list change '
                   'notifications support only the updated changeType. User and group change notifications support '
                   'updated and deleted changeType.')
        c.argument('client_state', type=str, help='Optional. Specifies the value of the clientState property sent by '
                   'the service in each change notification. The maximum length is 128 characters. The client can '
                   'check that the change notification came from the service by comparing the value of the clientState '
                   'property sent with the subscription with the value of the clientState property received with each '
                   'change notification.')
        c.argument('creator_id', type=str, help='Identifier of the user or service principal that created the '
                   'subscription. If the app used delegated permissions to create the subscription, this field '
                   'contains the id of the signed-in user the app called on behalf of. If the app used application '
                   'permissions, this field contains the id of the service principal corresponding to the app. '
                   'Read-only.')
        c.argument('encryption_certificate', type=str, help='A base64-encoded representation of a certificate with a '
                   'public key used to encrypt resource data in change notifications. Optional. Required when '
                   'includeResourceData is true.')
        c.argument('encryption_certificate_id', type=str, help='A custom app-provided identifier to help identify the '
                   'certificate needed to decrypt resource data. Optional.')
        c.argument('expiration_date_time', help='Required. Specifies the date and time when the webhook subscription '
                   'expires. The time is in UTC, and can be an amount of time from subscription creation that varies '
                   'for the resource subscribed to.  See the table below for maximum supported subscription length of '
                   'time.')
        c.argument('include_resource_data', arg_type=get_three_state_flag(), help='When set to true, change '
                   'notifications include resource data (such as content of a chat message). Optional.')
        c.argument('latest_supported_tls_version', type=str, help='')
        c.argument('lifecycle_notification_url', type=str, help='')
        c.argument('notification_url', type=str, help='Required. The URL of the endpoint that will receive the change '
                   'notifications. This URL must make use of the HTTPS protocol.')
        c.argument('resource', type=str, help='Required. Specifies the resource that will be monitored for changes. Do '
                   'not include the base URL (https://graph.microsoft.com/v1.0/). See the possible resource path '
                   'values for each supported resource.')

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

    with self.argument_context('changenotifications list-subscription') 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('changenotifications update-subscription') as c:
        c.argument('subscription_id', type=str, help='key: id of subscription', id_part='subscription')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('application_id', type=str, help='Identifier of the application used to create the subscription. '
                   'Read-only.')
        c.argument('change_type', type=str, help='Required. Indicates the type of change in the subscribed resource '
                   'that will raise a change notification. The supported values are: created, updated, deleted. '
                   'Multiple values can be combined using a comma-separated list.Note: Drive root item and list change '
                   'notifications support only the updated changeType. User and group change notifications support '
                   'updated and deleted changeType.')
        c.argument('client_state', type=str, help='Optional. Specifies the value of the clientState property sent by '
                   'the service in each change notification. The maximum length is 128 characters. The client can '
                   'check that the change notification came from the service by comparing the value of the clientState '
                   'property sent with the subscription with the value of the clientState property received with each '
                   'change notification.')
        c.argument('creator_id', type=str, help='Identifier of the user or service principal that created the '
                   'subscription. If the app used delegated permissions to create the subscription, this field '
                   'contains the id of the signed-in user the app called on behalf of. If the app used application '
                   'permissions, this field contains the id of the service principal corresponding to the app. '
                   'Read-only.')
        c.argument('encryption_certificate', type=str, help='A base64-encoded representation of a certificate with a '
                   'public key used to encrypt resource data in change notifications. Optional. Required when '
                   'includeResourceData is true.')
        c.argument('encryption_certificate_id', type=str, help='A custom app-provided identifier to help identify the '
                   'certificate needed to decrypt resource data. Optional.')
        c.argument('expiration_date_time', help='Required. Specifies the date and time when the webhook subscription '
                   'expires. The time is in UTC, and can be an amount of time from subscription creation that varies '
                   'for the resource subscribed to.  See the table below for maximum supported subscription length of '
                   'time.')
        c.argument('include_resource_data', arg_type=get_three_state_flag(), help='When set to true, change '
                   'notifications include resource data (such as content of a chat message). Optional.')
        c.argument('latest_supported_tls_version', type=str, help='')
        c.argument('lifecycle_notification_url', type=str, help='')
        c.argument('notification_url', type=str, help='Required. The URL of the endpoint that will receive the change '
                   'notifications. This URL must make use of the HTTPS protocol.')
        c.argument('resource', type=str, help='Required. Specifies the resource that will be monitored for changes. Do '
                   'not include the base URL (https://graph.microsoft.com/v1.0/). See the possible resource path '
                   'values for each supported resource.')
コード例 #4
0
def load_arguments(self, _):

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

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

    with self.argument_context('security delete') as c:
        c.argument('alert_id', type=str, help='key: id of alert')
        c.argument('if_match', type=str, help='ETag')
        c.argument('secure_score_control_profile_id',
                   type=str,
                   help='key: id of secureScoreControlProfile')
        c.argument('secure_score_id', type=str, help='key: id of secureScore')

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

    with self.argument_context('security create-secure-score') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('active_user_count',
                   type=int,
                   help='Active user count of the given tenant.')
        c.argument(
            'average_comparative_scores',
            action=AddAverageComparativeScores,
            nargs='*',
            help='Average score by '
            'different scopes (for example, average by industry, average by seating) and control category '
            '(Identity, Data, Device, Apps, Infrastructure) within the scope.')
        c.argument('azure_tenant_id',
                   type=str,
                   help='GUID string for tenant ID.')
        c.argument('control_scores',
                   action=AddControlScores,
                   nargs='*',
                   help='Contains tenant scores for a set of '
                   'controls.')
        c.argument('created_date_time',
                   help='The date when the entity is created.')
        c.argument('current_score',
                   type=float,
                   help='Tenant current attained score on specified date.')
        c.argument(
            'enabled_services',
            nargs='*',
            help='Microsoft-provided services for the tenant (for example, '
            'Exchange online, Skype, Sharepoint).')
        c.argument('licensed_user_count',
                   type=int,
                   help='Licensed user count of the given tenant.')
        c.argument('max_score',
                   type=float,
                   help='Tenant maximum possible score on specified date.')
        c.argument('vendor_information',
                   action=AddVendorInformation,
                   nargs='*',
                   help='securityVendorInformation')

    with self.argument_context(
            'security create-secure-score-control-profile') as c:
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('action_type',
                   type=str,
                   help='Control action type (Config, Review, Behavior).')
        c.argument('action_url',
                   type=str,
                   help='URL to where the control can be actioned.')
        c.argument('azure_tenant_id',
                   type=str,
                   help='GUID string for tenant ID.')
        c.argument('compliance_information',
                   action=AddComplianceInformation,
                   nargs='*',
                   help='')
        c.argument(
            'control_category',
            type=str,
            help='Control action category (Identity, Data, Device, Apps, '
            'Infrastructure).')
        c.argument('control_state_updates',
                   action=AddControlStateUpdates,
                   nargs='*',
                   help='')
        c.argument('deprecated',
                   arg_type=get_three_state_flag(),
                   help='Flag to indicate if a control is depreciated.')
        c.argument(
            'implementation_cost',
            type=str,
            help='Resource cost of implemmentating control (low, moderate, '
            'high).')
        c.argument(
            'last_modified_date_time',
            help=
            'Time at which the control profile entity was last modified. The '
            'Timestamp type represents date and time')
        c.argument('max_score',
                   type=float,
                   help='max attainable score for the control.')
        c.argument('rank',
                   type=int,
                   help='Microsoft\'s stack ranking of control.')
        c.argument('remediation',
                   type=str,
                   help='Description of what the control will help remediate.')
        c.argument(
            'remediation_impact',
            type=str,
            help='Description of the impact on users of the remediation.')
        c.argument(
            'service',
            type=str,
            help=
            'Service that owns the control (Exchange, Sharepoint, Azure AD).')
        c.argument(
            'threats',
            nargs='*',
            help=
            'List of threats the control mitigates (accountBreach,dataDeletion,dataEx'
            'filtration,dataSpillage,')
        c.argument('tier', type=str, help='')
        c.argument('title', type=str, help='Title of the control.')
        c.argument('user_impact', type=str, help='')
        c.argument('vendor_information',
                   action=AddVendorInformation,
                   nargs='*',
                   help='securityVendorInformation')

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

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

    with self.argument_context(
            'security get-secure-score-control-profile') as c:
        c.argument('secure_score_control_profile_id',
                   type=str,
                   help='key: id of secureScoreControlProfile')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('security list-alert') 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('security list-secure-score') 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(
            'security list-secure-score-control-profile') 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('security update-alert') as c:
        c.argument('alert_id', type=str, help='key: id of alert')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property values Expected value: '
                   'json-string/@json-file.')

    with self.argument_context('security update-secure-score') as c:
        c.argument('secure_score_id', type=str, help='key: id of secureScore')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('active_user_count',
                   type=int,
                   help='Active user count of the given tenant.')
        c.argument(
            'average_comparative_scores',
            action=AddAverageComparativeScores,
            nargs='*',
            help='Average score by '
            'different scopes (for example, average by industry, average by seating) and control category '
            '(Identity, Data, Device, Apps, Infrastructure) within the scope.')
        c.argument('azure_tenant_id',
                   type=str,
                   help='GUID string for tenant ID.')
        c.argument('control_scores',
                   action=AddControlScores,
                   nargs='*',
                   help='Contains tenant scores for a set of '
                   'controls.')
        c.argument('created_date_time',
                   help='The date when the entity is created.')
        c.argument('current_score',
                   type=float,
                   help='Tenant current attained score on specified date.')
        c.argument(
            'enabled_services',
            nargs='*',
            help='Microsoft-provided services for the tenant (for example, '
            'Exchange online, Skype, Sharepoint).')
        c.argument('licensed_user_count',
                   type=int,
                   help='Licensed user count of the given tenant.')
        c.argument('max_score',
                   type=float,
                   help='Tenant maximum possible score on specified date.')
        c.argument('vendor_information',
                   action=AddVendorInformation,
                   nargs='*',
                   help='securityVendorInformation')

    with self.argument_context(
            'security update-secure-score-control-profile') as c:
        c.argument('secure_score_control_profile_id',
                   type=str,
                   help='key: id of secureScoreControlProfile')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('action_type',
                   type=str,
                   help='Control action type (Config, Review, Behavior).')
        c.argument('action_url',
                   type=str,
                   help='URL to where the control can be actioned.')
        c.argument('azure_tenant_id',
                   type=str,
                   help='GUID string for tenant ID.')
        c.argument('compliance_information',
                   action=AddComplianceInformation,
                   nargs='*',
                   help='')
        c.argument(
            'control_category',
            type=str,
            help='Control action category (Identity, Data, Device, Apps, '
            'Infrastructure).')
        c.argument('control_state_updates',
                   action=AddControlStateUpdates,
                   nargs='*',
                   help='')
        c.argument('deprecated',
                   arg_type=get_three_state_flag(),
                   help='Flag to indicate if a control is depreciated.')
        c.argument(
            'implementation_cost',
            type=str,
            help='Resource cost of implemmentating control (low, moderate, '
            'high).')
        c.argument(
            'last_modified_date_time',
            help=
            'Time at which the control profile entity was last modified. The '
            'Timestamp type represents date and time')
        c.argument('max_score',
                   type=float,
                   help='max attainable score for the control.')
        c.argument('rank',
                   type=int,
                   help='Microsoft\'s stack ranking of control.')
        c.argument('remediation',
                   type=str,
                   help='Description of what the control will help remediate.')
        c.argument(
            'remediation_impact',
            type=str,
            help='Description of the impact on users of the remediation.')
        c.argument(
            'service',
            type=str,
            help=
            'Service that owns the control (Exchange, Sharepoint, Azure AD).')
        c.argument(
            'threats',
            nargs='*',
            help=
            'List of threats the control mitigates (accountBreach,dataDeletion,dataEx'
            'filtration,dataSpillage,')
        c.argument('tier', type=str, help='')
        c.argument('title', type=str, help='Title of the control.')
        c.argument('user_impact', type=str, help='')
        c.argument('vendor_information',
                   action=AddVendorInformation,
                   nargs='*',
                   help='securityVendorInformation')
コード例 #5
0
ファイル: _params.py プロジェクト: ezkemboi/msgraph-cli
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.')
コード例 #6
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.'
        )
コード例 #7
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')
コード例 #8
0
ファイル: _params.py プロジェクト: ezkemboi/msgraph-cli
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='')
コード例 #9
0
ファイル: _params.py プロジェクト: ezkemboi/msgraph-cli
def load_arguments(self, _):

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

    with self.argument_context('people create-person') 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('birthday', type=str, help='The person\'s birthday.')
        c.argument('company_name',
                   type=str,
                   help='The name of the person\'s company.')
        c.argument('department', type=str, help='The person\'s department.')
        c.argument('display_name',
                   type=str,
                   help='The person\'s display name.')
        c.argument('given_name', type=str, help='The person\'s given name.')
        c.argument(
            'im_address',
            type=str,
            help=
            'The instant message voice over IP (VOIP) session initiation protocol '
            '(SIP) address for the user. Read-only.')
        c.argument('is_favorite',
                   arg_type=get_three_state_flag(),
                   help='true if the user has flagged this person as a '
                   'favorite.')
        c.argument('job_title', type=str, help='The person\'s job title.')
        c.argument('office_location',
                   type=str,
                   help='The location of the person\'s office.')
        c.argument(
            'person_notes',
            type=str,
            help='Free-form notes that the user has taken about this person.')
        c.argument('person_type',
                   action=AddPersonType,
                   nargs='*',
                   help='personType')
        c.argument('phones',
                   action=AddPhones,
                   nargs='*',
                   help='The person\'s phone numbers.')
        c.argument('postal_addresses',
                   type=validate_file_or_dict,
                   help='The person\'s addresses. Expected value: '
                   'json-string/@json-file.')
        c.argument('profession', type=str, help='The person\'s profession.')
        c.argument('scored_email_addresses',
                   action=AddScoredEmailAddresses,
                   nargs='*',
                   help='The person\'s email '
                   'addresses.')
        c.argument('surname', type=str, help='The person\'s surname.')
        c.argument(
            'user_principal_name',
            type=str,
            help='The user principal name (UPN) of the person. The UPN is an '
            'Internet-style login name for the person based on the Internet standard RFC 822. By convention, '
            'this should map to the person\'s email name. The general format is alias@domain.'
        )
        c.argument('websites',
                   action=AddWebsites,
                   nargs='*',
                   help='The person\'s websites.')
        c.argument('yomi_company',
                   type=str,
                   help='The phonetic Japanese name of the person\'s company.')

    with self.argument_context('people get-insight') 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('people get-person') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('person_id', type=str, help='key: id of person')
        c.argument('select',
                   nargs='*',
                   help='Select properties to be returned')
        c.argument('expand', nargs='*', help='Expand related entities')

    with self.argument_context('people list-person') 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('people update-insight') 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(
            'shared',
            type=validate_file_or_dict,
            help='Calculated relationship identifying documents shared '
            'with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive '
            'for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs '
            'and reference attachments to Teams conversations. Ordered by recency of share. Expected value: '
            'json-string/@json-file.')
        c.argument(
            'trending',
            type=validate_file_or_dict,
            help='Calculated relationship identifying documents '
            'trending around a user. Trending documents are calculated based on activity of the user\'s closest '
            'network of people and include files stored in OneDrive for Business and SharePoint. Trending '
            'insights help the user to discover potentially useful content that the user has access to, but has '
            'never viewed before. Expected value: json-string/@json-file.')
        c.argument(
            'used',
            type=validate_file_or_dict,
            help='Calculated relationship identifying the latest documents '
            'viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by '
            'recency of use. Expected value: json-string/@json-file.')

    with self.argument_context('people update-person') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('person_id', type=str, help='key: id of person')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('birthday', type=str, help='The person\'s birthday.')
        c.argument('company_name',
                   type=str,
                   help='The name of the person\'s company.')
        c.argument('department', type=str, help='The person\'s department.')
        c.argument('display_name',
                   type=str,
                   help='The person\'s display name.')
        c.argument('given_name', type=str, help='The person\'s given name.')
        c.argument(
            'im_address',
            type=str,
            help=
            'The instant message voice over IP (VOIP) session initiation protocol '
            '(SIP) address for the user. Read-only.')
        c.argument('is_favorite',
                   arg_type=get_three_state_flag(),
                   help='true if the user has flagged this person as a '
                   'favorite.')
        c.argument('job_title', type=str, help='The person\'s job title.')
        c.argument('office_location',
                   type=str,
                   help='The location of the person\'s office.')
        c.argument(
            'person_notes',
            type=str,
            help='Free-form notes that the user has taken about this person.')
        c.argument('person_type',
                   action=AddPersonType,
                   nargs='*',
                   help='personType')
        c.argument('phones',
                   action=AddPhones,
                   nargs='*',
                   help='The person\'s phone numbers.')
        c.argument('postal_addresses',
                   type=validate_file_or_dict,
                   help='The person\'s addresses. Expected value: '
                   'json-string/@json-file.')
        c.argument('profession', type=str, help='The person\'s profession.')
        c.argument('scored_email_addresses',
                   action=AddScoredEmailAddresses,
                   nargs='*',
                   help='The person\'s email '
                   'addresses.')
        c.argument('surname', type=str, help='The person\'s surname.')
        c.argument(
            'user_principal_name',
            type=str,
            help='The user principal name (UPN) of the person. The UPN is an '
            'Internet-style login name for the person based on the Internet standard RFC 822. By convention, '
            'this should map to the person\'s email name. The general format is alias@domain.'
        )
        c.argument('websites',
                   action=AddWebsites,
                   nargs='*',
                   help='The person\'s websites.')
        c.argument('yomi_company',
                   type=str,
                   help='The phonetic Japanese name of the person\'s company.')

    with self.argument_context('people delete') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('shared_insight_id',
                   type=str,
                   help='key: id of sharedInsight')
        c.argument('if_match', type=str, help='ETag')
        c.argument('trending_id', type=str, help='key: id of trending')
        c.argument('used_insight_id', type=str, help='key: id of usedInsight')

    with self.argument_context('people create-shared') 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('resource_reference',
                   action=AddResourceReference,
                   nargs='*',
                   help='resourceReference')
        c.argument('resource_visualization',
                   action=AddResourceVisualization,
                   nargs='*',
                   help='resourceVisualization')
        c.argument('sharing_history',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('resource_id', type=str, help='Read-only.')
        c.argument('last_shared_method_id', type=str, help='Read-only.')
        c.argument('last_shared_shared_by',
                   action=AddLastSharedSharedBy,
                   nargs='*',
                   help='insightIdentity')
        c.argument(
            'last_shared_shared_date_time',
            help='The date and time the file was last shared. The timestamp '
            '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. Read-only.'
        )
        c.argument('last_shared_sharing_reference',
                   action=AddResourceReference,
                   nargs='*',
                   help='resourceReference')
        c.argument('last_shared_sharing_subject',
                   type=str,
                   help='The subject with which the document was shared.')
        c.argument(
            'last_shared_sharing_type',
            type=str,
            help='Determines the way the document was shared, can be by a '
            '\'Link\', \'Attachment\', \'Group\', \'Site\'.')

    with self.argument_context('people create-trending') 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('last_modified_date_time', help='')
        c.argument('resource_reference',
                   action=AddResourceReference,
                   nargs='*',
                   help='resourceReference')
        c.argument('resource_visualization',
                   action=AddResourceVisualization,
                   nargs='*',
                   help='resourceVisualization')
        c.argument(
            'weight',
            type=float,
            help=
            'Value indicating how much the document is currently trending. The '
            'larger the number, the more the document is currently trending around the user (the more relevant '
            'it is). Returned documents are sorted by this value.')
        c.argument('resource_id', type=str, help='Read-only.')

    with self.argument_context('people create-used') 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('last_used',
                   action=AddLastUsed,
                   nargs='*',
                   help='usageDetails')
        c.argument('resource_reference',
                   action=AddResourceReference,
                   nargs='*',
                   help='resourceReference')
        c.argument('resource_visualization',
                   action=AddResourceVisualization,
                   nargs='*',
                   help='resourceVisualization')
        c.argument('resource_id', type=str, help='Read-only.')

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

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

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

    with self.argument_context('people list-shared') 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('people list-trending') 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('people list-used') 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('people update-shared') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('shared_insight_id',
                   type=str,
                   help='key: id of sharedInsight')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('resource_reference',
                   action=AddResourceReference,
                   nargs='*',
                   help='resourceReference')
        c.argument('resource_visualization',
                   action=AddResourceVisualization,
                   nargs='*',
                   help='resourceVisualization')
        c.argument('sharing_history',
                   type=validate_file_or_dict,
                   help=' Expected value: json-string/@json-file.')
        c.argument('resource_id', type=str, help='Read-only.')
        c.argument('last_shared_method_id', type=str, help='Read-only.')
        c.argument('last_shared_shared_by',
                   action=AddLastSharedSharedBy,
                   nargs='*',
                   help='insightIdentity')
        c.argument(
            'last_shared_shared_date_time',
            help='The date and time the file was last shared. The timestamp '
            '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. Read-only.'
        )
        c.argument('last_shared_sharing_reference',
                   action=AddResourceReference,
                   nargs='*',
                   help='resourceReference')
        c.argument('last_shared_sharing_subject',
                   type=str,
                   help='The subject with which the document was shared.')
        c.argument(
            'last_shared_sharing_type',
            type=str,
            help='Determines the way the document was shared, can be by a '
            '\'Link\', \'Attachment\', \'Group\', \'Site\'.')

    with self.argument_context('people update-trending') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('trending_id', type=str, help='key: id of trending')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('last_modified_date_time', help='')
        c.argument('resource_reference',
                   action=AddResourceReference,
                   nargs='*',
                   help='resourceReference')
        c.argument('resource_visualization',
                   action=AddResourceVisualization,
                   nargs='*',
                   help='resourceVisualization')
        c.argument(
            'weight',
            type=float,
            help=
            'Value indicating how much the document is currently trending. The '
            'larger the number, the more the document is currently trending around the user (the more relevant '
            'it is). Returned documents are sorted by this value.')
        c.argument('resource_id', type=str, help='Read-only.')

    with self.argument_context('people update-used') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('used_insight_id', type=str, help='key: id of usedInsight')
        c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
        c.argument('last_used',
                   action=AddLastUsed,
                   nargs='*',
                   help='usageDetails')
        c.argument('resource_reference',
                   action=AddResourceReference,
                   nargs='*',
                   help='resourceReference')
        c.argument('resource_visualization',
                   action=AddResourceVisualization,
                   nargs='*',
                   help='resourceVisualization')
        c.argument('resource_id', type=str, help='Read-only.')

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

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

    with self.argument_context('people get-ref-last-shared-method') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('shared_insight_id',
                   type=str,
                   help='key: id of sharedInsight')

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

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

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

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

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

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

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

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

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

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

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

    with self.argument_context('people set-ref-resource') as c:
        c.argument('user_id', type=str, help='key: id of user')
        c.argument('used_insight_id', type=str, help='key: id of usedInsight')
        c.argument('body',
                   type=validate_file_or_dict,
                   help='New navigation property ref values Expected value: '
                   'json-string/@json-file.')
コード例 #10
0
ファイル: _params.py プロジェクト: ezkemboi/msgraph-cli
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')