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,199 @@
|
|
|
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
|
+
# CloudResourceApiChangeEvent Model.
|
|
9
|
+
class CloudResourceApiChangeEvent < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :id
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for this method
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :event_id
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :event_name
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :username
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for this method
|
|
30
|
+
# @return [DateTime]
|
|
31
|
+
attr_accessor :event_time
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for this method
|
|
34
|
+
# @return [CloudResourceApiChangeEventSource]
|
|
35
|
+
attr_accessor :event_source
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for this method
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :resource_id
|
|
40
|
+
|
|
41
|
+
# TODO: Write general description for this method
|
|
42
|
+
# @return [CloudResourceApiManagementType]
|
|
43
|
+
attr_accessor :mapped_user_action
|
|
44
|
+
|
|
45
|
+
# TODO: Write general description for this method
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :cloud_configuration_id
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for this method
|
|
50
|
+
# @return [String]
|
|
51
|
+
attr_accessor :region
|
|
52
|
+
|
|
53
|
+
# TODO: Write general description for this method
|
|
54
|
+
# @return [String]
|
|
55
|
+
attr_accessor :user_id
|
|
56
|
+
|
|
57
|
+
# TODO: Write general description for this method
|
|
58
|
+
# @return [String]
|
|
59
|
+
attr_accessor :organization_id
|
|
60
|
+
|
|
61
|
+
# TODO: Write general description for this method
|
|
62
|
+
# @return [Object]
|
|
63
|
+
attr_accessor :request_parameters
|
|
64
|
+
|
|
65
|
+
# TODO: Write general description for this method
|
|
66
|
+
# @return [Object]
|
|
67
|
+
attr_accessor :response_parameters
|
|
68
|
+
|
|
69
|
+
# A mapping from model property names to API property names.
|
|
70
|
+
def self.names
|
|
71
|
+
@_hash = {} if @_hash.nil?
|
|
72
|
+
@_hash['id'] = 'id'
|
|
73
|
+
@_hash['event_id'] = 'eventId'
|
|
74
|
+
@_hash['event_name'] = 'eventName'
|
|
75
|
+
@_hash['username'] = 'username'
|
|
76
|
+
@_hash['event_time'] = 'eventTime'
|
|
77
|
+
@_hash['event_source'] = 'eventSource'
|
|
78
|
+
@_hash['resource_id'] = 'resourceId'
|
|
79
|
+
@_hash['mapped_user_action'] = 'mappedUserAction'
|
|
80
|
+
@_hash['cloud_configuration_id'] = 'cloudConfigurationId'
|
|
81
|
+
@_hash['region'] = 'region'
|
|
82
|
+
@_hash['user_id'] = 'userId'
|
|
83
|
+
@_hash['organization_id'] = 'organizationId'
|
|
84
|
+
@_hash['request_parameters'] = 'requestParameters'
|
|
85
|
+
@_hash['response_parameters'] = 'responseParameters'
|
|
86
|
+
@_hash
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# An array for optional fields
|
|
90
|
+
def self.optionals
|
|
91
|
+
%w[
|
|
92
|
+
id
|
|
93
|
+
username
|
|
94
|
+
region
|
|
95
|
+
user_id
|
|
96
|
+
request_parameters
|
|
97
|
+
response_parameters
|
|
98
|
+
]
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# An array for nullable fields
|
|
102
|
+
def self.nullables
|
|
103
|
+
[]
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
def initialize(event_id:, event_name:, event_time:, event_source:,
|
|
107
|
+
resource_id:, mapped_user_action:, cloud_configuration_id:,
|
|
108
|
+
organization_id:, id: SKIP, username: SKIP, region: SKIP,
|
|
109
|
+
user_id: SKIP, request_parameters: SKIP,
|
|
110
|
+
response_parameters: SKIP)
|
|
111
|
+
@id = id unless id == SKIP
|
|
112
|
+
@event_id = event_id
|
|
113
|
+
@event_name = event_name
|
|
114
|
+
@username = username unless username == SKIP
|
|
115
|
+
@event_time = event_time
|
|
116
|
+
@event_source = event_source
|
|
117
|
+
@resource_id = resource_id
|
|
118
|
+
@mapped_user_action = mapped_user_action
|
|
119
|
+
@cloud_configuration_id = cloud_configuration_id
|
|
120
|
+
@region = region unless region == SKIP
|
|
121
|
+
@user_id = user_id unless user_id == SKIP
|
|
122
|
+
@organization_id = organization_id
|
|
123
|
+
@request_parameters = request_parameters unless request_parameters == SKIP
|
|
124
|
+
@response_parameters = response_parameters unless response_parameters == SKIP
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Creates an instance of the object from a hash.
|
|
128
|
+
def self.from_hash(hash)
|
|
129
|
+
return nil unless hash
|
|
130
|
+
|
|
131
|
+
# Extract variables from the hash.
|
|
132
|
+
event_id = hash.key?('eventId') ? hash['eventId'] : nil
|
|
133
|
+
event_name = hash.key?('eventName') ? hash['eventName'] : nil
|
|
134
|
+
event_time = if hash.key?('eventTime')
|
|
135
|
+
(DateTimeHelper.from_rfc3339(hash['eventTime']) if hash['eventTime'])
|
|
136
|
+
end
|
|
137
|
+
event_source = hash.key?('eventSource') ? hash['eventSource'] : nil
|
|
138
|
+
resource_id = hash.key?('resourceId') ? hash['resourceId'] : nil
|
|
139
|
+
mapped_user_action =
|
|
140
|
+
hash.key?('mappedUserAction') ? hash['mappedUserAction'] : nil
|
|
141
|
+
cloud_configuration_id =
|
|
142
|
+
hash.key?('cloudConfigurationId') ? hash['cloudConfigurationId'] : nil
|
|
143
|
+
organization_id =
|
|
144
|
+
hash.key?('organizationId') ? hash['organizationId'] : nil
|
|
145
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
146
|
+
username = hash.key?('username') ? hash['username'] : SKIP
|
|
147
|
+
region = hash.key?('region') ? hash['region'] : SKIP
|
|
148
|
+
user_id = hash.key?('userId') ? hash['userId'] : SKIP
|
|
149
|
+
request_parameters =
|
|
150
|
+
hash.key?('requestParameters') ? hash['requestParameters'] : SKIP
|
|
151
|
+
response_parameters =
|
|
152
|
+
hash.key?('responseParameters') ? hash['responseParameters'] : SKIP
|
|
153
|
+
|
|
154
|
+
# Create object from extracted values.
|
|
155
|
+
CloudResourceApiChangeEvent.new(event_id: event_id,
|
|
156
|
+
event_name: event_name,
|
|
157
|
+
event_time: event_time,
|
|
158
|
+
event_source: event_source,
|
|
159
|
+
resource_id: resource_id,
|
|
160
|
+
mapped_user_action: mapped_user_action,
|
|
161
|
+
cloud_configuration_id: cloud_configuration_id,
|
|
162
|
+
organization_id: organization_id,
|
|
163
|
+
id: id,
|
|
164
|
+
username: username,
|
|
165
|
+
region: region,
|
|
166
|
+
user_id: user_id,
|
|
167
|
+
request_parameters: request_parameters,
|
|
168
|
+
response_parameters: response_parameters)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
def to_custom_event_time
|
|
172
|
+
DateTimeHelper.to_rfc3339(event_time)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Provides a human-readable string representation of the object.
|
|
176
|
+
def to_s
|
|
177
|
+
class_name = self.class.name.split('::').last
|
|
178
|
+
"<#{class_name} id: #{@id}, event_id: #{@event_id}, event_name: #{@event_name}, username:"\
|
|
179
|
+
" #{@username}, event_time: #{@event_time}, event_source: #{@event_source}, resource_id:"\
|
|
180
|
+
" #{@resource_id}, mapped_user_action: #{@mapped_user_action}, cloud_configuration_id:"\
|
|
181
|
+
" #{@cloud_configuration_id}, region: #{@region}, user_id: #{@user_id}, organization_id:"\
|
|
182
|
+
" #{@organization_id}, request_parameters: #{@request_parameters}, response_parameters:"\
|
|
183
|
+
" #{@response_parameters}>"
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
187
|
+
def inspect
|
|
188
|
+
class_name = self.class.name.split('::').last
|
|
189
|
+
"<#{class_name} id: #{@id.inspect}, event_id: #{@event_id.inspect}, event_name:"\
|
|
190
|
+
" #{@event_name.inspect}, username: #{@username.inspect}, event_time:"\
|
|
191
|
+
" #{@event_time.inspect}, event_source: #{@event_source.inspect}, resource_id:"\
|
|
192
|
+
" #{@resource_id.inspect}, mapped_user_action: #{@mapped_user_action.inspect},"\
|
|
193
|
+
" cloud_configuration_id: #{@cloud_configuration_id.inspect}, region: #{@region.inspect},"\
|
|
194
|
+
" user_id: #{@user_id.inspect}, organization_id: #{@organization_id.inspect},"\
|
|
195
|
+
" request_parameters: #{@request_parameters.inspect}, response_parameters:"\
|
|
196
|
+
" #{@response_parameters.inspect}>"
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
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
|
+
# CloudResourceApi.ChangeEventSource.
|
|
8
|
+
class CloudResourceApiChangeEventSource
|
|
9
|
+
CLOUD_RESOURCE_API_CHANGE_EVENT_SOURCE = [
|
|
10
|
+
# TODO: Write general description for AWSCLOUDTRAIL
|
|
11
|
+
AWSCLOUDTRAIL = 'aws-cloudtrail'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for AZURELAW
|
|
14
|
+
AZURELAW = 'azure-law'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for GCPAUDITLOGS
|
|
17
|
+
GCPAUDITLOGS = 'gcp-audit-logs'.freeze
|
|
18
|
+
].freeze
|
|
19
|
+
|
|
20
|
+
def self.validate(value)
|
|
21
|
+
return false if value.nil?
|
|
22
|
+
|
|
23
|
+
CLOUD_RESOURCE_API_CHANGE_EVENT_SOURCE.include?(value)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.from_value(value, default_value = AWSCLOUDTRAIL)
|
|
27
|
+
return default_value if value.nil?
|
|
28
|
+
|
|
29
|
+
str = value.to_s.strip
|
|
30
|
+
|
|
31
|
+
case str.downcase
|
|
32
|
+
when 'awscloudtrail' then AWSCLOUDTRAIL
|
|
33
|
+
when 'azurelaw' then AZURELAW
|
|
34
|
+
when 'gcpauditlogs' then GCPAUDITLOGS
|
|
35
|
+
else
|
|
36
|
+
default_value
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
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
|
+
# CloudResourceApi.ManagementType.
|
|
8
|
+
class CloudResourceApiManagementType
|
|
9
|
+
CLOUD_RESOURCE_API_MANAGEMENT_TYPE = [
|
|
10
|
+
# TODO: Write general description for IAC
|
|
11
|
+
IAC = 'IaC'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for CLICKOPS
|
|
14
|
+
CLICKOPS = 'ClickOps'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for API
|
|
17
|
+
API = 'API'.freeze
|
|
18
|
+
].freeze
|
|
19
|
+
|
|
20
|
+
def self.validate(value)
|
|
21
|
+
return false if value.nil?
|
|
22
|
+
|
|
23
|
+
CLOUD_RESOURCE_API_MANAGEMENT_TYPE.include?(value)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.from_value(value, default_value = IAC)
|
|
27
|
+
return default_value if value.nil?
|
|
28
|
+
|
|
29
|
+
str = value.to_s.strip
|
|
30
|
+
|
|
31
|
+
case str.downcase
|
|
32
|
+
when 'iac' then IAC
|
|
33
|
+
when 'clickops' then CLICKOPS
|
|
34
|
+
when 'api' then API
|
|
35
|
+
else
|
|
36
|
+
default_value
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
# ConfigurationApiCreateConfigurationSetRequestBody Model.
|
|
8
|
+
class ConfigurationApiCreateConfigurationSetRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [SetCreationScope]
|
|
14
|
+
attr_accessor :scope
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :scope_id
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Array[ConfigurationPropertyRequest]]
|
|
22
|
+
attr_accessor :configuration_properties
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :description
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['scope'] = 'scope'
|
|
36
|
+
@_hash['scope_id'] = 'scopeId'
|
|
37
|
+
@_hash['configuration_properties'] = 'configurationProperties'
|
|
38
|
+
@_hash['name'] = 'name'
|
|
39
|
+
@_hash['description'] = 'description'
|
|
40
|
+
@_hash
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for optional fields
|
|
44
|
+
def self.optionals
|
|
45
|
+
%w[
|
|
46
|
+
configuration_properties
|
|
47
|
+
description
|
|
48
|
+
]
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# An array for nullable fields
|
|
52
|
+
def self.nullables
|
|
53
|
+
[]
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def initialize(scope:, scope_id:, name:, configuration_properties: SKIP,
|
|
57
|
+
description: SKIP)
|
|
58
|
+
@scope = scope
|
|
59
|
+
@scope_id = scope_id
|
|
60
|
+
@configuration_properties = configuration_properties unless configuration_properties == SKIP
|
|
61
|
+
@name = name
|
|
62
|
+
@description = description unless description == SKIP
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Creates an instance of the object from a hash.
|
|
66
|
+
def self.from_hash(hash)
|
|
67
|
+
return nil unless hash
|
|
68
|
+
|
|
69
|
+
# Extract variables from the hash.
|
|
70
|
+
scope = hash.key?('scope') ? hash['scope'] : nil
|
|
71
|
+
scope_id = hash.key?('scopeId') ? hash['scopeId'] : nil
|
|
72
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
73
|
+
# Parameter is an array, so we need to iterate through it
|
|
74
|
+
configuration_properties = nil
|
|
75
|
+
unless hash['configurationProperties'].nil?
|
|
76
|
+
configuration_properties = []
|
|
77
|
+
hash['configurationProperties'].each do |structure|
|
|
78
|
+
configuration_properties << (ConfigurationPropertyRequest.from_hash(structure) if structure)
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
configuration_properties = SKIP unless hash.key?('configurationProperties')
|
|
83
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
84
|
+
|
|
85
|
+
# Create object from extracted values.
|
|
86
|
+
ConfigurationApiCreateConfigurationSetRequestBody.new(scope: scope,
|
|
87
|
+
scope_id: scope_id,
|
|
88
|
+
name: name,
|
|
89
|
+
configuration_properties: configuration_properties,
|
|
90
|
+
description: description)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Provides a human-readable string representation of the object.
|
|
94
|
+
def to_s
|
|
95
|
+
class_name = self.class.name.split('::').last
|
|
96
|
+
"<#{class_name} scope: #{@scope}, scope_id: #{@scope_id}, configuration_properties:"\
|
|
97
|
+
" #{@configuration_properties}, name: #{@name}, description: #{@description}>"
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
101
|
+
def inspect
|
|
102
|
+
class_name = self.class.name.split('::').last
|
|
103
|
+
"<#{class_name} scope: #{@scope.inspect}, scope_id: #{@scope_id.inspect},"\
|
|
104
|
+
" configuration_properties: #{@configuration_properties.inspect}, name: #{@name.inspect},"\
|
|
105
|
+
" description: #{@description.inspect}>"
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# env_zero_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module EnvZeroApi
|
|
8
|
+
# ConfigurationApiCreateConfigurationSetResponse Model.
|
|
9
|
+
class ConfigurationApiCreateConfigurationSetResponse < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :id
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for this method
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :description
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :assignment_scope_id
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for this method
|
|
30
|
+
# @return [ConfigurationSetAssignmentScope]
|
|
31
|
+
attr_accessor :assignment_scope
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for this method
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :creation_scope_id
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for this method
|
|
38
|
+
# @return [SetCreationScope]
|
|
39
|
+
attr_accessor :creation_scope
|
|
40
|
+
|
|
41
|
+
# TODO: Write general description for this method
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :organization_id
|
|
44
|
+
|
|
45
|
+
# TODO: Write general description for this method
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :created_by
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for this method
|
|
50
|
+
# @return [User]
|
|
51
|
+
attr_accessor :created_by_user
|
|
52
|
+
|
|
53
|
+
# TODO: Write general description for this method
|
|
54
|
+
# @return [TrueClass | FalseClass]
|
|
55
|
+
attr_accessor :to_delete
|
|
56
|
+
|
|
57
|
+
# TODO: Write general description for this method
|
|
58
|
+
# @return [DateTime]
|
|
59
|
+
attr_accessor :created_at
|
|
60
|
+
|
|
61
|
+
# TODO: Write general description for this method
|
|
62
|
+
# @return [DateTime]
|
|
63
|
+
attr_accessor :updated_at
|
|
64
|
+
|
|
65
|
+
# A mapping from model property names to API property names.
|
|
66
|
+
def self.names
|
|
67
|
+
@_hash = {} if @_hash.nil?
|
|
68
|
+
@_hash['id'] = 'id'
|
|
69
|
+
@_hash['name'] = 'name'
|
|
70
|
+
@_hash['description'] = 'description'
|
|
71
|
+
@_hash['assignment_scope_id'] = 'assignmentScopeId'
|
|
72
|
+
@_hash['assignment_scope'] = 'assignmentScope'
|
|
73
|
+
@_hash['creation_scope_id'] = 'creationScopeId'
|
|
74
|
+
@_hash['creation_scope'] = 'creationScope'
|
|
75
|
+
@_hash['organization_id'] = 'organizationId'
|
|
76
|
+
@_hash['created_by'] = 'createdBy'
|
|
77
|
+
@_hash['created_by_user'] = 'createdByUser'
|
|
78
|
+
@_hash['to_delete'] = 'toDelete'
|
|
79
|
+
@_hash['created_at'] = 'createdAt'
|
|
80
|
+
@_hash['updated_at'] = 'updatedAt'
|
|
81
|
+
@_hash
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# An array for optional fields
|
|
85
|
+
def self.optionals
|
|
86
|
+
%w[
|
|
87
|
+
id
|
|
88
|
+
description
|
|
89
|
+
assignment_scope
|
|
90
|
+
created_by_user
|
|
91
|
+
to_delete
|
|
92
|
+
created_at
|
|
93
|
+
updated_at
|
|
94
|
+
]
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# An array for nullable fields
|
|
98
|
+
def self.nullables
|
|
99
|
+
[]
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def initialize(name:, assignment_scope_id:, creation_scope_id:,
|
|
103
|
+
creation_scope:, organization_id:, created_by:, id: SKIP,
|
|
104
|
+
description: SKIP, assignment_scope: SKIP,
|
|
105
|
+
created_by_user: SKIP, to_delete: SKIP, created_at: SKIP,
|
|
106
|
+
updated_at: SKIP)
|
|
107
|
+
@id = id unless id == SKIP
|
|
108
|
+
@name = name
|
|
109
|
+
@description = description unless description == SKIP
|
|
110
|
+
@assignment_scope_id = assignment_scope_id
|
|
111
|
+
@assignment_scope = assignment_scope unless assignment_scope == SKIP
|
|
112
|
+
@creation_scope_id = creation_scope_id
|
|
113
|
+
@creation_scope = creation_scope
|
|
114
|
+
@organization_id = organization_id
|
|
115
|
+
@created_by = created_by
|
|
116
|
+
@created_by_user = created_by_user unless created_by_user == SKIP
|
|
117
|
+
@to_delete = to_delete unless to_delete == SKIP
|
|
118
|
+
@created_at = created_at unless created_at == SKIP
|
|
119
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Creates an instance of the object from a hash.
|
|
123
|
+
def self.from_hash(hash)
|
|
124
|
+
return nil unless hash
|
|
125
|
+
|
|
126
|
+
# Extract variables from the hash.
|
|
127
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
128
|
+
assignment_scope_id =
|
|
129
|
+
hash.key?('assignmentScopeId') ? hash['assignmentScopeId'] : nil
|
|
130
|
+
creation_scope_id =
|
|
131
|
+
hash.key?('creationScopeId') ? hash['creationScopeId'] : nil
|
|
132
|
+
creation_scope = hash.key?('creationScope') ? hash['creationScope'] : nil
|
|
133
|
+
organization_id =
|
|
134
|
+
hash.key?('organizationId') ? hash['organizationId'] : nil
|
|
135
|
+
created_by = hash.key?('createdBy') ? hash['createdBy'] : nil
|
|
136
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
137
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
138
|
+
assignment_scope =
|
|
139
|
+
hash.key?('assignmentScope') ? hash['assignmentScope'] : SKIP
|
|
140
|
+
created_by_user = User.from_hash(hash['createdByUser']) if hash['createdByUser']
|
|
141
|
+
to_delete = hash.key?('toDelete') ? hash['toDelete'] : SKIP
|
|
142
|
+
created_at = if hash.key?('createdAt')
|
|
143
|
+
(DateTimeHelper.from_rfc3339(hash['createdAt']) if hash['createdAt'])
|
|
144
|
+
else
|
|
145
|
+
SKIP
|
|
146
|
+
end
|
|
147
|
+
updated_at = if hash.key?('updatedAt')
|
|
148
|
+
(DateTimeHelper.from_rfc3339(hash['updatedAt']) if hash['updatedAt'])
|
|
149
|
+
else
|
|
150
|
+
SKIP
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Create object from extracted values.
|
|
154
|
+
ConfigurationApiCreateConfigurationSetResponse.new(name: name,
|
|
155
|
+
assignment_scope_id: assignment_scope_id,
|
|
156
|
+
creation_scope_id: creation_scope_id,
|
|
157
|
+
creation_scope: creation_scope,
|
|
158
|
+
organization_id: organization_id,
|
|
159
|
+
created_by: created_by,
|
|
160
|
+
id: id,
|
|
161
|
+
description: description,
|
|
162
|
+
assignment_scope: assignment_scope,
|
|
163
|
+
created_by_user: created_by_user,
|
|
164
|
+
to_delete: to_delete,
|
|
165
|
+
created_at: created_at,
|
|
166
|
+
updated_at: updated_at)
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
def to_custom_created_at
|
|
170
|
+
DateTimeHelper.to_rfc3339(created_at)
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
def to_custom_updated_at
|
|
174
|
+
DateTimeHelper.to_rfc3339(updated_at)
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Provides a human-readable string representation of the object.
|
|
178
|
+
def to_s
|
|
179
|
+
class_name = self.class.name.split('::').last
|
|
180
|
+
"<#{class_name} id: #{@id}, name: #{@name}, description: #{@description},"\
|
|
181
|
+
" assignment_scope_id: #{@assignment_scope_id}, assignment_scope: #{@assignment_scope},"\
|
|
182
|
+
" creation_scope_id: #{@creation_scope_id}, creation_scope: #{@creation_scope},"\
|
|
183
|
+
" organization_id: #{@organization_id}, created_by: #{@created_by}, created_by_user:"\
|
|
184
|
+
" #{@created_by_user}, to_delete: #{@to_delete}, created_at: #{@created_at}, updated_at:"\
|
|
185
|
+
" #{@updated_at}>"
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
189
|
+
def inspect
|
|
190
|
+
class_name = self.class.name.split('::').last
|
|
191
|
+
"<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, description:"\
|
|
192
|
+
" #{@description.inspect}, assignment_scope_id: #{@assignment_scope_id.inspect},"\
|
|
193
|
+
" assignment_scope: #{@assignment_scope.inspect}, creation_scope_id:"\
|
|
194
|
+
" #{@creation_scope_id.inspect}, creation_scope: #{@creation_scope.inspect},"\
|
|
195
|
+
" organization_id: #{@organization_id.inspect}, created_by: #{@created_by.inspect},"\
|
|
196
|
+
" created_by_user: #{@created_by_user.inspect}, to_delete: #{@to_delete.inspect},"\
|
|
197
|
+
" created_at: #{@created_at.inspect}, updated_at: #{@updated_at.inspect}>"
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
end
|