hyperstack 1.25.0a0__py3-none-any.whl → 1.41.0a0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. hyperstack/__init__.py +79 -131
  2. hyperstack/api/__init__.py +2 -0
  3. hyperstack/api/alive_api.py +240 -0
  4. hyperstack/api/api_key_api.py +16 -20
  5. hyperstack/api/assigning_member_role_api.py +15 -17
  6. hyperstack/api/auth_api.py +1050 -5
  7. hyperstack/api/beta_access_api.py +856 -0
  8. hyperstack/api/billing_api.py +6461 -673
  9. hyperstack/api/calculate_api.py +8 -9
  10. hyperstack/api/callbacks_api.py +120 -126
  11. hyperstack/api/cluster_events_api.py +1 -2
  12. hyperstack/api/clusters_api.py +2492 -146
  13. hyperstack/api/compliance_api.py +14 -18
  14. hyperstack/api/credit_api.py +17 -15
  15. hyperstack/api/customer_contract_api.py +30 -33
  16. hyperstack/api/dashboard_api.py +4 -5
  17. hyperstack/api/deployment_api.py +4 -8
  18. hyperstack/api/environment_api.py +285 -16
  19. hyperstack/api/firewall_attachment_api.py +11 -9
  20. hyperstack/api/firewalls_api.py +341 -347
  21. hyperstack/api/flavor_api.py +4 -5
  22. hyperstack/api/floating_ip_api.py +50 -49
  23. hyperstack/api/gpu_api.py +1 -2
  24. hyperstack/api/image_api.py +35 -39
  25. hyperstack/api/invite_api.py +288 -18
  26. hyperstack/api/keypair_api.py +22 -26
  27. hyperstack/api/organization_api.py +12 -15
  28. hyperstack/api/partner_config_api.py +564 -0
  29. hyperstack/api/payment_api.py +299 -18
  30. hyperstack/api/permission_api.py +4 -5
  31. hyperstack/api/policy_api.py +4 -5
  32. hyperstack/api/pricebook_api.py +14 -12
  33. hyperstack/api/profile_api.py +13 -17
  34. hyperstack/api/rbac_role_api.py +20 -25
  35. hyperstack/api/region_api.py +7 -8
  36. hyperstack/api/security_rules_api.py +1 -2
  37. hyperstack/api/snapshot_events_api.py +1 -2
  38. hyperstack/api/snapshots_api.py +166 -172
  39. hyperstack/api/stock_api.py +4 -5
  40. hyperstack/api/template_api.py +14 -19
  41. hyperstack/api/user_api.py +55 -49
  42. hyperstack/api/user_detail_choice_api.py +1 -2
  43. hyperstack/api/user_permission_api.py +8 -10
  44. hyperstack/api/virtual_machine_api.py +1529 -929
  45. hyperstack/api/virtual_machine_events_api.py +21 -22
  46. hyperstack/api/vnc_url_api.py +54 -50
  47. hyperstack/api/volume_api.py +340 -40
  48. hyperstack/api/volume_attachment_api.py +342 -42
  49. hyperstack/api_client.py +1 -1
  50. hyperstack/configuration.py +1 -11
  51. hyperstack/models/__init__.py +76 -130
  52. hyperstack/models/{environment_fieldsfor_volume.py → access_token_field.py} +7 -7
  53. hyperstack/models/attach_volume_fields.py +6 -2
  54. hyperstack/models/attach_volumes_payload.py +4 -2
  55. hyperstack/models/{virtual_machine_usage.py → attachments_fields_for_volume.py} +13 -11
  56. hyperstack/models/{flavor_vm_fields.py → attributes.py} +15 -18
  57. hyperstack/models/auth_get_token_response_model.py +4 -6
  58. hyperstack/models/{future_node_model.py → beta_access_request_fields.py} +27 -25
  59. hyperstack/models/{create_gpu.py → beta_access_request_payload.py} +9 -11
  60. hyperstack/models/{create_discount_response.py → beta_access_request_response_model.py} +11 -11
  61. hyperstack/models/{export_billing_data_request.py → beta_access_status_item.py} +20 -23
  62. hyperstack/models/{get_all_discount_for_all_organization_response.py → beta_access_status_response_model.py} +15 -15
  63. hyperstack/models/{exclude_billing_post_response.py → billing_history.py} +13 -11
  64. hyperstack/models/billing_history_data_synthesis_details.py +105 -0
  65. hyperstack/models/{vm_usage_response.py → billing_history_fine_tuning.py} +23 -19
  66. hyperstack/models/billing_history_model_evalutation_details.py +105 -0
  67. hyperstack/models/{get_all_discounts_fields.py → billing_history_serverless_inference.py} +23 -24
  68. hyperstack/models/billing_history_serverless_inference_details.py +105 -0
  69. hyperstack/models/{billingmetricesfields.py → billing_metrices_fields.py} +4 -4
  70. hyperstack/models/{billingmetricesresponse.py → billing_metrices_response.py} +7 -7
  71. hyperstack/models/cluster_fields.py +27 -9
  72. hyperstack/models/{add_update_flavor_organization_payload.py → cluster_flavor_fields.py} +28 -26
  73. hyperstack/models/{historical_instances_fields.py → cluster_node_fields.py} +24 -22
  74. hyperstack/models/{internal_instance_flavor_fields.py → cluster_node_group_fields.py} +17 -17
  75. hyperstack/models/{create_update_policy_response_model.py → cluster_node_groups_create_response.py} +21 -11
  76. hyperstack/models/{create_update_permission_response_model.py → cluster_node_groups_get_response.py} +11 -11
  77. hyperstack/models/{auth_request_login_response_model.py → cluster_node_groups_list_response.py} +15 -11
  78. hyperstack/models/{contract_eligible_instance_fields.py → cluster_node_instance_fields.py} +13 -11
  79. hyperstack/models/{image_logos.py → cluster_nodes_list_response.py} +14 -14
  80. hyperstack/models/{internal_environment_fields.py → cluster_version.py} +13 -9
  81. hyperstack/models/cluster_versions.py +10 -2
  82. hyperstack/models/{future_nodes_stock_model.py → colors.py} +17 -15
  83. hyperstack/models/contract_discount_plan_fields.py +3 -1
  84. hyperstack/models/contract_instance_fields.py +7 -1
  85. hyperstack/models/{future_node_response_model.py → create_cluster_node_fields.py} +23 -18
  86. hyperstack/models/{update_gpu.py → create_cluster_node_group_payload.py} +12 -11
  87. hyperstack/models/create_cluster_payload.py +31 -8
  88. hyperstack/models/create_environment.py +1 -1
  89. hyperstack/models/create_instances_payload.py +7 -7
  90. hyperstack/models/create_profile_payload.py +1 -1
  91. hyperstack/models/create_snapshot_payload.py +2 -4
  92. hyperstack/models/create_volume_payload.py +1 -1
  93. hyperstack/models/data_synthesis_billing_history_details_response_schema.py +95 -0
  94. hyperstack/models/{deployment_fieldsforstartdeployments.py → deployment_fields_for_start_deployments.py} +4 -4
  95. hyperstack/models/{editlabelofanexisting_vm_payload.py → edit_label_of_an_existing_vm_payload.py} +4 -4
  96. hyperstack/models/environment_features.py +14 -2
  97. hyperstack/models/{node_stocks_payload.py → environment_fields_for_volume.py} +10 -12
  98. hyperstack/models/flavor_fields.py +3 -1
  99. hyperstack/models/{customer_fields.py → flavor_label_fields.py} +7 -7
  100. hyperstack/models/{getcreditandthresholdinfo.py → get_credit_and_threshold_info.py} +4 -4
  101. hyperstack/models/{getcreditandthresholdinfoinresponse.py → get_credit_and_threshold_info_in_response.py} +7 -7
  102. hyperstack/models/{region_payload.py → get_instance_logs_response.py} +7 -9
  103. hyperstack/models/instance_fields.py +8 -4
  104. hyperstack/models/instance_flavor_fields.py +13 -1
  105. hyperstack/models/{flavor_response.py → keypair_environment_features.py} +20 -16
  106. hyperstack/models/{internal_instance_keypair_fields.py → keypair_environment_fields.py} +13 -11
  107. hyperstack/models/keypair_fields.py +6 -2
  108. hyperstack/models/{lastdaycostfields.py → last_day_cost_fields.py} +4 -4
  109. hyperstack/models/{lastdaycostresponse.py → last_day_cost_response.py} +7 -7
  110. hyperstack/models/{export_billing_data_response.py → logos.py} +13 -9
  111. hyperstack/models/{creditrequestresponse.py → master_flavors_response.py} +14 -14
  112. hyperstack/models/{customer_payload.py → mfa_status_fields.py} +8 -10
  113. hyperstack/models/{gpu.py → mfa_status_response.py} +11 -11
  114. hyperstack/models/model_evaluation_billing_history_details_response_schema.py +95 -0
  115. hyperstack/models/{organization_thresholdfields.py → organization_threshold_fields.py} +4 -4
  116. hyperstack/models/{organizationthresholdupdateresponse.py → organization_threshold_update_response.py} +7 -7
  117. hyperstack/models/{organizationthresholdsresponse.py → organization_thresholds_response.py} +7 -7
  118. hyperstack/models/{logo_get_response.py → pagination.py} +12 -12
  119. hyperstack/models/{billing_response.py → partner_config.py} +31 -20
  120. hyperstack/models/payment_details_fields.py +5 -1
  121. hyperstack/models/{logout_payload.py → primary_color.py} +10 -8
  122. hyperstack/models/region_fields.py +16 -2
  123. hyperstack/models/{vm_usage_request_payload.py → request_instance_logs_payload.py} +8 -8
  124. hyperstack/models/{stock_visibility_user_payload.py → request_instance_logs_response.py} +8 -8
  125. hyperstack/models/{contract_billing_history.py → resource_level_billing_bucket_details_resources.py} +10 -10
  126. hyperstack/models/{node_response_model.py → resource_level_billing_history_resources_cluster.py} +21 -11
  127. hyperstack/models/resource_level_billing_history_response_attributes.py +3 -1
  128. hyperstack/models/{get_all_contracts_response_model.py → resource_level_bucket_billing_details_response_model.py} +11 -15
  129. hyperstack/models/{contract_billing_history_response_model.py → resource_level_bucket_billing_history_response_model.py} +11 -11
  130. hyperstack/models/resource_level_cluster_billing_details_response_model.py +95 -0
  131. hyperstack/models/resource_level_cluster_billing_history_response_model.py +95 -0
  132. hyperstack/models/{get_discount_detail_response.py → resource_level_cluster_graph_billing_details_response_model.py} +11 -11
  133. hyperstack/models/{organization_object_response.py → resource_level_graph_billing_details_bucket.py} +18 -14
  134. hyperstack/models/{update_discounts_status_payload.py → secondary_color.py} +10 -8
  135. hyperstack/models/{security_rules_fieldsfor_instance.py → security_rules_fields_for_instance.py} +4 -4
  136. hyperstack/models/serverless_inferenced_billing_history_details_response_schema.py +95 -0
  137. hyperstack/models/snapshot_fields.py +6 -1
  138. hyperstack/models/snapshot_retrieve_fields.py +29 -2
  139. hyperstack/models/start_deployment.py +3 -3
  140. hyperstack/models/{subscribeorunsubscribeupdatepayload.py → subscribe_or_unsubscribe_update_payload.py} +4 -4
  141. hyperstack/models/token_based_billing_history_response.py +95 -0
  142. hyperstack/models/{update_keypairnameresponse.py → update_keypair_name_response.py} +4 -4
  143. hyperstack/models/update_volume_attachment_payload.py +87 -0
  144. hyperstack/models/{verify_api_key_payload.py → update_volume_payload.py} +7 -7
  145. hyperstack/models/{stock_visibility_user_list_response.py → update_volume_response.py} +14 -16
  146. hyperstack/models/{auth_request_login_fields.py → uris.py} +19 -9
  147. hyperstack/models/{userinfopostpayload.py → user_info_post_payload.py} +4 -4
  148. hyperstack/models/{node_stock_response_model.py → user_organizations_response.py} +14 -14
  149. hyperstack/models/users_info_fields.py +3 -1
  150. hyperstack/models/volume_attachment_fields.py +9 -5
  151. hyperstack/models/volume_fields.py +14 -4
  152. hyperstack/models/{volume_fieldsfor_instance.py → volume_fields_for_instance.py} +4 -4
  153. hyperstack/models/volumes.py +17 -11
  154. hyperstack/models/{instances_summary_fields.py → volumes_fields.py} +33 -29
  155. hyperstack/models/workload_billing_history_response.py +95 -0
  156. {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.0a0.dist-info}/METADATA +2 -2
  157. hyperstack-1.41.0a0.dist-info/RECORD +349 -0
  158. {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.0a0.dist-info}/WHEEL +1 -1
  159. hyperstack/models/api_key_verify_fields.py +0 -93
  160. hyperstack/models/billing_immune_resources_response.py +0 -95
  161. hyperstack/models/contract_billing_history_response_attributes.py +0 -99
  162. hyperstack/models/contract_change_payload.py +0 -101
  163. hyperstack/models/contract_eligible_instances_response.py +0 -101
  164. hyperstack/models/contract_event_create_model.py +0 -91
  165. hyperstack/models/contract_resource_payload.py +0 -95
  166. hyperstack/models/contractl_billing_history_response_metrics.py +0 -87
  167. hyperstack/models/create_contract_fields.py +0 -110
  168. hyperstack/models/create_contract_payload.py +0 -106
  169. hyperstack/models/create_discounts_payload.py +0 -112
  170. hyperstack/models/create_update_permission_payload.py +0 -93
  171. hyperstack/models/create_update_policy_payload.py +0 -93
  172. hyperstack/models/creditrechargelimitfield.py +0 -93
  173. hyperstack/models/creditrechargelimitresponse.py +0 -99
  174. hyperstack/models/creditrequests.py +0 -96
  175. hyperstack/models/data.py +0 -91
  176. hyperstack/models/discount_entity_model.py +0 -97
  177. hyperstack/models/discount_fields.py +0 -100
  178. hyperstack/models/discount_plan_fields.py +0 -108
  179. hyperstack/models/discount_resource_fields.py +0 -93
  180. hyperstack/models/discount_resource_payload.py +0 -93
  181. hyperstack/models/exclude_billing_post_payload.py +0 -91
  182. hyperstack/models/field_change.py +0 -91
  183. hyperstack/models/flavor_payload.py +0 -101
  184. hyperstack/models/flavor_vms_response.py +0 -99
  185. hyperstack/models/future_node_stock_model.py +0 -93
  186. hyperstack/models/future_node_update_model.py +0 -98
  187. hyperstack/models/get_all_contract_fields.py +0 -100
  188. hyperstack/models/get_discount_response.py +0 -99
  189. hyperstack/models/get_entity_discount_detail_response.py +0 -108
  190. hyperstack/models/get_token_payload.py +0 -89
  191. hyperstack/models/get_version_response.py +0 -91
  192. hyperstack/models/historical_instance.py +0 -101
  193. hyperstack/models/infrahub_resource_object_response.py +0 -119
  194. hyperstack/models/insert_discount_plan_fields.py +0 -112
  195. hyperstack/models/internal_instance_fields.py +0 -156
  196. hyperstack/models/internal_instance_image_fields.py +0 -95
  197. hyperstack/models/internal_instances_response.py +0 -99
  198. hyperstack/models/internal_security_rules_fields_for_instance.py +0 -104
  199. hyperstack/models/internal_volume_attachment_fields.py +0 -98
  200. hyperstack/models/internal_volume_fields.py +0 -95
  201. hyperstack/models/internal_volumes_response.py +0 -99
  202. hyperstack/models/new_stock_update_response_model.py +0 -89
  203. hyperstack/models/node_model.py +0 -114
  204. hyperstack/models/node_payload_model.py +0 -97
  205. hyperstack/models/node_power_usage_model.py +0 -120
  206. hyperstack/models/node_stock_payload_model.py +0 -95
  207. hyperstack/models/organizationcreditrechargelimitresponse.py +0 -95
  208. hyperstack/models/power_usage_model.py +0 -89
  209. hyperstack/models/pricebook_resource_object_response.py +0 -107
  210. hyperstack/models/refresh_token_payload.py +0 -89
  211. hyperstack/models/region_response.py +0 -95
  212. hyperstack/models/set_defaults_payload.py +0 -89
  213. hyperstack/models/single_visibility_user_response.py +0 -91
  214. hyperstack/models/success_response_model.py +0 -89
  215. hyperstack/models/token_fields.py +0 -91
  216. hyperstack/models/update_contract_payload.py +0 -104
  217. hyperstack/models/update_discounts_payload.py +0 -102
  218. hyperstack/models/user_transfer_payload.py +0 -89
  219. hyperstack/models/verify_api_key_response_model.py +0 -95
  220. hyperstack/models/volume_status_change_fields.py +0 -96
  221. hyperstack/models/volumes_last_status_change_response.py +0 -99
  222. hyperstack/models/warning_mail_log_fields.py +0 -99
  223. hyperstack/models/warning_mail_log_response.py +0 -101
  224. hyperstack-1.25.0a0.dist-info/RECORD +0 -401
  225. {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.0a0.dist-info}/top_level.txt +0 -0
