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,539 @@
|
|
|
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
|
+
# EnvironmentApiEnvironment Model.
|
|
9
|
+
class EnvironmentApiEnvironment < 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 :name
|
|
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 [String]
|
|
39
|
+
attr_accessor :user_id
|
|
40
|
+
|
|
41
|
+
# TODO: Write general description for this method
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :workspace_name
|
|
44
|
+
|
|
45
|
+
# TODO: Write general description for this method
|
|
46
|
+
# @return [User]
|
|
47
|
+
attr_accessor :user
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for this method
|
|
50
|
+
# @return [TrueClass | FalseClass]
|
|
51
|
+
attr_accessor :requires_approval
|
|
52
|
+
|
|
53
|
+
# TODO: Write general description for this method
|
|
54
|
+
# @return [EnvironmentApiEnvironmentStatus]
|
|
55
|
+
attr_accessor :status
|
|
56
|
+
|
|
57
|
+
# TODO: Write general description for this method
|
|
58
|
+
# @return [String]
|
|
59
|
+
attr_accessor :latest_deployment_log_id
|
|
60
|
+
|
|
61
|
+
# TODO: Write general description for this method
|
|
62
|
+
# @return [EnvironmentApiDeploymentLog]
|
|
63
|
+
attr_accessor :latest_deployment_log
|
|
64
|
+
|
|
65
|
+
# TODO: Write general description for this method
|
|
66
|
+
# @return [DateTime]
|
|
67
|
+
attr_accessor :lifespan_end_at
|
|
68
|
+
|
|
69
|
+
# Auto-destroy marking state of an environment, reported on the
|
|
70
|
+
# environment's `markedForAutoDestroy` field as its TTL approaches. env
|
|
71
|
+
# zero's documentation does not define what the individual numeric values
|
|
72
|
+
# mean, so no meaning is asserted for them here. Treat the field as opaque:
|
|
73
|
+
# compare against values observed from the API rather than hard-coding an
|
|
74
|
+
# interpretation.
|
|
75
|
+
# @return [Object]
|
|
76
|
+
attr_accessor :marked_for_auto_destroy
|
|
77
|
+
|
|
78
|
+
# Mark the environment as inactive
|
|
79
|
+
# @return [TrueClass | FalseClass]
|
|
80
|
+
attr_accessor :is_archived
|
|
81
|
+
|
|
82
|
+
# Mark the environment as inactive
|
|
83
|
+
# @return [EnvironmentApiEnvironmentNextScheduledDates]
|
|
84
|
+
attr_accessor :next_scheduled_dates
|
|
85
|
+
|
|
86
|
+
# Mark the environment as inactive
|
|
87
|
+
# @return [String]
|
|
88
|
+
attr_accessor :vcs_commands_alias
|
|
89
|
+
|
|
90
|
+
# Mark the environment as inactive
|
|
91
|
+
# @return [TrueClass | FalseClass]
|
|
92
|
+
attr_accessor :vcs_pr_comments_enabled
|
|
93
|
+
|
|
94
|
+
# Mark the environment as inactive
|
|
95
|
+
# @return [TrueClass | FalseClass]
|
|
96
|
+
attr_accessor :continuous_deployment
|
|
97
|
+
|
|
98
|
+
# Mark the environment as inactive
|
|
99
|
+
# @return [TrueClass | FalseClass]
|
|
100
|
+
attr_accessor :pull_request_plan_deployments
|
|
101
|
+
|
|
102
|
+
# Mark the environment as inactive
|
|
103
|
+
# @return [TrueClass | FalseClass]
|
|
104
|
+
attr_accessor :auto_deploy_on_path_changes_only
|
|
105
|
+
|
|
106
|
+
# Mark the environment as inactive
|
|
107
|
+
# @return [String]
|
|
108
|
+
attr_accessor :auto_deploy_by_custom_glob
|
|
109
|
+
|
|
110
|
+
# Mark the environment as inactive
|
|
111
|
+
# @return [String]
|
|
112
|
+
attr_accessor :terragrunt_working_directory
|
|
113
|
+
|
|
114
|
+
# Mark the environment as inactive
|
|
115
|
+
# @return [TrueClass | FalseClass]
|
|
116
|
+
attr_accessor :is_single_use_blueprint
|
|
117
|
+
|
|
118
|
+
# Mark the environment as inactive
|
|
119
|
+
# @return [String]
|
|
120
|
+
attr_accessor :workflow_environment_id
|
|
121
|
+
|
|
122
|
+
# Mark the environment as inactive
|
|
123
|
+
# @return [TrueClass | FalseClass]
|
|
124
|
+
attr_accessor :is_remote_backend
|
|
125
|
+
|
|
126
|
+
# Mark the environment as inactive
|
|
127
|
+
# @return [TrueClass | FalseClass]
|
|
128
|
+
attr_accessor :is_locked
|
|
129
|
+
|
|
130
|
+
# Mark the environment as inactive
|
|
131
|
+
# @return [EnvironmentApiEnvironmentLockStatus]
|
|
132
|
+
attr_accessor :lock_status
|
|
133
|
+
|
|
134
|
+
# Mark the environment as inactive
|
|
135
|
+
# @return [String]
|
|
136
|
+
attr_accessor :k8s_namespace
|
|
137
|
+
|
|
138
|
+
# Mark the environment as inactive
|
|
139
|
+
# @return [TrueClass | FalseClass]
|
|
140
|
+
attr_accessor :is_remote_apply_enabled
|
|
141
|
+
|
|
142
|
+
# Mark the environment as inactive
|
|
143
|
+
# @return [EnvironmentApiDriftStatus]
|
|
144
|
+
attr_accessor :drift_status
|
|
145
|
+
|
|
146
|
+
# Customer-defined key-value metadata. A key holds one or more values. Keys
|
|
147
|
+
# are 1-128 chars, values 1-256 chars, both limited to the charset
|
|
148
|
+
# [A-Za-z0-9 _.:/+-@]. Up to 50 key-value pairs per environment, and values
|
|
149
|
+
# are unique within a key.
|
|
150
|
+
# @return [Hash[String, Object]]
|
|
151
|
+
attr_accessor :tags
|
|
152
|
+
|
|
153
|
+
# A mapping from model property names to API property names.
|
|
154
|
+
def self.names
|
|
155
|
+
@_hash = {} if @_hash.nil?
|
|
156
|
+
@_hash['id'] = 'id'
|
|
157
|
+
@_hash['created_at'] = 'createdAt'
|
|
158
|
+
@_hash['updated_at'] = 'updatedAt'
|
|
159
|
+
@_hash['name'] = 'name'
|
|
160
|
+
@_hash['organization_id'] = 'organizationId'
|
|
161
|
+
@_hash['project_id'] = 'projectId'
|
|
162
|
+
@_hash['user_id'] = 'userId'
|
|
163
|
+
@_hash['workspace_name'] = 'workspaceName'
|
|
164
|
+
@_hash['user'] = 'user'
|
|
165
|
+
@_hash['requires_approval'] = 'requiresApproval'
|
|
166
|
+
@_hash['status'] = 'status'
|
|
167
|
+
@_hash['latest_deployment_log_id'] = 'latestDeploymentLogId'
|
|
168
|
+
@_hash['latest_deployment_log'] = 'latestDeploymentLog'
|
|
169
|
+
@_hash['lifespan_end_at'] = 'lifespanEndAt'
|
|
170
|
+
@_hash['marked_for_auto_destroy'] = 'markedForAutoDestroy'
|
|
171
|
+
@_hash['is_archived'] = 'isArchived'
|
|
172
|
+
@_hash['next_scheduled_dates'] = 'nextScheduledDates'
|
|
173
|
+
@_hash['vcs_commands_alias'] = 'vcsCommandsAlias'
|
|
174
|
+
@_hash['vcs_pr_comments_enabled'] = 'vcsPrCommentsEnabled'
|
|
175
|
+
@_hash['continuous_deployment'] = 'continuousDeployment'
|
|
176
|
+
@_hash['pull_request_plan_deployments'] = 'pullRequestPlanDeployments'
|
|
177
|
+
@_hash['auto_deploy_on_path_changes_only'] =
|
|
178
|
+
'autoDeployOnPathChangesOnly'
|
|
179
|
+
@_hash['auto_deploy_by_custom_glob'] = 'autoDeployByCustomGlob'
|
|
180
|
+
@_hash['terragrunt_working_directory'] = 'terragruntWorkingDirectory'
|
|
181
|
+
@_hash['is_single_use_blueprint'] = 'isSingleUseBlueprint'
|
|
182
|
+
@_hash['workflow_environment_id'] = 'workflowEnvironmentId'
|
|
183
|
+
@_hash['is_remote_backend'] = 'isRemoteBackend'
|
|
184
|
+
@_hash['is_locked'] = 'isLocked'
|
|
185
|
+
@_hash['lock_status'] = 'lockStatus'
|
|
186
|
+
@_hash['k8s_namespace'] = 'k8sNamespace'
|
|
187
|
+
@_hash['is_remote_apply_enabled'] = 'isRemoteApplyEnabled'
|
|
188
|
+
@_hash['drift_status'] = 'driftStatus'
|
|
189
|
+
@_hash['tags'] = 'tags'
|
|
190
|
+
@_hash
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# An array for optional fields
|
|
194
|
+
def self.optionals
|
|
195
|
+
%w[
|
|
196
|
+
id
|
|
197
|
+
created_at
|
|
198
|
+
updated_at
|
|
199
|
+
vcs_commands_alias
|
|
200
|
+
vcs_pr_comments_enabled
|
|
201
|
+
auto_deploy_by_custom_glob
|
|
202
|
+
terragrunt_working_directory
|
|
203
|
+
is_single_use_blueprint
|
|
204
|
+
workflow_environment_id
|
|
205
|
+
lock_status
|
|
206
|
+
k8s_namespace
|
|
207
|
+
is_remote_apply_enabled
|
|
208
|
+
tags
|
|
209
|
+
]
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# An array for nullable fields
|
|
213
|
+
def self.nullables
|
|
214
|
+
[]
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
def initialize(name:, organization_id:, project_id:, user_id:,
|
|
218
|
+
workspace_name:, user:, requires_approval:, status:,
|
|
219
|
+
latest_deployment_log_id:, latest_deployment_log:,
|
|
220
|
+
lifespan_end_at:, marked_for_auto_destroy:, is_archived:,
|
|
221
|
+
next_scheduled_dates:, continuous_deployment:,
|
|
222
|
+
pull_request_plan_deployments:,
|
|
223
|
+
auto_deploy_on_path_changes_only:, is_remote_backend:,
|
|
224
|
+
is_locked:, drift_status:, id: SKIP, created_at: SKIP,
|
|
225
|
+
updated_at: SKIP, vcs_commands_alias: SKIP,
|
|
226
|
+
vcs_pr_comments_enabled: SKIP,
|
|
227
|
+
auto_deploy_by_custom_glob: SKIP,
|
|
228
|
+
terragrunt_working_directory: SKIP,
|
|
229
|
+
is_single_use_blueprint: SKIP, workflow_environment_id: SKIP,
|
|
230
|
+
lock_status: SKIP, k8s_namespace: SKIP,
|
|
231
|
+
is_remote_apply_enabled: SKIP, tags: SKIP)
|
|
232
|
+
@id = id unless id == SKIP
|
|
233
|
+
@created_at = created_at unless created_at == SKIP
|
|
234
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
235
|
+
@name = name
|
|
236
|
+
@organization_id = organization_id
|
|
237
|
+
@project_id = project_id
|
|
238
|
+
@user_id = user_id
|
|
239
|
+
@workspace_name = workspace_name
|
|
240
|
+
@user = user
|
|
241
|
+
@requires_approval = requires_approval
|
|
242
|
+
@status = status
|
|
243
|
+
@latest_deployment_log_id = latest_deployment_log_id
|
|
244
|
+
@latest_deployment_log = latest_deployment_log
|
|
245
|
+
@lifespan_end_at = lifespan_end_at
|
|
246
|
+
@marked_for_auto_destroy = marked_for_auto_destroy
|
|
247
|
+
@is_archived = is_archived
|
|
248
|
+
@next_scheduled_dates = next_scheduled_dates
|
|
249
|
+
@vcs_commands_alias = vcs_commands_alias unless vcs_commands_alias == SKIP
|
|
250
|
+
@vcs_pr_comments_enabled = vcs_pr_comments_enabled unless vcs_pr_comments_enabled == SKIP
|
|
251
|
+
@continuous_deployment = continuous_deployment
|
|
252
|
+
@pull_request_plan_deployments = pull_request_plan_deployments
|
|
253
|
+
@auto_deploy_on_path_changes_only = auto_deploy_on_path_changes_only
|
|
254
|
+
unless auto_deploy_by_custom_glob == SKIP
|
|
255
|
+
@auto_deploy_by_custom_glob =
|
|
256
|
+
auto_deploy_by_custom_glob
|
|
257
|
+
end
|
|
258
|
+
unless terragrunt_working_directory == SKIP
|
|
259
|
+
@terragrunt_working_directory =
|
|
260
|
+
terragrunt_working_directory
|
|
261
|
+
end
|
|
262
|
+
@is_single_use_blueprint = is_single_use_blueprint unless is_single_use_blueprint == SKIP
|
|
263
|
+
@workflow_environment_id = workflow_environment_id unless workflow_environment_id == SKIP
|
|
264
|
+
@is_remote_backend = is_remote_backend
|
|
265
|
+
@is_locked = is_locked
|
|
266
|
+
@lock_status = lock_status unless lock_status == SKIP
|
|
267
|
+
@k8s_namespace = k8s_namespace unless k8s_namespace == SKIP
|
|
268
|
+
@is_remote_apply_enabled = is_remote_apply_enabled unless is_remote_apply_enabled == SKIP
|
|
269
|
+
@drift_status = drift_status
|
|
270
|
+
@tags = tags unless tags == SKIP
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Creates an instance of the object from a hash.
|
|
274
|
+
def self.from_hash(hash)
|
|
275
|
+
return nil unless hash
|
|
276
|
+
|
|
277
|
+
# Extract variables from the hash.
|
|
278
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
279
|
+
organization_id =
|
|
280
|
+
hash.key?('organizationId') ? hash['organizationId'] : nil
|
|
281
|
+
project_id = hash.key?('projectId') ? hash['projectId'] : nil
|
|
282
|
+
user_id = hash.key?('userId') ? hash['userId'] : nil
|
|
283
|
+
workspace_name = hash.key?('workspaceName') ? hash['workspaceName'] : nil
|
|
284
|
+
user = User.from_hash(hash['user']) if hash['user']
|
|
285
|
+
requires_approval =
|
|
286
|
+
hash.key?('requiresApproval') ? hash['requiresApproval'] : nil
|
|
287
|
+
status = hash.key?('status') ? hash['status'] : nil
|
|
288
|
+
latest_deployment_log_id =
|
|
289
|
+
hash.key?('latestDeploymentLogId') ? hash['latestDeploymentLogId'] : nil
|
|
290
|
+
latest_deployment_log = EnvironmentApiDeploymentLog.from_hash(hash['latestDeploymentLog']) if
|
|
291
|
+
hash['latestDeploymentLog']
|
|
292
|
+
lifespan_end_at = if hash.key?('lifespanEndAt')
|
|
293
|
+
(DateTimeHelper.from_rfc3339(hash['lifespanEndAt']) if hash['lifespanEndAt'])
|
|
294
|
+
end
|
|
295
|
+
marked_for_auto_destroy = hash.key?('markedForAutoDestroy') ? APIHelper.deserialize_union_type(
|
|
296
|
+
UnionTypeLookUp.get(:AutoDestroyStatus), hash['markedForAutoDestroy']
|
|
297
|
+
) : nil
|
|
298
|
+
is_archived = hash.key?('isArchived') ? hash['isArchived'] : nil
|
|
299
|
+
if hash['nextScheduledDates']
|
|
300
|
+
next_scheduled_dates = EnvironmentApiEnvironmentNextScheduledDates.from_hash(hash['nextScheduledDates'])
|
|
301
|
+
end
|
|
302
|
+
continuous_deployment =
|
|
303
|
+
hash.key?('continuousDeployment') ? hash['continuousDeployment'] : nil
|
|
304
|
+
pull_request_plan_deployments =
|
|
305
|
+
hash.key?('pullRequestPlanDeployments') ? hash['pullRequestPlanDeployments'] : nil
|
|
306
|
+
auto_deploy_on_path_changes_only =
|
|
307
|
+
hash.key?('autoDeployOnPathChangesOnly') ? hash['autoDeployOnPathChangesOnly'] : nil
|
|
308
|
+
is_remote_backend =
|
|
309
|
+
hash.key?('isRemoteBackend') ? hash['isRemoteBackend'] : nil
|
|
310
|
+
is_locked = hash.key?('isLocked') ? hash['isLocked'] : nil
|
|
311
|
+
drift_status = hash.key?('driftStatus') ? hash['driftStatus'] : nil
|
|
312
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
313
|
+
created_at = if hash.key?('createdAt')
|
|
314
|
+
(DateTimeHelper.from_rfc3339(hash['createdAt']) if hash['createdAt'])
|
|
315
|
+
else
|
|
316
|
+
SKIP
|
|
317
|
+
end
|
|
318
|
+
updated_at = if hash.key?('updatedAt')
|
|
319
|
+
(DateTimeHelper.from_rfc3339(hash['updatedAt']) if hash['updatedAt'])
|
|
320
|
+
else
|
|
321
|
+
SKIP
|
|
322
|
+
end
|
|
323
|
+
vcs_commands_alias =
|
|
324
|
+
hash.key?('vcsCommandsAlias') ? hash['vcsCommandsAlias'] : SKIP
|
|
325
|
+
vcs_pr_comments_enabled =
|
|
326
|
+
hash.key?('vcsPrCommentsEnabled') ? hash['vcsPrCommentsEnabled'] : SKIP
|
|
327
|
+
auto_deploy_by_custom_glob =
|
|
328
|
+
hash.key?('autoDeployByCustomGlob') ? hash['autoDeployByCustomGlob'] : SKIP
|
|
329
|
+
terragrunt_working_directory =
|
|
330
|
+
hash.key?('terragruntWorkingDirectory') ? hash['terragruntWorkingDirectory'] : SKIP
|
|
331
|
+
is_single_use_blueprint =
|
|
332
|
+
hash.key?('isSingleUseBlueprint') ? hash['isSingleUseBlueprint'] : SKIP
|
|
333
|
+
workflow_environment_id =
|
|
334
|
+
hash.key?('workflowEnvironmentId') ? hash['workflowEnvironmentId'] : SKIP
|
|
335
|
+
lock_status = EnvironmentApiEnvironmentLockStatus.from_hash(hash['lockStatus']) if
|
|
336
|
+
hash['lockStatus']
|
|
337
|
+
k8s_namespace = hash.key?('k8sNamespace') ? hash['k8sNamespace'] : SKIP
|
|
338
|
+
is_remote_apply_enabled =
|
|
339
|
+
hash.key?('isRemoteApplyEnabled') ? hash['isRemoteApplyEnabled'] : SKIP
|
|
340
|
+
tags = hash.key?('tags') ? hash['tags'] : SKIP
|
|
341
|
+
|
|
342
|
+
# Create object from extracted values.
|
|
343
|
+
EnvironmentApiEnvironment.new(name: name,
|
|
344
|
+
organization_id: organization_id,
|
|
345
|
+
project_id: project_id,
|
|
346
|
+
user_id: user_id,
|
|
347
|
+
workspace_name: workspace_name,
|
|
348
|
+
user: user,
|
|
349
|
+
requires_approval: requires_approval,
|
|
350
|
+
status: status,
|
|
351
|
+
latest_deployment_log_id: latest_deployment_log_id,
|
|
352
|
+
latest_deployment_log: latest_deployment_log,
|
|
353
|
+
lifespan_end_at: lifespan_end_at,
|
|
354
|
+
marked_for_auto_destroy: marked_for_auto_destroy,
|
|
355
|
+
is_archived: is_archived,
|
|
356
|
+
next_scheduled_dates: next_scheduled_dates,
|
|
357
|
+
continuous_deployment: continuous_deployment,
|
|
358
|
+
pull_request_plan_deployments: pull_request_plan_deployments,
|
|
359
|
+
auto_deploy_on_path_changes_only: auto_deploy_on_path_changes_only,
|
|
360
|
+
is_remote_backend: is_remote_backend,
|
|
361
|
+
is_locked: is_locked,
|
|
362
|
+
drift_status: drift_status,
|
|
363
|
+
id: id,
|
|
364
|
+
created_at: created_at,
|
|
365
|
+
updated_at: updated_at,
|
|
366
|
+
vcs_commands_alias: vcs_commands_alias,
|
|
367
|
+
vcs_pr_comments_enabled: vcs_pr_comments_enabled,
|
|
368
|
+
auto_deploy_by_custom_glob: auto_deploy_by_custom_glob,
|
|
369
|
+
terragrunt_working_directory: terragrunt_working_directory,
|
|
370
|
+
is_single_use_blueprint: is_single_use_blueprint,
|
|
371
|
+
workflow_environment_id: workflow_environment_id,
|
|
372
|
+
lock_status: lock_status,
|
|
373
|
+
k8s_namespace: k8s_namespace,
|
|
374
|
+
is_remote_apply_enabled: is_remote_apply_enabled,
|
|
375
|
+
tags: tags)
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
def to_custom_created_at
|
|
379
|
+
DateTimeHelper.to_rfc3339(created_at)
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
def to_custom_updated_at
|
|
383
|
+
DateTimeHelper.to_rfc3339(updated_at)
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
def to_custom_lifespan_end_at
|
|
387
|
+
DateTimeHelper.to_rfc3339(lifespan_end_at)
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Validates an instance of the object from a given value.
|
|
391
|
+
# @param [EnvironmentApiEnvironment | Hash] The value against the validation is performed.
|
|
392
|
+
def self.validate(value)
|
|
393
|
+
if value.instance_of? self
|
|
394
|
+
return (
|
|
395
|
+
APIHelper.valid_type?(value.name,
|
|
396
|
+
->(val) { val.instance_of? String }) and
|
|
397
|
+
APIHelper.valid_type?(value.organization_id,
|
|
398
|
+
->(val) { val.instance_of? String }) and
|
|
399
|
+
APIHelper.valid_type?(value.project_id,
|
|
400
|
+
->(val) { val.instance_of? String }) and
|
|
401
|
+
APIHelper.valid_type?(value.user_id,
|
|
402
|
+
->(val) { val.instance_of? String }) and
|
|
403
|
+
APIHelper.valid_type?(value.workspace_name,
|
|
404
|
+
->(val) { val.instance_of? String }) and
|
|
405
|
+
APIHelper.valid_type?(value.user,
|
|
406
|
+
->(val) { User.validate(val) },
|
|
407
|
+
is_model_hash: true) and
|
|
408
|
+
APIHelper.valid_type?(value.requires_approval,
|
|
409
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
410
|
+
APIHelper.valid_type?(value.status,
|
|
411
|
+
->(val) { EnvironmentApiEnvironmentStatus.validate(val) }) and
|
|
412
|
+
APIHelper.valid_type?(value.latest_deployment_log_id,
|
|
413
|
+
->(val) { val.instance_of? String }) and
|
|
414
|
+
APIHelper.valid_type?(value.latest_deployment_log,
|
|
415
|
+
->(val) { EnvironmentApiDeploymentLog.validate(val) },
|
|
416
|
+
is_model_hash: true) and
|
|
417
|
+
APIHelper.valid_type?(value.lifespan_end_at,
|
|
418
|
+
->(val) { val.instance_of? DateTime }) and
|
|
419
|
+
UnionTypeLookUp.get(:AutoDestroyStatus)
|
|
420
|
+
.validate(value.marked_for_auto_destroy) and
|
|
421
|
+
APIHelper.valid_type?(value.is_archived,
|
|
422
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
423
|
+
APIHelper.valid_type?(value.next_scheduled_dates,
|
|
424
|
+
->(val) { EnvironmentApiEnvironmentNextScheduledDates.validate(val) },
|
|
425
|
+
is_model_hash: true) and
|
|
426
|
+
APIHelper.valid_type?(value.continuous_deployment,
|
|
427
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
428
|
+
APIHelper.valid_type?(value.pull_request_plan_deployments,
|
|
429
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
430
|
+
APIHelper.valid_type?(value.auto_deploy_on_path_changes_only,
|
|
431
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
432
|
+
APIHelper.valid_type?(value.is_remote_backend,
|
|
433
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
434
|
+
APIHelper.valid_type?(value.is_locked,
|
|
435
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
436
|
+
APIHelper.valid_type?(value.drift_status,
|
|
437
|
+
->(val) { EnvironmentApiDriftStatus.validate(val) })
|
|
438
|
+
)
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
return false unless value.instance_of? Hash
|
|
442
|
+
|
|
443
|
+
(
|
|
444
|
+
APIHelper.valid_type?(value['name'],
|
|
445
|
+
->(val) { val.instance_of? String }) and
|
|
446
|
+
APIHelper.valid_type?(value['organizationId'],
|
|
447
|
+
->(val) { val.instance_of? String }) and
|
|
448
|
+
APIHelper.valid_type?(value['projectId'],
|
|
449
|
+
->(val) { val.instance_of? String }) and
|
|
450
|
+
APIHelper.valid_type?(value['userId'],
|
|
451
|
+
->(val) { val.instance_of? String }) and
|
|
452
|
+
APIHelper.valid_type?(value['workspaceName'],
|
|
453
|
+
->(val) { val.instance_of? String }) and
|
|
454
|
+
APIHelper.valid_type?(value['user'],
|
|
455
|
+
->(val) { User.validate(val) },
|
|
456
|
+
is_model_hash: true) and
|
|
457
|
+
APIHelper.valid_type?(value['requiresApproval'],
|
|
458
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
459
|
+
APIHelper.valid_type?(value['status'],
|
|
460
|
+
->(val) { EnvironmentApiEnvironmentStatus.validate(val) }) and
|
|
461
|
+
APIHelper.valid_type?(value['latestDeploymentLogId'],
|
|
462
|
+
->(val) { val.instance_of? String }) and
|
|
463
|
+
APIHelper.valid_type?(value['latestDeploymentLog'],
|
|
464
|
+
->(val) { EnvironmentApiDeploymentLog.validate(val) },
|
|
465
|
+
is_model_hash: true) and
|
|
466
|
+
APIHelper.valid_type?(value['lifespanEndAt'],
|
|
467
|
+
->(val) { val.instance_of? String }) and
|
|
468
|
+
UnionTypeLookUp.get(:AutoDestroyStatus)
|
|
469
|
+
.validate(value['markedForAutoDestroy']) and
|
|
470
|
+
APIHelper.valid_type?(value['isArchived'],
|
|
471
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
472
|
+
APIHelper.valid_type?(value['nextScheduledDates'],
|
|
473
|
+
->(val) { EnvironmentApiEnvironmentNextScheduledDates.validate(val) },
|
|
474
|
+
is_model_hash: true) and
|
|
475
|
+
APIHelper.valid_type?(value['continuousDeployment'],
|
|
476
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
477
|
+
APIHelper.valid_type?(value['pullRequestPlanDeployments'],
|
|
478
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
479
|
+
APIHelper.valid_type?(value['autoDeployOnPathChangesOnly'],
|
|
480
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
481
|
+
APIHelper.valid_type?(value['isRemoteBackend'],
|
|
482
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
483
|
+
APIHelper.valid_type?(value['isLocked'],
|
|
484
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) and
|
|
485
|
+
APIHelper.valid_type?(value['driftStatus'],
|
|
486
|
+
->(val) { EnvironmentApiDriftStatus.validate(val) })
|
|
487
|
+
)
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
# Provides a human-readable string representation of the object.
|
|
491
|
+
def to_s
|
|
492
|
+
class_name = self.class.name.split('::').last
|
|
493
|
+
"<#{class_name} id: #{@id}, created_at: #{@created_at}, updated_at: #{@updated_at}, name:"\
|
|
494
|
+
" #{@name}, organization_id: #{@organization_id}, project_id: #{@project_id}, user_id:"\
|
|
495
|
+
" #{@user_id}, workspace_name: #{@workspace_name}, user: #{@user}, requires_approval:"\
|
|
496
|
+
" #{@requires_approval}, status: #{@status}, latest_deployment_log_id:"\
|
|
497
|
+
" #{@latest_deployment_log_id}, latest_deployment_log: #{@latest_deployment_log},"\
|
|
498
|
+
" lifespan_end_at: #{@lifespan_end_at}, marked_for_auto_destroy:"\
|
|
499
|
+
" #{@marked_for_auto_destroy}, is_archived: #{@is_archived}, next_scheduled_dates:"\
|
|
500
|
+
" #{@next_scheduled_dates}, vcs_commands_alias: #{@vcs_commands_alias},"\
|
|
501
|
+
" vcs_pr_comments_enabled: #{@vcs_pr_comments_enabled}, continuous_deployment:"\
|
|
502
|
+
" #{@continuous_deployment}, pull_request_plan_deployments:"\
|
|
503
|
+
" #{@pull_request_plan_deployments}, auto_deploy_on_path_changes_only:"\
|
|
504
|
+
" #{@auto_deploy_on_path_changes_only}, auto_deploy_by_custom_glob:"\
|
|
505
|
+
" #{@auto_deploy_by_custom_glob}, terragrunt_working_directory:"\
|
|
506
|
+
" #{@terragrunt_working_directory}, is_single_use_blueprint: #{@is_single_use_blueprint},"\
|
|
507
|
+
" workflow_environment_id: #{@workflow_environment_id}, is_remote_backend:"\
|
|
508
|
+
" #{@is_remote_backend}, is_locked: #{@is_locked}, lock_status: #{@lock_status},"\
|
|
509
|
+
" k8s_namespace: #{@k8s_namespace}, is_remote_apply_enabled: #{@is_remote_apply_enabled},"\
|
|
510
|
+
" drift_status: #{@drift_status}, tags: #{@tags}>"
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
514
|
+
def inspect
|
|
515
|
+
class_name = self.class.name.split('::').last
|
|
516
|
+
"<#{class_name} id: #{@id.inspect}, created_at: #{@created_at.inspect}, updated_at:"\
|
|
517
|
+
" #{@updated_at.inspect}, name: #{@name.inspect}, organization_id:"\
|
|
518
|
+
" #{@organization_id.inspect}, project_id: #{@project_id.inspect}, user_id:"\
|
|
519
|
+
" #{@user_id.inspect}, workspace_name: #{@workspace_name.inspect}, user: #{@user.inspect},"\
|
|
520
|
+
" requires_approval: #{@requires_approval.inspect}, status: #{@status.inspect},"\
|
|
521
|
+
" latest_deployment_log_id: #{@latest_deployment_log_id.inspect}, latest_deployment_log:"\
|
|
522
|
+
" #{@latest_deployment_log.inspect}, lifespan_end_at: #{@lifespan_end_at.inspect},"\
|
|
523
|
+
" marked_for_auto_destroy: #{@marked_for_auto_destroy.inspect}, is_archived:"\
|
|
524
|
+
" #{@is_archived.inspect}, next_scheduled_dates: #{@next_scheduled_dates.inspect},"\
|
|
525
|
+
" vcs_commands_alias: #{@vcs_commands_alias.inspect}, vcs_pr_comments_enabled:"\
|
|
526
|
+
" #{@vcs_pr_comments_enabled.inspect}, continuous_deployment:"\
|
|
527
|
+
" #{@continuous_deployment.inspect}, pull_request_plan_deployments:"\
|
|
528
|
+
" #{@pull_request_plan_deployments.inspect}, auto_deploy_on_path_changes_only:"\
|
|
529
|
+
" #{@auto_deploy_on_path_changes_only.inspect}, auto_deploy_by_custom_glob:"\
|
|
530
|
+
" #{@auto_deploy_by_custom_glob.inspect}, terragrunt_working_directory:"\
|
|
531
|
+
" #{@terragrunt_working_directory.inspect}, is_single_use_blueprint:"\
|
|
532
|
+
" #{@is_single_use_blueprint.inspect}, workflow_environment_id:"\
|
|
533
|
+
" #{@workflow_environment_id.inspect}, is_remote_backend: #{@is_remote_backend.inspect},"\
|
|
534
|
+
" is_locked: #{@is_locked.inspect}, lock_status: #{@lock_status.inspect}, k8s_namespace:"\
|
|
535
|
+
" #{@k8s_namespace.inspect}, is_remote_apply_enabled: #{@is_remote_apply_enabled.inspect},"\
|
|
536
|
+
" drift_status: #{@drift_status.inspect}, tags: #{@tags.inspect}>"
|
|
537
|
+
end
|
|
538
|
+
end
|
|
539
|
+
end
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
# EnvironmentApiEnvironmentLockStatus Model.
|
|
9
|
+
class EnvironmentApiEnvironmentLockStatus < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :reason
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for this method
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :updated_by
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [User]
|
|
23
|
+
attr_accessor :updated_by_user
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [DateTime]
|
|
27
|
+
attr_accessor :updated_at
|
|
28
|
+
|
|
29
|
+
# A mapping from model property names to API property names.
|
|
30
|
+
def self.names
|
|
31
|
+
@_hash = {} if @_hash.nil?
|
|
32
|
+
@_hash['reason'] = 'reason'
|
|
33
|
+
@_hash['updated_by'] = 'updatedBy'
|
|
34
|
+
@_hash['updated_by_user'] = 'updatedByUser'
|
|
35
|
+
@_hash['updated_at'] = 'updatedAt'
|
|
36
|
+
@_hash
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# An array for optional fields
|
|
40
|
+
def self.optionals
|
|
41
|
+
%w[
|
|
42
|
+
reason
|
|
43
|
+
updated_by_user
|
|
44
|
+
]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# An array for nullable fields
|
|
48
|
+
def self.nullables
|
|
49
|
+
[]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def initialize(updated_by:, updated_at:, reason: SKIP,
|
|
53
|
+
updated_by_user: SKIP)
|
|
54
|
+
@reason = reason unless reason == SKIP
|
|
55
|
+
@updated_by = updated_by
|
|
56
|
+
@updated_by_user = updated_by_user unless updated_by_user == SKIP
|
|
57
|
+
@updated_at = updated_at
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Creates an instance of the object from a hash.
|
|
61
|
+
def self.from_hash(hash)
|
|
62
|
+
return nil unless hash
|
|
63
|
+
|
|
64
|
+
# Extract variables from the hash.
|
|
65
|
+
updated_by = hash.key?('updatedBy') ? hash['updatedBy'] : nil
|
|
66
|
+
updated_at = if hash.key?('updatedAt')
|
|
67
|
+
(DateTimeHelper.from_rfc3339(hash['updatedAt']) if hash['updatedAt'])
|
|
68
|
+
end
|
|
69
|
+
reason = hash.key?('reason') ? hash['reason'] : SKIP
|
|
70
|
+
updated_by_user = User.from_hash(hash['updatedByUser']) if hash['updatedByUser']
|
|
71
|
+
|
|
72
|
+
# Create object from extracted values.
|
|
73
|
+
EnvironmentApiEnvironmentLockStatus.new(updated_by: updated_by,
|
|
74
|
+
updated_at: updated_at,
|
|
75
|
+
reason: reason,
|
|
76
|
+
updated_by_user: updated_by_user)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
def to_custom_updated_at
|
|
80
|
+
DateTimeHelper.to_rfc3339(updated_at)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Validates an instance of the object from a given value.
|
|
84
|
+
# @param [EnvironmentApiEnvironmentLockStatus | Hash] The value against the validation is performed.
|
|
85
|
+
def self.validate(value)
|
|
86
|
+
if value.instance_of? self
|
|
87
|
+
return (
|
|
88
|
+
APIHelper.valid_type?(value.updated_by,
|
|
89
|
+
->(val) { val.instance_of? String }) and
|
|
90
|
+
APIHelper.valid_type?(value.updated_at,
|
|
91
|
+
->(val) { val.instance_of? DateTime })
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
return false unless value.instance_of? Hash
|
|
96
|
+
|
|
97
|
+
(
|
|
98
|
+
APIHelper.valid_type?(value['updatedBy'],
|
|
99
|
+
->(val) { val.instance_of? String }) and
|
|
100
|
+
APIHelper.valid_type?(value['updatedAt'],
|
|
101
|
+
->(val) { val.instance_of? String })
|
|
102
|
+
)
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Provides a human-readable string representation of the object.
|
|
106
|
+
def to_s
|
|
107
|
+
class_name = self.class.name.split('::').last
|
|
108
|
+
"<#{class_name} reason: #{@reason}, updated_by: #{@updated_by}, updated_by_user:"\
|
|
109
|
+
" #{@updated_by_user}, updated_at: #{@updated_at}>"
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
113
|
+
def inspect
|
|
114
|
+
class_name = self.class.name.split('::').last
|
|
115
|
+
"<#{class_name} reason: #{@reason.inspect}, updated_by: #{@updated_by.inspect},"\
|
|
116
|
+
" updated_by_user: #{@updated_by_user.inspect}, updated_at: #{@updated_at.inspect}>"
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|