def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.index_entitlements_endpoint = _Endpoint(
         settings={
             'response_type': (IndexEntitlements, ),
             'auth': [],
             'endpoint_path': '/entitlements',
             'operation_id': 'index_entitlements',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [],
             'required': [],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {},
             'attribute_map': {},
             'location_map': {},
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
Esempio n. 2
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.get_cookie_url_endpoint = _Endpoint(settings={
         'response_type': (DPSAuthCookieURLPayload, ),
         'auth': [],
         'endpoint_path':
         '/dps_auth/cookie_url',
         'operation_id':
         'get_cookie_url',
         'http_method':
         'POST',
         'servers':
         None,
     },
                                              params_map={
                                                  'all': [
                                                      'cookie_name',
                                                      'dps_redirect_url',
                                                  ],
                                                  'required': [],
                                                  'nullable': [],
                                                  'enum': [],
                                                  'validation': []
                                              },
                                              root_map={
                                                  'validations': {},
                                                  'allowed_values': {},
                                                  'openapi_types': {
                                                      'cookie_name':
                                                      (str, ),
                                                      'dps_redirect_url':
                                                      (str, ),
                                                  },
                                                  'attribute_map': {
                                                      'cookie_name':
                                                      'cookie_name',
                                                      'dps_redirect_url':
                                                      'dps_redirect_url',
                                                  },
                                                  'location_map': {
                                                      'cookie_name':
                                                      'query',
                                                      'dps_redirect_url':
                                                      'query',
                                                  },
                                                  'collection_format_map':
                                                  {}
                                              },
                                              headers_map={
                                                  'accept':
                                                  ['application/json'],
                                                  'content_type': [],
                                              },
                                              api_client=api_client)
Esempio n. 3
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.show_duty_location_transportation_office_endpoint = _Endpoint(
         settings={
             'response_type': (TransportationOffice,),
             'auth': [],
             'endpoint_path': '/duty_locations/{dutyLocationId}/transportation_office',
             'operation_id': 'show_duty_location_transportation_office',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'duty_location_id',
             ],
             'required': [
                 'duty_location_id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'duty_location_id':
                     (str,),
             },
             'attribute_map': {
                 'duty_location_id': 'dutyLocationId',
             },
             'location_map': {
                 'duty_location_id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
Esempio n. 4
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.show_available_move_dates_endpoint = _Endpoint(
         settings={
             'response_type': (AvailableMoveDates,),
             'auth': [],
             'endpoint_path': '/calendar/available_move_dates',
             'operation_id': 'show_available_move_dates',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'start_date',
             ],
             'required': [
                 'start_date',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'start_date':
                     (date,),
             },
             'attribute_map': {
                 'start_date': 'startDate',
             },
             'location_map': {
                 'start_date': 'query',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
Esempio n. 5
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.create_orders_endpoint = _Endpoint(settings={
         'response_type': (Orders, ),
         'auth': [],
         'endpoint_path': '/orders',
         'operation_id': 'create_orders',
         'http_method': 'POST',
         'servers': None,
     },
                                             params_map={
                                                 'all': [
                                                     'create_orders',
                                                 ],
                                                 'required': [
                                                     'create_orders',
                                                 ],
                                                 'nullable': [],
                                                 'enum': [],
                                                 'validation': []
                                             },
                                             root_map={
                                                 'validations': {},
                                                 'allowed_values': {},
                                                 'openapi_types': {
                                                     'create_orders':
                                                     (CreateUpdateOrders, ),
                                                 },
                                                 'attribute_map': {},
                                                 'location_map': {
                                                     'create_orders':
                                                     'body',
                                                 },
                                                 'collection_format_map':
                                                 {}
                                             },
                                             headers_map={
                                                 'accept':
                                                 ['application/json'],
                                                 'content_type':
                                                 ['application/json']
                                             },
                                             api_client=api_client)
     self.show_orders_endpoint = _Endpoint(settings={
         'response_type': (Orders, ),
         'auth': [],
         'endpoint_path': '/orders/{ordersId}',
         'operation_id': 'show_orders',
         'http_method': 'GET',
         'servers': None,
     },
                                           params_map={
                                               'all': [
                                                   'orders_id',
                                               ],
                                               'required': [
                                                   'orders_id',
                                               ],
                                               'nullable': [],
                                               'enum': [],
                                               'validation': []
                                           },
                                           root_map={
                                               'validations': {},
                                               'allowed_values': {},
                                               'openapi_types': {
                                                   'orders_id': (str, ),
                                               },
                                               'attribute_map': {
                                                   'orders_id': 'ordersId',
                                               },
                                               'location_map': {
                                                   'orders_id': 'path',
                                               },
                                               'collection_format_map': {}
                                           },
                                           headers_map={
                                               'accept':
                                               ['application/json'],
                                               'content_type': [],
                                           },
                                           api_client=api_client)
     self.update_orders_endpoint = _Endpoint(settings={
         'response_type': (Orders, ),
         'auth': [],
         'endpoint_path': '/orders/{ordersId}',
         'operation_id': 'update_orders',
         'http_method': 'PUT',
         'servers': None,
     },
                                             params_map={
                                                 'all': [
                                                     'orders_id',
                                                     'update_orders',
                                                 ],
                                                 'required': [
                                                     'orders_id',
                                                     'update_orders',
                                                 ],
                                                 'nullable': [],
                                                 'enum': [],
                                                 'validation': []
                                             },
                                             root_map={
                                                 'validations': {},
                                                 'allowed_values': {},
                                                 'openapi_types': {
                                                     'orders_id': (str, ),
                                                     'update_orders':
                                                     (CreateUpdateOrders, ),
                                                 },
                                                 'attribute_map': {
                                                     'orders_id':
                                                     'ordersId',
                                                 },
                                                 'location_map': {
                                                     'orders_id': 'path',
                                                     'update_orders':
                                                     'body',
                                                 },
                                                 'collection_format_map':
                                                 {}
                                             },
                                             headers_map={
                                                 'accept':
                                                 ['application/json'],
                                                 'content_type':
                                                 ['application/json']
                                             },
                                             api_client=api_client)
     self.upload_amended_orders_endpoint = _Endpoint(
         settings={
             'response_type': (UploadPayload, ),
             'auth': [],
             'endpoint_path': '/orders/{ordersId}/upload_amended_orders',
             'operation_id': 'upload_amended_orders',
             'http_method': 'PATCH',
             'servers': None,
         },
         params_map={
             'all': [
                 'orders_id',
                 'file',
             ],
             'required': [
                 'orders_id',
                 'file',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'orders_id': (str, ),
                 'file': (file_type, ),
             },
             'attribute_map': {
                 'orders_id': 'ordersId',
                 'file': 'file',
             },
             'location_map': {
                 'orders_id': 'path',
                 'file': 'form',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['multipart/form-data']
         },
         api_client=api_client)
Esempio n. 6
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.is_logged_in_user_endpoint = _Endpoint(
         settings={
             'response_type': (InlineResponse200,),
             'auth': [],
             'endpoint_path': '/users/is_logged_in',
             'operation_id': 'is_logged_in_user',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
             ],
             'required': [],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
             },
             'attribute_map': {
             },
             'location_map': {
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.show_logged_in_user_endpoint = _Endpoint(
         settings={
             'response_type': (LoggedInUserPayload,),
             'auth': [],
             'endpoint_path': '/users/logged_in',
             'operation_id': 'show_logged_in_user',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
             ],
             'required': [],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
             },
             'attribute_map': {
             },
             'location_map': {
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
Esempio n. 7
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.patch_move_endpoint = _Endpoint(settings={
         'response_type': (MovePayload, ),
         'auth': [],
         'endpoint_path': '/moves/{moveId}',
         'operation_id': 'patch_move',
         'http_method': 'PATCH',
         'servers': None,
     },
                                          params_map={
                                              'all': [
                                                  'move_id',
                                                  'patch_move_payload',
                                              ],
                                              'required': [
                                                  'move_id',
                                                  'patch_move_payload',
                                              ],
                                              'nullable': [],
                                              'enum': [],
                                              'validation': []
                                          },
                                          root_map={
                                              'validations': {},
                                              'allowed_values': {},
                                              'openapi_types': {
                                                  'move_id': (str, ),
                                                  'patch_move_payload':
                                                  (PatchMovePayload, ),
                                              },
                                              'attribute_map': {
                                                  'move_id': 'moveId',
                                              },
                                              'location_map': {
                                                  'move_id': 'path',
                                                  'patch_move_payload':
                                                  'body',
                                              },
                                              'collection_format_map': {}
                                          },
                                          headers_map={
                                              'accept':
                                              ['application/json'],
                                              'content_type':
                                              ['application/json']
                                          },
                                          api_client=api_client)
     self.show_move_endpoint = _Endpoint(settings={
         'response_type': (MovePayload, ),
         'auth': [],
         'endpoint_path': '/moves/{moveId}',
         'operation_id': 'show_move',
         'http_method': 'GET',
         'servers': None,
     },
                                         params_map={
                                             'all': [
                                                 'move_id',
                                             ],
                                             'required': [
                                                 'move_id',
                                             ],
                                             'nullable': [],
                                             'enum': [],
                                             'validation': []
                                         },
                                         root_map={
                                             'validations': {},
                                             'allowed_values': {},
                                             'openapi_types': {
                                                 'move_id': (str, ),
                                             },
                                             'attribute_map': {
                                                 'move_id': 'moveId',
                                             },
                                             'location_map': {
                                                 'move_id': 'path',
                                             },
                                             'collection_format_map': {}
                                         },
                                         headers_map={
                                             'accept': ['application/json'],
                                             'content_type': [],
                                         },
                                         api_client=api_client)
     self.show_move_dates_summary_endpoint = _Endpoint(
         settings={
             'response_type': (MoveDatesSummary, ),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/move_dates_summary',
             'operation_id': 'show_move_dates_summary',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
                 'move_date',
             ],
             'required': [
                 'move_id',
                 'move_date',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_id': (str, ),
                 'move_date': (date, ),
             },
             'attribute_map': {
                 'move_id': 'moveId',
                 'move_date': 'moveDate',
             },
             'location_map': {
                 'move_id': 'path',
                 'move_date': 'query',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
     self.show_shipment_summary_worksheet_endpoint = _Endpoint(
         settings={
             'response_type': (file_type, ),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/shipment_summary_worksheet',
             'operation_id': 'show_shipment_summary_worksheet',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
                 'preparation_date',
             ],
             'required': [
                 'move_id',
                 'preparation_date',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_id': (str, ),
                 'preparation_date': (date, ),
             },
             'attribute_map': {
                 'move_id': 'moveId',
                 'preparation_date': 'preparationDate',
             },
             'location_map': {
                 'move_id': 'path',
                 'preparation_date': 'query',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/pdf'],
             'content_type': [],
         },
         api_client=api_client)
     self.submit_amended_orders_endpoint = _Endpoint(
         settings={
             'response_type': (MovePayload, ),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/submit_amended_orders',
             'operation_id': 'submit_amended_orders',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
             ],
             'required': [
                 'move_id',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_id': (str, ),
             },
             'attribute_map': {
                 'move_id': 'moveId',
             },
             'location_map': {
                 'move_id': 'path',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
     self.submit_move_for_approval_endpoint = _Endpoint(
         settings={
             'response_type': (MovePayload, ),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/submit',
             'operation_id': 'submit_move_for_approval',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
                 'submit_move_for_approval_payload',
             ],
             'required': [
                 'move_id',
                 'submit_move_for_approval_payload',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_id': (str, ),
                 'submit_move_for_approval_payload':
                 (SubmitMoveForApprovalPayload, ),
             },
             'attribute_map': {
                 'move_id': 'moveId',
             },
             'location_map': {
                 'move_id': 'path',
                 'submit_move_for_approval_payload': 'body',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['application/json']
         },
         api_client=api_client)
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.create_service_member_endpoint = _Endpoint(
         settings={
             'response_type': (ServiceMemberPayload,),
             'auth': [],
             'endpoint_path': '/service_members',
             'operation_id': 'create_service_member',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'create_service_member_payload',
             ],
             'required': [
                 'create_service_member_payload',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'create_service_member_payload':
                     (CreateServiceMemberPayload,),
             },
             'attribute_map': {
             },
             'location_map': {
                 'create_service_member_payload': 'body',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [
                 'application/json'
             ]
         },
         api_client=api_client
     )
     self.patch_service_member_endpoint = _Endpoint(
         settings={
             'response_type': (ServiceMemberPayload,),
             'auth': [],
             'endpoint_path': '/service_members/{serviceMemberId}',
             'operation_id': 'patch_service_member',
             'http_method': 'PATCH',
             'servers': None,
         },
         params_map={
             'all': [
                 'service_member_id',
                 'patch_service_member_payload',
             ],
             'required': [
                 'service_member_id',
                 'patch_service_member_payload',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'service_member_id':
                     (str,),
                 'patch_service_member_payload':
                     (PatchServiceMemberPayload,),
             },
             'attribute_map': {
                 'service_member_id': 'serviceMemberId',
             },
             'location_map': {
                 'service_member_id': 'path',
                 'patch_service_member_payload': 'body',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [
                 'application/json'
             ]
         },
         api_client=api_client
     )
     self.show_service_member_endpoint = _Endpoint(
         settings={
             'response_type': (ServiceMemberPayload,),
             'auth': [],
             'endpoint_path': '/service_members/{serviceMemberId}',
             'operation_id': 'show_service_member',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'service_member_id',
             ],
             'required': [
                 'service_member_id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'service_member_id':
                     (str,),
             },
             'attribute_map': {
                 'service_member_id': 'serviceMemberId',
             },
             'location_map': {
                 'service_member_id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.show_service_member_orders_endpoint = _Endpoint(
         settings={
             'response_type': (Orders,),
             'auth': [],
             'endpoint_path': '/service_members/{serviceMemberId}/current_orders',
             'operation_id': 'show_service_member_orders',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'service_member_id',
             ],
             'required': [
                 'service_member_id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'service_member_id':
                     (str,),
             },
             'attribute_map': {
                 'service_member_id': 'serviceMemberId',
             },
             'location_map': {
                 'service_member_id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.approve_move_endpoint = _Endpoint(
         settings={
             'response_type': (MovePayload,),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/approve',
             'operation_id': 'approve_move',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
             ],
             'required': [
                 'move_id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'move_id':
                     (str,),
             },
             'attribute_map': {
                 'move_id': 'moveId',
             },
             'location_map': {
                 'move_id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.approve_ppm_endpoint = _Endpoint(
         settings={
             'response_type': (PersonallyProcuredMovePayload,),
             'auth': [],
             'endpoint_path': '/personally_procured_moves/{personallyProcuredMoveId}/approve',
             'operation_id': 'approve_ppm',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'personally_procured_move_id',
                 'approve_personally_procured_move_payload',
             ],
             'required': [
                 'personally_procured_move_id',
                 'approve_personally_procured_move_payload',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'personally_procured_move_id':
                     (str,),
                 'approve_personally_procured_move_payload':
                     (ApprovePersonallyProcuredMovePayload,),
             },
             'attribute_map': {
                 'personally_procured_move_id': 'personallyProcuredMoveId',
             },
             'location_map': {
                 'personally_procured_move_id': 'path',
                 'approve_personally_procured_move_payload': 'body',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [
                 'application/json'
             ]
         },
         api_client=api_client
     )
     self.approve_reimbursement_endpoint = _Endpoint(
         settings={
             'response_type': (Reimbursement,),
             'auth': [],
             'endpoint_path': '/reimbursement/{reimbursementId}/approve',
             'operation_id': 'approve_reimbursement',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'reimbursement_id',
             ],
             'required': [
                 'reimbursement_id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'reimbursement_id':
                     (str,),
             },
             'attribute_map': {
                 'reimbursement_id': 'reimbursementId',
             },
             'location_map': {
                 'reimbursement_id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.cancel_move_endpoint = _Endpoint(
         settings={
             'response_type': (MovePayload,),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/cancel',
             'operation_id': 'cancel_move',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
                 'cancel_move',
             ],
             'required': [
                 'move_id',
                 'cancel_move',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'move_id':
                     (str,),
                 'cancel_move':
                     (CancelMove,),
             },
             'attribute_map': {
                 'move_id': 'moveId',
             },
             'location_map': {
                 'move_id': 'path',
                 'cancel_move': 'body',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [
                 'application/json'
             ]
         },
         api_client=api_client
     )
     self.show_office_orders_endpoint = _Endpoint(
         settings={
             'response_type': (Orders,),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/orders',
             'operation_id': 'show_office_orders',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
             ],
             'required': [
                 'move_id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'move_id':
                     (str,),
             },
             'attribute_map': {
                 'move_id': 'moveId',
             },
             'location_map': {
                 'move_id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
Esempio n. 10
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.create_upload_endpoint = _Endpoint(settings={
         'response_type': (UploadPayload, ),
         'auth': [],
         'endpoint_path':
         '/uploads',
         'operation_id':
         'create_upload',
         'http_method':
         'POST',
         'servers':
         None,
     },
                                             params_map={
                                                 'all': [
                                                     'file',
                                                     'document_id',
                                                 ],
                                                 'required': [
                                                     'file',
                                                 ],
                                                 'nullable': [],
                                                 'enum': [],
                                                 'validation': []
                                             },
                                             root_map={
                                                 'validations': {},
                                                 'allowed_values': {},
                                                 'openapi_types': {
                                                     'file': (file_type, ),
                                                     'document_id': (str, ),
                                                 },
                                                 'attribute_map': {
                                                     'file':
                                                     'file',
                                                     'document_id':
                                                     'documentId',
                                                 },
                                                 'location_map': {
                                                     'file': 'form',
                                                     'document_id': 'query',
                                                 },
                                                 'collection_format_map':
                                                 {}
                                             },
                                             headers_map={
                                                 'accept':
                                                 ['application/json'],
                                                 'content_type':
                                                 ['multipart/form-data']
                                             },
                                             api_client=api_client)
     self.delete_upload_endpoint = _Endpoint(settings={
         'response_type': None,
         'auth': [],
         'endpoint_path': '/uploads/{uploadId}',
         'operation_id': 'delete_upload',
         'http_method': 'DELETE',
         'servers': None,
     },
                                             params_map={
                                                 'all': [
                                                     'upload_id',
                                                 ],
                                                 'required': [
                                                     'upload_id',
                                                 ],
                                                 'nullable': [],
                                                 'enum': [],
                                                 'validation': []
                                             },
                                             root_map={
                                                 'validations': {},
                                                 'allowed_values': {},
                                                 'openapi_types': {
                                                     'upload_id': (str, ),
                                                 },
                                                 'attribute_map': {
                                                     'upload_id':
                                                     'uploadId',
                                                 },
                                                 'location_map': {
                                                     'upload_id': 'path',
                                                 },
                                                 'collection_format_map':
                                                 {}
                                             },
                                             headers_map={
                                                 'accept':
                                                 ['application/json'],
                                                 'content_type': [],
                                             },
                                             api_client=api_client)
     self.delete_uploads_endpoint = _Endpoint(settings={
         'response_type': None,
         'auth': [],
         'endpoint_path': '/uploads',
         'operation_id': 'delete_uploads',
         'http_method': 'DELETE',
         'servers': None,
     },
                                              params_map={
                                                  'all': [
                                                      'upload_ids',
                                                  ],
                                                  'required': [
                                                      'upload_ids',
                                                  ],
                                                  'nullable': [],
                                                  'enum': [],
                                                  'validation': []
                                              },
                                              root_map={
                                                  'validations': {},
                                                  'allowed_values': {},
                                                  'openapi_types': {
                                                      'upload_ids':
                                                      ([str], ),
                                                  },
                                                  'attribute_map': {
                                                      'upload_ids':
                                                      'uploadIds',
                                                  },
                                                  'location_map': {
                                                      'upload_ids': 'query',
                                                  },
                                                  'collection_format_map': {
                                                      'upload_ids': 'csv',
                                                  }
                                              },
                                              headers_map={
                                                  'accept':
                                                  ['application/json'],
                                                  'content_type': [],
                                              },
                                              api_client=api_client)
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.create_generic_move_document_endpoint = _Endpoint(
         settings={
             'response_type': (MoveDocumentPayload, ),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/move_documents',
             'operation_id': 'create_generic_move_document',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
                 'create_generic_move_document_payload',
             ],
             'required': [
                 'move_id',
                 'create_generic_move_document_payload',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_id': (str, ),
                 'create_generic_move_document_payload':
                 (CreateGenericMoveDocumentPayload, ),
             },
             'attribute_map': {
                 'move_id': 'moveId',
             },
             'location_map': {
                 'move_id': 'path',
                 'create_generic_move_document_payload': 'body',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['application/json']
         },
         api_client=api_client)
     self.create_moving_expense_document_endpoint = _Endpoint(
         settings={
             'response_type': (MoveDocumentPayload, ),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/moving_expense_documents',
             'operation_id': 'create_moving_expense_document',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
                 'create_moving_expense_document_payload',
             ],
             'required': [
                 'move_id',
                 'create_moving_expense_document_payload',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_id': (str, ),
                 'create_moving_expense_document_payload':
                 (CreateMovingExpenseDocumentPayload, ),
             },
             'attribute_map': {
                 'move_id': 'moveId',
             },
             'location_map': {
                 'move_id': 'path',
                 'create_moving_expense_document_payload': 'body',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['application/json']
         },
         api_client=api_client)
     self.create_weight_ticket_document_endpoint = _Endpoint(
         settings={
             'response_type': (MoveDocumentPayload, ),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/weight_ticket',
             'operation_id': 'create_weight_ticket_document',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
                 'create_weight_ticket_document',
             ],
             'required': [
                 'move_id',
                 'create_weight_ticket_document',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_id': (str, ),
                 'create_weight_ticket_document':
                 (CreateWeightTicketDocumentsPayload, ),
             },
             'attribute_map': {
                 'move_id': 'moveId',
             },
             'location_map': {
                 'move_id': 'path',
                 'create_weight_ticket_document': 'body',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['application/json']
         },
         api_client=api_client)
     self.delete_move_document_endpoint = _Endpoint(
         settings={
             'response_type': None,
             'auth': [],
             'endpoint_path': '/move_documents/{moveDocumentId}',
             'operation_id': 'delete_move_document',
             'http_method': 'DELETE',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_document_id',
             ],
             'required': [
                 'move_document_id',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_document_id': (str, ),
             },
             'attribute_map': {
                 'move_document_id': 'moveDocumentId',
             },
             'location_map': {
                 'move_document_id': 'path',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
     self.index_move_documents_endpoint = _Endpoint(
         settings={
             'response_type': (MoveDocuments, ),
             'auth': [],
             'endpoint_path': '/moves/{moveId}/move_documents',
             'operation_id': 'index_move_documents',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_id',
             ],
             'required': [
                 'move_id',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_id': (str, ),
             },
             'attribute_map': {
                 'move_id': 'moveId',
             },
             'location_map': {
                 'move_id': 'path',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
     self.update_move_document_endpoint = _Endpoint(
         settings={
             'response_type': (MoveDocumentPayload, ),
             'auth': [],
             'endpoint_path': '/move_documents/{moveDocumentId}',
             'operation_id': 'update_move_document',
             'http_method': 'PUT',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_document_id',
                 'update_move_document',
             ],
             'required': [
                 'move_document_id',
                 'update_move_document',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_document_id': (str, ),
                 'update_move_document': (MoveDocumentPayload, ),
             },
             'attribute_map': {
                 'move_document_id': 'moveDocumentId',
             },
             'location_map': {
                 'move_document_id': 'path',
                 'update_move_document': 'body',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['application/json']
         },
         api_client=api_client)
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.create_document_endpoint = _Endpoint(
         settings={
             'response_type': (DocumentPayload, ),
             'auth': [],
             'endpoint_path': '/documents',
             'operation_id': 'create_document',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'document_payload',
             ],
             'required': [
                 'document_payload',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'document_payload': (PostDocumentPayload, ),
             },
             'attribute_map': {},
             'location_map': {
                 'document_payload': 'body',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['application/json']
         },
         api_client=api_client)
     self.show_document_endpoint = _Endpoint(settings={
         'response_type': (DocumentPayload, ),
         'auth': [],
         'endpoint_path':
         '/documents/{documentId}',
         'operation_id':
         'show_document',
         'http_method':
         'GET',
         'servers':
         None,
     },
                                             params_map={
                                                 'all': [
                                                     'document_id',
                                                 ],
                                                 'required': [
                                                     'document_id',
                                                 ],
                                                 'nullable': [],
                                                 'enum': [],
                                                 'validation': []
                                             },
                                             root_map={
                                                 'validations': {},
                                                 'allowed_values': {},
                                                 'openapi_types': {
                                                     'document_id': (str, ),
                                                 },
                                                 'attribute_map': {
                                                     'document_id':
                                                     'documentId',
                                                 },
                                                 'location_map': {
                                                     'document_id': 'path',
                                                 },
                                                 'collection_format_map':
                                                 {}
                                             },
                                             headers_map={
                                                 'accept':
                                                 ['application/json'],
                                                 'content_type': [],
                                             },
                                             api_client=api_client)
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.create_service_member_backup_contact_endpoint = _Endpoint(
         settings={
             'response_type': (ServiceMemberBackupContactPayload, ),
             'auth': [],
             'endpoint_path':
             '/service_members/{serviceMemberId}/backup_contacts',
             'operation_id': 'create_service_member_backup_contact',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'service_member_id',
                 'create_backup_contact_payload',
             ],
             'required': [
                 'service_member_id',
                 'create_backup_contact_payload',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'service_member_id': (str, ),
                 'create_backup_contact_payload':
                 (CreateServiceMemberBackupContactPayload, ),
             },
             'attribute_map': {
                 'service_member_id': 'serviceMemberId',
             },
             'location_map': {
                 'service_member_id': 'path',
                 'create_backup_contact_payload': 'body',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['application/json']
         },
         api_client=api_client)
     self.index_service_member_backup_contacts_endpoint = _Endpoint(
         settings={
             'response_type': (IndexServiceMemberBackupContactsPayload, ),
             'auth': [],
             'endpoint_path':
             '/service_members/{serviceMemberId}/backup_contacts',
             'operation_id': 'index_service_member_backup_contacts',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'service_member_id',
             ],
             'required': [
                 'service_member_id',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'service_member_id': (str, ),
             },
             'attribute_map': {
                 'service_member_id': 'serviceMemberId',
             },
             'location_map': {
                 'service_member_id': 'path',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
     self.show_service_member_backup_contact_endpoint = _Endpoint(
         settings={
             'response_type': (ServiceMemberBackupContactPayload, ),
             'auth': [],
             'endpoint_path': '/backup_contacts/{backupContactId}',
             'operation_id': 'show_service_member_backup_contact',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'backup_contact_id',
             ],
             'required': [
                 'backup_contact_id',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'backup_contact_id': (str, ),
             },
             'attribute_map': {
                 'backup_contact_id': 'backupContactId',
             },
             'location_map': {
                 'backup_contact_id': 'path',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
     self.update_service_member_backup_contact_endpoint = _Endpoint(
         settings={
             'response_type': (ServiceMemberBackupContactPayload, ),
             'auth': [],
             'endpoint_path': '/backup_contacts/{backupContactId}',
             'operation_id': 'update_service_member_backup_contact',
             'http_method': 'PUT',
             'servers': None,
         },
         params_map={
             'all': [
                 'backup_contact_id',
                 'update_service_member_backup_contact_payload',
             ],
             'required': [
                 'backup_contact_id',
                 'update_service_member_backup_contact_payload',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'backup_contact_id': (str, ),
                 'update_service_member_backup_contact_payload':
                 (UpdateServiceMemberBackupContactPayload, ),
             },
             'attribute_map': {
                 'backup_contact_id': 'backupContactId',
             },
             'location_map': {
                 'backup_contact_id': 'path',
                 'update_service_member_backup_contact_payload': 'body',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['application/json']
         },
         api_client=api_client)
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.create_mto_shipment_endpoint = _Endpoint(
         settings={
             'response_type': (MTOShipment, ),
             'auth': [],
             'endpoint_path': '/mto_shipments',
             'operation_id': 'create_mto_shipment',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'body',
             ],
             'required': [],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'body': (CreateShipment, ),
             },
             'attribute_map': {},
             'location_map': {
                 'body': 'body',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['application/json']
         },
         api_client=api_client)
     self.delete_shipment_endpoint = _Endpoint(settings={
         'response_type': None,
         'auth': [],
         'endpoint_path': '/mto-shipments/{mtoShipmentId}',
         'operation_id': 'delete_shipment',
         'http_method': 'DELETE',
         'servers': None,
     },
                                               params_map={
                                                   'all': [
                                                       'mto_shipment_id',
                                                   ],
                                                   'required': [
                                                       'mto_shipment_id',
                                                   ],
                                                   'nullable': [],
                                                   'enum': [],
                                                   'validation': []
                                               },
                                               root_map={
                                                   'validations': {},
                                                   'allowed_values': {},
                                                   'openapi_types': {
                                                       'mto_shipment_id':
                                                       (str, ),
                                                   },
                                                   'attribute_map': {
                                                       'mto_shipment_id':
                                                       'mtoShipmentId',
                                                   },
                                                   'location_map': {
                                                       'mto_shipment_id':
                                                       'path',
                                                   },
                                                   'collection_format_map':
                                                   {}
                                               },
                                               headers_map={
                                                   'accept':
                                                   ['application/json'],
                                                   'content_type': [],
                                               },
                                               api_client=api_client)
     self.list_mto_shipments_endpoint = _Endpoint(
         settings={
             'response_type': (MTOShipments, ),
             'auth': [],
             'endpoint_path': '/moves/{moveTaskOrderID}/mto_shipments',
             'operation_id': 'list_mto_shipments',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'move_task_order_id',
             ],
             'required': [
                 'move_task_order_id',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'move_task_order_id': (str, ),
             },
             'attribute_map': {
                 'move_task_order_id': 'moveTaskOrderID',
             },
             'location_map': {
                 'move_task_order_id': 'path',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
     self.update_mto_shipment_endpoint = _Endpoint(
         settings={
             'response_type': (MTOShipment, ),
             'auth': [],
             'endpoint_path': '/mto-shipments/{mtoShipmentId}',
             'operation_id': 'update_mto_shipment',
             'http_method': 'PATCH',
             'servers': None,
         },
         params_map={
             'all': [
                 'mto_shipment_id',
                 'if_match',
                 'body',
             ],
             'required': [
                 'mto_shipment_id',
                 'if_match',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'mto_shipment_id': (str, ),
                 'if_match': (str, ),
                 'body': (UpdateShipment, ),
             },
             'attribute_map': {
                 'mto_shipment_id': 'mtoShipmentId',
                 'if_match': 'If-Match',
             },
             'location_map': {
                 'mto_shipment_id': 'path',
                 'if_match': 'header',
                 'body': 'body',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['application/json']
         },
         api_client=api_client)
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.validate_postal_code_with_rate_data_endpoint = _Endpoint(
         settings={
             'response_type': (RateEnginePostalCodePayload, ),
             'auth': [],
             'endpoint_path': '/rate_engine_postal_codes/{postal_code}',
             'operation_id': 'validate_postal_code_with_rate_data',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'postal_code',
                 'postal_code_type',
             ],
             'required': [
                 'postal_code',
                 'postal_code_type',
             ],
             'nullable': [],
             'enum': [
                 'postal_code_type',
             ],
             'validation': [
                 'postal_code',
             ]
         },
         root_map={
             'validations': {
                 ('postal_code', ): {
                     'regex': {
                         'pattern': r'^(\d{5}?)$',  # noqa: E501
                     },
                 },
             },
             'allowed_values': {
                 ('postal_code_type', ): {
                     "ORIGIN": "origin",
                     "DESTINATION": "destination"
                 },
             },
             'openapi_types': {
                 'postal_code': (str, ),
                 'postal_code_type': (str, ),
             },
             'attribute_map': {
                 'postal_code': 'postal_code',
                 'postal_code_type': 'postal_code_type',
             },
             'location_map': {
                 'postal_code': 'path',
                 'postal_code_type': 'query',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
Esempio n. 16
0
    def __init__(self, api_client=None):
        if api_client is None:
            api_client = ApiClient()
        self.api_client = api_client
        self.show_queue_endpoint = _Endpoint(
            settings={
                'response_type': ([MoveQueueItem],),
                'auth': [],
                'endpoint_path': '/queues/{queueType}',
                'operation_id': 'show_queue',
                'http_method': 'GET',
                'servers': None,
            },
            params_map={
                'all': [
                    'queue_type',
                ],
                'required': [
                    'queue_type',
                ],
                'nullable': [
                ],
                'enum': [
                    'queue_type',
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                    ('queue_type',): {

                        "NEW": "new",
                        "PPM_PAYMENT_REQUESTED": "ppm_payment_requested",
                        "ALL": "all",
                        "PPM_APPROVED": "ppm_approved",
                        "PPM_COMPLETED": "ppm_completed"
                    },
                },
                'openapi_types': {
                    'queue_type':
                        (str,),
                },
                'attribute_map': {
                    'queue_type': 'queueType',
                },
                'location_map': {
                    'queue_type': 'path',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [],
            },
            api_client=api_client
        )