@@ -40,6 +40,279 @@ class InviteApi:
40
40
  self.api_client = api_client
41
41
 
42
42
 
43
+ @validate_call
44
+ def accept_invite(
45
+ self,
46
+ id: StrictInt,
47
+ _request_timeout: Union[
48
+ None,
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Tuple[
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Annotated[StrictFloat, Field(gt=0)]
53
+ ]
54
+ ] = None,
55
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
56
+ _content_type: Optional[StrictStr] = None,
57
+ _headers: Optional[Dict[StrictStr, Any]] = None,
58
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
59
+ ) -> CommonResponseModel:
60
+ """Accept Invite
61
+
62
+ Accept an invitation for a user to join your organization.
63
+
64
+ :param id: (required)
65
+ :type id: int
66
+ :param _request_timeout: timeout setting for this request. If one
67
+ number provided, it will be total request
68
+ timeout. It can also be a pair (tuple) of
69
+ (connection, read) timeouts.
70
+ :type _request_timeout: int, tuple(int, int), optional
71
+ :param _request_auth: set to override the auth_settings for an a single
72
+ request; this effectively ignores the
73
+ authentication in the spec for a single request.
74
+ :type _request_auth: dict, optional
75
+ :param _content_type: force content-type for the request.
76
+ :type _content_type: str, Optional
77
+ :param _headers: set to override the headers for a single
78
+ request; this effectively ignores the headers
79
+ in the spec for a single request.
80
+ :type _headers: dict, optional
81
+ :param _host_index: set to override the host_index for a single
82
+ request; this effectively ignores the host_index
83
+ in the spec for a single request.
84
+ :type _host_index: int, optional
85
+ :return: Returns the result object.
86
+ """ # noqa: E501
87
+
88
+ _param = self._accept_invite_serialize(
89
+ id=id,
90
+ _request_auth=_request_auth,
91
+ _content_type=_content_type,
92
+ _headers=_headers,
93
+ _host_index=_host_index
94
+ )
95
+
96
+ _response_types_map: Dict[str, Optional[str]] = {
97
+ '200': "CommonResponseModel",
98
+ '400': "ErrorResponseModel",
99
+ '401': "ErrorResponseModel",
100
+ '404': "ErrorResponseModel",
101
+ '500': None,
102
+ }
103
+ response_data = self.api_client.call_api(
104
+ *_param,
105
+ _request_timeout=_request_timeout
106
+ )
107
+ response_data.read()
108
+ return self.api_client.response_deserialize(
109
+ response_data=response_data,
110
+ response_types_map=_response_types_map,
111
+ ).data
112
+
113
+
114
+ @validate_call
115
+ def accept_invite_with_http_info(
116
+ self,
117
+ id: StrictInt,
118
+ _request_timeout: Union[
119
+ None,
120
+ Annotated[StrictFloat, Field(gt=0)],
121
+ Tuple[
122
+ Annotated[StrictFloat, Field(gt=0)],
123
+ Annotated[StrictFloat, Field(gt=0)]
124
+ ]
125
+ ] = None,
126
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
127
+ _content_type: Optional[StrictStr] = None,
128
+ _headers: Optional[Dict[StrictStr, Any]] = None,
129
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
130
+ ) -> ApiResponse[CommonResponseModel]:
131
+ """Accept Invite
132
+
133
+ Accept an invitation for a user to join your organization.
134
+
135
+ :param id: (required)
136
+ :type id: int
137
+ :param _request_timeout: timeout setting for this request. If one
138
+ number provided, it will be total request
139
+ timeout. It can also be a pair (tuple) of
140
+ (connection, read) timeouts.
141
+ :type _request_timeout: int, tuple(int, int), optional
142
+ :param _request_auth: set to override the auth_settings for an a single
143
+ request; this effectively ignores the
144
+ authentication in the spec for a single request.
145
+ :type _request_auth: dict, optional
146
+ :param _content_type: force content-type for the request.
147
+ :type _content_type: str, Optional
148
+ :param _headers: set to override the headers for a single
149
+ request; this effectively ignores the headers
150
+ in the spec for a single request.
151
+ :type _headers: dict, optional
152
+ :param _host_index: set to override the host_index for a single
153
+ request; this effectively ignores the host_index
154
+ in the spec for a single request.
155
+ :type _host_index: int, optional
156
+ :return: Returns the result object.
157
+ """ # noqa: E501
158
+
159
+ _param = self._accept_invite_serialize(
160
+ id=id,
161
+ _request_auth=_request_auth,
162
+ _content_type=_content_type,
163
+ _headers=_headers,
164
+ _host_index=_host_index
165
+ )
166
+
167
+ _response_types_map: Dict[str, Optional[str]] = {
168
+ '200': "CommonResponseModel",
169
+ '400': "ErrorResponseModel",
170
+ '401': "ErrorResponseModel",
171
+ '404': "ErrorResponseModel",
172
+ '500': None,
173
+ }
174
+ response_data = self.api_client.call_api(
175
+ *_param,
176
+ _request_timeout=_request_timeout
177
+ )
178
+ response_data.read()
179
+ return self.api_client.response_deserialize(
180
+ response_data=response_data,
181
+ response_types_map=_response_types_map,
182
+ )
183
+
184
+
185
+ @validate_call
186
+ def accept_invite_without_preload_content(
187
+ self,
188
+ id: StrictInt,
189
+ _request_timeout: Union[
190
+ None,
191
+ Annotated[StrictFloat, Field(gt=0)],
192
+ Tuple[
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Annotated[StrictFloat, Field(gt=0)]
195
+ ]
196
+ ] = None,
197
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
198
+ _content_type: Optional[StrictStr] = None,
199
+ _headers: Optional[Dict[StrictStr, Any]] = None,
200
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
201
+ ) -> RESTResponseType:
202
+ """Accept Invite
203
+
204
+ Accept an invitation for a user to join your organization.
205
+
206
+ :param id: (required)
207
+ :type id: int
208
+ :param _request_timeout: timeout setting for this request. If one
209
+ number provided, it will be total request
210
+ timeout. It can also be a pair (tuple) of
211
+ (connection, read) timeouts.
212
+ :type _request_timeout: int, tuple(int, int), optional
213
+ :param _request_auth: set to override the auth_settings for an a single
214
+ request; this effectively ignores the
215
+ authentication in the spec for a single request.
216
+ :type _request_auth: dict, optional
217
+ :param _content_type: force content-type for the request.
218
+ :type _content_type: str, Optional
219
+ :param _headers: set to override the headers for a single
220
+ request; this effectively ignores the headers
221
+ in the spec for a single request.
222
+ :type _headers: dict, optional
223
+ :param _host_index: set to override the host_index for a single
224
+ request; this effectively ignores the host_index
225
+ in the spec for a single request.
226
+ :type _host_index: int, optional
227
+ :return: Returns the result object.
228
+ """ # noqa: E501
229
+
230
+ _param = self._accept_invite_serialize(
231
+ id=id,
232
+ _request_auth=_request_auth,
233
+ _content_type=_content_type,
234
+ _headers=_headers,
235
+ _host_index=_host_index
236
+ )
237
+
238
+ _response_types_map: Dict[str, Optional[str]] = {
239
+ '200': "CommonResponseModel",
240
+ '400': "ErrorResponseModel",
241
+ '401': "ErrorResponseModel",
242
+ '404': "ErrorResponseModel",
243
+ '500': None,
244
+ }
245
+ response_data = self.api_client.call_api(
246
+ *_param,
247
+ _request_timeout=_request_timeout
248
+ )
249
+ return response_data.response
250
+
251
+
252
+ def _accept_invite_serialize(
253
+ self,
254
+ id,
255
+ _request_auth,
256
+ _content_type,
257
+ _headers,
258
+ _host_index,
259
+ ) -> RequestSerialized:
260
+
261
+ _host = None
262
+
263
+ _collection_formats: Dict[str, str] = {
264
+ }
265
+
266
+ _path_params: Dict[str, str] = {}
267
+ _query_params: List[Tuple[str, str]] = []
268
+ _header_params: Dict[str, Optional[str]] = _headers or {}
269
+ _form_params: List[Tuple[str, str]] = []
270
+ _files: Dict[
271
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
272
+ ] = {}
273
+ _body_params: Optional[bytes] = None
274
+
275
+ # process the path parameters
276
+ if id is not None:
277
+ _path_params['id'] = id
278
+ # process the query parameters
279
+ # process the header parameters
280
+ # process the form parameters
281
+ # process the body parameter
282
+
283
+
284
+ # set the HTTP header `Accept`
285
+ if 'Accept' not in _header_params:
286
+ _header_params['Accept'] = self.api_client.select_header_accept(
287
+ [
288
+ 'application/json'
289
+ ]
290
+ )
291
+
292
+
293
+ # authentication setting
294
+ _auth_settings: List[str] = [
295
+ 'apiKey'
296
+ ]
297
+
298
+ return self.api_client.param_serialize(
299
+ method='GET',
300
+ resource_path='/auth/invites/{id}/accept',
301
+ path_params=_path_params,
302
+ query_params=_query_params,
303
+ header_params=_header_params,
304
+ body=_body_params,
305
+ post_params=_form_params,
306
+ files=_files,
307
+ auth_settings=_auth_settings,
308
+ collection_formats=_collection_formats,
309
+ _host=_host,
310
+ _request_auth=_request_auth
311
+ )
312
+
313
+
314
+
315
+
43
316
  @validate_call
