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,150 @@
|
|
|
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
|
+
# ProjectApiProject Model.
|
|
8
|
+
class ProjectApiProject < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :name
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :description
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Array[String]]
|
|
22
|
+
attr_accessor :tags
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :organization_id
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :parent_project_id
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :id
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :created_by
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [User]
|
|
42
|
+
attr_accessor :created_by_user
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [TrueClass | FalseClass]
|
|
46
|
+
attr_accessor :is_archived
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :hierarchy
|
|
51
|
+
|
|
52
|
+
# A mapping from model property names to API property names.
|
|
53
|
+
def self.names
|
|
54
|
+
@_hash = {} if @_hash.nil?
|
|
55
|
+
@_hash['name'] = 'name'
|
|
56
|
+
@_hash['description'] = 'description'
|
|
57
|
+
@_hash['tags'] = 'tags'
|
|
58
|
+
@_hash['organization_id'] = 'organizationId'
|
|
59
|
+
@_hash['parent_project_id'] = 'parentProjectId'
|
|
60
|
+
@_hash['id'] = 'id'
|
|
61
|
+
@_hash['created_by'] = 'createdBy'
|
|
62
|
+
@_hash['created_by_user'] = 'createdByUser'
|
|
63
|
+
@_hash['is_archived'] = 'isArchived'
|
|
64
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
65
|
+
@_hash
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# An array for optional fields
|
|
69
|
+
def self.optionals
|
|
70
|
+
%w[
|
|
71
|
+
description
|
|
72
|
+
tags
|
|
73
|
+
parent_project_id
|
|
74
|
+
id
|
|
75
|
+
created_by_user
|
|
76
|
+
is_archived
|
|
77
|
+
]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# An array for nullable fields
|
|
81
|
+
def self.nullables
|
|
82
|
+
[]
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def initialize(name:, organization_id:, created_by:, hierarchy:,
|
|
86
|
+
description: SKIP, tags: SKIP, parent_project_id: SKIP,
|
|
87
|
+
id: SKIP, created_by_user: SKIP, is_archived: SKIP)
|
|
88
|
+
@name = name
|
|
89
|
+
@description = description unless description == SKIP
|
|
90
|
+
@tags = tags unless tags == SKIP
|
|
91
|
+
@organization_id = organization_id
|
|
92
|
+
@parent_project_id = parent_project_id unless parent_project_id == SKIP
|
|
93
|
+
@id = id unless id == SKIP
|
|
94
|
+
@created_by = created_by
|
|
95
|
+
@created_by_user = created_by_user unless created_by_user == SKIP
|
|
96
|
+
@is_archived = is_archived unless is_archived == SKIP
|
|
97
|
+
@hierarchy = hierarchy
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Creates an instance of the object from a hash.
|
|
101
|
+
def self.from_hash(hash)
|
|
102
|
+
return nil unless hash
|
|
103
|
+
|
|
104
|
+
# Extract variables from the hash.
|
|
105
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
106
|
+
organization_id =
|
|
107
|
+
hash.key?('organizationId') ? hash['organizationId'] : nil
|
|
108
|
+
created_by = hash.key?('createdBy') ? hash['createdBy'] : nil
|
|
109
|
+
hierarchy = hash.key?('hierarchy') ? hash['hierarchy'] : nil
|
|
110
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
111
|
+
tags = hash.key?('tags') ? hash['tags'] : SKIP
|
|
112
|
+
parent_project_id =
|
|
113
|
+
hash.key?('parentProjectId') ? hash['parentProjectId'] : SKIP
|
|
114
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
115
|
+
created_by_user = User.from_hash(hash['createdByUser']) if hash['createdByUser']
|
|
116
|
+
is_archived = hash.key?('isArchived') ? hash['isArchived'] : SKIP
|
|
117
|
+
|
|
118
|
+
# Create object from extracted values.
|
|
119
|
+
ProjectApiProject.new(name: name,
|
|
120
|
+
organization_id: organization_id,
|
|
121
|
+
created_by: created_by,
|
|
122
|
+
hierarchy: hierarchy,
|
|
123
|
+
description: description,
|
|
124
|
+
tags: tags,
|
|
125
|
+
parent_project_id: parent_project_id,
|
|
126
|
+
id: id,
|
|
127
|
+
created_by_user: created_by_user,
|
|
128
|
+
is_archived: is_archived)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Provides a human-readable string representation of the object.
|
|
132
|
+
def to_s
|
|
133
|
+
class_name = self.class.name.split('::').last
|
|
134
|
+
"<#{class_name} name: #{@name}, description: #{@description}, tags: #{@tags},"\
|
|
135
|
+
" organization_id: #{@organization_id}, parent_project_id: #{@parent_project_id}, id:"\
|
|
136
|
+
" #{@id}, created_by: #{@created_by}, created_by_user: #{@created_by_user}, is_archived:"\
|
|
137
|
+
" #{@is_archived}, hierarchy: #{@hierarchy}>"
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
141
|
+
def inspect
|
|
142
|
+
class_name = self.class.name.split('::').last
|
|
143
|
+
"<#{class_name} name: #{@name.inspect}, description: #{@description.inspect}, tags:"\
|
|
144
|
+
" #{@tags.inspect}, organization_id: #{@organization_id.inspect}, parent_project_id:"\
|
|
145
|
+
" #{@parent_project_id.inspect}, id: #{@id.inspect}, created_by: #{@created_by.inspect},"\
|
|
146
|
+
" created_by_user: #{@created_by_user.inspect}, is_archived: #{@is_archived.inspect},"\
|
|
147
|
+
" hierarchy: #{@hierarchy.inspect}>"
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
# ProjectApi.UserAccessSource.
|
|
8
|
+
class ProjectApiUserAccessSource
|
|
9
|
+
PROJECT_API_USER_ACCESS_SOURCE = [
|
|
10
|
+
# TODO: Write general description for ORGANIZATION_ADMIN
|
|
11
|
+
ORGANIZATION_ADMIN = 'organization_admin'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for PROJECT_ASSIGNMENT
|
|
14
|
+
PROJECT_ASSIGNMENT = 'project_assignment'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for TEAM_ASSIGNMENT
|
|
17
|
+
TEAM_ASSIGNMENT = 'team_assignment'.freeze
|
|
18
|
+
].freeze
|
|
19
|
+
|
|
20
|
+
def self.validate(value)
|
|
21
|
+
return false if value.nil?
|
|
22
|
+
|
|
23
|
+
PROJECT_API_USER_ACCESS_SOURCE.include?(value)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.from_value(value, default_value = ORGANIZATION_ADMIN)
|
|
27
|
+
return default_value if value.nil?
|
|
28
|
+
|
|
29
|
+
str = value.to_s.strip
|
|
30
|
+
|
|
31
|
+
case str.downcase
|
|
32
|
+
when 'organization_admin' then ORGANIZATION_ADMIN
|
|
33
|
+
when 'project_assignment' then PROJECT_ASSIGNMENT
|
|
34
|
+
when 'team_assignment' then TEAM_ASSIGNMENT
|
|
35
|
+
else
|
|
36
|
+
default_value
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
# ProjectApiUserWithAccess Model.
|
|
8
|
+
class ProjectApiUserWithAccess < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :user_id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [User]
|
|
18
|
+
attr_accessor :user
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Object]
|
|
22
|
+
attr_accessor :role
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [ProjectApiUserAccessSource]
|
|
26
|
+
attr_accessor :access_source
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :team_id
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :team_name
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [TrueClass | FalseClass]
|
|
38
|
+
attr_accessor :inherited
|
|
39
|
+
|
|
40
|
+
# A mapping from model property names to API property names.
|
|
41
|
+
def self.names
|
|
42
|
+
@_hash = {} if @_hash.nil?
|
|
43
|
+
@_hash['user_id'] = 'userId'
|
|
44
|
+
@_hash['user'] = 'user'
|
|
45
|
+
@_hash['role'] = 'role'
|
|
46
|
+
@_hash['access_source'] = 'accessSource'
|
|
47
|
+
@_hash['team_id'] = 'teamId'
|
|
48
|
+
@_hash['team_name'] = 'teamName'
|
|
49
|
+
@_hash['inherited'] = 'inherited'
|
|
50
|
+
@_hash
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# An array for optional fields
|
|
54
|
+
def self.optionals
|
|
55
|
+
%w[
|
|
56
|
+
role
|
|
57
|
+
team_id
|
|
58
|
+
team_name
|
|
59
|
+
inherited
|
|
60
|
+
]
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# An array for nullable fields
|
|
64
|
+
def self.nullables
|
|
65
|
+
[]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def initialize(user_id:, user:, access_source:, role: SKIP, team_id: SKIP,
|
|
69
|
+
team_name: SKIP, inherited: SKIP)
|
|
70
|
+
@user_id = user_id
|
|
71
|
+
@user = user
|
|
72
|
+
@role = role unless role == SKIP
|
|
73
|
+
@access_source = access_source
|
|
74
|
+
@team_id = team_id unless team_id == SKIP
|
|
75
|
+
@team_name = team_name unless team_name == SKIP
|
|
76
|
+
@inherited = inherited unless inherited == SKIP
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Creates an instance of the object from a hash.
|
|
80
|
+
def self.from_hash(hash)
|
|
81
|
+
return nil unless hash
|
|
82
|
+
|
|
83
|
+
# Extract variables from the hash.
|
|
84
|
+
user_id = hash.key?('userId') ? hash['userId'] : nil
|
|
85
|
+
user = User.from_hash(hash['user']) if hash['user']
|
|
86
|
+
access_source = hash.key?('accessSource') ? hash['accessSource'] : nil
|
|
87
|
+
role = hash.key?('role') ? APIHelper.deserialize_union_type(
|
|
88
|
+
UnionTypeLookUp.get(:RolesApiRbacPermissionRole), hash['role']
|
|
89
|
+
) : SKIP
|
|
90
|
+
team_id = hash.key?('teamId') ? hash['teamId'] : SKIP
|
|
91
|
+
team_name = hash.key?('teamName') ? hash['teamName'] : SKIP
|
|
92
|
+
inherited = hash.key?('inherited') ? hash['inherited'] : SKIP
|
|
93
|
+
|
|
94
|
+
# Create object from extracted values.
|
|
95
|
+
ProjectApiUserWithAccess.new(user_id: user_id,
|
|
96
|
+
user: user,
|
|
97
|
+
access_source: access_source,
|
|
98
|
+
role: role,
|
|
99
|
+
team_id: team_id,
|
|
100
|
+
team_name: team_name,
|
|
101
|
+
inherited: inherited)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Validates an instance of the object from a given value.
|
|
105
|
+
# @param [ProjectApiUserWithAccess | Hash] The value against the validation is performed.
|
|
106
|
+
def self.validate(value)
|
|
107
|
+
if value.instance_of? self
|
|
108
|
+
return (
|
|
109
|
+
APIHelper.valid_type?(value.user_id,
|
|
110
|
+
->(val) { val.instance_of? String }) and
|
|
111
|
+
APIHelper.valid_type?(value.user,
|
|
112
|
+
->(val) { User.validate(val) },
|
|
113
|
+
is_model_hash: true) and
|
|
114
|
+
APIHelper.valid_type?(value.access_source,
|
|
115
|
+
->(val) { ProjectApiUserAccessSource.validate(val) })
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
return false unless value.instance_of? Hash
|
|
120
|
+
|
|
121
|
+
(
|
|
122
|
+
APIHelper.valid_type?(value['userId'],
|
|
123
|
+
->(val) { val.instance_of? String }) and
|
|
124
|
+
APIHelper.valid_type?(value['user'],
|
|
125
|
+
->(val) { User.validate(val) },
|
|
126
|
+
is_model_hash: true) and
|
|
127
|
+
APIHelper.valid_type?(value['accessSource'],
|
|
128
|
+
->(val) { ProjectApiUserAccessSource.validate(val) })
|
|
129
|
+
)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Provides a human-readable string representation of the object.
|
|
133
|
+
def to_s
|
|
134
|
+
class_name = self.class.name.split('::').last
|
|
135
|
+
"<#{class_name} user_id: #{@user_id}, user: #{@user}, role: #{@role}, access_source:"\
|
|
136
|
+
" #{@access_source}, team_id: #{@team_id}, team_name: #{@team_name}, inherited:"\
|
|
137
|
+
" #{@inherited}>"
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
141
|
+
def inspect
|
|
142
|
+
class_name = self.class.name.split('::').last
|
|
143
|
+
"<#{class_name} user_id: #{@user_id.inspect}, user: #{@user.inspect}, role:"\
|
|
144
|
+
" #{@role.inspect}, access_source: #{@access_source.inspect}, team_id: #{@team_id.inspect},"\
|
|
145
|
+
" team_name: #{@team_name.inspect}, inherited: #{@inherited.inspect}>"
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
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
|
+
# requiresApproval.
|
|
8
|
+
class RequiresApproval
|
|
9
|
+
REQUIRES_APPROVAL = [
|
|
10
|
+
# TODO: Write general description for ENUM_TRUE
|
|
11
|
+
ENUM_TRUE = 'true'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for ENUM_FALSE
|
|
14
|
+
ENUM_FALSE = 'false'.freeze
|
|
15
|
+
].freeze
|
|
16
|
+
|
|
17
|
+
def self.validate(value)
|
|
18
|
+
return false if value.nil?
|
|
19
|
+
|
|
20
|
+
REQUIRES_APPROVAL.include?(value)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from_value(value, default_value = ENUM_TRUE)
|
|
24
|
+
return default_value if value.nil?
|
|
25
|
+
|
|
26
|
+
str = value.to_s.strip
|
|
27
|
+
|
|
28
|
+
case str.downcase
|
|
29
|
+
when 'enum_true' then ENUM_TRUE
|
|
30
|
+
when 'enum_false' then ENUM_FALSE
|
|
31
|
+
else
|
|
32
|
+
default_value
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
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
|
+
# SchedulingApi.DisabledReason.
|
|
8
|
+
class SchedulingApiDisabledReason
|
|
9
|
+
SCHEDULING_API_DISABLED_REASON = [
|
|
10
|
+
# TODO: Write general description for USER
|
|
11
|
+
USER = 'USER'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for ARCHIVE
|
|
14
|
+
ARCHIVE = 'ARCHIVE'.freeze
|
|
15
|
+
].freeze
|
|
16
|
+
|
|
17
|
+
def self.validate(value)
|
|
18
|
+
return false if value.nil?
|
|
19
|
+
|
|
20
|
+
SCHEDULING_API_DISABLED_REASON.include?(value)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from_value(value, default_value = USER)
|
|
24
|
+
return default_value if value.nil?
|
|
25
|
+
|
|
26
|
+
str = value.to_s.strip
|
|
27
|
+
|
|
28
|
+
case str.downcase
|
|
29
|
+
when 'user' then USER
|
|
30
|
+
when 'archive' then ARCHIVE
|
|
31
|
+
else
|
|
32
|
+
default_value
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,231 @@
|
|
|
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
|
+
# SchedulingApiGetDriftDetectionByEnvironmentIdResponse Model.
|
|
9
|
+
class SchedulingApiGetDriftDetectionByEnvironmentIdResponse < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [EnvironmentApiAutoDriftRemediationStrategy]
|
|
15
|
+
attr_accessor :auto_drift_remediation
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for this method
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :created_at
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :created_by
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for this method
|
|
30
|
+
# @return [DateTime]
|
|
31
|
+
attr_accessor :updated_at
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for this method
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :environment_id
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for this method
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :project_id
|
|
40
|
+
|
|
41
|
+
# TODO: Write general description for this method
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :organization_id
|
|
44
|
+
|
|
45
|
+
# TODO: Write general description for this method
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :cron
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for this method
|
|
50
|
+
# @return [DateTime]
|
|
51
|
+
attr_accessor :next_schedule
|
|
52
|
+
|
|
53
|
+
# TODO: Write general description for this method
|
|
54
|
+
# @return [TrueClass | FalseClass]
|
|
55
|
+
attr_accessor :enabled
|
|
56
|
+
|
|
57
|
+
# TODO: Write general description for this method
|
|
58
|
+
# @return [Object]
|
|
59
|
+
attr_accessor :disabled_reason
|
|
60
|
+
|
|
61
|
+
# A mapping from model property names to API property names.
|
|
62
|
+
def self.names
|
|
63
|
+
@_hash = {} if @_hash.nil?
|
|
64
|
+
@_hash['auto_drift_remediation'] = 'autoDriftRemediation'
|
|
65
|
+
@_hash['id'] = 'id'
|
|
66
|
+
@_hash['created_at'] = 'createdAt'
|
|
67
|
+
@_hash['created_by'] = 'createdBy'
|
|
68
|
+
@_hash['updated_at'] = 'updatedAt'
|
|
69
|
+
@_hash['environment_id'] = 'environmentId'
|
|
70
|
+
@_hash['project_id'] = 'projectId'
|
|
71
|
+
@_hash['organization_id'] = 'organizationId'
|
|
72
|
+
@_hash['cron'] = 'cron'
|
|
73
|
+
@_hash['next_schedule'] = 'nextSchedule'
|
|
74
|
+
@_hash['enabled'] = 'enabled'
|
|
75
|
+
@_hash['disabled_reason'] = 'disabledReason'
|
|
76
|
+
@_hash
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# An array for optional fields
|
|
80
|
+
def self.optionals
|
|
81
|
+
%w[
|
|
82
|
+
auto_drift_remediation
|
|
83
|
+
id
|
|
84
|
+
created_at
|
|
85
|
+
created_by
|
|
86
|
+
updated_at
|
|
87
|
+
next_schedule
|
|
88
|
+
disabled_reason
|
|
89
|
+
]
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# An array for nullable fields
|
|
93
|
+
def self.nullables
|
|
94
|
+
[]
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
def initialize(environment_id:, project_id:, organization_id:, cron:,
|
|
98
|
+
enabled:, auto_drift_remediation: SKIP, id: SKIP,
|
|
99
|
+
created_at: SKIP, created_by: SKIP, updated_at: SKIP,
|
|
100
|
+
next_schedule: SKIP, disabled_reason: SKIP)
|
|
101
|
+
@auto_drift_remediation = auto_drift_remediation unless auto_drift_remediation == SKIP
|
|
102
|
+
@id = id unless id == SKIP
|
|
103
|
+
@created_at = created_at unless created_at == SKIP
|
|
104
|
+
@created_by = created_by unless created_by == SKIP
|
|
105
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
106
|
+
@environment_id = environment_id
|
|
107
|
+
@project_id = project_id
|
|
108
|
+
@organization_id = organization_id
|
|
109
|
+
@cron = cron
|
|
110
|
+
@next_schedule = next_schedule unless next_schedule == SKIP
|
|
111
|
+
@enabled = enabled
|
|
112
|
+
@disabled_reason = disabled_reason unless disabled_reason == SKIP
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Creates an instance of the object from a hash.
|
|
116
|
+
def self.from_hash(hash)
|
|
117
|
+
return nil unless hash
|
|
118
|
+
|
|
119
|
+
# Extract variables from the hash.
|
|
120
|
+
environment_id = hash.key?('environmentId') ? hash['environmentId'] : nil
|
|
121
|
+
project_id = hash.key?('projectId') ? hash['projectId'] : nil
|
|
122
|
+
organization_id =
|
|
123
|
+
hash.key?('organizationId') ? hash['organizationId'] : nil
|
|
124
|
+
cron = hash.key?('cron') ? hash['cron'] : nil
|
|
125
|
+
enabled = hash.key?('enabled') ? hash['enabled'] : nil
|
|
126
|
+
auto_drift_remediation =
|
|
127
|
+
hash.key?('autoDriftRemediation') ? hash['autoDriftRemediation'] : SKIP
|
|
128
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
129
|
+
created_at = if hash.key?('createdAt')
|
|
130
|
+
(DateTimeHelper.from_rfc3339(hash['createdAt']) if hash['createdAt'])
|
|
131
|
+
else
|
|
132
|
+
SKIP
|
|
133
|
+
end
|
|
134
|
+
created_by = hash.key?('createdBy') ? hash['createdBy'] : SKIP
|
|
135
|
+
updated_at = if hash.key?('updatedAt')
|
|
136
|
+
(DateTimeHelper.from_rfc3339(hash['updatedAt']) if hash['updatedAt'])
|
|
137
|
+
else
|
|
138
|
+
SKIP
|
|
139
|
+
end
|
|
140
|
+
next_schedule = if hash.key?('nextSchedule')
|
|
141
|
+
(DateTimeHelper.from_rfc3339(hash['nextSchedule']) if hash['nextSchedule'])
|
|
142
|
+
else
|
|
143
|
+
SKIP
|
|
144
|
+
end
|
|
145
|
+
disabled_reason = hash.key?('disabledReason') ? APIHelper.deserialize_union_type(
|
|
146
|
+
UnionTypeLookUp.get(:SchedulingApiGetDriftDetectionByEnvironmentIdResponseDisabledReason), hash['disabledReason']
|
|
147
|
+
) : SKIP
|
|
148
|
+
|
|
149
|
+
# Create object from extracted values.
|
|
150
|
+
SchedulingApiGetDriftDetectionByEnvironmentIdResponse.new(environment_id: environment_id,
|
|
151
|
+
project_id: project_id,
|
|
152
|
+
organization_id: organization_id,
|
|
153
|
+
cron: cron,
|
|
154
|
+
enabled: enabled,
|
|
155
|
+
auto_drift_remediation: auto_drift_remediation,
|
|
156
|
+
id: id,
|
|
157
|
+
created_at: created_at,
|
|
158
|
+
created_by: created_by,
|
|
159
|
+
updated_at: updated_at,
|
|
160
|
+
next_schedule: next_schedule,
|
|
161
|
+
disabled_reason: disabled_reason)
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
def to_custom_created_at
|
|
165
|
+
DateTimeHelper.to_rfc3339(created_at)
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
def to_custom_updated_at
|
|
169
|
+
DateTimeHelper.to_rfc3339(updated_at)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
def to_custom_next_schedule
|
|
173
|
+
DateTimeHelper.to_rfc3339(next_schedule)
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Validates an instance of the object from a given value.
|
|
177
|
+
# @param [SchedulingApiGetDriftDetectionByEnvironmentIdResponse | Hash] The value against the validation is performed.
|
|
178
|
+
def self.validate(value)
|
|
179
|
+
if value.instance_of? self
|
|
180
|
+
return (
|
|
181
|
+
APIHelper.valid_type?(value.environment_id,
|
|
182
|
+
->(val) { val.instance_of? String }) and
|
|
183
|
+
APIHelper.valid_type?(value.project_id,
|
|
184
|
+
->(val) { val.instance_of? String }) and
|
|
185
|
+
APIHelper.valid_type?(value.organization_id,
|
|
186
|
+
->(val) { val.instance_of? String }) and
|
|
187
|
+
APIHelper.valid_type?(value.cron,
|
|
188
|
+
->(val) { val.instance_of? String }) and
|
|
189
|
+
APIHelper.valid_type?(value.enabled,
|
|
190
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass })
|
|
191
|
+
)
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
return false unless value.instance_of? Hash
|
|
195
|
+
|
|
196
|
+
(
|
|
197
|
+
APIHelper.valid_type?(value['environmentId'],
|
|
198
|
+
->(val) { val.instance_of? String }) and
|
|
199
|
+
APIHelper.valid_type?(value['projectId'],
|
|
200
|
+
->(val) { val.instance_of? String }) and
|
|
201
|
+
APIHelper.valid_type?(value['organizationId'],
|
|
202
|
+
->(val) { val.instance_of? String }) and
|
|
203
|
+
APIHelper.valid_type?(value['cron'],
|
|
204
|
+
->(val) { val.instance_of? String }) and
|
|
205
|
+
APIHelper.valid_type?(value['enabled'],
|
|
206
|
+
->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass })
|
|
207
|
+
)
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Provides a human-readable string representation of the object.
|
|
211
|
+
def to_s
|
|
212
|
+
class_name = self.class.name.split('::').last
|
|
213
|
+
"<#{class_name} auto_drift_remediation: #{@auto_drift_remediation}, id: #{@id}, created_at:"\
|
|
214
|
+
" #{@created_at}, created_by: #{@created_by}, updated_at: #{@updated_at}, environment_id:"\
|
|
215
|
+
" #{@environment_id}, project_id: #{@project_id}, organization_id: #{@organization_id},"\
|
|
216
|
+
" cron: #{@cron}, next_schedule: #{@next_schedule}, enabled: #{@enabled}, disabled_reason:"\
|
|
217
|
+
" #{@disabled_reason}>"
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
221
|
+
def inspect
|
|
222
|
+
class_name = self.class.name.split('::').last
|
|
223
|
+
"<#{class_name} auto_drift_remediation: #{@auto_drift_remediation.inspect}, id:"\
|
|
224
|
+
" #{@id.inspect}, created_at: #{@created_at.inspect}, created_by: #{@created_by.inspect},"\
|
|
225
|
+
" updated_at: #{@updated_at.inspect}, environment_id: #{@environment_id.inspect},"\
|
|
226
|
+
" project_id: #{@project_id.inspect}, organization_id: #{@organization_id.inspect}, cron:"\
|
|
227
|
+
" #{@cron.inspect}, next_schedule: #{@next_schedule.inspect}, enabled: #{@enabled.inspect},"\
|
|
228
|
+
" disabled_reason: #{@disabled_reason.inspect}>"
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
end
|