ezero-apimatic-sdk 0.0.1
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.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +180 -0
- data/bin/console +15 -0
- data/lib/env_zero_api/api_helper.rb +10 -0
- data/lib/env_zero_api/apis/approval_policy_api.rb +107 -0
- data/lib/env_zero_api/apis/base_api.rb +67 -0
- data/lib/env_zero_api/apis/bulk_operations_api.rb +297 -0
- data/lib/env_zero_api/apis/configuration_api.rb +311 -0
- data/lib/env_zero_api/apis/credentials_api.rb +72 -0
- data/lib/env_zero_api/apis/deployment_logs_api.rb +79 -0
- data/lib/env_zero_api/apis/drift_api.rb +201 -0
- data/lib/env_zero_api/apis/environment_outputs_api.rb +39 -0
- data/lib/env_zero_api/apis/environments_api.rb +1082 -0
- data/lib/env_zero_api/apis/notifications_api.rb +149 -0
- data/lib/env_zero_api/apis/organization_api.rb +132 -0
- data/lib/env_zero_api/apis/projects_api.rb +202 -0
- data/lib/env_zero_api/apis/scheduling_api.rb +175 -0
- data/lib/env_zero_api/apis/templates_api.rb +206 -0
- data/lib/env_zero_api/client.rb +145 -0
- data/lib/env_zero_api/configuration.rb +166 -0
- data/lib/env_zero_api/exceptions/api_exception.rb +21 -0
- data/lib/env_zero_api/exceptions/error_exception.rb +46 -0
- data/lib/env_zero_api/http/api_response.rb +19 -0
- data/lib/env_zero_api/http/auth/basic_auth.rb +62 -0
- data/lib/env_zero_api/http/http_call_back.rb +10 -0
- data/lib/env_zero_api/http/http_method_enum.rb +10 -0
- data/lib/env_zero_api/http/http_request.rb +10 -0
- data/lib/env_zero_api/http/http_response.rb +10 -0
- data/lib/env_zero_api/http/proxy_settings.rb +22 -0
- data/lib/env_zero_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/env_zero_api/logging/sdk_logger.rb +17 -0
- data/lib/env_zero_api/models/action.rb +36 -0
- data/lib/env_zero_api/models/action_reason.rb +68 -0
- data/lib/env_zero_api/models/api_key_type.rb +26 -0
- data/lib/env_zero_api/models/api_key_user.rb +150 -0
- data/lib/env_zero_api/models/api_key_user_identity.rb +82 -0
- data/lib/env_zero_api/models/app_metadata.rb +175 -0
- data/lib/env_zero_api/models/app_metadata1.rb +60 -0
- data/lib/env_zero_api/models/approval_policy_type.rb +26 -0
- data/lib/env_zero_api/models/auto_destroy_status.rb +26 -0
- data/lib/env_zero_api/models/auto_destroy_status1.rb +26 -0
- data/lib/env_zero_api/models/auto_destroy_status2.rb +26 -0
- data/lib/env_zero_api/models/auto_destroy_status3.rb +26 -0
- data/lib/env_zero_api/models/base_model.rb +110 -0
- data/lib/env_zero_api/models/blueprint_api_add_blueprint_to_project_request_body.rb +60 -0
- data/lib/env_zero_api/models/blueprint_api_add_blueprint_to_project_response.rb +675 -0
- data/lib/env_zero_api/models/blueprint_api_approval_policy_assignment.rb +98 -0
- data/lib/env_zero_api/models/blueprint_api_approval_policy_assignment_request.rb +77 -0
- data/lib/env_zero_api/models/blueprint_api_approval_policy_scope.rb +44 -0
- data/lib/env_zero_api/models/blueprint_api_approval_policy_template.rb +375 -0
- data/lib/env_zero_api/models/blueprint_api_approval_policy_template_with_scope.rb +96 -0
- data/lib/env_zero_api/models/blueprint_api_approval_policy_type.rb +26 -0
- data/lib/env_zero_api/models/blueprint_api_assign_approval_policy_request_body.rb +77 -0
- data/lib/env_zero_api/models/blueprint_api_assign_approval_policy_response.rb +98 -0
- data/lib/env_zero_api/models/blueprint_api_blueprint.rb +675 -0
- data/lib/env_zero_api/models/blueprint_api_blueprint_type.rb +26 -0
- data/lib/env_zero_api/models/blueprint_api_blueprint_type1.rb +26 -0
- data/lib/env_zero_api/models/blueprint_api_create_blueprint_request_body.rb +544 -0
- data/lib/env_zero_api/models/blueprint_api_create_blueprint_response.rb +675 -0
- data/lib/env_zero_api/models/blueprint_api_creation_scope.rb +36 -0
- data/lib/env_zero_api/models/blueprint_api_custom_flow_type.rb +26 -0
- data/lib/env_zero_api/models/blueprint_api_deployable_type.rb +26 -0
- data/lib/env_zero_api/models/blueprint_api_find_all_approval_policies_response.rb +77 -0
- data/lib/env_zero_api/models/blueprint_api_get_blueprint_by_id_response.rb +675 -0
- data/lib/env_zero_api/models/blueprint_api_retry.rb +85 -0
- data/lib/env_zero_api/models/blueprint_api_retry_deploy_or_destroy_config.rb +98 -0
- data/lib/env_zero_api/models/blueprint_api_ssh_key.rb +90 -0
- data/lib/env_zero_api/models/blueprint_api_terragrunt_tf_binary.rb +36 -0
- data/lib/env_zero_api/models/blueprint_api_update_blueprint_request_body.rb +483 -0
- data/lib/env_zero_api/models/blueprint_api_update_blueprint_response.rb +675 -0
- data/lib/env_zero_api/models/bulk_operation_type.rb +72 -0
- data/lib/env_zero_api/models/bulk_operations_api_base_payload.rb +72 -0
- data/lib/env_zero_api/models/bulk_operations_api_base_response.rb +91 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_add_tags_request_body.rb +82 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_add_tags_response.rb +91 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_archive_request_body.rb +72 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_archive_response.rb +91 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_deploy_request_body.rb +80 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_deploy_response.rb +91 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_destroy_request_body.rb +80 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_destroy_response.rb +91 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_lock_request_body.rb +80 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_lock_response.rb +91 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_operation_item_status.rb +26 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_operation_item_status1.rb +26 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_operation_item_status2.rb +26 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_operation_item_status3.rb +26 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_remove_tags_request_body.rb +81 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_remove_tags_response.rb +91 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_run_task_request_body.rb +80 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_run_task_response.rb +91 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_unlock_request_body.rb +72 -0
- data/lib/env_zero_api/models/bulk_operations_api_bulk_unlock_response.rb +91 -0
- data/lib/env_zero_api/models/bulk_operations_api_get_bulk_operation_item.rb +128 -0
- data/lib/env_zero_api/models/bulk_operations_api_get_bulk_operation_response.rb +106 -0
- data/lib/env_zero_api/models/bulk_operations_api_single_result.rb +79 -0
- data/lib/env_zero_api/models/cause_key_parts.rb +104 -0
- data/lib/env_zero_api/models/cause_key_parts1.rb +74 -0
- data/lib/env_zero_api/models/cause_key_parts2.rb +91 -0
- data/lib/env_zero_api/models/cause_key_parts4.rb +132 -0
- data/lib/env_zero_api/models/cause_key_parts5.rb +92 -0
- data/lib/env_zero_api/models/checkout_updated_code.rb +36 -0
- data/lib/env_zero_api/models/cloud_resource_api_change_event.rb +199 -0
- data/lib/env_zero_api/models/cloud_resource_api_change_event_source.rb +40 -0
- data/lib/env_zero_api/models/cloud_resource_api_management_type.rb +40 -0
- data/lib/env_zero_api/models/configuration_api_create_configuration_set_request_body.rb +108 -0
- data/lib/env_zero_api/models/configuration_api_create_configuration_set_response.rb +200 -0
- data/lib/env_zero_api/models/configuration_api_find_variable_by_id_response.rb +305 -0
- data/lib/env_zero_api/models/configuration_api_find_variables_by_scope_overriding_configuration_property.rb +342 -0
- data/lib/env_zero_api/models/configuration_property_request.rb +284 -0
- data/lib/env_zero_api/models/configuration_property_response.rb +305 -0
- data/lib/env_zero_api/models/configuration_scope.rb +60 -0
- data/lib/env_zero_api/models/configuration_set.rb +200 -0
- data/lib/env_zero_api/models/configuration_set_assignment_scope.rb +52 -0
- data/lib/env_zero_api/models/configuration_type.rb +27 -0
- data/lib/env_zero_api/models/configuration_type1.rb +27 -0
- data/lib/env_zero_api/models/credentials_api_api_key.rb +167 -0
- data/lib/env_zero_api/models/credentials_api_create_api_key_request_body.rb +91 -0
- data/lib/env_zero_api/models/credentials_api_create_api_key_response.rb +167 -0
- data/lib/env_zero_api/models/custom_env0_environment_variables.rb +537 -0
- data/lib/env_zero_api/models/custom_flow_type.rb +26 -0
- data/lib/env_zero_api/models/data.rb +65 -0
- data/lib/env_zero_api/models/data1.rb +73 -0
- data/lib/env_zero_api/models/data2.rb +73 -0
- data/lib/env_zero_api/models/data3.rb +62 -0
- data/lib/env_zero_api/models/data4.rb +61 -0
- data/lib/env_zero_api/models/data5.rb +71 -0
- data/lib/env_zero_api/models/deploy_request.rb +343 -0
- data/lib/env_zero_api/models/deployment_api_plan_attribute_change.rb +94 -0
- data/lib/env_zero_api/models/deployment_api_plan_change_action.rb +48 -0
- data/lib/env_zero_api/models/deployment_api_plan_plan.rb +118 -0
- data/lib/env_zero_api/models/deployment_api_plan_plan_output_change.rb +127 -0
- data/lib/env_zero_api/models/deployment_api_plan_plan_resource_change.rb +240 -0
- data/lib/env_zero_api/models/deployment_api_plan_plan_summary.rb +114 -0
- data/lib/env_zero_api/models/deployment_api_plan_resource_import_data.rb +74 -0
- data/lib/env_zero_api/models/deployment_command.rb +68 -0
- data/lib/env_zero_api/models/deployment_step_api_deployment_step_status.rb +64 -0
- data/lib/env_zero_api/models/deployment_step_api_find_by_deployment_log_id_response.rb +195 -0
- data/lib/env_zero_api/models/deployment_step_api_find_step_log_response.rb +117 -0
- data/lib/env_zero_api/models/deployment_step_api_log_event.rb +131 -0
- data/lib/env_zero_api/models/deployment_type.rb +40 -0
- data/lib/env_zero_api/models/deployment_type1.rb +56 -0
- data/lib/env_zero_api/models/diff.rb +75 -0
- data/lib/env_zero_api/models/drift_api_drift_cause_environment.rb +117 -0
- data/lib/env_zero_api/models/drift_api_drift_cause_group.rb +169 -0
- data/lib/env_zero_api/models/drift_api_drift_cause_group1.rb +169 -0
- data/lib/env_zero_api/models/drift_api_drift_cause_group2.rb +169 -0
- data/lib/env_zero_api/models/drift_api_drift_cause_group4.rb +169 -0
- data/lib/env_zero_api/models/drift_api_drift_cause_group5.rb +169 -0
- data/lib/env_zero_api/models/drift_api_drift_cause_skip.rb +68 -0
- data/lib/env_zero_api/models/drift_api_drift_cause_skip_reason.rb +40 -0
- data/lib/env_zero_api/models/drift_api_get_drift_causes_response.rb +76 -0
- data/lib/env_zero_api/models/drift_api_get_drift_causes_response1.rb +76 -0
- data/lib/env_zero_api/models/drift_api_get_drift_fix_stats_response.rb +81 -0
- data/lib/env_zero_api/models/drift_api_get_drift_fix_stats_response1.rb +81 -0
- data/lib/env_zero_api/models/drift_api_get_ignored_drift_causes_response.rb +76 -0
- data/lib/env_zero_api/models/drift_api_ignore_drift_cause_body.rb +72 -0
- data/lib/env_zero_api/models/drift_api_ignore_drift_cause_request_body.rb +72 -0
- data/lib/env_zero_api/models/drift_api_ignore_drift_cause_response.rb +77 -0
- data/lib/env_zero_api/models/drift_api_ignored_drift_cause_environment.rb +140 -0
- data/lib/env_zero_api/models/drift_api_ignored_drift_cause_group.rb +157 -0
- data/lib/env_zero_api/models/drift_api_ignored_drift_cause_group1.rb +157 -0
- data/lib/env_zero_api/models/drift_api_ignored_drift_cause_group2.rb +157 -0
- data/lib/env_zero_api/models/drift_api_ignored_drift_cause_group4.rb +157 -0
- data/lib/env_zero_api/models/drift_api_ignored_drift_cause_group5.rb +157 -0
- data/lib/env_zero_api/models/drift_api_state_modifying_deployment_type.rb +40 -0
- data/lib/env_zero_api/models/drift_api_un_ignore_drift_cause_request_body.rb +72 -0
- data/lib/env_zero_api/models/drift_api_un_ignore_drift_cause_response.rb +77 -0
- data/lib/env_zero_api/models/drift_api_variable_change_type.rb +40 -0
- data/lib/env_zero_api/models/drift_cause.rb +87 -0
- data/lib/env_zero_api/models/environment_api_auto_drift_remediation_strategy.rb +44 -0
- data/lib/env_zero_api/models/environment_api_cancel_response.rb +60 -0
- data/lib/env_zero_api/models/environment_api_configuration_property_change.rb +255 -0
- data/lib/env_zero_api/models/environment_api_configuration_set_changes.rb +81 -0
- data/lib/env_zero_api/models/environment_api_create_environment_request.rb +356 -0
- data/lib/env_zero_api/models/environment_api_create_request_body.rb +356 -0
- data/lib/env_zero_api/models/environment_api_create_response.rb +539 -0
- data/lib/env_zero_api/models/environment_api_deploy_request_body.rb +343 -0
- data/lib/env_zero_api/models/environment_api_deploy_request_on_create_flow.rb +154 -0
- data/lib/env_zero_api/models/environment_api_deploy_response.rb +796 -0
- data/lib/env_zero_api/models/environment_api_deployment_log.rb +792 -0
- data/lib/env_zero_api/models/environment_api_deployment_log_status.rb +76 -0
- data/lib/env_zero_api/models/environment_api_deployment_type.rb +60 -0
- data/lib/env_zero_api/models/environment_api_destroy_request_body.rb +108 -0
- data/lib/env_zero_api/models/environment_api_destroy_response.rb +60 -0
- data/lib/env_zero_api/models/environment_api_drift_cause_compass_scan_status.rb +48 -0
- data/lib/env_zero_api/models/environment_api_drift_cause_unapplied_commit.rb +111 -0
- data/lib/env_zero_api/models/environment_api_drift_cause_unmanaged_change_type.rb +36 -0
- data/lib/env_zero_api/models/environment_api_drift_detection_request.rb +81 -0
- data/lib/env_zero_api/models/environment_api_drift_status.rb +48 -0
- data/lib/env_zero_api/models/environment_api_environment.rb +539 -0
- data/lib/env_zero_api/models/environment_api_environment_lock_status.rb +119 -0
- data/lib/env_zero_api/models/environment_api_environment_next_scheduled_dates.rb +98 -0
- data/lib/env_zero_api/models/environment_api_environment_resource.rb +123 -0
- data/lib/env_zero_api/models/environment_api_environment_status.rb +84 -0
- data/lib/env_zero_api/models/environment_api_find_by_id_response.rb +539 -0
- data/lib/env_zero_api/models/environment_api_find_deployment_drift_status_response.rb +92 -0
- data/lib/env_zero_api/models/environment_api_find_deployment_log_by_id_response.rb +792 -0
- data/lib/env_zero_api/models/environment_api_get_deployment_plan_json_response.rb +86 -0
- data/lib/env_zero_api/models/environment_api_get_drifted_resource_event_details_response.rb +60 -0
- data/lib/env_zero_api/models/environment_api_get_drifted_resource_events_response.rb +98 -0
- data/lib/env_zero_api/models/environment_api_get_environments_outputs_response.rb +69 -0
- data/lib/env_zero_api/models/environment_api_get_plan_impact_destructive_change.rb +98 -0
- data/lib/env_zero_api/models/environment_api_get_plan_impact_plan_impact.rb +163 -0
- data/lib/env_zero_api/models/environment_api_get_policies_response.rb +298 -0
- data/lib/env_zero_api/models/environment_api_git_metadata.rb +110 -0
- data/lib/env_zero_api/models/environment_api_output_data.rb +103 -0
- data/lib/env_zero_api/models/environment_api_policy.rb +298 -0
- data/lib/env_zero_api/models/environment_api_remediate_drift_response.rb +792 -0
- data/lib/env_zero_api/models/environment_api_resume_response.rb +60 -0
- data/lib/env_zero_api/models/environment_api_reviewer.rb +90 -0
- data/lib/env_zero_api/models/environment_api_reviewer_user.rb +92 -0
- data/lib/env_zero_api/models/environment_api_state_file_hash.rb +87 -0
- data/lib/env_zero_api/models/environment_api_stopped_by_timeout_reason.rb +40 -0
- data/lib/env_zero_api/models/environment_api_terragrunt_run_all_output.rb +96 -0
- data/lib/env_zero_api/models/environment_api_ttl_request.rb +86 -0
- data/lib/env_zero_api/models/environment_api_ttl_request_body.rb +72 -0
- data/lib/env_zero_api/models/environment_api_ttl_response.rb +539 -0
- data/lib/env_zero_api/models/environment_api_ttl_type.rb +40 -0
- data/lib/env_zero_api/models/environment_api_update_environment_lock_request_body.rb +70 -0
- data/lib/env_zero_api/models/environment_api_update_environment_lock_response.rb +97 -0
- data/lib/env_zero_api/models/environment_api_update_policies_request_body.rb +334 -0
- data/lib/env_zero_api/models/environment_api_update_policies_response.rb +298 -0
- data/lib/env_zero_api/models/environment_api_update_request_body.rb +191 -0
- data/lib/env_zero_api/models/environment_api_update_response.rb +539 -0
- data/lib/env_zero_api/models/environment_api_update_tags_response.rb +539 -0
- data/lib/env_zero_api/models/environment_api_variable.rb +241 -0
- data/lib/env_zero_api/models/environment_api_vcs_provider.rb +56 -0
- data/lib/env_zero_api/models/environment_api_vcs_provider1.rb +56 -0
- data/lib/env_zero_api/models/environment_api_vcs_provider3.rb +56 -0
- data/lib/env_zero_api/models/environment_api_workflow_environments_workflow_file.rb +92 -0
- data/lib/env_zero_api/models/environment_api_workflow_environments_workflow_sub_environment.rb +226 -0
- data/lib/env_zero_api/models/environment_discovery_type.rb +26 -0
- data/lib/env_zero_api/models/environment_outputs_api_environment_state_access.rb +154 -0
- data/lib/env_zero_api/models/environment_outputs_api_get_state_access_config_response.rb +154 -0
- data/lib/env_zero_api/models/environment_removal_strategy.rb +36 -0
- data/lib/env_zero_api/models/environments.rb +80 -0
- data/lib/env_zero_api/models/event_name_type.rb +92 -0
- data/lib/env_zero_api/models/external_trigger_name.rb +40 -0
- data/lib/env_zero_api/models/family.rb +36 -0
- data/lib/env_zero_api/models/format.rb +40 -0
- data/lib/env_zero_api/models/git_user_data.rb +92 -0
- data/lib/env_zero_api/models/iac_type.rb +60 -0
- data/lib/env_zero_api/models/infracost_cost_estimation.rb +119 -0
- data/lib/env_zero_api/models/infracost_cost_estimation_project.rb +76 -0
- data/lib/env_zero_api/models/internal_trigger_name.rb +60 -0
- data/lib/env_zero_api/models/is_scheduled_run.rb +36 -0
- data/lib/env_zero_api/models/mode.rb +36 -0
- data/lib/env_zero_api/models/module_type.rb +26 -0
- data/lib/env_zero_api/models/notification_endpoint_type.rb +44 -0
- data/lib/env_zero_api/models/notifications_api_create_notification_endpoint_request_body.rb +122 -0
- data/lib/env_zero_api/models/notifications_api_create_notification_endpoint_response.rb +124 -0
- data/lib/env_zero_api/models/notifications_api_notification_endpoint_without_secret.rb +124 -0
- data/lib/env_zero_api/models/notifications_api_project_notification_setting.rb +102 -0
- data/lib/env_zero_api/models/notifications_api_update_project_notification_settings_request_body.rb +60 -0
- data/lib/env_zero_api/models/notifications_api_update_project_notification_settings_response.rb +102 -0
- data/lib/env_zero_api/models/organization_api_find_organization_by_id_response.rb +393 -0
- data/lib/env_zero_api/models/organization_api_get_organization_limits_response.rb +60 -0
- data/lib/env_zero_api/models/organization_api_ip_allowlist_rule.rb +119 -0
- data/lib/env_zero_api/models/organization_api_ip_allowlist_rule_type.rb +40 -0
- data/lib/env_zero_api/models/organization_api_ip_allowlist_rule_type2.rb +40 -0
- data/lib/env_zero_api/models/organization_api_organization.rb +393 -0
- data/lib/env_zero_api/models/organization_api_organization_limits.rb +60 -0
- data/lib/env_zero_api/models/organization_api_organization_mode.rb +36 -0
- data/lib/env_zero_api/models/organization_api_permissions.rb +82 -0
- data/lib/env_zero_api/models/organization_api_project_custom_flows_policy.rb +36 -0
- data/lib/env_zero_api/models/organization_api_project_permission.rb +69 -0
- data/lib/env_zero_api/models/organization_role.rb +36 -0
- data/lib/env_zero_api/models/organization_user.rb +77 -0
- data/lib/env_zero_api/models/organization_user_status.rb +36 -0
- data/lib/env_zero_api/models/output.rb +153 -0
- data/lib/env_zero_api/models/overwrites.rb +206 -0
- data/lib/env_zero_api/models/partial_json_schema7.rb +81 -0
- data/lib/env_zero_api/models/partial_json_schema72.rb +97 -0
- data/lib/env_zero_api/models/profile_data.rb +81 -0
- data/lib/env_zero_api/models/project_api_create_project_request.rb +102 -0
- data/lib/env_zero_api/models/project_api_create_project_request_body.rb +102 -0
- data/lib/env_zero_api/models/project_api_create_project_response.rb +150 -0
- data/lib/env_zero_api/models/project_api_find_by_id_response.rb +150 -0
- data/lib/env_zero_api/models/project_api_project.rb +150 -0
- data/lib/env_zero_api/models/project_api_user_access_source.rb +40 -0
- data/lib/env_zero_api/models/project_api_user_with_access.rb +148 -0
- data/lib/env_zero_api/models/requires_approval.rb +36 -0
- data/lib/env_zero_api/models/scheduling_api_disabled_reason.rb +36 -0
- data/lib/env_zero_api/models/scheduling_api_get_drift_detection_by_environment_id_response.rb +231 -0
- data/lib/env_zero_api/models/scheduling_api_get_schedule_by_environment_id_response.rb +71 -0
- data/lib/env_zero_api/models/scheduling_api_scheduled_action.rb +219 -0
- data/lib/env_zero_api/models/scheduling_api_set_drift_detection_request_body.rb +82 -0
- data/lib/env_zero_api/models/scheduling_api_set_drift_detection_response.rb +231 -0
- data/lib/env_zero_api/models/scheduling_api_set_environment_schedule_request_body.rb +75 -0
- data/lib/env_zero_api/models/scheduling_api_set_environment_schedule_request_scheduled_action.rb +70 -0
- data/lib/env_zero_api/models/scheduling_api_set_environment_schedule_response.rb +71 -0
- data/lib/env_zero_api/models/scope.rb +44 -0
- data/lib/env_zero_api/models/set_creation_scope.rb +36 -0
- data/lib/env_zero_api/models/settings.rb +76 -0
- data/lib/env_zero_api/models/skip_state_refresh.rb +36 -0
- data/lib/env_zero_api/models/status.rb +36 -0
- data/lib/env_zero_api/models/type.rb +36 -0
- data/lib/env_zero_api/models/user.rb +182 -0
- data/lib/env_zero_api/models/user1.rb +132 -0
- data/lib/env_zero_api/models/user_organization.rb +93 -0
- data/lib/env_zero_api/models/vcs.rb +368 -0
- data/lib/env_zero_api/models/workflow_deployment_options.rb +90 -0
- data/lib/env_zero_api/models/workflow_deployment_options1.rb +92 -0
- data/lib/env_zero_api/models/workflow_partial_deploy_operation.rb +40 -0
- data/lib/env_zero_api/models/workflow_sub_environment_request.rb +164 -0
- data/lib/env_zero_api/utilities/date_time_helper.rb +11 -0
- data/lib/env_zero_api/utilities/file_wrapper.rb +28 -0
- data/lib/env_zero_api/utilities/union_type_lookup.rb +379 -0
- data/lib/env_zero_api.rb +414 -0
- metadata +395 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# env_zero_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module EnvZeroApi
|
|
8
|
+
# ConfigurationSet Model.
|
|
9
|
+
class ConfigurationSet < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :id
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for this method
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :description
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :assignment_scope_id
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for this method
|
|
30
|
+
# @return [ConfigurationSetAssignmentScope]
|
|
31
|
+
attr_accessor :assignment_scope
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for this method
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :creation_scope_id
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for this method
|
|
38
|
+
# @return [SetCreationScope]
|
|
39
|
+
attr_accessor :creation_scope
|
|
40
|
+
|
|
41
|
+
# TODO: Write general description for this method
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :organization_id
|
|
44
|
+
|
|
45
|
+
# TODO: Write general description for this method
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :created_by
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for this method
|
|
50
|
+
# @return [User]
|
|
51
|
+
attr_accessor :created_by_user
|
|
52
|
+
|
|
53
|
+
# TODO: Write general description for this method
|
|
54
|
+
# @return [TrueClass | FalseClass]
|
|
55
|
+
attr_accessor :to_delete
|
|
56
|
+
|
|
57
|
+
# TODO: Write general description for this method
|
|
58
|
+
# @return [DateTime]
|
|
59
|
+
attr_accessor :created_at
|
|
60
|
+
|
|
61
|
+
# TODO: Write general description for this method
|
|
62
|
+
# @return [DateTime]
|
|
63
|
+
attr_accessor :updated_at
|
|
64
|
+
|
|
65
|
+
# A mapping from model property names to API property names.
|
|
66
|
+
def self.names
|
|
67
|
+
@_hash = {} if @_hash.nil?
|
|
68
|
+
@_hash['id'] = 'id'
|
|
69
|
+
@_hash['name'] = 'name'
|
|
70
|
+
@_hash['description'] = 'description'
|
|
71
|
+
@_hash['assignment_scope_id'] = 'assignmentScopeId'
|
|
72
|
+
@_hash['assignment_scope'] = 'assignmentScope'
|
|
73
|
+
@_hash['creation_scope_id'] = 'creationScopeId'
|
|
74
|
+
@_hash['creation_scope'] = 'creationScope'
|
|
75
|
+
@_hash['organization_id'] = 'organizationId'
|
|
76
|
+
@_hash['created_by'] = 'createdBy'
|
|
77
|
+
@_hash['created_by_user'] = 'createdByUser'
|
|
78
|
+
@_hash['to_delete'] = 'toDelete'
|
|
79
|
+
@_hash['created_at'] = 'createdAt'
|
|
80
|
+
@_hash['updated_at'] = 'updatedAt'
|
|
81
|
+
@_hash
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# An array for optional fields
|
|
85
|
+
def self.optionals
|
|
86
|
+
%w[
|
|
87
|
+
id
|
|
88
|
+
description
|
|
89
|
+
assignment_scope
|
|
90
|
+
created_by_user
|
|
91
|
+
to_delete
|
|
92
|
+
created_at
|
|
93
|
+
updated_at
|
|
94
|
+
]
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# An array for nullable fields
|
|
98
|
+
def self.nullables
|
|
99
|
+
[]
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def initialize(name:, assignment_scope_id:, creation_scope_id:,
|
|
103
|
+
creation_scope:, organization_id:, created_by:, id: SKIP,
|
|
104
|
+
description: SKIP, assignment_scope: SKIP,
|
|
105
|
+
created_by_user: SKIP, to_delete: SKIP, created_at: SKIP,
|
|
106
|
+
updated_at: SKIP)
|
|
107
|
+
@id = id unless id == SKIP
|
|
108
|
+
@name = name
|
|
109
|
+
@description = description unless description == SKIP
|
|
110
|
+
@assignment_scope_id = assignment_scope_id
|
|
111
|
+
@assignment_scope = assignment_scope unless assignment_scope == SKIP
|
|
112
|
+
@creation_scope_id = creation_scope_id
|
|
113
|
+
@creation_scope = creation_scope
|
|
114
|
+
@organization_id = organization_id
|
|
115
|
+
@created_by = created_by
|
|
116
|
+
@created_by_user = created_by_user unless created_by_user == SKIP
|
|
117
|
+
@to_delete = to_delete unless to_delete == SKIP
|
|
118
|
+
@created_at = created_at unless created_at == SKIP
|
|
119
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Creates an instance of the object from a hash.
|
|
123
|
+
def self.from_hash(hash)
|
|
124
|
+
return nil unless hash
|
|
125
|
+
|
|
126
|
+
# Extract variables from the hash.
|
|
127
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
128
|
+
assignment_scope_id =
|
|
129
|
+
hash.key?('assignmentScopeId') ? hash['assignmentScopeId'] : nil
|
|
130
|
+
creation_scope_id =
|
|
131
|
+
hash.key?('creationScopeId') ? hash['creationScopeId'] : nil
|
|
132
|
+
creation_scope = hash.key?('creationScope') ? hash['creationScope'] : nil
|
|
133
|
+
organization_id =
|
|
134
|
+
hash.key?('organizationId') ? hash['organizationId'] : nil
|
|
135
|
+
created_by = hash.key?('createdBy') ? hash['createdBy'] : nil
|
|
136
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
137
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
138
|
+
assignment_scope =
|
|
139
|
+
hash.key?('assignmentScope') ? hash['assignmentScope'] : SKIP
|
|
140
|
+
created_by_user = User.from_hash(hash['createdByUser']) if hash['createdByUser']
|
|
141
|
+
to_delete = hash.key?('toDelete') ? hash['toDelete'] : SKIP
|
|
142
|
+
created_at = if hash.key?('createdAt')
|
|
143
|
+
(DateTimeHelper.from_rfc3339(hash['createdAt']) if hash['createdAt'])
|
|
144
|
+
else
|
|
145
|
+
SKIP
|
|
146
|
+
end
|
|
147
|
+
updated_at = if hash.key?('updatedAt')
|
|
148
|
+
(DateTimeHelper.from_rfc3339(hash['updatedAt']) if hash['updatedAt'])
|
|
149
|
+
else
|
|
150
|
+
SKIP
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Create object from extracted values.
|
|
154
|
+
ConfigurationSet.new(name: name,
|
|
155
|
+
assignment_scope_id: assignment_scope_id,
|
|
156
|
+
creation_scope_id: creation_scope_id,
|
|
157
|
+
creation_scope: creation_scope,
|
|
158
|
+
organization_id: organization_id,
|
|
159
|
+
created_by: created_by,
|
|
160
|
+
id: id,
|
|
161
|
+
description: description,
|
|
162
|
+
assignment_scope: assignment_scope,
|
|
163
|
+
created_by_user: created_by_user,
|
|
164
|
+
to_delete: to_delete,
|
|
165
|
+
created_at: created_at,
|
|
166
|
+
updated_at: updated_at)
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
def to_custom_created_at
|
|
170
|
+
DateTimeHelper.to_rfc3339(created_at)
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
def to_custom_updated_at
|
|
174
|
+
DateTimeHelper.to_rfc3339(updated_at)
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Provides a human-readable string representation of the object.
|
|
178
|
+
def to_s
|
|
179
|
+
class_name = self.class.name.split('::').last
|
|
180
|
+
"<#{class_name} id: #{@id}, name: #{@name}, description: #{@description},"\
|
|
181
|
+
" assignment_scope_id: #{@assignment_scope_id}, assignment_scope: #{@assignment_scope},"\
|
|
182
|
+
" creation_scope_id: #{@creation_scope_id}, creation_scope: #{@creation_scope},"\
|
|
183
|
+
" organization_id: #{@organization_id}, created_by: #{@created_by}, created_by_user:"\
|
|
184
|
+
" #{@created_by_user}, to_delete: #{@to_delete}, created_at: #{@created_at}, updated_at:"\
|
|
185
|
+
" #{@updated_at}>"
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
189
|
+
def inspect
|
|
190
|
+
class_name = self.class.name.split('::').last
|
|
191
|
+
"<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, description:"\
|
|
192
|
+
" #{@description.inspect}, assignment_scope_id: #{@assignment_scope_id.inspect},"\
|
|
193
|
+
" assignment_scope: #{@assignment_scope.inspect}, creation_scope_id:"\
|
|
194
|
+
" #{@creation_scope_id.inspect}, creation_scope: #{@creation_scope.inspect},"\
|
|
195
|
+
" organization_id: #{@organization_id.inspect}, created_by: #{@created_by.inspect},"\
|
|
196
|
+
" created_by_user: #{@created_by_user.inspect}, to_delete: #{@to_delete.inspect},"\
|
|
197
|
+
" created_at: #{@created_at.inspect}, updated_at: #{@updated_at.inspect}>"
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# env_zero_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module EnvZeroApi
|
|
7
|
+
# ConfigurationSetAssignmentScope.
|
|
8
|
+
class ConfigurationSetAssignmentScope
|
|
9
|
+
CONFIGURATION_SET_ASSIGNMENT_SCOPE = [
|
|
10
|
+
# TODO: Write general description for ORGANIZATION
|
|
11
|
+
ORGANIZATION = 'organization'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for PROJECT
|
|
14
|
+
PROJECT = 'project'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for TEMPLATE
|
|
17
|
+
TEMPLATE = 'template'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for ENUM_MODULE
|
|
20
|
+
ENUM_MODULE = 'module'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENVIRONMENT
|
|
23
|
+
ENVIRONMENT = 'environment'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for DEPLOYMENT
|
|
26
|
+
DEPLOYMENT = 'deployment'.freeze
|
|
27
|
+
].freeze
|
|
28
|
+
|
|
29
|
+
def self.validate(value)
|
|
30
|
+
return false if value.nil?
|
|
31
|
+
|
|
32
|
+
CONFIGURATION_SET_ASSIGNMENT_SCOPE.include?(value)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def self.from_value(value, default_value = ORGANIZATION)
|
|
36
|
+
return default_value if value.nil?
|
|
37
|
+
|
|
38
|
+
str = value.to_s.strip
|
|
39
|
+
|
|
40
|
+
case str.downcase
|
|
41
|
+
when 'organization' then ORGANIZATION
|
|
42
|
+
when 'project' then PROJECT
|
|
43
|
+
when 'template' then TEMPLATE
|
|
44
|
+
when 'enum_module' then ENUM_MODULE
|
|
45
|
+
when 'environment' then ENVIRONMENT
|
|
46
|
+
when 'deployment' then DEPLOYMENT
|
|
47
|
+
else
|
|
48
|
+
default_value
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# env_zero_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module EnvZeroApi
|
|
7
|
+
# Environment variable. Set in the shell that runs the IaC commands and custom
|
|
8
|
+
# flows.
|
|
9
|
+
class ConfigurationType
|
|
10
|
+
CONFIGURATION_TYPE = [
|
|
11
|
+
# TODO: Write general description for ENUM_0
|
|
12
|
+
ENUM_0 = 0
|
|
13
|
+
].freeze
|
|
14
|
+
|
|
15
|
+
def self.validate(value)
|
|
16
|
+
return false if value.nil?
|
|
17
|
+
|
|
18
|
+
CONFIGURATION_TYPE.include?(value)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def self.from_value(value, default_value = ENUM_0)
|
|
22
|
+
return default_value if value.nil?
|
|
23
|
+
|
|
24
|
+
default_value
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# env_zero_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module EnvZeroApi
|
|
7
|
+
# Terraform variable. An input variable declared in the IaC configuration,
|
|
8
|
+
# whose value env zero supplies when running IaC commands.
|
|
9
|
+
class ConfigurationType1
|
|
10
|
+
CONFIGURATION_TYPE1 = [
|
|
11
|
+
# TODO: Write general description for ENUM_1
|
|
12
|
+
ENUM_1 = 1
|
|
13
|
+
].freeze
|
|
14
|
+
|
|
15
|
+
def self.validate(value)
|
|
16
|
+
return false if value.nil?
|
|
17
|
+
|
|
18
|
+
CONFIGURATION_TYPE1.include?(value)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def self.from_value(value, default_value = ENUM_1)
|
|
22
|
+
return default_value if value.nil?
|
|
23
|
+
|
|
24
|
+
default_value
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# env_zero_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module EnvZeroApi
|
|
7
|
+
# CredentialsApiApiKey Model.
|
|
8
|
+
class CredentialsApiApiKey < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :name
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :api_key_id
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :last_used_at
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :organization_id
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :created_at
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :created_by
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [ApiKeyUser]
|
|
42
|
+
attr_accessor :created_by_user
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :api_key_secret
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [OrganizationRole]
|
|
50
|
+
attr_accessor :organization_role
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [TrueClass | FalseClass]
|
|
54
|
+
attr_accessor :is_blocked
|
|
55
|
+
|
|
56
|
+
# TODO: Write general description for this method
|
|
57
|
+
# @return [TrueClass | FalseClass]
|
|
58
|
+
attr_accessor :read_only
|
|
59
|
+
|
|
60
|
+
# A mapping from model property names to API property names.
|
|
61
|
+
def self.names
|
|
62
|
+
@_hash = {} if @_hash.nil?
|
|
63
|
+
@_hash['id'] = 'id'
|
|
64
|
+
@_hash['name'] = 'name'
|
|
65
|
+
@_hash['api_key_id'] = 'apiKeyId'
|
|
66
|
+
@_hash['last_used_at'] = 'lastUsedAt'
|
|
67
|
+
@_hash['organization_id'] = 'organizationId'
|
|
68
|
+
@_hash['created_at'] = 'createdAt'
|
|
69
|
+
@_hash['created_by'] = 'createdBy'
|
|
70
|
+
@_hash['created_by_user'] = 'createdByUser'
|
|
71
|
+
@_hash['api_key_secret'] = 'apiKeySecret'
|
|
72
|
+
@_hash['organization_role'] = 'organizationRole'
|
|
73
|
+
@_hash['is_blocked'] = 'isBlocked'
|
|
74
|
+
@_hash['read_only'] = 'readOnly'
|
|
75
|
+
@_hash
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# An array for optional fields
|
|
79
|
+
def self.optionals
|
|
80
|
+
%w[
|
|
81
|
+
created_by_user
|
|
82
|
+
api_key_secret
|
|
83
|
+
is_blocked
|
|
84
|
+
read_only
|
|
85
|
+
]
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# An array for nullable fields
|
|
89
|
+
def self.nullables
|
|
90
|
+
[]
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def initialize(id:, name:, api_key_id:, last_used_at:, organization_id:,
|
|
94
|
+
created_at:, created_by:, organization_role:,
|
|
95
|
+
created_by_user: SKIP, api_key_secret: SKIP,
|
|
96
|
+
is_blocked: SKIP, read_only: SKIP)
|
|
97
|
+
@id = id
|
|
98
|
+
@name = name
|
|
99
|
+
@api_key_id = api_key_id
|
|
100
|
+
@last_used_at = last_used_at
|
|
101
|
+
@organization_id = organization_id
|
|
102
|
+
@created_at = created_at
|
|
103
|
+
@created_by = created_by
|
|
104
|
+
@created_by_user = created_by_user unless created_by_user == SKIP
|
|
105
|
+
@api_key_secret = api_key_secret unless api_key_secret == SKIP
|
|
106
|
+
@organization_role = organization_role
|
|
107
|
+
@is_blocked = is_blocked unless is_blocked == SKIP
|
|
108
|
+
@read_only = read_only unless read_only == SKIP
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Creates an instance of the object from a hash.
|
|
112
|
+
def self.from_hash(hash)
|
|
113
|
+
return nil unless hash
|
|
114
|
+
|
|
115
|
+
# Extract variables from the hash.
|
|
116
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
117
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
118
|
+
api_key_id = hash.key?('apiKeyId') ? hash['apiKeyId'] : nil
|
|
119
|
+
last_used_at = hash.key?('lastUsedAt') ? hash['lastUsedAt'] : nil
|
|
120
|
+
organization_id =
|
|
121
|
+
hash.key?('organizationId') ? hash['organizationId'] : nil
|
|
122
|
+
created_at = hash.key?('createdAt') ? hash['createdAt'] : nil
|
|
123
|
+
created_by = hash.key?('createdBy') ? hash['createdBy'] : nil
|
|
124
|
+
organization_role =
|
|
125
|
+
hash.key?('organizationRole') ? hash['organizationRole'] : nil
|
|
126
|
+
created_by_user = ApiKeyUser.from_hash(hash['createdByUser']) if hash['createdByUser']
|
|
127
|
+
api_key_secret = hash.key?('apiKeySecret') ? hash['apiKeySecret'] : SKIP
|
|
128
|
+
is_blocked = hash.key?('isBlocked') ? hash['isBlocked'] : SKIP
|
|
129
|
+
read_only = hash.key?('readOnly') ? hash['readOnly'] : SKIP
|
|
130
|
+
|
|
131
|
+
# Create object from extracted values.
|
|
132
|
+
CredentialsApiApiKey.new(id: id,
|
|
133
|
+
name: name,
|
|
134
|
+
api_key_id: api_key_id,
|
|
135
|
+
last_used_at: last_used_at,
|
|
136
|
+
organization_id: organization_id,
|
|
137
|
+
created_at: created_at,
|
|
138
|
+
created_by: created_by,
|
|
139
|
+
organization_role: organization_role,
|
|
140
|
+
created_by_user: created_by_user,
|
|
141
|
+
api_key_secret: api_key_secret,
|
|
142
|
+
is_blocked: is_blocked,
|
|
143
|
+
read_only: read_only)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Provides a human-readable string representation of the object.
|
|
147
|
+
def to_s
|
|
148
|
+
class_name = self.class.name.split('::').last
|
|
149
|
+
"<#{class_name} id: #{@id}, name: #{@name}, api_key_id: #{@api_key_id}, last_used_at:"\
|
|
150
|
+
" #{@last_used_at}, organization_id: #{@organization_id}, created_at: #{@created_at},"\
|
|
151
|
+
" created_by: #{@created_by}, created_by_user: #{@created_by_user}, api_key_secret:"\
|
|
152
|
+
" #{@api_key_secret}, organization_role: #{@organization_role}, is_blocked: #{@is_blocked},"\
|
|
153
|
+
" read_only: #{@read_only}>"
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
157
|
+
def inspect
|
|
158
|
+
class_name = self.class.name.split('::').last
|
|
159
|
+
"<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, api_key_id:"\
|
|
160
|
+
" #{@api_key_id.inspect}, last_used_at: #{@last_used_at.inspect}, organization_id:"\
|
|
161
|
+
" #{@organization_id.inspect}, created_at: #{@created_at.inspect}, created_by:"\
|
|
162
|
+
" #{@created_by.inspect}, created_by_user: #{@created_by_user.inspect}, api_key_secret:"\
|
|
163
|
+
" #{@api_key_secret.inspect}, organization_role: #{@organization_role.inspect}, is_blocked:"\
|
|
164
|
+
" #{@is_blocked.inspect}, read_only: #{@read_only.inspect}>"
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# env_zero_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module EnvZeroApi
|
|
7
|
+
# CredentialsApiCreateApiKeyRequestBody Model.
|
|
8
|
+
class CredentialsApiCreateApiKeyRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :name
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :organization_id
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [OrganizationApiPermissions]
|
|
22
|
+
attr_accessor :permissions
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [TrueClass | FalseClass]
|
|
26
|
+
attr_accessor :read_only
|
|
27
|
+
|
|
28
|
+
# A mapping from model property names to API property names.
|
|
29
|
+
def self.names
|
|
30
|
+
@_hash = {} if @_hash.nil?
|
|
31
|
+
@_hash['name'] = 'name'
|
|
32
|
+
@_hash['organization_id'] = 'organizationId'
|
|
33
|
+
@_hash['permissions'] = 'permissions'
|
|
34
|
+
@_hash['read_only'] = 'readOnly'
|
|
35
|
+
@_hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for optional fields
|
|
39
|
+
def self.optionals
|
|
40
|
+
%w[
|
|
41
|
+
permissions
|
|
42
|
+
read_only
|
|
43
|
+
]
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# An array for nullable fields
|
|
47
|
+
def self.nullables
|
|
48
|
+
[]
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def initialize(name:, organization_id:, permissions: SKIP, read_only: SKIP)
|
|
52
|
+
@name = name
|
|
53
|
+
@organization_id = organization_id
|
|
54
|
+
@permissions = permissions unless permissions == SKIP
|
|
55
|
+
@read_only = read_only unless read_only == SKIP
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Creates an instance of the object from a hash.
|
|
59
|
+
def self.from_hash(hash)
|
|
60
|
+
return nil unless hash
|
|
61
|
+
|
|
62
|
+
# Extract variables from the hash.
|
|
63
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
64
|
+
organization_id =
|
|
65
|
+
hash.key?('organizationId') ? hash['organizationId'] : nil
|
|
66
|
+
permissions = OrganizationApiPermissions.from_hash(hash['permissions']) if
|
|
67
|
+
hash['permissions']
|
|
68
|
+
read_only = hash.key?('readOnly') ? hash['readOnly'] : SKIP
|
|
69
|
+
|
|
70
|
+
# Create object from extracted values.
|
|
71
|
+
CredentialsApiCreateApiKeyRequestBody.new(name: name,
|
|
72
|
+
organization_id: organization_id,
|
|
73
|
+
permissions: permissions,
|
|
74
|
+
read_only: read_only)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Provides a human-readable string representation of the object.
|
|
78
|
+
def to_s
|
|
79
|
+
class_name = self.class.name.split('::').last
|
|
80
|
+
"<#{class_name} name: #{@name}, organization_id: #{@organization_id}, permissions:"\
|
|
81
|
+
" #{@permissions}, read_only: #{@read_only}>"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
85
|
+
def inspect
|
|
86
|
+
class_name = self.class.name.split('::').last
|
|
87
|
+
"<#{class_name} name: #{@name.inspect}, organization_id: #{@organization_id.inspect},"\
|
|
88
|
+
" permissions: #{@permissions.inspect}, read_only: #{@read_only.inspect}>"
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|