44
317
  def delete_invite(
45
318
  self,
@@ -57,9 +330,9 @@ class InviteApi:
57
330
  _headers: Optional[Dict[StrictStr, Any]] = None,
58
331
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
59
332
  ) -> CommonResponseModel:
60
- """Delete Invite
333
+ """Accept Invite
61
334
 
62
- Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/delete-invite).
335
+ Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://docs...cloud/docs/api-reference/auth-resources/organization/invites/delete-invite).
63
336
 
64
337
  :param id: (required)
65
338
  :type id: int
@@ -128,9 +401,9 @@ class InviteApi:
128
401
  _headers: Optional[Dict[StrictStr, Any]] = None,
129
402
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
130
403
  ) -> ApiResponse[CommonResponseModel]:
131
- """Delete Invite
404
+ """Accept Invite
132
405
 
133
- Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/delete-invite).
406
+ Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://docs...cloud/docs/api-reference/auth-resources/organization/invites/delete-invite).
134
407
 
135
408
  :param id: (required)
136
409
  :type id: int
@@ -199,9 +472,9 @@ class InviteApi:
199
472
  _headers: Optional[Dict[StrictStr, Any]] = None,
200
473
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
201
474
  ) -> RESTResponseType:
202
- """Delete Invite
475
+ """Accept Invite
203
476
 
