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
data/lib/env_zero_api/models/environment_api_workflow_environments_workflow_sub_environment.rb
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
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
|
+
# EnvironmentApiWorkflowEnvironmentsWorkflowSubEnvironment Model.
|
|
8
|
+
class EnvironmentApiWorkflowEnvironmentsWorkflowSubEnvironment < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :environment_id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :to_destroy
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [TrueClass | FalseClass]
|
|
22
|
+
attr_accessor :is_remote_backend
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :k8s_namespace
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [Vcs]
|
|
30
|
+
attr_accessor :vcs
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :name
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :template_name
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :template_id
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [IacType]
|
|
46
|
+
attr_accessor :template_type
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :revision
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :workspace
|
|
55
|
+
|
|
56
|
+
# TODO: Write general description for this method
|
|
57
|
+
# @return [Array[String]]
|
|
58
|
+
attr_accessor :needs
|
|
59
|
+
|
|
60
|
+
# TODO: Write general description for this method
|
|
61
|
+
# @return [String]
|
|
62
|
+
attr_accessor :terragrunt_working_directory
|
|
63
|
+
|
|
64
|
+
# TODO: Write general description for this method
|
|
65
|
+
# @return [TrueClass | FalseClass]
|
|
66
|
+
attr_accessor :requires_approval
|
|
67
|
+
|
|
68
|
+
# TODO: Write general description for this method
|
|
69
|
+
# @return [Object]
|
|
70
|
+
attr_accessor :disabled
|
|
71
|
+
|
|
72
|
+
# A mapping from model property names to API property names.
|
|
73
|
+
def self.names
|
|
74
|
+
@_hash = {} if @_hash.nil?
|
|
75
|
+
@_hash['environment_id'] = 'environmentId'
|
|
76
|
+
@_hash['to_destroy'] = 'toDestroy'
|
|
77
|
+
@_hash['is_remote_backend'] = 'isRemoteBackend'
|
|
78
|
+
@_hash['k8s_namespace'] = 'k8sNamespace'
|
|
79
|
+
@_hash['vcs'] = 'vcs'
|
|
80
|
+
@_hash['name'] = 'name'
|
|
81
|
+
@_hash['template_name'] = 'templateName'
|
|
82
|
+
@_hash['template_id'] = 'templateId'
|
|
83
|
+
@_hash['template_type'] = 'templateType'
|
|
84
|
+
@_hash['revision'] = 'revision'
|
|
85
|
+
@_hash['workspace'] = 'workspace'
|
|
86
|
+
@_hash['needs'] = 'needs'
|
|
87
|
+
@_hash['terragrunt_working_directory'] = 'terragruntWorkingDirectory'
|
|
88
|
+
@_hash['requires_approval'] = 'requiresApproval'
|
|
89
|
+
@_hash['disabled'] = 'disabled'
|
|
90
|
+
@_hash
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# An array for optional fields
|
|
94
|
+
def self.optionals
|
|
95
|
+
%w[
|
|
96
|
+
environment_id
|
|
97
|
+
to_destroy
|
|
98
|
+
is_remote_backend
|
|
99
|
+
k8s_namespace
|
|
100
|
+
vcs
|
|
101
|
+
template_name
|
|
102
|
+
template_id
|
|
103
|
+
template_type
|
|
104
|
+
revision
|
|
105
|
+
workspace
|
|
106
|
+
needs
|
|
107
|
+
terragrunt_working_directory
|
|
108
|
+
requires_approval
|
|
109
|
+
disabled
|
|
110
|
+
]
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# An array for nullable fields
|
|
114
|
+
def self.nullables
|
|
115
|
+
[]
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
def initialize(name:, environment_id: SKIP, to_destroy: SKIP,
|
|
119
|
+
is_remote_backend: SKIP, k8s_namespace: SKIP, vcs: SKIP,
|
|
120
|
+
template_name: SKIP, template_id: SKIP, template_type: SKIP,
|
|
121
|
+
revision: SKIP, workspace: SKIP, needs: SKIP,
|
|
122
|
+
terragrunt_working_directory: SKIP, requires_approval: SKIP,
|
|
123
|
+
disabled: SKIP)
|
|
124
|
+
@environment_id = environment_id unless environment_id == SKIP
|
|
125
|
+
@to_destroy = to_destroy unless to_destroy == SKIP
|
|
126
|
+
@is_remote_backend = is_remote_backend unless is_remote_backend == SKIP
|
|
127
|
+
@k8s_namespace = k8s_namespace unless k8s_namespace == SKIP
|
|
128
|
+
@vcs = vcs unless vcs == SKIP
|
|
129
|
+
@name = name
|
|
130
|
+
@template_name = template_name unless template_name == SKIP
|
|
131
|
+
@template_id = template_id unless template_id == SKIP
|
|
132
|
+
@template_type = template_type unless template_type == SKIP
|
|
133
|
+
@revision = revision unless revision == SKIP
|
|
134
|
+
@workspace = workspace unless workspace == SKIP
|
|
135
|
+
@needs = needs unless needs == SKIP
|
|
136
|
+
unless terragrunt_working_directory == SKIP
|
|
137
|
+
@terragrunt_working_directory =
|
|
138
|
+
terragrunt_working_directory
|
|
139
|
+
end
|
|
140
|
+
@requires_approval = requires_approval unless requires_approval == SKIP
|
|
141
|
+
@disabled = disabled unless disabled == SKIP
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Creates an instance of the object from a hash.
|
|
145
|
+
def self.from_hash(hash)
|
|
146
|
+
return nil unless hash
|
|
147
|
+
|
|
148
|
+
# Extract variables from the hash.
|
|
149
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
150
|
+
environment_id = hash.key?('environmentId') ? hash['environmentId'] : SKIP
|
|
151
|
+
to_destroy = hash.key?('toDestroy') ? hash['toDestroy'] : SKIP
|
|
152
|
+
is_remote_backend =
|
|
153
|
+
hash.key?('isRemoteBackend') ? hash['isRemoteBackend'] : SKIP
|
|
154
|
+
k8s_namespace = hash.key?('k8sNamespace') ? hash['k8sNamespace'] : SKIP
|
|
155
|
+
vcs = Vcs.from_hash(hash['vcs']) if hash['vcs']
|
|
156
|
+
template_name = hash.key?('templateName') ? hash['templateName'] : SKIP
|
|
157
|
+
template_id = hash.key?('templateId') ? hash['templateId'] : SKIP
|
|
158
|
+
template_type = hash.key?('templateType') ? hash['templateType'] : SKIP
|
|
159
|
+
revision = hash.key?('revision') ? hash['revision'] : SKIP
|
|
160
|
+
workspace = hash.key?('workspace') ? hash['workspace'] : SKIP
|
|
161
|
+
needs = hash.key?('needs') ? hash['needs'] : SKIP
|
|
162
|
+
terragrunt_working_directory =
|
|
163
|
+
hash.key?('terragruntWorkingDirectory') ? hash['terragruntWorkingDirectory'] : SKIP
|
|
164
|
+
requires_approval =
|
|
165
|
+
hash.key?('requiresApproval') ? hash['requiresApproval'] : SKIP
|
|
166
|
+
disabled = hash.key?('disabled') ? APIHelper.deserialize_union_type(
|
|
167
|
+
UnionTypeLookUp.get(:EnvironmentApiWorkflowEnvironmentsWorkflowSubEnvironmentDisabled), hash['disabled']
|
|
168
|
+
) : SKIP
|
|
169
|
+
|
|
170
|
+
# Create object from extracted values.
|
|
171
|
+
EnvironmentApiWorkflowEnvironmentsWorkflowSubEnvironment.new(name: name,
|
|
172
|
+
environment_id: environment_id,
|
|
173
|
+
to_destroy: to_destroy,
|
|
174
|
+
is_remote_backend: is_remote_backend,
|
|
175
|
+
k8s_namespace: k8s_namespace,
|
|
176
|
+
vcs: vcs,
|
|
177
|
+
template_name: template_name,
|
|
178
|
+
template_id: template_id,
|
|
179
|
+
template_type: template_type,
|
|
180
|
+
revision: revision,
|
|
181
|
+
workspace: workspace,
|
|
182
|
+
needs: needs,
|
|
183
|
+
terragrunt_working_directory: terragrunt_working_directory,
|
|
184
|
+
requires_approval: requires_approval,
|
|
185
|
+
disabled: disabled)
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Validates an instance of the object from a given value.
|
|
189
|
+
# @param [EnvironmentApiWorkflowEnvironmentsWorkflowSubEnvironment | Hash] The value against the validation is performed.
|
|
190
|
+
def self.validate(value)
|
|
191
|
+
if value.instance_of? self
|
|
192
|
+
return APIHelper.valid_type?(value.name,
|
|
193
|
+
->(val) { val.instance_of? String })
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
return false unless value.instance_of? Hash
|
|
197
|
+
|
|
198
|
+
APIHelper.valid_type?(value['name'],
|
|
199
|
+
->(val) { val.instance_of? String })
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Provides a human-readable string representation of the object.
|
|
203
|
+
def to_s
|
|
204
|
+
class_name = self.class.name.split('::').last
|
|
205
|
+
"<#{class_name} environment_id: #{@environment_id}, to_destroy: #{@to_destroy},"\
|
|
206
|
+
" is_remote_backend: #{@is_remote_backend}, k8s_namespace: #{@k8s_namespace}, vcs: #{@vcs},"\
|
|
207
|
+
" name: #{@name}, template_name: #{@template_name}, template_id: #{@template_id},"\
|
|
208
|
+
" template_type: #{@template_type}, revision: #{@revision}, workspace: #{@workspace}, needs:"\
|
|
209
|
+
" #{@needs}, terragrunt_working_directory: #{@terragrunt_working_directory},"\
|
|
210
|
+
" requires_approval: #{@requires_approval}, disabled: #{@disabled}>"
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
214
|
+
def inspect
|
|
215
|
+
class_name = self.class.name.split('::').last
|
|
216
|
+
"<#{class_name} environment_id: #{@environment_id.inspect}, to_destroy:"\
|
|
217
|
+
" #{@to_destroy.inspect}, is_remote_backend: #{@is_remote_backend.inspect}, k8s_namespace:"\
|
|
218
|
+
" #{@k8s_namespace.inspect}, vcs: #{@vcs.inspect}, name: #{@name.inspect}, template_name:"\
|
|
219
|
+
" #{@template_name.inspect}, template_id: #{@template_id.inspect}, template_type:"\
|
|
220
|
+
" #{@template_type.inspect}, revision: #{@revision.inspect}, workspace:"\
|
|
221
|
+
" #{@workspace.inspect}, needs: #{@needs.inspect}, terragrunt_working_directory:"\
|
|
222
|
+
" #{@terragrunt_working_directory.inspect}, requires_approval:"\
|
|
223
|
+
" #{@requires_approval.inspect}, disabled: #{@disabled.inspect}>"
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
# EnvironmentDiscoveryType.
|
|
8
|
+
class EnvironmentDiscoveryType
|
|
9
|
+
ENVIRONMENT_DISCOVERY_TYPE = [
|
|
10
|
+
# TODO: Write general description for ENVIRONMENTDISCOVERY
|
|
11
|
+
ENVIRONMENTDISCOVERY = 'environment-discovery'.freeze
|
|
12
|
+
].freeze
|
|
13
|
+
|
|
14
|
+
def self.validate(value)
|
|
15
|
+
return false if value.nil?
|
|
16
|
+
|
|
17
|
+
ENVIRONMENT_DISCOVERY_TYPE.include?(value)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.from_value(value, default_value = ENVIRONMENTDISCOVERY)
|
|
21
|
+
return default_value if value.nil?
|
|
22
|
+
|
|
23
|
+
default_value
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
# EnvironmentOutputsApiEnvironmentStateAccess Model.
|
|
9
|
+
class EnvironmentOutputsApiEnvironmentStateAccess < 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 [DateTime]
|
|
19
|
+
attr_accessor :created_at
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :updated_at
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :environment_id
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for this method
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :organization_id
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for this method
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :project_id
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for this method
|
|
38
|
+
# @return [TrueClass | FalseClass]
|
|
39
|
+
attr_accessor :accessible_from_entire_organization
|
|
40
|
+
|
|
41
|
+
# TODO: Write general description for this method
|
|
42
|
+
# @return [Array[String]]
|
|
43
|
+
attr_accessor :allowed_project_ids
|
|
44
|
+
|
|
45
|
+
# A mapping from model property names to API property names.
|
|
46
|
+
def self.names
|
|
47
|
+
@_hash = {} if @_hash.nil?
|
|
48
|
+
@_hash['id'] = 'id'
|
|
49
|
+
@_hash['created_at'] = 'createdAt'
|
|
50
|
+
@_hash['updated_at'] = 'updatedAt'
|
|
51
|
+
@_hash['environment_id'] = 'environmentId'
|
|
52
|
+
@_hash['organization_id'] = 'organizationId'
|
|
53
|
+
@_hash['project_id'] = 'projectId'
|
|
54
|
+
@_hash['accessible_from_entire_organization'] =
|
|
55
|
+
'accessibleFromEntireOrganization'
|
|
56
|
+
@_hash['allowed_project_ids'] = 'allowedProjectIds'
|
|
57
|
+
@_hash
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# An array for optional fields
|
|
61
|
+
def self.optionals
|
|
62
|
+
%w[
|
|
63
|
+
id
|
|
64
|
+
created_at
|
|
65
|
+
updated_at
|
|
66
|
+
organization_id
|
|
67
|
+
project_id
|
|
68
|
+
allowed_project_ids
|
|
69
|
+
]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# An array for nullable fields
|
|
73
|
+
def self.nullables
|
|
74
|
+
[]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def initialize(environment_id:, accessible_from_entire_organization:,
|
|
78
|
+
id: SKIP, created_at: SKIP, updated_at: SKIP,
|
|
79
|
+
organization_id: SKIP, project_id: SKIP,
|
|
80
|
+
allowed_project_ids: SKIP)
|
|
81
|
+
@id = id unless id == SKIP
|
|
82
|
+
@created_at = created_at unless created_at == SKIP
|
|
83
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
84
|
+
@environment_id = environment_id
|
|
85
|
+
@organization_id = organization_id unless organization_id == SKIP
|
|
86
|
+
@project_id = project_id unless project_id == SKIP
|
|
87
|
+
@accessible_from_entire_organization = accessible_from_entire_organization
|
|
88
|
+
@allowed_project_ids = allowed_project_ids unless allowed_project_ids == SKIP
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Creates an instance of the object from a hash.
|
|
92
|
+
def self.from_hash(hash)
|
|
93
|
+
return nil unless hash
|
|
94
|
+
|
|
95
|
+
# Extract variables from the hash.
|
|
96
|
+
environment_id = hash.key?('environmentId') ? hash['environmentId'] : nil
|
|
97
|
+
accessible_from_entire_organization =
|
|
98
|
+
hash.key?('accessibleFromEntireOrganization') ? hash['accessibleFromEntireOrganization'] : nil
|
|
99
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
100
|
+
created_at = if hash.key?('createdAt')
|
|
101
|
+
(DateTimeHelper.from_rfc3339(hash['createdAt']) if hash['createdAt'])
|
|
102
|
+
else
|
|
103
|
+
SKIP
|
|
104
|
+
end
|
|
105
|
+
updated_at = if hash.key?('updatedAt')
|
|
106
|
+
(DateTimeHelper.from_rfc3339(hash['updatedAt']) if hash['updatedAt'])
|
|
107
|
+
else
|
|
108
|
+
SKIP
|
|
109
|
+
end
|
|
110
|
+
organization_id =
|
|
111
|
+
hash.key?('organizationId') ? hash['organizationId'] : SKIP
|
|
112
|
+
project_id = hash.key?('projectId') ? hash['projectId'] : SKIP
|
|
113
|
+
allowed_project_ids =
|
|
114
|
+
hash.key?('allowedProjectIds') ? hash['allowedProjectIds'] : SKIP
|
|
115
|
+
|
|
116
|
+
# Create object from extracted values.
|
|
117
|
+
EnvironmentOutputsApiEnvironmentStateAccess.new(environment_id: environment_id,
|
|
118
|
+
accessible_from_entire_organization: accessible_from_entire_organization,
|
|
119
|
+
id: id,
|
|
120
|
+
created_at: created_at,
|
|
121
|
+
updated_at: updated_at,
|
|
122
|
+
organization_id: organization_id,
|
|
123
|
+
project_id: project_id,
|
|
124
|
+
allowed_project_ids: allowed_project_ids)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
def to_custom_created_at
|
|
128
|
+
DateTimeHelper.to_rfc3339(created_at)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def to_custom_updated_at
|
|
132
|
+
DateTimeHelper.to_rfc3339(updated_at)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Provides a human-readable string representation of the object.
|
|
136
|
+
def to_s
|
|
137
|
+
class_name = self.class.name.split('::').last
|
|
138
|
+
"<#{class_name} id: #{@id}, created_at: #{@created_at}, updated_at: #{@updated_at},"\
|
|
139
|
+
" environment_id: #{@environment_id}, organization_id: #{@organization_id}, project_id:"\
|
|
140
|
+
" #{@project_id}, accessible_from_entire_organization:"\
|
|
141
|
+
" #{@accessible_from_entire_organization}, allowed_project_ids: #{@allowed_project_ids}>"
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
145
|
+
def inspect
|
|
146
|
+
class_name = self.class.name.split('::').last
|
|
147
|
+
"<#{class_name} id: #{@id.inspect}, created_at: #{@created_at.inspect}, updated_at:"\
|
|
148
|
+
" #{@updated_at.inspect}, environment_id: #{@environment_id.inspect}, organization_id:"\
|
|
149
|
+
" #{@organization_id.inspect}, project_id: #{@project_id.inspect},"\
|
|
150
|
+
" accessible_from_entire_organization: #{@accessible_from_entire_organization.inspect},"\
|
|
151
|
+
" allowed_project_ids: #{@allowed_project_ids.inspect}>"
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
# EnvironmentOutputsApiGetStateAccessConfigResponse Model.
|
|
9
|
+
class EnvironmentOutputsApiGetStateAccessConfigResponse < 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 [DateTime]
|
|
19
|
+
attr_accessor :created_at
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :updated_at
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :environment_id
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for this method
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :organization_id
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for this method
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :project_id
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for this method
|
|
38
|
+
# @return [TrueClass | FalseClass]
|
|
39
|
+
attr_accessor :accessible_from_entire_organization
|
|
40
|
+
|
|
41
|
+
# TODO: Write general description for this method
|
|
42
|
+
# @return [Array[String]]
|
|
43
|
+
attr_accessor :allowed_project_ids
|
|
44
|
+
|
|
45
|
+
# A mapping from model property names to API property names.
|
|
46
|
+
def self.names
|
|
47
|
+
@_hash = {} if @_hash.nil?
|
|
48
|
+
@_hash['id'] = 'id'
|
|
49
|
+
@_hash['created_at'] = 'createdAt'
|
|
50
|
+
@_hash['updated_at'] = 'updatedAt'
|
|
51
|
+
@_hash['environment_id'] = 'environmentId'
|
|
52
|
+
@_hash['organization_id'] = 'organizationId'
|
|
53
|
+
@_hash['project_id'] = 'projectId'
|
|
54
|
+
@_hash['accessible_from_entire_organization'] =
|
|
55
|
+
'accessibleFromEntireOrganization'
|
|
56
|
+
@_hash['allowed_project_ids'] = 'allowedProjectIds'
|
|
57
|
+
@_hash
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# An array for optional fields
|
|
61
|
+
def self.optionals
|
|
62
|
+
%w[
|
|
63
|
+
id
|
|
64
|
+
created_at
|
|
65
|
+
updated_at
|
|
66
|
+
organization_id
|
|
67
|
+
project_id
|
|
68
|
+
allowed_project_ids
|
|
69
|
+
]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# An array for nullable fields
|
|
73
|
+
def self.nullables
|
|
74
|
+
[]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def initialize(environment_id:, accessible_from_entire_organization:,
|
|
78
|
+
id: SKIP, created_at: SKIP, updated_at: SKIP,
|
|
79
|
+
organization_id: SKIP, project_id: SKIP,
|
|
80
|
+
allowed_project_ids: SKIP)
|
|
81
|
+
@id = id unless id == SKIP
|
|
82
|
+
@created_at = created_at unless created_at == SKIP
|
|
83
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
84
|
+
@environment_id = environment_id
|
|
85
|
+
@organization_id = organization_id unless organization_id == SKIP
|
|
86
|
+
@project_id = project_id unless project_id == SKIP
|
|
87
|
+
@accessible_from_entire_organization = accessible_from_entire_organization
|
|
88
|
+
@allowed_project_ids = allowed_project_ids unless allowed_project_ids == SKIP
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Creates an instance of the object from a hash.
|
|
92
|
+
def self.from_hash(hash)
|
|
93
|
+
return nil unless hash
|
|
94
|
+
|
|
95
|
+
# Extract variables from the hash.
|
|
96
|
+
environment_id = hash.key?('environmentId') ? hash['environmentId'] : nil
|
|
97
|
+
accessible_from_entire_organization =
|
|
98
|
+
hash.key?('accessibleFromEntireOrganization') ? hash['accessibleFromEntireOrganization'] : nil
|
|
99
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
100
|
+
created_at = if hash.key?('createdAt')
|
|
101
|
+
(DateTimeHelper.from_rfc3339(hash['createdAt']) if hash['createdAt'])
|
|
102
|
+
else
|
|
103
|
+
SKIP
|
|
104
|
+
end
|
|
105
|
+
updated_at = if hash.key?('updatedAt')
|
|
106
|
+
(DateTimeHelper.from_rfc3339(hash['updatedAt']) if hash['updatedAt'])
|
|
107
|
+
else
|
|
108
|
+
SKIP
|
|
109
|
+
end
|
|
110
|
+
organization_id =
|
|
111
|
+
hash.key?('organizationId') ? hash['organizationId'] : SKIP
|
|
112
|
+
project_id = hash.key?('projectId') ? hash['projectId'] : SKIP
|
|
113
|
+
allowed_project_ids =
|
|
114
|
+
hash.key?('allowedProjectIds') ? hash['allowedProjectIds'] : SKIP
|
|
115
|
+
|
|
116
|
+
# Create object from extracted values.
|
|
117
|
+
EnvironmentOutputsApiGetStateAccessConfigResponse.new(environment_id: environment_id,
|
|
118
|
+
accessible_from_entire_organization: accessible_from_entire_organization,
|
|
119
|
+
id: id,
|
|
120
|
+
created_at: created_at,
|
|
121
|
+
updated_at: updated_at,
|
|
122
|
+
organization_id: organization_id,
|
|
123
|
+
project_id: project_id,
|
|
124
|
+
allowed_project_ids: allowed_project_ids)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
def to_custom_created_at
|
|
128
|
+
DateTimeHelper.to_rfc3339(created_at)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def to_custom_updated_at
|
|
132
|
+
DateTimeHelper.to_rfc3339(updated_at)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Provides a human-readable string representation of the object.
|
|
136
|
+
def to_s
|
|
137
|
+
class_name = self.class.name.split('::').last
|
|
138
|
+
"<#{class_name} id: #{@id}, created_at: #{@created_at}, updated_at: #{@updated_at},"\
|
|
139
|
+
" environment_id: #{@environment_id}, organization_id: #{@organization_id}, project_id:"\
|
|
140
|
+
" #{@project_id}, accessible_from_entire_organization:"\
|
|
141
|
+
" #{@accessible_from_entire_organization}, allowed_project_ids: #{@allowed_project_ids}>"
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
145
|
+
def inspect
|
|
146
|
+
class_name = self.class.name.split('::').last
|
|
147
|
+
"<#{class_name} id: #{@id.inspect}, created_at: #{@created_at.inspect}, updated_at:"\
|
|
148
|
+
" #{@updated_at.inspect}, environment_id: #{@environment_id.inspect}, organization_id:"\
|
|
149
|
+
" #{@organization_id.inspect}, project_id: #{@project_id.inspect},"\
|
|
150
|
+
" accessible_from_entire_organization: #{@accessible_from_entire_organization.inspect},"\
|
|
151
|
+
" allowed_project_ids: #{@allowed_project_ids.inspect}>"
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
# EnvironmentRemovalStrategy.
|
|
8
|
+
class EnvironmentRemovalStrategy
|
|
9
|
+
ENVIRONMENT_REMOVAL_STRATEGY = [
|
|
10
|
+
# TODO: Write general description for DESTROY
|
|
11
|
+
DESTROY = 'destroy'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for DETACH
|
|
14
|
+
DETACH = 'detach'.freeze
|
|
15
|
+
].freeze
|
|
16
|
+
|
|
17
|
+
def self.validate(value)
|
|
18
|
+
return false if value.nil?
|
|
19
|
+
|
|
20
|
+
ENVIRONMENT_REMOVAL_STRATEGY.include?(value)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from_value(value, default_value = DESTROY)
|
|
24
|
+
return default_value if value.nil?
|
|
25
|
+
|
|
26
|
+
str = value.to_s.strip
|
|
27
|
+
|
|
28
|
+
case str.downcase
|
|
29
|
+
when 'destroy' then DESTROY
|
|
30
|
+
when 'detach' then DETACH
|
|
31
|
+
else
|
|
32
|
+
default_value
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
# Environments Model.
|
|
8
|
+
class Environments < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Float]
|
|
14
|
+
attr_accessor :limit
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Float]
|
|
18
|
+
attr_accessor :amount
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [TrueClass | FalseClass]
|
|
22
|
+
attr_accessor :limit_reached
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['limit'] = 'limit'
|
|
28
|
+
@_hash['amount'] = 'amount'
|
|
29
|
+
@_hash['limit_reached'] = 'limitReached'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
limit
|
|
37
|
+
amount
|
|
38
|
+
]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# An array for nullable fields
|
|
42
|
+
def self.nullables
|
|
43
|
+
[]
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def initialize(limit_reached:, limit: SKIP, amount: SKIP)
|
|
47
|
+
@limit = limit unless limit == SKIP
|
|
48
|
+
@amount = amount unless amount == SKIP
|
|
49
|
+
@limit_reached = limit_reached
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Creates an instance of the object from a hash.
|
|
53
|
+
def self.from_hash(hash)
|
|
54
|
+
return nil unless hash
|
|
55
|
+
|
|
56
|
+
# Extract variables from the hash.
|
|
57
|
+
limit_reached = hash.key?('limitReached') ? hash['limitReached'] : nil
|
|
58
|
+
limit = hash.key?('limit') ? hash['limit'] : SKIP
|
|
59
|
+
amount = hash.key?('amount') ? hash['amount'] : SKIP
|
|
60
|
+
|
|
61
|
+
# Create object from extracted values.
|
|
62
|
+
Environments.new(limit_reached: limit_reached,
|
|
63
|
+
limit: limit,
|
|
64
|
+
amount: amount)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Provides a human-readable string representation of the object.
|
|
68
|
+
def to_s
|
|
69
|
+
class_name = self.class.name.split('::').last
|
|
70
|
+
"<#{class_name} limit: #{@limit}, amount: #{@amount}, limit_reached: #{@limit_reached}>"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
74
|
+
def inspect
|
|
75
|
+
class_name = self.class.name.split('::').last
|
|
76
|
+
"<#{class_name} limit: #{@limit.inspect}, amount: #{@amount.inspect}, limit_reached:"\
|
|
77
|
+
" #{@limit_reached.inspect}>"
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|