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,98 @@
|
|
|
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
|
+
# BlueprintApiApprovalPolicyAssignment Model.
|
|
8
|
+
class BlueprintApiApprovalPolicyAssignment < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :scope_id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :blueprint_id
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :hash
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [BlueprintApiApprovalPolicyScope]
|
|
26
|
+
attr_accessor :scope
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :scope_name
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['scope_id'] = 'scopeId'
|
|
36
|
+
@_hash['blueprint_id'] = 'blueprintId'
|
|
37
|
+
@_hash['hash'] = 'hash'
|
|
38
|
+
@_hash['scope'] = 'scope'
|
|
39
|
+
@_hash['scope_name'] = 'scopeName'
|
|
40
|
+
@_hash
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for optional fields
|
|
44
|
+
def self.optionals
|
|
45
|
+
%w[
|
|
46
|
+
hash
|
|
47
|
+
scope_name
|
|
48
|
+
]
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# An array for nullable fields
|
|
52
|
+
def self.nullables
|
|
53
|
+
[]
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def initialize(scope_id:, blueprint_id:, scope:, hash: SKIP,
|
|
57
|
+
scope_name: SKIP)
|
|
58
|
+
@scope_id = scope_id
|
|
59
|
+
@blueprint_id = blueprint_id
|
|
60
|
+
@hash = hash unless hash == SKIP
|
|
61
|
+
@scope = scope
|
|
62
|
+
@scope_name = scope_name unless scope_name == 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_id = hash.key?('scopeId') ? hash['scopeId'] : nil
|
|
71
|
+
blueprint_id = hash.key?('blueprintId') ? hash['blueprintId'] : nil
|
|
72
|
+
scope = hash.key?('scope') ? hash['scope'] : nil
|
|
73
|
+
hash = hash.key?('hash') ? hash['hash'] : SKIP
|
|
74
|
+
scope_name = hash.key?('scopeName') ? hash['scopeName'] : SKIP
|
|
75
|
+
|
|
76
|
+
# Create object from extracted values.
|
|
77
|
+
BlueprintApiApprovalPolicyAssignment.new(scope_id: scope_id,
|
|
78
|
+
blueprint_id: blueprint_id,
|
|
79
|
+
scope: scope,
|
|
80
|
+
hash: hash,
|
|
81
|
+
scope_name: scope_name)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Provides a human-readable string representation of the object.
|
|
85
|
+
def to_s
|
|
86
|
+
class_name = self.class.name.split('::').last
|
|
87
|
+
"<#{class_name} scope_id: #{@scope_id}, blueprint_id: #{@blueprint_id}, hash: #{@hash},"\
|
|
88
|
+
" scope: #{@scope}, scope_name: #{@scope_name}>"
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
92
|
+
def inspect
|
|
93
|
+
class_name = self.class.name.split('::').last
|
|
94
|
+
"<#{class_name} scope_id: #{@scope_id.inspect}, blueprint_id: #{@blueprint_id.inspect},"\
|
|
95
|
+
" hash: #{@hash.inspect}, scope: #{@scope.inspect}, scope_name: #{@scope_name.inspect}>"
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
# BlueprintApiApprovalPolicyAssignmentRequest Model.
|
|
8
|
+
class BlueprintApiApprovalPolicyAssignmentRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [BlueprintApiApprovalPolicyScope]
|
|
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 [String]
|
|
22
|
+
attr_accessor :blueprint_id
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['scope'] = 'scope'
|
|
28
|
+
@_hash['scope_id'] = 'scopeId'
|
|
29
|
+
@_hash['blueprint_id'] = 'blueprintId'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
[]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for nullable fields
|
|
39
|
+
def self.nullables
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def initialize(scope:, scope_id:, blueprint_id:)
|
|
44
|
+
@scope = scope
|
|
45
|
+
@scope_id = scope_id
|
|
46
|
+
@blueprint_id = blueprint_id
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Creates an instance of the object from a hash.
|
|
50
|
+
def self.from_hash(hash)
|
|
51
|
+
return nil unless hash
|
|
52
|
+
|
|
53
|
+
# Extract variables from the hash.
|
|
54
|
+
scope = hash.key?('scope') ? hash['scope'] : nil
|
|
55
|
+
scope_id = hash.key?('scopeId') ? hash['scopeId'] : nil
|
|
56
|
+
blueprint_id = hash.key?('blueprintId') ? hash['blueprintId'] : nil
|
|
57
|
+
|
|
58
|
+
# Create object from extracted values.
|
|
59
|
+
BlueprintApiApprovalPolicyAssignmentRequest.new(scope: scope,
|
|
60
|
+
scope_id: scope_id,
|
|
61
|
+
blueprint_id: blueprint_id)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Provides a human-readable string representation of the object.
|
|
65
|
+
def to_s
|
|
66
|
+
class_name = self.class.name.split('::').last
|
|
67
|
+
"<#{class_name} scope: #{@scope}, scope_id: #{@scope_id}, blueprint_id: #{@blueprint_id}>"
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
71
|
+
def inspect
|
|
72
|
+
class_name = self.class.name.split('::').last
|
|
73
|
+
"<#{class_name} scope: #{@scope.inspect}, scope_id: #{@scope_id.inspect}, blueprint_id:"\
|
|
74
|
+
" #{@blueprint_id.inspect}>"
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
# BlueprintApi.ApprovalPolicyScope.
|
|
8
|
+
class BlueprintApiApprovalPolicyScope
|
|
9
|
+
BLUEPRINT_API_APPROVAL_POLICY_SCOPE = [
|
|
10
|
+
# TODO: Write general description for ORGANIZATION
|
|
11
|
+
ORGANIZATION = 'ORGANIZATION'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for PROJECT
|
|
14
|
+
PROJECT = 'PROJECT'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for BLUEPRINT
|
|
17
|
+
BLUEPRINT = 'BLUEPRINT'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for ENVIRONMENT
|
|
20
|
+
ENVIRONMENT = 'ENVIRONMENT'.freeze
|
|
21
|
+
].freeze
|
|
22
|
+
|
|
23
|
+
def self.validate(value)
|
|
24
|
+
return false if value.nil?
|
|
25
|
+
|
|
26
|
+
BLUEPRINT_API_APPROVAL_POLICY_SCOPE.include?(value)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def self.from_value(value, default_value = ORGANIZATION)
|
|
30
|
+
return default_value if value.nil?
|
|
31
|
+
|
|
32
|
+
str = value.to_s.strip
|
|
33
|
+
|
|
34
|
+
case str.downcase
|
|
35
|
+
when 'organization' then ORGANIZATION
|
|
36
|
+
when 'project' then PROJECT
|
|
37
|
+
when 'blueprint' then BLUEPRINT
|
|
38
|
+
when 'environment' then ENVIRONMENT
|
|
39
|
+
else
|
|
40
|
+
default_value
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,375 @@
|
|
|
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
|
+
# BlueprintApiApprovalPolicyTemplate Model.
|
|
9
|
+
class BlueprintApiApprovalPolicyTemplate < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [Object]
|
|
15
|
+
attr_accessor :type
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for this method
|
|
18
|
+
# @return [Hash[String, Object]]
|
|
19
|
+
attr_accessor :policy_configuration
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :repository
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for this method
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :revision
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for this method
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :path
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for this method
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :token_name
|
|
40
|
+
|
|
41
|
+
# TODO: Write general description for this method
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :token_id
|
|
44
|
+
|
|
45
|
+
# TODO: Write general description for this method
|
|
46
|
+
# @return [Array[BlueprintApiSshKey]]
|
|
47
|
+
attr_accessor :ssh_keys
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for this method
|
|
50
|
+
# @return [Float]
|
|
51
|
+
attr_accessor :github_installation_id
|
|
52
|
+
|
|
53
|
+
# TODO: Write general description for this method
|
|
54
|
+
# @return [String]
|
|
55
|
+
attr_accessor :bitbucket_client_key
|
|
56
|
+
|
|
57
|
+
# TODO: Write general description for this method
|
|
58
|
+
# @return [TrueClass | FalseClass]
|
|
59
|
+
attr_accessor :is_bitbucket_server
|
|
60
|
+
|
|
61
|
+
# TODO: Write general description for this method
|
|
62
|
+
# @return [TrueClass | FalseClass]
|
|
63
|
+
attr_accessor :is_git_lab_enterprise
|
|
64
|
+
|
|
65
|
+
# TODO: Write general description for this method
|
|
66
|
+
# @return [TrueClass | FalseClass]
|
|
67
|
+
attr_accessor :is_git_hub_enterprise
|
|
68
|
+
|
|
69
|
+
# TODO: Write general description for this method
|
|
70
|
+
# @return [TrueClass | FalseClass]
|
|
71
|
+
attr_accessor :is_git_lab
|
|
72
|
+
|
|
73
|
+
# TODO: Write general description for this method
|
|
74
|
+
# @return [TrueClass | FalseClass]
|
|
75
|
+
attr_accessor :is_azure_dev_ops
|
|
76
|
+
|
|
77
|
+
# TODO: Write general description for this method
|
|
78
|
+
# @return [String]
|
|
79
|
+
attr_accessor :vcs_connection_id
|
|
80
|
+
|
|
81
|
+
# TODO: Write general description for this method
|
|
82
|
+
# @return [String]
|
|
83
|
+
attr_accessor :id
|
|
84
|
+
|
|
85
|
+
# TODO: Write general description for this method
|
|
86
|
+
# @return [User]
|
|
87
|
+
attr_accessor :author
|
|
88
|
+
|
|
89
|
+
# TODO: Write general description for this method
|
|
90
|
+
# @return [DateTime]
|
|
91
|
+
attr_accessor :created_at
|
|
92
|
+
|
|
93
|
+
# TODO: Write general description for this method
|
|
94
|
+
# @return [DateTime]
|
|
95
|
+
attr_accessor :updated_at
|
|
96
|
+
|
|
97
|
+
# TODO: Write general description for this method
|
|
98
|
+
# @return [TrueClass | FalseClass]
|
|
99
|
+
attr_accessor :is_deleted
|
|
100
|
+
|
|
101
|
+
# TODO: Write general description for this method
|
|
102
|
+
# @return [String]
|
|
103
|
+
attr_accessor :author_id
|
|
104
|
+
|
|
105
|
+
# TODO: Write general description for this method
|
|
106
|
+
# @return [String]
|
|
107
|
+
attr_accessor :organization_id
|
|
108
|
+
|
|
109
|
+
# TODO: Write general description for this method
|
|
110
|
+
# @return [String]
|
|
111
|
+
attr_accessor :project_id
|
|
112
|
+
|
|
113
|
+
# A mapping from model property names to API property names.
|
|
114
|
+
def self.names
|
|
115
|
+
@_hash = {} if @_hash.nil?
|
|
116
|
+
@_hash['type'] = 'type'
|
|
117
|
+
@_hash['policy_configuration'] = 'policyConfiguration'
|
|
118
|
+
@_hash['name'] = 'name'
|
|
119
|
+
@_hash['repository'] = 'repository'
|
|
120
|
+
@_hash['revision'] = 'revision'
|
|
121
|
+
@_hash['path'] = 'path'
|
|
122
|
+
@_hash['token_name'] = 'tokenName'
|
|
123
|
+
@_hash['token_id'] = 'tokenId'
|
|
124
|
+
@_hash['ssh_keys'] = 'sshKeys'
|
|
125
|
+
@_hash['github_installation_id'] = 'githubInstallationId'
|
|
126
|
+
@_hash['bitbucket_client_key'] = 'bitbucketClientKey'
|
|
127
|
+
@_hash['is_bitbucket_server'] = 'isBitbucketServer'
|
|
128
|
+
@_hash['is_git_lab_enterprise'] = 'isGitLabEnterprise'
|
|
129
|
+
@_hash['is_git_hub_enterprise'] = 'isGitHubEnterprise'
|
|
130
|
+
@_hash['is_git_lab'] = 'isGitLab'
|
|
131
|
+
@_hash['is_azure_dev_ops'] = 'isAzureDevOps'
|
|
132
|
+
@_hash['vcs_connection_id'] = 'vcsConnectionId'
|
|
133
|
+
@_hash['id'] = 'id'
|
|
134
|
+
@_hash['author'] = 'author'
|
|
135
|
+
@_hash['created_at'] = 'createdAt'
|
|
136
|
+
@_hash['updated_at'] = 'updatedAt'
|
|
137
|
+
@_hash['is_deleted'] = 'isDeleted'
|
|
138
|
+
@_hash['author_id'] = 'authorId'
|
|
139
|
+
@_hash['organization_id'] = 'organizationId'
|
|
140
|
+
@_hash['project_id'] = 'projectId'
|
|
141
|
+
@_hash
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# An array for optional fields
|
|
145
|
+
def self.optionals
|
|
146
|
+
%w[
|
|
147
|
+
policy_configuration
|
|
148
|
+
revision
|
|
149
|
+
path
|
|
150
|
+
token_name
|
|
151
|
+
token_id
|
|
152
|
+
ssh_keys
|
|
153
|
+
github_installation_id
|
|
154
|
+
bitbucket_client_key
|
|
155
|
+
is_bitbucket_server
|
|
156
|
+
is_git_lab_enterprise
|
|
157
|
+
is_git_hub_enterprise
|
|
158
|
+
is_git_lab
|
|
159
|
+
is_azure_dev_ops
|
|
160
|
+
vcs_connection_id
|
|
161
|
+
id
|
|
162
|
+
author
|
|
163
|
+
created_at
|
|
164
|
+
updated_at
|
|
165
|
+
is_deleted
|
|
166
|
+
author_id
|
|
167
|
+
project_id
|
|
168
|
+
]
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# An array for nullable fields
|
|
172
|
+
def self.nullables
|
|
173
|
+
%w[
|
|
174
|
+
github_installation_id
|
|
175
|
+
bitbucket_client_key
|
|
176
|
+
vcs_connection_id
|
|
177
|
+
]
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
def initialize(type:, name:, repository:, organization_id:,
|
|
181
|
+
policy_configuration: SKIP, revision: SKIP, path: SKIP,
|
|
182
|
+
token_name: SKIP, token_id: SKIP, ssh_keys: SKIP,
|
|
183
|
+
github_installation_id: SKIP, bitbucket_client_key: SKIP,
|
|
184
|
+
is_bitbucket_server: SKIP, is_git_lab_enterprise: SKIP,
|
|
185
|
+
is_git_hub_enterprise: SKIP, is_git_lab: SKIP,
|
|
186
|
+
is_azure_dev_ops: SKIP, vcs_connection_id: SKIP, id: SKIP,
|
|
187
|
+
author: SKIP, created_at: SKIP, updated_at: SKIP,
|
|
188
|
+
is_deleted: SKIP, author_id: SKIP, project_id: SKIP)
|
|
189
|
+
@type = type
|
|
190
|
+
@policy_configuration = policy_configuration unless policy_configuration == SKIP
|
|
191
|
+
@name = name
|
|
192
|
+
@repository = repository
|
|
193
|
+
@revision = revision unless revision == SKIP
|
|
194
|
+
@path = path unless path == SKIP
|
|
195
|
+
@token_name = token_name unless token_name == SKIP
|
|
196
|
+
@token_id = token_id unless token_id == SKIP
|
|
197
|
+
@ssh_keys = ssh_keys unless ssh_keys == SKIP
|
|
198
|
+
@github_installation_id = github_installation_id unless github_installation_id == SKIP
|
|
199
|
+
@bitbucket_client_key = bitbucket_client_key unless bitbucket_client_key == SKIP
|
|
200
|
+
@is_bitbucket_server = is_bitbucket_server unless is_bitbucket_server == SKIP
|
|
201
|
+
@is_git_lab_enterprise = is_git_lab_enterprise unless is_git_lab_enterprise == SKIP
|
|
202
|
+
@is_git_hub_enterprise = is_git_hub_enterprise unless is_git_hub_enterprise == SKIP
|
|
203
|
+
@is_git_lab = is_git_lab unless is_git_lab == SKIP
|
|
204
|
+
@is_azure_dev_ops = is_azure_dev_ops unless is_azure_dev_ops == SKIP
|
|
205
|
+
@vcs_connection_id = vcs_connection_id unless vcs_connection_id == SKIP
|
|
206
|
+
@id = id unless id == SKIP
|
|
207
|
+
@author = author unless author == SKIP
|
|
208
|
+
@created_at = created_at unless created_at == SKIP
|
|
209
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
210
|
+
@is_deleted = is_deleted unless is_deleted == SKIP
|
|
211
|
+
@author_id = author_id unless author_id == SKIP
|
|
212
|
+
@organization_id = organization_id
|
|
213
|
+
@project_id = project_id unless project_id == SKIP
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Creates an instance of the object from a hash.
|
|
217
|
+
def self.from_hash(hash)
|
|
218
|
+
return nil unless hash
|
|
219
|
+
|
|
220
|
+
# Extract variables from the hash.
|
|
221
|
+
type = hash.key?('type') ? APIHelper.deserialize_union_type(
|
|
222
|
+
UnionTypeLookUp.get(:BlueprintApiApprovalPolicyTemplateType), hash['type']
|
|
223
|
+
) : nil
|
|
224
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
225
|
+
repository = hash.key?('repository') ? hash['repository'] : nil
|
|
226
|
+
organization_id =
|
|
227
|
+
hash.key?('organizationId') ? hash['organizationId'] : nil
|
|
228
|
+
policy_configuration = hash.key?('policyConfiguration') ? APIHelper.deserialize_union_type(
|
|
229
|
+
UnionTypeLookUp.get(:BlueprintApiApprovalPolicyTemplatePolicyConfiguration), hash['policyConfiguration']
|
|
230
|
+
) : SKIP
|
|
231
|
+
revision = hash.key?('revision') ? hash['revision'] : SKIP
|
|
232
|
+
path = hash.key?('path') ? hash['path'] : SKIP
|
|
233
|
+
token_name = hash.key?('tokenName') ? hash['tokenName'] : SKIP
|
|
234
|
+
token_id = hash.key?('tokenId') ? hash['tokenId'] : SKIP
|
|
235
|
+
# Parameter is an array, so we need to iterate through it
|
|
236
|
+
ssh_keys = nil
|
|
237
|
+
unless hash['sshKeys'].nil?
|
|
238
|
+
ssh_keys = []
|
|
239
|
+
hash['sshKeys'].each do |structure|
|
|
240
|
+
ssh_keys << (BlueprintApiSshKey.from_hash(structure) if structure)
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
ssh_keys = SKIP unless hash.key?('sshKeys')
|
|
245
|
+
github_installation_id =
|
|
246
|
+
hash.key?('githubInstallationId') ? hash['githubInstallationId'] : SKIP
|
|
247
|
+
bitbucket_client_key =
|
|
248
|
+
hash.key?('bitbucketClientKey') ? hash['bitbucketClientKey'] : SKIP
|
|
249
|
+
is_bitbucket_server =
|
|
250
|
+
hash.key?('isBitbucketServer') ? hash['isBitbucketServer'] : SKIP
|
|
251
|
+
is_git_lab_enterprise =
|
|
252
|
+
hash.key?('isGitLabEnterprise') ? hash['isGitLabEnterprise'] : SKIP
|
|
253
|
+
is_git_hub_enterprise =
|
|
254
|
+
hash.key?('isGitHubEnterprise') ? hash['isGitHubEnterprise'] : SKIP
|
|
255
|
+
is_git_lab = hash.key?('isGitLab') ? hash['isGitLab'] : SKIP
|
|
256
|
+
is_azure_dev_ops =
|
|
257
|
+
hash.key?('isAzureDevOps') ? hash['isAzureDevOps'] : SKIP
|
|
258
|
+
vcs_connection_id =
|
|
259
|
+
hash.key?('vcsConnectionId') ? hash['vcsConnectionId'] : SKIP
|
|
260
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
261
|
+
author = User.from_hash(hash['author']) if hash['author']
|
|
262
|
+
created_at = if hash.key?('createdAt')
|
|
263
|
+
(DateTimeHelper.from_rfc3339(hash['createdAt']) if hash['createdAt'])
|
|
264
|
+
else
|
|
265
|
+
SKIP
|
|
266
|
+
end
|
|
267
|
+
updated_at = if hash.key?('updatedAt')
|
|
268
|
+
(DateTimeHelper.from_rfc3339(hash['updatedAt']) if hash['updatedAt'])
|
|
269
|
+
else
|
|
270
|
+
SKIP
|
|
271
|
+
end
|
|
272
|
+
is_deleted = hash.key?('isDeleted') ? hash['isDeleted'] : SKIP
|
|
273
|
+
author_id = hash.key?('authorId') ? hash['authorId'] : SKIP
|
|
274
|
+
project_id = hash.key?('projectId') ? hash['projectId'] : SKIP
|
|
275
|
+
|
|
276
|
+
# Create object from extracted values.
|
|
277
|
+
BlueprintApiApprovalPolicyTemplate.new(type: type,
|
|
278
|
+
name: name,
|
|
279
|
+
repository: repository,
|
|
280
|
+
organization_id: organization_id,
|
|
281
|
+
policy_configuration: policy_configuration,
|
|
282
|
+
revision: revision,
|
|
283
|
+
path: path,
|
|
284
|
+
token_name: token_name,
|
|
285
|
+
token_id: token_id,
|
|
286
|
+
ssh_keys: ssh_keys,
|
|
287
|
+
github_installation_id: github_installation_id,
|
|
288
|
+
bitbucket_client_key: bitbucket_client_key,
|
|
289
|
+
is_bitbucket_server: is_bitbucket_server,
|
|
290
|
+
is_git_lab_enterprise: is_git_lab_enterprise,
|
|
291
|
+
is_git_hub_enterprise: is_git_hub_enterprise,
|
|
292
|
+
is_git_lab: is_git_lab,
|
|
293
|
+
is_azure_dev_ops: is_azure_dev_ops,
|
|
294
|
+
vcs_connection_id: vcs_connection_id,
|
|
295
|
+
id: id,
|
|
296
|
+
author: author,
|
|
297
|
+
created_at: created_at,
|
|
298
|
+
updated_at: updated_at,
|
|
299
|
+
is_deleted: is_deleted,
|
|
300
|
+
author_id: author_id,
|
|
301
|
+
project_id: project_id)
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
def to_custom_created_at
|
|
305
|
+
DateTimeHelper.to_rfc3339(created_at)
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
def to_custom_updated_at
|
|
309
|
+
DateTimeHelper.to_rfc3339(updated_at)
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Validates an instance of the object from a given value.
|
|
313
|
+
# @param [BlueprintApiApprovalPolicyTemplate | Hash] The value against the validation is performed.
|
|
314
|
+
def self.validate(value)
|
|
315
|
+
if value.instance_of? self
|
|
316
|
+
return (
|
|
317
|
+
UnionTypeLookUp.get(:BlueprintApiApprovalPolicyTemplateType)
|
|
318
|
+
.validate(value.type) and
|
|
319
|
+
APIHelper.valid_type?(value.name,
|
|
320
|
+
->(val) { val.instance_of? String }) and
|
|
321
|
+
APIHelper.valid_type?(value.repository,
|
|
322
|
+
->(val) { val.instance_of? String }) and
|
|
323
|
+
APIHelper.valid_type?(value.organization_id,
|
|
324
|
+
->(val) { val.instance_of? String })
|
|
325
|
+
)
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
return false unless value.instance_of? Hash
|
|
329
|
+
|
|
330
|
+
(
|
|
331
|
+
UnionTypeLookUp.get(:BlueprintApiApprovalPolicyTemplateType)
|
|
332
|
+
.validate(value['type']) and
|
|
333
|
+
APIHelper.valid_type?(value['name'],
|
|
334
|
+
->(val) { val.instance_of? String }) and
|
|
335
|
+
APIHelper.valid_type?(value['repository'],
|
|
336
|
+
->(val) { val.instance_of? String }) and
|
|
337
|
+
APIHelper.valid_type?(value['organizationId'],
|
|
338
|
+
->(val) { val.instance_of? String })
|
|
339
|
+
)
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Provides a human-readable string representation of the object.
|
|
343
|
+
def to_s
|
|
344
|
+
class_name = self.class.name.split('::').last
|
|
345
|
+
"<#{class_name} type: #{@type}, policy_configuration: #{@policy_configuration}, name:"\
|
|
346
|
+
" #{@name}, repository: #{@repository}, revision: #{@revision}, path: #{@path}, token_name:"\
|
|
347
|
+
" #{@token_name}, token_id: #{@token_id}, ssh_keys: #{@ssh_keys}, github_installation_id:"\
|
|
348
|
+
" #{@github_installation_id}, bitbucket_client_key: #{@bitbucket_client_key},"\
|
|
349
|
+
" is_bitbucket_server: #{@is_bitbucket_server}, is_git_lab_enterprise:"\
|
|
350
|
+
" #{@is_git_lab_enterprise}, is_git_hub_enterprise: #{@is_git_hub_enterprise}, is_git_lab:"\
|
|
351
|
+
" #{@is_git_lab}, is_azure_dev_ops: #{@is_azure_dev_ops}, vcs_connection_id:"\
|
|
352
|
+
" #{@vcs_connection_id}, id: #{@id}, author: #{@author}, created_at: #{@created_at},"\
|
|
353
|
+
" updated_at: #{@updated_at}, is_deleted: #{@is_deleted}, author_id: #{@author_id},"\
|
|
354
|
+
" organization_id: #{@organization_id}, project_id: #{@project_id}>"
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
358
|
+
def inspect
|
|
359
|
+
class_name = self.class.name.split('::').last
|
|
360
|
+
"<#{class_name} type: #{@type.inspect}, policy_configuration:"\
|
|
361
|
+
" #{@policy_configuration.inspect}, name: #{@name.inspect}, repository:"\
|
|
362
|
+
" #{@repository.inspect}, revision: #{@revision.inspect}, path: #{@path.inspect},"\
|
|
363
|
+
" token_name: #{@token_name.inspect}, token_id: #{@token_id.inspect}, ssh_keys:"\
|
|
364
|
+
" #{@ssh_keys.inspect}, github_installation_id: #{@github_installation_id.inspect},"\
|
|
365
|
+
" bitbucket_client_key: #{@bitbucket_client_key.inspect}, is_bitbucket_server:"\
|
|
366
|
+
" #{@is_bitbucket_server.inspect}, is_git_lab_enterprise: #{@is_git_lab_enterprise.inspect},"\
|
|
367
|
+
" is_git_hub_enterprise: #{@is_git_hub_enterprise.inspect}, is_git_lab:"\
|
|
368
|
+
" #{@is_git_lab.inspect}, is_azure_dev_ops: #{@is_azure_dev_ops.inspect}, vcs_connection_id:"\
|
|
369
|
+
" #{@vcs_connection_id.inspect}, id: #{@id.inspect}, author: #{@author.inspect}, created_at:"\
|
|
370
|
+
" #{@created_at.inspect}, updated_at: #{@updated_at.inspect}, is_deleted:"\
|
|
371
|
+
" #{@is_deleted.inspect}, author_id: #{@author_id.inspect}, organization_id:"\
|
|
372
|
+
" #{@organization_id.inspect}, project_id: #{@project_id.inspect}>"
|
|
373
|
+
end
|
|
374
|
+
end
|
|
375
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
# BlueprintApiApprovalPolicyTemplateWithScope Model.
|
|
8
|
+
class BlueprintApiApprovalPolicyTemplateWithScope < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [BlueprintApiApprovalPolicyScope]
|
|
18
|
+
attr_accessor :scope
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :scope_id
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [BlueprintApiApprovalPolicyTemplate]
|
|
26
|
+
attr_accessor :blueprint
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :created_at
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['id'] = 'id'
|
|
36
|
+
@_hash['scope'] = 'scope'
|
|
37
|
+
@_hash['scope_id'] = 'scopeId'
|
|
38
|
+
@_hash['blueprint'] = 'blueprint'
|
|
39
|
+
@_hash['created_at'] = 'createdAt'
|
|
40
|
+
@_hash
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for optional fields
|
|
44
|
+
def self.optionals
|
|
45
|
+
[]
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# An array for nullable fields
|
|
49
|
+
def self.nullables
|
|
50
|
+
[]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def initialize(id:, scope:, scope_id:, blueprint:, created_at:)
|
|
54
|
+
@id = id
|
|
55
|
+
@scope = scope
|
|
56
|
+
@scope_id = scope_id
|
|
57
|
+
@blueprint = blueprint
|
|
58
|
+
@created_at = created_at
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Creates an instance of the object from a hash.
|
|
62
|
+
def self.from_hash(hash)
|
|
63
|
+
return nil unless hash
|
|
64
|
+
|
|
65
|
+
# Extract variables from the hash.
|
|
66
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
67
|
+
scope = hash.key?('scope') ? hash['scope'] : nil
|
|
68
|
+
scope_id = hash.key?('scopeId') ? hash['scopeId'] : nil
|
|
69
|
+
blueprint = BlueprintApiApprovalPolicyTemplate.from_hash(hash['blueprint']) if
|
|
70
|
+
hash['blueprint']
|
|
71
|
+
created_at = hash.key?('createdAt') ? hash['createdAt'] : nil
|
|
72
|
+
|
|
73
|
+
# Create object from extracted values.
|
|
74
|
+
BlueprintApiApprovalPolicyTemplateWithScope.new(id: id,
|
|
75
|
+
scope: scope,
|
|
76
|
+
scope_id: scope_id,
|
|
77
|
+
blueprint: blueprint,
|
|
78
|
+
created_at: created_at)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Provides a human-readable string representation of the object.
|
|
82
|
+
def to_s
|
|
83
|
+
class_name = self.class.name.split('::').last
|
|
84
|
+
"<#{class_name} id: #{@id}, scope: #{@scope}, scope_id: #{@scope_id}, blueprint:"\
|
|
85
|
+
" #{@blueprint}, created_at: #{@created_at}>"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
89
|
+
def inspect
|
|
90
|
+
class_name = self.class.name.split('::').last
|
|
91
|
+
"<#{class_name} id: #{@id.inspect}, scope: #{@scope.inspect}, scope_id:"\
|
|
92
|
+
" #{@scope_id.inspect}, blueprint: #{@blueprint.inspect}, created_at:"\
|
|
93
|
+
" #{@created_at.inspect}>"
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|