204
- Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/delete-invite).
477
+ Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://docs...cloud/docs/api-reference/auth-resources/organization/invites/delete-invite).
205
478
 
206
479
  :param id: (required)
207
480
  :type id: int
@@ -292,8 +565,7 @@ class InviteApi:
292
565
 
293
566
  # authentication setting
294
567
  _auth_settings: List[str] = [
295
- 'apiKey',
296
- 'accessToken'
568
+ 'apiKey'
297
569
  ]
298
570
 
299
571
  return self.api_client.param_serialize(
@@ -333,7 +605,7 @@ class InviteApi:
333
605
  ) -> InviteUserResponseModel:
334
606
  """Invite User to Organization
335
607
 
336
- Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/invite-member).
608
+ Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://docs...cloud/docs/api-reference/auth-resources/organization/invites/invite-member).
337
609
 
338
610
  :param payload: (required)
339
611
  :type payload: InviteUserPayload
@@ -404,7 +676,7 @@ class InviteApi:
404
676
  ) -> ApiResponse[InviteUserResponseModel]:
405
677
  """Invite User to Organization
406
678
 
407
- Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/invite-member).
679
+ Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://docs...cloud/docs/api-reference/auth-resources/organization/invites/invite-member).
408
680
 
409
681
  :param payload: (required)
410
682
  :type payload: InviteUserPayload
