archil-api-types 0.0.109__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.
- archil_api_types/__init__.py +8 -0
- archil_api_types/api/__init__.py +1 -0
- archil_api_types/api/activity/__init__.py +1 -0
- archil_api_types/api/activity/list_activity.py +268 -0
- archil_api_types/api/api_tokens/__init__.py +1 -0
- archil_api_types/api/api_tokens/create_api_token.py +188 -0
- archil_api_types/api/api_tokens/delete_api_token.py +177 -0
- archil_api_types/api/api_tokens/list_api_tokens.py +193 -0
- archil_api_types/api/billing/__init__.py +1 -0
- archil_api_types/api/billing/cancel_billing_subscription.py +198 -0
- archil_api_types/api/billing/change_billing_subscription.py +211 -0
- archil_api_types/api/billing/create_billing_setup_intent.py +145 -0
- archil_api_types/api/billing/create_billing_subscription.py +216 -0
- archil_api_types/api/billing/delete_billing_payment_method.py +190 -0
- archil_api_types/api/billing/get_billing_credits.py +219 -0
- archil_api_types/api/billing/get_billing_invoice.py +249 -0
- archil_api_types/api/billing/get_billing_operation.py +190 -0
- archil_api_types/api/billing/get_billing_profile.py +138 -0
- archil_api_types/api/billing/get_billing_subscription.py +149 -0
- archil_api_types/api/billing/get_billing_summary.py +223 -0
- archil_api_types/api/billing/get_billing_usage.py +301 -0
- archil_api_types/api/billing/keep_billing_subscription.py +182 -0
- archil_api_types/api/billing/list_billing_invoices.py +206 -0
- archil_api_types/api/billing/list_billing_payment_methods.py +189 -0
- archil_api_types/api/billing/pay_billing_invoice.py +221 -0
- archil_api_types/api/billing/preview_billing_code.py +201 -0
- archil_api_types/api/billing/preview_billing_subscription.py +211 -0
- archil_api_types/api/billing/redeem_billing_code.py +206 -0
- archil_api_types/api/billing/set_billing_default_payment_method.py +201 -0
- archil_api_types/api/billing/update_billing_payment_method.py +200 -0
- archil_api_types/api/billing/update_billing_profile.py +177 -0
- archil_api_types/api/billing/withdraw_billing_scheduled_change.py +144 -0
- archil_api_types/api/disk_configuration/__init__.py +1 -0
- archil_api_types/api/disk_configuration/get_allowed_i_ps.py +181 -0
- archil_api_types/api/disk_configuration/get_sandbox_mount.py +177 -0
- archil_api_types/api/disk_configuration/list_delegations.py +189 -0
- archil_api_types/api/disk_configuration/revoke_all_delegations.py +182 -0
- archil_api_types/api/disk_configuration/revoke_delegation.py +208 -0
- archil_api_types/api/disk_configuration/set_allowed_i_ps.py +232 -0
- archil_api_types/api/disk_configuration/set_sandbox_mount.py +216 -0
- archil_api_types/api/disk_users/__init__.py +1 -0
- archil_api_types/api/disk_users/add_disk_user.py +231 -0
- archil_api_types/api/disk_users/remove_disk_user.py +228 -0
- archil_api_types/api/disks/__init__.py +1 -0
- archil_api_types/api/disks/cancel_exec.py +181 -0
- archil_api_types/api/disks/create_branch.py +265 -0
- archil_api_types/api/disks/create_disk.py +233 -0
- archil_api_types/api/disks/create_share_url.py +208 -0
- archil_api_types/api/disks/delete_disk.py +260 -0
- archil_api_types/api/disks/exec_.py +246 -0
- archil_api_types/api/disks/exec_disk.py +237 -0
- archil_api_types/api/disks/exec_stream.py +178 -0
- archil_api_types/api/disks/get_branch.py +192 -0
- archil_api_types/api/disks/get_checkpoint_diff.py +331 -0
- archil_api_types/api/disks/get_disk.py +182 -0
- archil_api_types/api/disks/get_disk_metrics.py +237 -0
- archil_api_types/api/disks/get_exec.py +211 -0
- archil_api_types/api/disks/grep_disk.py +296 -0
- archil_api_types/api/disks/list_branches.py +190 -0
- archil_api_types/api/disks/list_disks.py +242 -0
- archil_api_types/api/disks/prefetch_disk.py +229 -0
- archil_api_types/api/sandboxes/__init__.py +1 -0
- archil_api_types/api/sandboxes/create_image.py +273 -0
- archil_api_types/api/sandboxes/create_image_context.py +225 -0
- archil_api_types/api/sandboxes/create_sandbox.py +248 -0
- archil_api_types/api/sandboxes/create_sandbox_connection.py +203 -0
- archil_api_types/api/sandboxes/create_sandbox_port_token.py +221 -0
- archil_api_types/api/sandboxes/delete_sandbox.py +185 -0
- archil_api_types/api/sandboxes/delete_sandbox_port.py +199 -0
- archil_api_types/api/sandboxes/delete_sandbox_port_token.py +194 -0
- archil_api_types/api/sandboxes/expose_sandbox_port.py +202 -0
- archil_api_types/api/sandboxes/fork_sandbox.py +284 -0
- archil_api_types/api/sandboxes/get_image.py +185 -0
- archil_api_types/api/sandboxes/get_sandbox.py +170 -0
- archil_api_types/api/sandboxes/get_sandbox_network.py +183 -0
- archil_api_types/api/sandboxes/get_sandbox_port_token.py +192 -0
- archil_api_types/api/sandboxes/get_sandbox_usage.py +211 -0
- archil_api_types/api/sandboxes/list_sandbox_port_tokens.py +219 -0
- archil_api_types/api/sandboxes/list_sandbox_ports.py +178 -0
- archil_api_types/api/sandboxes/list_sandboxes.py +270 -0
- archil_api_types/api/sandboxes/pause_sandbox.py +218 -0
- archil_api_types/api/sandboxes/resume_sandbox.py +236 -0
- archil_api_types/api/sandboxes/set_sandbox_timeout.py +252 -0
- archil_api_types/api/sandboxes/start_sandbox.py +265 -0
- archil_api_types/api/sandboxes/stop_sandbox.py +210 -0
- archil_api_types/api/sandboxes/update_sandbox_network.py +280 -0
- archil_api_types/client.py +268 -0
- archil_api_types/errors.py +16 -0
- archil_api_types/models/__init__.py +583 -0
- archil_api_types/models/activity_event.py +119 -0
- archil_api_types/models/activity_event_details.py +47 -0
- archil_api_types/models/activity_event_level.py +10 -0
- archil_api_types/models/api_response_activity_list.py +93 -0
- archil_api_types/models/api_response_allowed_i_ps.py +73 -0
- archil_api_types/models/api_response_allowed_i_ps_data.py +65 -0
- archil_api_types/models/api_response_authorized_user.py +73 -0
- archil_api_types/models/api_response_billing_cancellation.py +73 -0
- archil_api_types/models/api_response_billing_credits.py +84 -0
- archil_api_types/models/api_response_billing_default_payment_method.py +73 -0
- archil_api_types/models/api_response_billing_default_payment_method_data.py +87 -0
- archil_api_types/models/api_response_billing_default_payment_method_data_scope.py +9 -0
- archil_api_types/models/api_response_billing_invoice_detail.py +73 -0
- archil_api_types/models/api_response_billing_invoices.py +92 -0
- archil_api_types/models/api_response_billing_method_removed.py +73 -0
- archil_api_types/models/api_response_billing_method_removed_data.py +67 -0
- archil_api_types/models/api_response_billing_operation.py +73 -0
- archil_api_types/models/api_response_billing_payment_method.py +73 -0
- archil_api_types/models/api_response_billing_payment_methods.py +92 -0
- archil_api_types/models/api_response_billing_profile.py +73 -0
- archil_api_types/models/api_response_billing_redeem_preview.py +73 -0
- archil_api_types/models/api_response_billing_redeem_preview_data.py +136 -0
- archil_api_types/models/api_response_billing_redeem_preview_data_kind.py +9 -0
- archil_api_types/models/api_response_billing_redeem_preview_data_lasts.py +70 -0
- archil_api_types/models/api_response_billing_redeem_preview_data_lasts_unit.py +11 -0
- archil_api_types/models/api_response_billing_redeem_preview_data_plans_item.py +77 -0
- archil_api_types/models/api_response_billing_redeem_preview_data_plans_item_plan.py +9 -0
- archil_api_types/models/api_response_billing_redeem_result.py +73 -0
- archil_api_types/models/api_response_billing_redeem_result_data.py +59 -0
- archil_api_types/models/api_response_billing_setup_intent.py +73 -0
- archil_api_types/models/api_response_billing_setup_intent_data.py +67 -0
- archil_api_types/models/api_response_billing_subscription.py +73 -0
- archil_api_types/models/api_response_billing_subscription_preview.py +73 -0
- archil_api_types/models/api_response_billing_subscription_state.py +73 -0
- archil_api_types/models/api_response_billing_summary.py +73 -0
- archil_api_types/models/api_response_billing_usage.py +73 -0
- archil_api_types/models/api_response_create_disk.py +73 -0
- archil_api_types/models/api_response_create_disk_data.py +84 -0
- archil_api_types/models/api_response_created_sandbox_port_token.py +73 -0
- archil_api_types/models/api_response_delegations.py +73 -0
- archil_api_types/models/api_response_delegations_data.py +73 -0
- archil_api_types/models/api_response_disk.py +73 -0
- archil_api_types/models/api_response_disk_list.py +104 -0
- archil_api_types/models/api_response_disk_metric_series.py +73 -0
- archil_api_types/models/api_response_empty.py +59 -0
- archil_api_types/models/api_response_exec.py +73 -0
- archil_api_types/models/api_response_exec_accepted.py +73 -0
- archil_api_types/models/api_response_exec_accepted_data.py +69 -0
- archil_api_types/models/api_response_exec_accepted_data_status.py +8 -0
- archil_api_types/models/api_response_exec_disk.py +73 -0
- archil_api_types/models/api_response_exec_status.py +73 -0
- archil_api_types/models/api_response_grep_disk.py +73 -0
- archil_api_types/models/api_response_image.py +73 -0
- archil_api_types/models/api_response_image_context_upload.py +73 -0
- archil_api_types/models/api_response_message.py +73 -0
- archil_api_types/models/api_response_message_data.py +59 -0
- archil_api_types/models/api_response_prefetch.py +73 -0
- archil_api_types/models/api_response_prefetch_data.py +73 -0
- archil_api_types/models/api_response_sandbox.py +73 -0
- archil_api_types/models/api_response_sandbox_connection.py +73 -0
- archil_api_types/models/api_response_sandbox_list.py +84 -0
- archil_api_types/models/api_response_sandbox_list_data.py +75 -0
- archil_api_types/models/api_response_sandbox_mount.py +73 -0
- archil_api_types/models/api_response_sandbox_mount_data.py +59 -0
- archil_api_types/models/api_response_sandbox_network.py +80 -0
- archil_api_types/models/api_response_sandbox_port.py +73 -0
- archil_api_types/models/api_response_sandbox_port_list.py +73 -0
- archil_api_types/models/api_response_sandbox_port_token.py +73 -0
- archil_api_types/models/api_response_sandbox_port_token_list.py +84 -0
- archil_api_types/models/api_response_sandbox_usage.py +73 -0
- archil_api_types/models/api_response_share_url.py +73 -0
- archil_api_types/models/api_response_share_url_data.py +67 -0
- archil_api_types/models/api_response_token_created.py +73 -0
- archil_api_types/models/api_response_token_created_data.py +138 -0
- archil_api_types/models/api_response_token_list.py +73 -0
- archil_api_types/models/api_response_token_list_data.py +75 -0
- archil_api_types/models/api_token_response.py +129 -0
- archil_api_types/models/authorized_user.py +221 -0
- archil_api_types/models/authorized_user_status.py +11 -0
- archil_api_types/models/authorized_user_type.py +10 -0
- archil_api_types/models/aws_sts_user.py +118 -0
- archil_api_types/models/aws_sts_user_type.py +8 -0
- archil_api_types/models/azure_blob_storage.py +124 -0
- archil_api_types/models/azure_blob_storage_type.py +8 -0
- archil_api_types/models/billing_active_discount.py +118 -0
- archil_api_types/models/billing_address.py +99 -0
- archil_api_types/models/billing_address_patch.py +85 -0
- archil_api_types/models/billing_balance_transaction.py +119 -0
- archil_api_types/models/billing_cancel_request.py +82 -0
- archil_api_types/models/billing_cancel_request_reason.py +57 -0
- archil_api_types/models/billing_cancel_request_reason_feedback.py +15 -0
- archil_api_types/models/billing_cancel_request_timing.py +8 -0
- archil_api_types/models/billing_cancellation.py +83 -0
- archil_api_types/models/billing_cancellation_settlement.py +110 -0
- archil_api_types/models/billing_cancellation_settlement_method.py +8 -0
- archil_api_types/models/billing_change_request.py +78 -0
- archil_api_types/models/billing_change_request_plan.py +9 -0
- archil_api_types/models/billing_change_request_timing.py +9 -0
- archil_api_types/models/billing_credit_grant.py +120 -0
- archil_api_types/models/billing_credit_note.py +123 -0
- archil_api_types/models/billing_credits.py +97 -0
- archil_api_types/models/billing_discount_terms.py +92 -0
- archil_api_types/models/billing_discount_terms_duration.py +71 -0
- archil_api_types/models/billing_discount_terms_duration_type.py +10 -0
- archil_api_types/models/billing_discount_terms_type.py +9 -0
- archil_api_types/models/billing_invoice_credit.py +67 -0
- archil_api_types/models/billing_invoice_detail.py +294 -0
- archil_api_types/models/billing_invoice_line.py +151 -0
- archil_api_types/models/billing_invoice_summary.py +159 -0
- archil_api_types/models/billing_invoice_tax.py +75 -0
- archil_api_types/models/billing_issued_invoice.py +81 -0
- archil_api_types/models/billing_issued_invoice_status.py +11 -0
- archil_api_types/models/billing_keep_request.py +41 -0
- archil_api_types/models/billing_line.py +138 -0
- archil_api_types/models/billing_line_type.py +11 -0
- archil_api_types/models/billing_next_action.py +82 -0
- archil_api_types/models/billing_next_action_type.py +10 -0
- archil_api_types/models/billing_operation.py +206 -0
- archil_api_types/models/billing_operation_failure.py +70 -0
- archil_api_types/models/billing_operation_invoice.py +83 -0
- archil_api_types/models/billing_operation_plan.py +12 -0
- archil_api_types/models/billing_operation_state.py +10 -0
- archil_api_types/models/billing_operation_status.py +13 -0
- archil_api_types/models/billing_operation_type.py +9 -0
- archil_api_types/models/billing_owner.py +69 -0
- archil_api_types/models/billing_owner_type.py +9 -0
- archil_api_types/models/billing_pay_invoice_request.py +52 -0
- archil_api_types/models/billing_payment_health.py +126 -0
- archil_api_types/models/billing_payment_health_status.py +12 -0
- archil_api_types/models/billing_payment_method.py +133 -0
- archil_api_types/models/billing_payment_method_billing_details.py +83 -0
- archil_api_types/models/billing_payment_method_card.py +83 -0
- archil_api_types/models/billing_period.py +67 -0
- archil_api_types/models/billing_preview_line.py +107 -0
- archil_api_types/models/billing_preview_request.py +84 -0
- archil_api_types/models/billing_preview_request_plan.py +9 -0
- archil_api_types/models/billing_preview_request_timing.py +9 -0
- archil_api_types/models/billing_profile.py +108 -0
- archil_api_types/models/billing_profile_billing_mode.py +9 -0
- archil_api_types/models/billing_profile_validation_error.py +91 -0
- archil_api_types/models/billing_profile_validation_error_code.py +8 -0
- archil_api_types/models/billing_profile_validation_error_data.py +67 -0
- archil_api_types/models/billing_profile_validation_error_data_field_errors.py +44 -0
- archil_api_types/models/billing_recurring_price.py +112 -0
- archil_api_types/models/billing_recurring_price_component.py +9 -0
- archil_api_types/models/billing_recurring_price_usage_type.py +9 -0
- archil_api_types/models/billing_redeem_request.py +59 -0
- archil_api_types/models/billing_scheduled_change.py +87 -0
- archil_api_types/models/billing_scheduled_change_target_plan.py +10 -0
- archil_api_types/models/billing_scheduled_change_type.py +9 -0
- archil_api_types/models/billing_state_conflict.py +100 -0
- archil_api_types/models/billing_subscribe_request.py +102 -0
- archil_api_types/models/billing_subscribe_request_plan.py +9 -0
- archil_api_types/models/billing_subscription.py +190 -0
- archil_api_types/models/billing_subscription_actions.py +123 -0
- archil_api_types/models/billing_subscription_billing_mode.py +9 -0
- archil_api_types/models/billing_subscription_plan.py +12 -0
- archil_api_types/models/billing_subscription_preview.py +237 -0
- archil_api_types/models/billing_subscription_preview_current_plan.py +13 -0
- archil_api_types/models/billing_subscription_preview_kind.py +11 -0
- archil_api_types/models/billing_subscription_preview_qualifications_item.py +12 -0
- archil_api_types/models/billing_subscription_preview_target_plan.py +9 -0
- archil_api_types/models/billing_subscription_preview_timing.py +9 -0
- archil_api_types/models/billing_subscription_state.py +131 -0
- archil_api_types/models/billing_subscription_state_plan.py +12 -0
- archil_api_types/models/billing_subscription_state_subscription_status.py +10 -0
- archil_api_types/models/billing_subscription_subscription_status.py +10 -0
- archil_api_types/models/billing_summary.py +177 -0
- archil_api_types/models/billing_summary_plan.py +67 -0
- archil_api_types/models/billing_summary_projection.py +69 -0
- archil_api_types/models/billing_usage.py +142 -0
- archil_api_types/models/billing_usage_granularity.py +9 -0
- archil_api_types/models/billing_usage_interval.py +89 -0
- archil_api_types/models/billing_usage_interval_features.py +57 -0
- archil_api_types/models/billing_usage_quantity.py +75 -0
- archil_api_types/models/billing_usage_rates_per_unit.py +47 -0
- archil_api_types/models/billing_usage_window.py +92 -0
- archil_api_types/models/billing_usage_window_features.py +57 -0
- archil_api_types/models/branch_api_response.py +73 -0
- archil_api_types/models/branch_list_api_response.py +81 -0
- archil_api_types/models/branch_response.py +102 -0
- archil_api_types/models/checkpoint_diff_api_response.py +73 -0
- archil_api_types/models/checkpoint_diff_entry.py +173 -0
- archil_api_types/models/checkpoint_diff_entry_change.py +12 -0
- archil_api_types/models/checkpoint_diff_entry_changed_item.py +10 -0
- archil_api_types/models/checkpoint_diff_entry_kind.py +11 -0
- archil_api_types/models/checkpoint_diff_page.py +84 -0
- archil_api_types/models/checkpoint_diff_side.py +82 -0
- archil_api_types/models/checkpoint_flush_backlog.py +72 -0
- archil_api_types/models/checkpoint_not_flushed_response.py +101 -0
- archil_api_types/models/cloudflare_r2.py +113 -0
- archil_api_types/models/cloudflare_r2_type.py +8 -0
- archil_api_types/models/connected_client.py +86 -0
- archil_api_types/models/create_api_token_request.py +82 -0
- archil_api_types/models/create_branch_request.py +80 -0
- archil_api_types/models/create_disk_request.py +262 -0
- archil_api_types/models/create_image_request.py +120 -0
- archil_api_types/models/create_sandbox_port_token_request.py +72 -0
- archil_api_types/models/create_sandbox_request.py +264 -0
- archil_api_types/models/create_sandbox_request_env.py +44 -0
- archil_api_types/models/create_share_url_request.py +70 -0
- archil_api_types/models/created_sandbox_port_token.py +111 -0
- archil_api_types/models/delegation_entry.py +96 -0
- archil_api_types/models/disk_metric_point.py +67 -0
- archil_api_types/models/disk_metric_series.py +97 -0
- archil_api_types/models/disk_metric_series_series.py +77 -0
- archil_api_types/models/disk_metrics.py +77 -0
- archil_api_types/models/disk_response.py +348 -0
- archil_api_types/models/disk_response_capabilities_item.py +8 -0
- archil_api_types/models/disk_response_status.py +12 -0
- archil_api_types/models/error_response.py +78 -0
- archil_api_types/models/exec_disk_request.py +147 -0
- archil_api_types/models/exec_disk_result.py +89 -0
- archil_api_types/models/exec_mount.py +123 -0
- archil_api_types/models/exec_network.py +81 -0
- archil_api_types/models/exec_request.py +180 -0
- archil_api_types/models/exec_request_disks.py +93 -0
- archil_api_types/models/exec_status.py +116 -0
- archil_api_types/models/exec_status_status.py +11 -0
- archil_api_types/models/exec_timing.py +80 -0
- archil_api_types/models/fork_sandbox_request.py +96 -0
- archil_api_types/models/get_billing_usage_for.py +13 -0
- archil_api_types/models/get_billing_usage_granularity.py +9 -0
- archil_api_types/models/google_cloud_storage.py +105 -0
- archil_api_types/models/google_cloud_storage_type.py +8 -0
- archil_api_types/models/grep_disk_request.py +216 -0
- archil_api_types/models/grep_disk_result.py +177 -0
- archil_api_types/models/grep_group.py +84 -0
- archil_api_types/models/grep_group_line.py +75 -0
- archil_api_types/models/grep_match.py +90 -0
- archil_api_types/models/grep_stopped_reason.py +12 -0
- archil_api_types/models/image.py +169 -0
- archil_api_types/models/image_context_request.py +67 -0
- archil_api_types/models/image_context_upload.py +110 -0
- archil_api_types/models/image_context_upload_upload_headers.py +44 -0
- archil_api_types/models/image_failure_reason.py +9 -0
- archil_api_types/models/image_state.py +10 -0
- archil_api_types/models/list_activity_level_item.py +10 -0
- archil_api_types/models/mount_config_response.py +96 -0
- archil_api_types/models/mount_response.py +177 -0
- archil_api_types/models/mount_response_access_mode.py +9 -0
- archil_api_types/models/mount_response_authorization_type.py +10 -0
- archil_api_types/models/mount_response_connection_status.py +9 -0
- archil_api_types/models/mount_response_type.py +12 -0
- archil_api_types/models/prefetch_range.py +60 -0
- archil_api_types/models/prefetch_range_result.py +95 -0
- archil_api_types/models/prefetch_range_result_error.py +9 -0
- archil_api_types/models/prefetch_request.py +54 -0
- archil_api_types/models/registry_auth.py +67 -0
- archil_api_types/models/remove_disk_user_user_type.py +10 -0
- archil_api_types/models/revoke_all_delegations_response_200.py +73 -0
- archil_api_types/models/revoke_all_delegations_response_200_data.py +67 -0
- archil_api_types/models/revoke_delegation_request.py +67 -0
- archil_api_types/models/root_attrs.py +88 -0
- archil_api_types/models/s3.py +116 -0
- archil_api_types/models/s3_compatible.py +113 -0
- archil_api_types/models/s3_compatible_type.py +8 -0
- archil_api_types/models/s3_type.py +8 -0
- archil_api_types/models/s3_user.py +114 -0
- archil_api_types/models/s3_user_type.py +8 -0
- archil_api_types/models/sandbox.py +325 -0
- archil_api_types/models/sandbox_connection.py +86 -0
- archil_api_types/models/sandbox_egress_policy.py +147 -0
- archil_api_types/models/sandbox_egress_rule.py +82 -0
- archil_api_types/models/sandbox_egress_transform.py +56 -0
- archil_api_types/models/sandbox_egress_transform_headers.py +44 -0
- archil_api_types/models/sandbox_endpoint.py +67 -0
- archil_api_types/models/sandbox_labels.py +47 -0
- archil_api_types/models/sandbox_mount.py +110 -0
- archil_api_types/models/sandbox_network.py +94 -0
- archil_api_types/models/sandbox_network_action.py +9 -0
- archil_api_types/models/sandbox_platform.py +9 -0
- archil_api_types/models/sandbox_port.py +67 -0
- archil_api_types/models/sandbox_port_list.py +73 -0
- archil_api_types/models/sandbox_port_token.py +95 -0
- archil_api_types/models/sandbox_port_token_list.py +73 -0
- archil_api_types/models/sandbox_state.py +17 -0
- archil_api_types/models/sandbox_timeout_action.py +9 -0
- archil_api_types/models/sandbox_timeout_request.py +52 -0
- archil_api_types/models/sandbox_usage.py +107 -0
- archil_api_types/models/sandbox_usage_rates.py +67 -0
- archil_api_types/models/set_allowed_i_ps_body.py +64 -0
- archil_api_types/models/set_billing_default_payment_method_body.py +49 -0
- archil_api_types/models/set_sandbox_mount_body.py +59 -0
- archil_api_types/models/start_sandbox_request.py +76 -0
- archil_api_types/models/token_user.py +141 -0
- archil_api_types/models/token_user_type.py +8 -0
- archil_api_types/models/update_billing_payment_method_body.py +62 -0
- archil_api_types/models/update_billing_profile_body.py +80 -0
- archil_api_types/process_pb2.py +88 -0
- archil_api_types/process_pb2.pyi +272 -0
- archil_api_types/py.typed +0 -0
- archil_api_types/types.py +54 -0
- archil_api_types-0.0.109.dist-info/METADATA +97 -0
- archil_api_types-0.0.109.dist-info/RECORD +385 -0
- archil_api_types-0.0.109.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..models.api_response_token_list_data import ApiResponseTokenListData
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="ApiResponseTokenList")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class ApiResponseTokenList:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
success (bool): Example: True.
|
|
19
|
+
data (ApiResponseTokenListData):
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
success: bool
|
|
23
|
+
data: "ApiResponseTokenListData"
|
|
24
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
|
+
|
|
26
|
+
def to_dict(self) -> dict[str, Any]:
|
|
27
|
+
success = self.success
|
|
28
|
+
|
|
29
|
+
data = self.data.to_dict()
|
|
30
|
+
|
|
31
|
+
field_dict: dict[str, Any] = {}
|
|
32
|
+
field_dict.update(self.additional_properties)
|
|
33
|
+
field_dict.update(
|
|
34
|
+
{
|
|
35
|
+
"success": success,
|
|
36
|
+
"data": data,
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
44
|
+
from ..models.api_response_token_list_data import ApiResponseTokenListData
|
|
45
|
+
|
|
46
|
+
d = dict(src_dict)
|
|
47
|
+
success = d.pop("success")
|
|
48
|
+
|
|
49
|
+
data = ApiResponseTokenListData.from_dict(d.pop("data"))
|
|
50
|
+
|
|
51
|
+
api_response_token_list = cls(
|
|
52
|
+
success=success,
|
|
53
|
+
data=data,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
api_response_token_list.additional_properties = d
|
|
57
|
+
return api_response_token_list
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def additional_keys(self) -> list[str]:
|
|
61
|
+
return list(self.additional_properties.keys())
|
|
62
|
+
|
|
63
|
+
def __getitem__(self, key: str) -> Any:
|
|
64
|
+
return self.additional_properties[key]
|
|
65
|
+
|
|
66
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
67
|
+
self.additional_properties[key] = value
|
|
68
|
+
|
|
69
|
+
def __delitem__(self, key: str) -> None:
|
|
70
|
+
del self.additional_properties[key]
|
|
71
|
+
|
|
72
|
+
def __contains__(self, key: str) -> bool:
|
|
73
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..models.api_token_response import ApiTokenResponse
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
T = TypeVar("T", bound="ApiResponseTokenListData")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class ApiResponseTokenListData:
|
|
18
|
+
"""
|
|
19
|
+
Attributes:
|
|
20
|
+
tokens (Union[Unset, list['ApiTokenResponse']]):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
tokens: Union[Unset, list["ApiTokenResponse"]] = UNSET
|
|
24
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
|
+
|
|
26
|
+
def to_dict(self) -> dict[str, Any]:
|
|
27
|
+
tokens: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
28
|
+
if not isinstance(self.tokens, Unset):
|
|
29
|
+
tokens = []
|
|
30
|
+
for tokens_item_data in self.tokens:
|
|
31
|
+
tokens_item = tokens_item_data.to_dict()
|
|
32
|
+
tokens.append(tokens_item)
|
|
33
|
+
|
|
34
|
+
field_dict: dict[str, Any] = {}
|
|
35
|
+
field_dict.update(self.additional_properties)
|
|
36
|
+
field_dict.update({})
|
|
37
|
+
if tokens is not UNSET:
|
|
38
|
+
field_dict["tokens"] = tokens
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
44
|
+
from ..models.api_token_response import ApiTokenResponse
|
|
45
|
+
|
|
46
|
+
d = dict(src_dict)
|
|
47
|
+
tokens = []
|
|
48
|
+
_tokens = d.pop("tokens", UNSET)
|
|
49
|
+
for tokens_item_data in _tokens or []:
|
|
50
|
+
tokens_item = ApiTokenResponse.from_dict(tokens_item_data)
|
|
51
|
+
|
|
52
|
+
tokens.append(tokens_item)
|
|
53
|
+
|
|
54
|
+
api_response_token_list_data = cls(
|
|
55
|
+
tokens=tokens,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
api_response_token_list_data.additional_properties = d
|
|
59
|
+
return api_response_token_list_data
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def additional_keys(self) -> list[str]:
|
|
63
|
+
return list(self.additional_properties.keys())
|
|
64
|
+
|
|
65
|
+
def __getitem__(self, key: str) -> Any:
|
|
66
|
+
return self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
+
self.additional_properties[key] = value
|
|
70
|
+
|
|
71
|
+
def __delitem__(self, key: str) -> None:
|
|
72
|
+
del self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __contains__(self, key: str) -> bool:
|
|
75
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar, Union
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
from dateutil.parser import isoparse
|
|
8
|
+
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="ApiTokenResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class ApiTokenResponse:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
id (Union[Unset, str]): Token hash/ID
|
|
19
|
+
name (Union[Unset, str]):
|
|
20
|
+
description (Union[Unset, str]):
|
|
21
|
+
token_suffix (Union[Unset, str]): Last 4 characters of the token
|
|
22
|
+
created_at (Union[Unset, datetime.datetime]):
|
|
23
|
+
created_by (Union[Unset, str]): ID of creator identity
|
|
24
|
+
last_used_at (Union[Unset, datetime.datetime]):
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
id: Union[Unset, str] = UNSET
|
|
28
|
+
name: Union[Unset, str] = UNSET
|
|
29
|
+
description: Union[Unset, str] = UNSET
|
|
30
|
+
token_suffix: Union[Unset, str] = UNSET
|
|
31
|
+
created_at: Union[Unset, datetime.datetime] = UNSET
|
|
32
|
+
created_by: Union[Unset, str] = UNSET
|
|
33
|
+
last_used_at: Union[Unset, datetime.datetime] = UNSET
|
|
34
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
|
+
|
|
36
|
+
def to_dict(self) -> dict[str, Any]:
|
|
37
|
+
id = self.id
|
|
38
|
+
|
|
39
|
+
name = self.name
|
|
40
|
+
|
|
41
|
+
description = self.description
|
|
42
|
+
|
|
43
|
+
token_suffix = self.token_suffix
|
|
44
|
+
|
|
45
|
+
created_at: Union[Unset, str] = UNSET
|
|
46
|
+
if not isinstance(self.created_at, Unset):
|
|
47
|
+
created_at = self.created_at.isoformat()
|
|
48
|
+
|
|
49
|
+
created_by = self.created_by
|
|
50
|
+
|
|
51
|
+
last_used_at: Union[Unset, str] = UNSET
|
|
52
|
+
if not isinstance(self.last_used_at, Unset):
|
|
53
|
+
last_used_at = self.last_used_at.isoformat()
|
|
54
|
+
|
|
55
|
+
field_dict: dict[str, Any] = {}
|
|
56
|
+
field_dict.update(self.additional_properties)
|
|
57
|
+
field_dict.update({})
|
|
58
|
+
if id is not UNSET:
|
|
59
|
+
field_dict["id"] = id
|
|
60
|
+
if name is not UNSET:
|
|
61
|
+
field_dict["name"] = name
|
|
62
|
+
if description is not UNSET:
|
|
63
|
+
field_dict["description"] = description
|
|
64
|
+
if token_suffix is not UNSET:
|
|
65
|
+
field_dict["tokenSuffix"] = token_suffix
|
|
66
|
+
if created_at is not UNSET:
|
|
67
|
+
field_dict["createdAt"] = created_at
|
|
68
|
+
if created_by is not UNSET:
|
|
69
|
+
field_dict["createdBy"] = created_by
|
|
70
|
+
if last_used_at is not UNSET:
|
|
71
|
+
field_dict["lastUsedAt"] = last_used_at
|
|
72
|
+
|
|
73
|
+
return field_dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
77
|
+
d = dict(src_dict)
|
|
78
|
+
id = d.pop("id", UNSET)
|
|
79
|
+
|
|
80
|
+
name = d.pop("name", UNSET)
|
|
81
|
+
|
|
82
|
+
description = d.pop("description", UNSET)
|
|
83
|
+
|
|
84
|
+
token_suffix = d.pop("tokenSuffix", UNSET)
|
|
85
|
+
|
|
86
|
+
_created_at = d.pop("createdAt", UNSET)
|
|
87
|
+
created_at: Union[Unset, datetime.datetime]
|
|
88
|
+
if isinstance(_created_at, Unset):
|
|
89
|
+
created_at = UNSET
|
|
90
|
+
else:
|
|
91
|
+
created_at = isoparse(_created_at)
|
|
92
|
+
|
|
93
|
+
created_by = d.pop("createdBy", UNSET)
|
|
94
|
+
|
|
95
|
+
_last_used_at = d.pop("lastUsedAt", UNSET)
|
|
96
|
+
last_used_at: Union[Unset, datetime.datetime]
|
|
97
|
+
if isinstance(_last_used_at, Unset):
|
|
98
|
+
last_used_at = UNSET
|
|
99
|
+
else:
|
|
100
|
+
last_used_at = isoparse(_last_used_at)
|
|
101
|
+
|
|
102
|
+
api_token_response = cls(
|
|
103
|
+
id=id,
|
|
104
|
+
name=name,
|
|
105
|
+
description=description,
|
|
106
|
+
token_suffix=token_suffix,
|
|
107
|
+
created_at=created_at,
|
|
108
|
+
created_by=created_by,
|
|
109
|
+
last_used_at=last_used_at,
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
api_token_response.additional_properties = d
|
|
113
|
+
return api_token_response
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def additional_keys(self) -> list[str]:
|
|
117
|
+
return list(self.additional_properties.keys())
|
|
118
|
+
|
|
119
|
+
def __getitem__(self, key: str) -> Any:
|
|
120
|
+
return self.additional_properties[key]
|
|
121
|
+
|
|
122
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
123
|
+
self.additional_properties[key] = value
|
|
124
|
+
|
|
125
|
+
def __delitem__(self, key: str) -> None:
|
|
126
|
+
del self.additional_properties[key]
|
|
127
|
+
|
|
128
|
+
def __contains__(self, key: str) -> bool:
|
|
129
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar, Union
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
from dateutil.parser import isoparse
|
|
8
|
+
|
|
9
|
+
from ..models.authorized_user_status import AuthorizedUserStatus
|
|
10
|
+
from ..models.authorized_user_type import AuthorizedUserType
|
|
11
|
+
from ..types import UNSET, Unset
|
|
12
|
+
|
|
13
|
+
T = TypeVar("T", bound="AuthorizedUser")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class AuthorizedUser:
|
|
18
|
+
"""
|
|
19
|
+
Attributes:
|
|
20
|
+
type_ (Union[Unset, AuthorizedUserType]):
|
|
21
|
+
principal (Union[Unset, str]): Use identifier instead. Only populated for awssts type (the IAM ARN).
|
|
22
|
+
nickname (Union[Unset, str]):
|
|
23
|
+
token_suffix (Union[Unset, str]):
|
|
24
|
+
token (Union[Unset, str]): The generated mount token. Only present in the response when the server generates the
|
|
25
|
+
token (i.e. principal was not provided). This value is shown exactly once and cannot be retrieved again.
|
|
26
|
+
s_3_access_key_id (Union[Unset, str]): The S3 access key ID. Only present for s3 users.
|
|
27
|
+
s_3_secret_key (Union[Unset, str]): The generated S3 secret access key. Only present in the creation response
|
|
28
|
+
for s3 users. This value is shown exactly once and cannot be retrieved again.
|
|
29
|
+
identifier (Union[Unset, str]): Stable identifier for this user, returned in creation and list responses. Use
|
|
30
|
+
this value with DELETE /api/disks/{id}/users/{type}?identifier={identifier} to remove the user. For awssts
|
|
31
|
+
users, this is the IAM ARN; for s3 users, the access key ID.
|
|
32
|
+
created_at (Union[Unset, datetime.datetime]):
|
|
33
|
+
expires_at (Union[Unset, datetime.datetime]): When the token expires. Absent for tokens without a TTL.
|
|
34
|
+
one_use (Union[Unset, bool]): Whether this token is single-use.
|
|
35
|
+
consumed_at (Union[Unset, datetime.datetime]): When the one-use token was consumed (first successful mount
|
|
36
|
+
auth). Absent if the token has not been consumed or is not one-use.
|
|
37
|
+
read_only (Union[Unset, bool]): Whether this token grants read-only access.
|
|
38
|
+
status (Union[Unset, AuthorizedUserStatus]): Current lifecycle status of the token. `in_use` means a one-use
|
|
39
|
+
token is being consumed by a mount that is still in progress.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
type_: Union[Unset, AuthorizedUserType] = UNSET
|
|
43
|
+
principal: Union[Unset, str] = UNSET
|
|
44
|
+
nickname: Union[Unset, str] = UNSET
|
|
45
|
+
token_suffix: Union[Unset, str] = UNSET
|
|
46
|
+
token: Union[Unset, str] = UNSET
|
|
47
|
+
s_3_access_key_id: Union[Unset, str] = UNSET
|
|
48
|
+
s_3_secret_key: Union[Unset, str] = UNSET
|
|
49
|
+
identifier: Union[Unset, str] = UNSET
|
|
50
|
+
created_at: Union[Unset, datetime.datetime] = UNSET
|
|
51
|
+
expires_at: Union[Unset, datetime.datetime] = UNSET
|
|
52
|
+
one_use: Union[Unset, bool] = UNSET
|
|
53
|
+
consumed_at: Union[Unset, datetime.datetime] = UNSET
|
|
54
|
+
read_only: Union[Unset, bool] = UNSET
|
|
55
|
+
status: Union[Unset, AuthorizedUserStatus] = UNSET
|
|
56
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> dict[str, Any]:
|
|
59
|
+
type_: Union[Unset, str] = UNSET
|
|
60
|
+
if not isinstance(self.type_, Unset):
|
|
61
|
+
type_ = self.type_.value
|
|
62
|
+
|
|
63
|
+
principal = self.principal
|
|
64
|
+
|
|
65
|
+
nickname = self.nickname
|
|
66
|
+
|
|
67
|
+
token_suffix = self.token_suffix
|
|
68
|
+
|
|
69
|
+
token = self.token
|
|
70
|
+
|
|
71
|
+
s_3_access_key_id = self.s_3_access_key_id
|
|
72
|
+
|
|
73
|
+
s_3_secret_key = self.s_3_secret_key
|
|
74
|
+
|
|
75
|
+
identifier = self.identifier
|
|
76
|
+
|
|
77
|
+
created_at: Union[Unset, str] = UNSET
|
|
78
|
+
if not isinstance(self.created_at, Unset):
|
|
79
|
+
created_at = self.created_at.isoformat()
|
|
80
|
+
|
|
81
|
+
expires_at: Union[Unset, str] = UNSET
|
|
82
|
+
if not isinstance(self.expires_at, Unset):
|
|
83
|
+
expires_at = self.expires_at.isoformat()
|
|
84
|
+
|
|
85
|
+
one_use = self.one_use
|
|
86
|
+
|
|
87
|
+
consumed_at: Union[Unset, str] = UNSET
|
|
88
|
+
if not isinstance(self.consumed_at, Unset):
|
|
89
|
+
consumed_at = self.consumed_at.isoformat()
|
|
90
|
+
|
|
91
|
+
read_only = self.read_only
|
|
92
|
+
|
|
93
|
+
status: Union[Unset, str] = UNSET
|
|
94
|
+
if not isinstance(self.status, Unset):
|
|
95
|
+
status = self.status.value
|
|
96
|
+
|
|
97
|
+
field_dict: dict[str, Any] = {}
|
|
98
|
+
field_dict.update(self.additional_properties)
|
|
99
|
+
field_dict.update({})
|
|
100
|
+
if type_ is not UNSET:
|
|
101
|
+
field_dict["type"] = type_
|
|
102
|
+
if principal is not UNSET:
|
|
103
|
+
field_dict["principal"] = principal
|
|
104
|
+
if nickname is not UNSET:
|
|
105
|
+
field_dict["nickname"] = nickname
|
|
106
|
+
if token_suffix is not UNSET:
|
|
107
|
+
field_dict["tokenSuffix"] = token_suffix
|
|
108
|
+
if token is not UNSET:
|
|
109
|
+
field_dict["token"] = token
|
|
110
|
+
if s_3_access_key_id is not UNSET:
|
|
111
|
+
field_dict["s3AccessKeyId"] = s_3_access_key_id
|
|
112
|
+
if s_3_secret_key is not UNSET:
|
|
113
|
+
field_dict["s3SecretKey"] = s_3_secret_key
|
|
114
|
+
if identifier is not UNSET:
|
|
115
|
+
field_dict["identifier"] = identifier
|
|
116
|
+
if created_at is not UNSET:
|
|
117
|
+
field_dict["createdAt"] = created_at
|
|
118
|
+
if expires_at is not UNSET:
|
|
119
|
+
field_dict["expiresAt"] = expires_at
|
|
120
|
+
if one_use is not UNSET:
|
|
121
|
+
field_dict["oneUse"] = one_use
|
|
122
|
+
if consumed_at is not UNSET:
|
|
123
|
+
field_dict["consumedAt"] = consumed_at
|
|
124
|
+
if read_only is not UNSET:
|
|
125
|
+
field_dict["readOnly"] = read_only
|
|
126
|
+
if status is not UNSET:
|
|
127
|
+
field_dict["status"] = status
|
|
128
|
+
|
|
129
|
+
return field_dict
|
|
130
|
+
|
|
131
|
+
@classmethod
|
|
132
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
133
|
+
d = dict(src_dict)
|
|
134
|
+
_type_ = d.pop("type", UNSET)
|
|
135
|
+
type_: Union[Unset, AuthorizedUserType]
|
|
136
|
+
if isinstance(_type_, Unset):
|
|
137
|
+
type_ = UNSET
|
|
138
|
+
else:
|
|
139
|
+
type_ = AuthorizedUserType(_type_)
|
|
140
|
+
|
|
141
|
+
principal = d.pop("principal", UNSET)
|
|
142
|
+
|
|
143
|
+
nickname = d.pop("nickname", UNSET)
|
|
144
|
+
|
|
145
|
+
token_suffix = d.pop("tokenSuffix", UNSET)
|
|
146
|
+
|
|
147
|
+
token = d.pop("token", UNSET)
|
|
148
|
+
|
|
149
|
+
s_3_access_key_id = d.pop("s3AccessKeyId", UNSET)
|
|
150
|
+
|
|
151
|
+
s_3_secret_key = d.pop("s3SecretKey", UNSET)
|
|
152
|
+
|
|
153
|
+
identifier = d.pop("identifier", UNSET)
|
|
154
|
+
|
|
155
|
+
_created_at = d.pop("createdAt", UNSET)
|
|
156
|
+
created_at: Union[Unset, datetime.datetime]
|
|
157
|
+
if isinstance(_created_at, Unset):
|
|
158
|
+
created_at = UNSET
|
|
159
|
+
else:
|
|
160
|
+
created_at = isoparse(_created_at)
|
|
161
|
+
|
|
162
|
+
_expires_at = d.pop("expiresAt", UNSET)
|
|
163
|
+
expires_at: Union[Unset, datetime.datetime]
|
|
164
|
+
if isinstance(_expires_at, Unset):
|
|
165
|
+
expires_at = UNSET
|
|
166
|
+
else:
|
|
167
|
+
expires_at = isoparse(_expires_at)
|
|
168
|
+
|
|
169
|
+
one_use = d.pop("oneUse", UNSET)
|
|
170
|
+
|
|
171
|
+
_consumed_at = d.pop("consumedAt", UNSET)
|
|
172
|
+
consumed_at: Union[Unset, datetime.datetime]
|
|
173
|
+
if isinstance(_consumed_at, Unset):
|
|
174
|
+
consumed_at = UNSET
|
|
175
|
+
else:
|
|
176
|
+
consumed_at = isoparse(_consumed_at)
|
|
177
|
+
|
|
178
|
+
read_only = d.pop("readOnly", UNSET)
|
|
179
|
+
|
|
180
|
+
_status = d.pop("status", UNSET)
|
|
181
|
+
status: Union[Unset, AuthorizedUserStatus]
|
|
182
|
+
if isinstance(_status, Unset):
|
|
183
|
+
status = UNSET
|
|
184
|
+
else:
|
|
185
|
+
status = AuthorizedUserStatus(_status)
|
|
186
|
+
|
|
187
|
+
authorized_user = cls(
|
|
188
|
+
type_=type_,
|
|
189
|
+
principal=principal,
|
|
190
|
+
nickname=nickname,
|
|
191
|
+
token_suffix=token_suffix,
|
|
192
|
+
token=token,
|
|
193
|
+
s_3_access_key_id=s_3_access_key_id,
|
|
194
|
+
s_3_secret_key=s_3_secret_key,
|
|
195
|
+
identifier=identifier,
|
|
196
|
+
created_at=created_at,
|
|
197
|
+
expires_at=expires_at,
|
|
198
|
+
one_use=one_use,
|
|
199
|
+
consumed_at=consumed_at,
|
|
200
|
+
read_only=read_only,
|
|
201
|
+
status=status,
|
|
202
|
+
)
|
|
203
|
+
|
|
204
|
+
authorized_user.additional_properties = d
|
|
205
|
+
return authorized_user
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
def additional_keys(self) -> list[str]:
|
|
209
|
+
return list(self.additional_properties.keys())
|
|
210
|
+
|
|
211
|
+
def __getitem__(self, key: str) -> Any:
|
|
212
|
+
return self.additional_properties[key]
|
|
213
|
+
|
|
214
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
215
|
+
self.additional_properties[key] = value
|
|
216
|
+
|
|
217
|
+
def __delitem__(self, key: str) -> None:
|
|
218
|
+
del self.additional_properties[key]
|
|
219
|
+
|
|
220
|
+
def __contains__(self, key: str) -> bool:
|
|
221
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar, Union
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
from dateutil.parser import isoparse
|
|
8
|
+
|
|
9
|
+
from ..models.aws_sts_user_type import AwsStsUserType
|
|
10
|
+
from ..types import UNSET, Unset
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="AwsStsUser")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class AwsStsUser:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
type_ (AwsStsUserType):
|
|
20
|
+
principal (str): IAM principal ARN
|
|
21
|
+
ttl (Union[Unset, str]): Optional time-to-live as a Go duration string (e.g. "1h", "30m"). Maximum 365 days
|
|
22
|
+
("8760h"). Mutually exclusive with expiresAt.
|
|
23
|
+
expires_at (Union[Unset, datetime.datetime]): Optional absolute expiration time as an RFC3339 timestamp. Must be
|
|
24
|
+
in the future. Mutually exclusive with ttl.
|
|
25
|
+
one_use (Union[Unset, bool]): When true, the credential can only be used for a single mount authentication.
|
|
26
|
+
read_only (Union[Unset, bool]): When true, the credential grants read-only access. Mounts authenticated with
|
|
27
|
+
this credential reject writes with EROFS.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
type_: AwsStsUserType
|
|
31
|
+
principal: str
|
|
32
|
+
ttl: Union[Unset, str] = UNSET
|
|
33
|
+
expires_at: Union[Unset, datetime.datetime] = UNSET
|
|
34
|
+
one_use: Union[Unset, bool] = UNSET
|
|
35
|
+
read_only: Union[Unset, bool] = UNSET
|
|
36
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
|
+
|
|
38
|
+
def to_dict(self) -> dict[str, Any]:
|
|
39
|
+
type_ = self.type_.value
|
|
40
|
+
|
|
41
|
+
principal = self.principal
|
|
42
|
+
|
|
43
|
+
ttl = self.ttl
|
|
44
|
+
|
|
45
|
+
expires_at: Union[Unset, str] = UNSET
|
|
46
|
+
if not isinstance(self.expires_at, Unset):
|
|
47
|
+
expires_at = self.expires_at.isoformat()
|
|
48
|
+
|
|
49
|
+
one_use = self.one_use
|
|
50
|
+
|
|
51
|
+
read_only = self.read_only
|
|
52
|
+
|
|
53
|
+
field_dict: dict[str, Any] = {}
|
|
54
|
+
field_dict.update(self.additional_properties)
|
|
55
|
+
field_dict.update(
|
|
56
|
+
{
|
|
57
|
+
"type": type_,
|
|
58
|
+
"principal": principal,
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
if ttl is not UNSET:
|
|
62
|
+
field_dict["ttl"] = ttl
|
|
63
|
+
if expires_at is not UNSET:
|
|
64
|
+
field_dict["expiresAt"] = expires_at
|
|
65
|
+
if one_use is not UNSET:
|
|
66
|
+
field_dict["oneUse"] = one_use
|
|
67
|
+
if read_only is not UNSET:
|
|
68
|
+
field_dict["readOnly"] = read_only
|
|
69
|
+
|
|
70
|
+
return field_dict
|
|
71
|
+
|
|
72
|
+
@classmethod
|
|
73
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
74
|
+
d = dict(src_dict)
|
|
75
|
+
type_ = AwsStsUserType(d.pop("type"))
|
|
76
|
+
|
|
77
|
+
principal = d.pop("principal")
|
|
78
|
+
|
|
79
|
+
ttl = d.pop("ttl", UNSET)
|
|
80
|
+
|
|
81
|
+
_expires_at = d.pop("expiresAt", UNSET)
|
|
82
|
+
expires_at: Union[Unset, datetime.datetime]
|
|
83
|
+
if isinstance(_expires_at, Unset):
|
|
84
|
+
expires_at = UNSET
|
|
85
|
+
else:
|
|
86
|
+
expires_at = isoparse(_expires_at)
|
|
87
|
+
|
|
88
|
+
one_use = d.pop("oneUse", UNSET)
|
|
89
|
+
|
|
90
|
+
read_only = d.pop("readOnly", UNSET)
|
|
91
|
+
|
|
92
|
+
aws_sts_user = cls(
|
|
93
|
+
type_=type_,
|
|
94
|
+
principal=principal,
|
|
95
|
+
ttl=ttl,
|
|
96
|
+
expires_at=expires_at,
|
|
97
|
+
one_use=one_use,
|
|
98
|
+
read_only=read_only,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
aws_sts_user.additional_properties = d
|
|
102
|
+
return aws_sts_user
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def additional_keys(self) -> list[str]:
|
|
106
|
+
return list(self.additional_properties.keys())
|
|
107
|
+
|
|
108
|
+
def __getitem__(self, key: str) -> Any:
|
|
109
|
+
return self.additional_properties[key]
|
|
110
|
+
|
|
111
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
112
|
+
self.additional_properties[key] = value
|
|
113
|
+
|
|
114
|
+
def __delitem__(self, key: str) -> None:
|
|
115
|
+
del self.additional_properties[key]
|
|
116
|
+
|
|
117
|
+
def __contains__(self, key: str) -> bool:
|
|
118
|
+
return key in self.additional_properties
|