@@ -475,7 +747,7 @@ class InviteApi:
475
747
  ) -> RESTResponseType:
476
748
  """Invite User to Organization
477
749
 
478
- Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/invite-member).
750
+ Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://docs...cloud/docs/api-reference/auth-resources/organization/invites/invite-member).
479
751
 
480
752
  :param payload: (required)
481
753
  :type payload: InviteUserPayload
@@ -579,8 +851,7 @@ class InviteApi:
579
851
 
580
852
  # authentication setting
581
853
  _auth_settings: List[str] = [
582
- 'apiKey',
583
- 'accessToken'
854
+ 'apiKey'
584
855
  ]
585
856
 
586
857
  return self.api_client.param_serialize(
@@ -619,7 +890,7 @@ class InviteApi:
619
890
  ) -> GetInvitesResponseModel:
620
891
  """List Invites
621
892
 
622
- Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/list-invites).
893
+ Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://docs...cloud/docs/api-reference/auth-resources/organization/invites/list-invites).
623
894
 
624
895
  :param _request_timeout: timeout setting for this request. If one
625
896
  number provided, it will be total request
@@ -685,7 +956,7 @@ class InviteApi:
685
956
  ) -> ApiResponse[GetInvitesResponseModel]:
686
957
  """List Invites
687
958
 
688
- Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/list-invites).
959
+ Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://docs...cloud/docs/api-reference/auth-resources/organization/invites/list-invites).
689
960
 
690
961
  :param _request_timeout: timeout setting for this request. If one
691
962
  number provided, it will be total request
@@ -751,7 +1022,7 @@ class InviteApi:
751
1022
  ) -> RESTResponseType:
752
1023
  """List Invites
753
1024
 
754
- Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/list-invites).
1025
+ Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://docs...cloud/docs/api-reference/auth-resources/organization/invites/list-invites).
755
1026
 
756
1027
  :param _request_timeout: timeout setting for this request. If one
757
1028
  number provided, it will be total request
@@ -835,8 +1106,7 @@ class InviteApi:
835
1106
 
836
1107
  # authentication setting
837
1108
  _auth_settings: List[str] = [
838
- 'apiKey',
839
- 'accessToken'
1109
+ 'apiKey'
840
1110
  ]
841
1111
 
842
1112
  return self.api_client.param_serialize(
@@ -24,7 +24,7 @@ from ..models.import_keypair_response import ImportKeypairResponse
24
24
  from ..models.keypairs import Keypairs
25
25
  from ..models.response_model import ResponseModel
26
26
  from ..models.update_keypair_name import UpdateKeypairName
27
- from ..models.update_keypairnameresponse import UpdateKeypairnameresponse
27
+ from ..models.update_keypair_name_response import UpdateKeypairNameResponse
28
28
 
29
29
  from ..api_client import ApiClient, RequestSerialized
30
30
  from ..api_response import ApiResponse
@@ -63,7 +63,7 @@ class KeypairApi:
63
63
  ) -> ResponseModel:
64
64
  """Delete key pair
65
65
 
66
- Permanently deletes a specified key pair. Include the key pair ID in the request path to remove the designated key pair.
66
+ Permanently deletes a specified key pair. Provide the key pair ID in the path to remove the designated key pair.
67
67
 
68
68
  :param id: (required)
69
69
  :type id: int
@@ -134,7 +134,7 @@ class KeypairApi:
134
134
  ) -> ApiResponse[ResponseModel]:
135
135
  """Delete key pair
136
136
 
137
- Permanently deletes a specified key pair. Include the key pair ID in the request path to remove the designated key pair.
137
+ Permanently deletes a specified key pair. Provide the key pair ID in the path to remove the designated key pair.
138
138
 
139
139
  :param id: (required)
140
140
  :type id: int
@@ -205,7 +205,7 @@ class KeypairApi:
205
205
  ) -> RESTResponseType:
206
206
  """Delete key pair
207
207
 
208
- Permanently deletes a specified key pair. Include the key pair ID in the request path to remove the designated key pair.
208
+ Permanently deletes a specified key pair. Provide the key pair ID in the path to remove the designated key pair.
209
209
 
210
210
  :param id: (required)
211
211
  :type id: int
@@ -296,8 +296,7 @@ class KeypairApi:
296
296
 
297
297
  # authentication setting
298
298
  _auth_settings: List[str] = [
299
- 'apiKey',
300
- 'accessToken'
299
+ 'apiKey'
301
300
  ]
302
301
 
303
302
  return self.api_client.param_serialize(
@@ -337,7 +336,7 @@ class KeypairApi:
337
336
  ) -> ImportKeypairResponse:
338
337
  """Import key pair
339
338
 
340
- Imports a new key pair for secure shell (SSH) access to your resources. To import a new key pair, include the key name, environment name, and public key in the request body. For additional information on importing SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/getting-started/create-keypair#importing-an-ssh-key).
339
+ Imports a new key pair for secure shell (SSH) access to your resources. Provide the key name, environment name, and public key in the request body. For more details on importing SSH key pairs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/keypairs/import-keypair).
341
340
 
342
341
  :param payload: (required)
343
342
  :type payload: ImportKeypairPayload
@@ -409,7 +408,7 @@ class KeypairApi:
409
408
  ) -> ApiResponse[ImportKeypairResponse]:
410
409
  """Import key pair
411
410
 
412
- Imports a new key pair for secure shell (SSH) access to your resources. To import a new key pair, include the key name, environment name, and public key in the request body. For additional information on importing SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/getting-started/create-keypair#importing-an-ssh-key).
411
+ Imports a new key pair for secure shell (SSH) access to your resources. Provide the key name, environment name, and public key in the request body. For more details on importing SSH key pairs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/keypairs/import-keypair).
413
412
 
414
413
  :param payload: (required)
415
414
  :type payload: ImportKeypairPayload
@@ -481,7 +480,7 @@ class KeypairApi:
481
480
  ) -> RESTResponseType:
482
481
  """Import key pair
483
482
 
484
- Imports a new key pair for secure shell (SSH) access to your resources. To import a new key pair, include the key name, environment name, and public key in the request body. For additional information on importing SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/getting-started/create-keypair#importing-an-ssh-key).
483
+ Imports a new key pair for secure shell (SSH) access to your resources. Provide the key name, environment name, and public key in the request body. For more details on importing SSH key pairs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/keypairs/import-keypair).
485
484
 
486
485
  :param payload: (required)
487
486
  :type payload: ImportKeypairPayload
@@ -586,8 +585,7 @@ class KeypairApi:
586
585
 
587
586
  # authentication setting
588
587
  _auth_settings: List[str] = [
589
- 'apiKey',
590
- 'accessToken'
588
+ 'apiKey'
591
589
  ]
592
590
 
593
591
  return self.api_client.param_serialize(
@@ -629,7 +627,7 @@ class KeypairApi:
629
627
  ) -> Keypairs:
630
628
  """List key pairs
631
629
 
632
- Retrieves a list of your existing SSH key pairs, providing details for each. For additional information on SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/keypairs-available-features).
630
+ Retrieves a list of your existing SSH key pairs, providing details for each. For more information on SSH key pairs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/keypairs/).
633
631
 
634
632
  :param page: Page Number
635
633
  :type page: str
@@ -707,7 +705,7 @@ class KeypairApi:
707
705
  ) -> ApiResponse[Keypairs]:
708
706
  """List key pairs
709
707
 
710
- Retrieves a list of your existing SSH key pairs, providing details for each. For additional information on SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/keypairs-available-features).
708
+ Retrieves a list of your existing SSH key pairs, providing details for each. For more information on SSH key pairs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/keypairs/).
711
709
 
712
710
  :param page: Page Number
713
711
  :type page: str
@@ -785,7 +783,7 @@ class KeypairApi:
785
783
  ) -> RESTResponseType:
786
784
  """List key pairs
787
785
 
788
- Retrieves a list of your existing SSH key pairs, providing details for each. For additional information on SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/keypairs-available-features).
786
+ Retrieves a list of your existing SSH key pairs, providing details for each. For more information on SSH key pairs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/keypairs/).
789
787
 
790
788
  :param page: Page Number
791
789
  :type page: str
@@ -893,8 +891,7 @@ class KeypairApi:
893
891
 
894
892
  # authentication setting
895
893
  _auth_settings: List[str] = [
896
- 'apiKey',
897
- 'accessToken'
894
+ 'apiKey'
898
895
  ]
899
896
 
900
897
  return self.api_client.param_serialize(
@@ -932,10 +929,10 @@ class KeypairApi:
932
929
  _content_type: Optional[StrictStr] = None,
933
930
  _headers: Optional[Dict[StrictStr, Any]] = None,
934
931
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
935
- ) -> UpdateKeypairnameresponse:
932
+ ) -> UpdateKeypairNameResponse:
936
933
  """Update key pair name
937
934
 
938
- Updates the name of a specified key pair. Include the key pair ID in the request path and the new `name` of the key pair in the request body.
935
+ Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
939
936
 
940
937
  :param id: (required)
941
938
  :type id: int
@@ -973,7 +970,7 @@ class KeypairApi:
973
970
  )
974
971
 
975
972
  _response_types_map: Dict[str, Optional[str]] = {
976
- '200': "UpdateKeypairnameresponse",
973
+ '200': "UpdateKeypairNameResponse",
977
974
  '400': "ErrorResponseModel",
978
975
  '401': "ErrorResponseModel",
979
976
  '404': "ErrorResponseModel",
@@ -1007,10 +1004,10 @@ class KeypairApi:
1007
1004
  _content_type: Optional[StrictStr] = None,
1008
1005
  _headers: Optional[Dict[StrictStr, Any]] = None,
1009
1006
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1010
- ) -> ApiResponse[UpdateKeypairnameresponse]:
1007
+ ) -> ApiResponse[UpdateKeypairNameResponse]:
1011
1008
  """Update key pair name
1012
1009
 
1013
- Updates the name of a specified key pair. Include the key pair ID in the request path and the new `name` of the key pair in the request body.
1010
+ Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
1014
1011
 
1015
1012
  :param id: (required)
1016
1013
  :type id: int
@@ -1048,7 +1045,7 @@ class KeypairApi:
1048
1045
  )
1049
1046
 
1050
1047
  _response_types_map: Dict[str, Optional[str]] = {
1051
- '200': "UpdateKeypairnameresponse",
1048
+ '200': "UpdateKeypairNameResponse",
1052
1049
  '400': "ErrorResponseModel",
1053
1050
  '401': "ErrorResponseModel",
1054
1051
  '404': "ErrorResponseModel",
@@ -1085,7 +1082,7 @@ class KeypairApi:
1085
1082
  ) -> RESTResponseType:
1086
1083
  """Update key pair name
1087
1084
 
1088
- Updates the name of a specified key pair. Include the key pair ID in the request path and the new `name` of the key pair in the request body.
1085
+ Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
1089
1086
 
1090
1087
  :param id: (required)
1091
1088
  :type id: int
@@ -1123,7 +1120,7 @@ class KeypairApi:
1123
1120
  )
1124
1121
 
1125
1122
  _response_types_map: Dict[str, Optional[str]] = {
1126
- '200': "UpdateKeypairnameresponse",
1123
+ '200': "UpdateKeypairNameResponse",
1127
1124
  '400': "ErrorResponseModel",
1128
1125
  '401': "ErrorResponseModel",
1129
1126
  '404': "ErrorResponseModel",
@@ -1195,8 +1192,7 @@ class KeypairApi:
1195
1192
 
1196
1193
  # authentication setting
1197
1194
  _auth_settings: List[str] = [
1198
- 'apiKey',
1199
- 'accessToken'
1195
+ 'apiKey'
1200
1196
  ]
1201
1197
 
1202
1198
  return self.api_client.param_serialize(