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,297 @@
|
|
|
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
|
+
# BulkOperationsApi
|
|
8
|
+
class BulkOperationsApi < BaseApi
|
|
9
|
+
# Applies the same tags to every selected environment - a key that already
|
|
10
|
+
# exists has its values replaced wholesale, and keys that are not listed are
|
|
11
|
+
# left untouched
|
|
12
|
+
# @param [BulkOperationsApiBulkAddTagsRequestBody] body Required parameter:
|
|
13
|
+
# TODO: type description here
|
|
14
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
15
|
+
def bulk_operations_bulk_add_tags(body)
|
|
16
|
+
@api_call
|
|
17
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
18
|
+
'/bulk-operations/add-tags',
|
|
19
|
+
Server::DEFAULT)
|
|
20
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
21
|
+
.body_param(new_parameter(body)
|
|
22
|
+
.is_required(true))
|
|
23
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
24
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
25
|
+
.auth(Single.new('env0_API_Key')))
|
|
26
|
+
.response(new_response_handler
|
|
27
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
28
|
+
.deserialize_into(BulkOperationsApiBulkAddTagsResponse.method(:from_hash))
|
|
29
|
+
.is_api_response(true)
|
|
30
|
+
.local_error('401',
|
|
31
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
32
|
+
' invalid.',
|
|
33
|
+
ErrorException)
|
|
34
|
+
.local_error('403',
|
|
35
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
36
|
+
' the route does not exist for the caller.',
|
|
37
|
+
ErrorException))
|
|
38
|
+
.execute
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Marks each of the given environments as inactive. Returns an
|
|
42
|
+
# `operationId`; poll `GET /bulk-operations/{operationId}` for the
|
|
43
|
+
# per-environment outcome.
|
|
44
|
+
# @param [BulkOperationsApiBulkArchiveRequestBody] body Required parameter:
|
|
45
|
+
# TODO: type description here
|
|
46
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
47
|
+
def bulk_operations_bulk_archive(body)
|
|
48
|
+
@api_call
|
|
49
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
50
|
+
'/bulk-operations/archive',
|
|
51
|
+
Server::DEFAULT)
|
|
52
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
53
|
+
.body_param(new_parameter(body)
|
|
54
|
+
.is_required(true))
|
|
55
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
56
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
57
|
+
.auth(Single.new('env0_API_Key')))
|
|
58
|
+
.response(new_response_handler
|
|
59
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
60
|
+
.deserialize_into(BulkOperationsApiBulkArchiveResponse.method(:from_hash))
|
|
61
|
+
.is_api_response(true)
|
|
62
|
+
.local_error('401',
|
|
63
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
64
|
+
' invalid.',
|
|
65
|
+
ErrorException)
|
|
66
|
+
.local_error('403',
|
|
67
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
68
|
+
' the route does not exist for the caller.',
|
|
69
|
+
ErrorException))
|
|
70
|
+
.execute
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Triggers a deployment on each of the given environments, using the shared
|
|
74
|
+
# deployment options in `data`. Returns an `operationId`; poll `GET
|
|
75
|
+
# /bulk-operations/{operationId}` for the per-environment outcome.
|
|
76
|
+
# Environments the caller cannot deploy are reported there rather than
|
|
77
|
+
# failing the request.
|
|
78
|
+
# @param [BulkOperationsApiBulkDeployRequestBody] body Required parameter:
|
|
79
|
+
# TODO: type description here
|
|
80
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
81
|
+
def bulk_operations_bulk_deploy(body)
|
|
82
|
+
@api_call
|
|
83
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
84
|
+
'/bulk-operations/deploy',
|
|
85
|
+
Server::DEFAULT)
|
|
86
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
87
|
+
.body_param(new_parameter(body)
|
|
88
|
+
.is_required(true))
|
|
89
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
90
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
91
|
+
.auth(Single.new('env0_API_Key')))
|
|
92
|
+
.response(new_response_handler
|
|
93
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
94
|
+
.deserialize_into(BulkOperationsApiBulkDeployResponse.method(:from_hash))
|
|
95
|
+
.is_api_response(true)
|
|
96
|
+
.local_error('401',
|
|
97
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
98
|
+
' invalid.',
|
|
99
|
+
ErrorException)
|
|
100
|
+
.local_error('403',
|
|
101
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
102
|
+
' the route does not exist for the caller.',
|
|
103
|
+
ErrorException))
|
|
104
|
+
.execute
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Destroys each of the given environments, using the shared options in
|
|
108
|
+
# `data`. Returns an `operationId`; poll `GET
|
|
109
|
+
# /bulk-operations/{operationId}` for the per-environment outcome. This is
|
|
110
|
+
# destructive and affects every listed environment.
|
|
111
|
+
# @param [BulkOperationsApiBulkDestroyRequestBody] body Required parameter:
|
|
112
|
+
# TODO: type description here
|
|
113
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
114
|
+
def bulk_operations_bulk_destroy(body)
|
|
115
|
+
@api_call
|
|
116
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
117
|
+
'/bulk-operations/destroy',
|
|
118
|
+
Server::DEFAULT)
|
|
119
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
120
|
+
.body_param(new_parameter(body)
|
|
121
|
+
.is_required(true))
|
|
122
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
123
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
124
|
+
.auth(Single.new('env0_API_Key')))
|
|
125
|
+
.response(new_response_handler
|
|
126
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
127
|
+
.deserialize_into(BulkOperationsApiBulkDestroyResponse.method(:from_hash))
|
|
128
|
+
.is_api_response(true)
|
|
129
|
+
.local_error('401',
|
|
130
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
131
|
+
' invalid.',
|
|
132
|
+
ErrorException)
|
|
133
|
+
.local_error('403',
|
|
134
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
135
|
+
' the route does not exist for the caller.',
|
|
136
|
+
ErrorException))
|
|
137
|
+
.execute
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Locks each of the given environments, using the shared lock options in
|
|
141
|
+
# `data`, preventing deploy, destroy, plan and drift detection from running
|
|
142
|
+
# on them. Returns an `operationId`; poll `GET
|
|
143
|
+
# /bulk-operations/{operationId}` for the per-environment outcome.
|
|
144
|
+
# @param [BulkOperationsApiBulkLockRequestBody] body Required parameter:
|
|
145
|
+
# TODO: type description here
|
|
146
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
147
|
+
def bulk_operations_bulk_lock(body)
|
|
148
|
+
@api_call
|
|
149
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
150
|
+
'/bulk-operations/lock',
|
|
151
|
+
Server::DEFAULT)
|
|
152
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
153
|
+
.body_param(new_parameter(body)
|
|
154
|
+
.is_required(true))
|
|
155
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
156
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
157
|
+
.auth(Single.new('env0_API_Key')))
|
|
158
|
+
.response(new_response_handler
|
|
159
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
160
|
+
.deserialize_into(BulkOperationsApiBulkLockResponse.method(:from_hash))
|
|
161
|
+
.is_api_response(true)
|
|
162
|
+
.local_error('401',
|
|
163
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
164
|
+
' invalid.',
|
|
165
|
+
ErrorException)
|
|
166
|
+
.local_error('403',
|
|
167
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
168
|
+
' the route does not exist for the caller.',
|
|
169
|
+
ErrorException))
|
|
170
|
+
.execute
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Removes the listed tag keys, values and all, from every selected
|
|
174
|
+
# environment - a key an environment does not carry is a no-op
|
|
175
|
+
# @param [BulkOperationsApiBulkRemoveTagsRequestBody] body Required
|
|
176
|
+
# parameter: TODO: type description here
|
|
177
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
178
|
+
def bulk_operations_bulk_remove_tags(body)
|
|
179
|
+
@api_call
|
|
180
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
181
|
+
'/bulk-operations/remove-tags',
|
|
182
|
+
Server::DEFAULT)
|
|
183
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
184
|
+
.body_param(new_parameter(body)
|
|
185
|
+
.is_required(true))
|
|
186
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
187
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
188
|
+
.auth(Single.new('env0_API_Key')))
|
|
189
|
+
.response(new_response_handler
|
|
190
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
191
|
+
.deserialize_into(BulkOperationsApiBulkRemoveTagsResponse.method(:from_hash))
|
|
192
|
+
.is_api_response(true)
|
|
193
|
+
.local_error('401',
|
|
194
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
195
|
+
' invalid.',
|
|
196
|
+
ErrorException)
|
|
197
|
+
.local_error('403',
|
|
198
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
199
|
+
' the route does not exist for the caller.',
|
|
200
|
+
ErrorException))
|
|
201
|
+
.execute
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Runs a task on each of the given environments, using the shared task
|
|
205
|
+
# options in `data`. Returns an `operationId`; poll `GET
|
|
206
|
+
# /bulk-operations/{operationId}` for the per-environment outcome.
|
|
207
|
+
# @param [BulkOperationsApiBulkRunTaskRequestBody] body Required parameter:
|
|
208
|
+
# TODO: type description here
|
|
209
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
210
|
+
def bulk_operations_bulk_run_task(body)
|
|
211
|
+
@api_call
|
|
212
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
213
|
+
'/bulk-operations/run-task',
|
|
214
|
+
Server::DEFAULT)
|
|
215
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
216
|
+
.body_param(new_parameter(body)
|
|
217
|
+
.is_required(true))
|
|
218
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
219
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
220
|
+
.auth(Single.new('env0_API_Key')))
|
|
221
|
+
.response(new_response_handler
|
|
222
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
223
|
+
.deserialize_into(BulkOperationsApiBulkRunTaskResponse.method(:from_hash))
|
|
224
|
+
.is_api_response(true)
|
|
225
|
+
.local_error('401',
|
|
226
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
227
|
+
' invalid.',
|
|
228
|
+
ErrorException)
|
|
229
|
+
.local_error('403',
|
|
230
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
231
|
+
' the route does not exist for the caller.',
|
|
232
|
+
ErrorException))
|
|
233
|
+
.execute
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# Unlocks each of the given environments. Returns an `operationId`; poll
|
|
237
|
+
# `GET /bulk-operations/{operationId}` for the per-environment outcome.
|
|
238
|
+
# @param [BulkOperationsApiBulkUnlockRequestBody] body Required parameter:
|
|
239
|
+
# TODO: type description here
|
|
240
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
241
|
+
def bulk_operations_bulk_unlock(body)
|
|
242
|
+
@api_call
|
|
243
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
244
|
+
'/bulk-operations/unlock',
|
|
245
|
+
Server::DEFAULT)
|
|
246
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
247
|
+
.body_param(new_parameter(body)
|
|
248
|
+
.is_required(true))
|
|
249
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
250
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
251
|
+
.auth(Single.new('env0_API_Key')))
|
|
252
|
+
.response(new_response_handler
|
|
253
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
254
|
+
.deserialize_into(BulkOperationsApiBulkUnlockResponse.method(:from_hash))
|
|
255
|
+
.is_api_response(true)
|
|
256
|
+
.local_error('401',
|
|
257
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
258
|
+
' invalid.',
|
|
259
|
+
ErrorException)
|
|
260
|
+
.local_error('403',
|
|
261
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
262
|
+
' the route does not exist for the caller.',
|
|
263
|
+
ErrorException))
|
|
264
|
+
.execute
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
# Returns the per-environment status of a bulk operation - only the user who
|
|
268
|
+
# triggered it may read it
|
|
269
|
+
# @param [String] operation_id Required parameter: TODO: type description
|
|
270
|
+
# here
|
|
271
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
272
|
+
def bulk_operations_get_bulk_operation(operation_id)
|
|
273
|
+
@api_call
|
|
274
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
275
|
+
'/bulk-operations/{operationId}',
|
|
276
|
+
Server::DEFAULT)
|
|
277
|
+
.template_param(new_parameter(operation_id, key: 'operationId')
|
|
278
|
+
.is_required(true)
|
|
279
|
+
.should_encode(true))
|
|
280
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
281
|
+
.auth(Single.new('env0_API_Key')))
|
|
282
|
+
.response(new_response_handler
|
|
283
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
284
|
+
.deserialize_into(BulkOperationsApiGetBulkOperationResponse.method(:from_hash))
|
|
285
|
+
.is_api_response(true)
|
|
286
|
+
.local_error('401',
|
|
287
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
288
|
+
' invalid.',
|
|
289
|
+
ErrorException)
|
|
290
|
+
.local_error('403',
|
|
291
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
292
|
+
' the route does not exist for the caller.',
|
|
293
|
+
ErrorException))
|
|
294
|
+
.execute
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
end
|
|
@@ -0,0 +1,311 @@
|
|
|
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
|
+
# ConfigurationApi
|
|
8
|
+
class ConfigurationApi < BaseApi
|
|
9
|
+
# Assigns the configuration sets named in `setIds` to the given scope, so
|
|
10
|
+
# their variables apply to deployments there. Returns no content.
|
|
11
|
+
# @param [String] scope Required parameter: TODO: type description here
|
|
12
|
+
# @param [String] scope_id Required parameter: TODO: type description here
|
|
13
|
+
# @param [String] set_ids Required parameter: TODO: type description here
|
|
14
|
+
# @param [Object] body Required parameter: TODO: type description here
|
|
15
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
16
|
+
def configuration_assign_configuration_sets_to_scope(scope,
|
|
17
|
+
scope_id,
|
|
18
|
+
set_ids,
|
|
19
|
+
body)
|
|
20
|
+
@api_call
|
|
21
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
22
|
+
'/configuration-sets/assignments/{scope}/{scopeId}',
|
|
23
|
+
Server::DEFAULT)
|
|
24
|
+
.template_param(new_parameter(scope, key: 'scope')
|
|
25
|
+
.is_required(true)
|
|
26
|
+
.should_encode(true))
|
|
27
|
+
.template_param(new_parameter(scope_id, key: 'scopeId')
|
|
28
|
+
.is_required(true)
|
|
29
|
+
.should_encode(true))
|
|
30
|
+
.query_param(new_parameter(set_ids, key: 'setIds')
|
|
31
|
+
.is_required(true))
|
|
32
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
33
|
+
.body_param(new_parameter(body)
|
|
34
|
+
.is_required(true))
|
|
35
|
+
.body_serializer(APIHelper.method(:json_serialize))
|
|
36
|
+
.auth(Single.new('env0_API_Key')))
|
|
37
|
+
.response(new_response_handler
|
|
38
|
+
.is_nullable_response(true)
|
|
39
|
+
.is_response_void(true)
|
|
40
|
+
.is_api_response(true)
|
|
41
|
+
.local_error('401',
|
|
42
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
43
|
+
' invalid.',
|
|
44
|
+
ErrorException)
|
|
45
|
+
.local_error('403',
|
|
46
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
47
|
+
' the route does not exist for the caller.',
|
|
48
|
+
ErrorException))
|
|
49
|
+
.execute
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Returns the configuration sets assigned to the given scope.
|
|
53
|
+
# @param [String] scope Required parameter: TODO: type description here
|
|
54
|
+
# @param [String] scope_id Required parameter: TODO: type description here
|
|
55
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
56
|
+
def configuration_find_set_assignments_by_scope(scope,
|
|
57
|
+
scope_id)
|
|
58
|
+
@api_call
|
|
59
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
60
|
+
'/configuration-sets/assignments/{scope}/{scopeId}',
|
|
61
|
+
Server::DEFAULT)
|
|
62
|
+
.template_param(new_parameter(scope, key: 'scope')
|
|
63
|
+
.is_required(true)
|
|
64
|
+
.should_encode(true))
|
|
65
|
+
.template_param(new_parameter(scope_id, key: 'scopeId')
|
|
66
|
+
.is_required(true)
|
|
67
|
+
.should_encode(true))
|
|
68
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
69
|
+
.auth(Single.new('env0_API_Key')))
|
|
70
|
+
.response(new_response_handler
|
|
71
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
72
|
+
.deserialize_into(ConfigurationSet.method(:from_hash))
|
|
73
|
+
.is_api_response(true)
|
|
74
|
+
.is_response_array(true)
|
|
75
|
+
.local_error('401',
|
|
76
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
77
|
+
' invalid.',
|
|
78
|
+
ErrorException)
|
|
79
|
+
.local_error('403',
|
|
80
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
81
|
+
' the route does not exist for the caller.',
|
|
82
|
+
ErrorException))
|
|
83
|
+
.execute
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Creates a configuration set - a reusable, named group of variables that
|
|
87
|
+
# can be assigned to templates, projects or environments. `name`, `scope`
|
|
88
|
+
# and `scopeId` are required. Returns the created set.
|
|
89
|
+
# @param [ConfigurationApiCreateConfigurationSetRequestBody] body Required
|
|
90
|
+
# parameter: TODO: type description here
|
|
91
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
92
|
+
def configuration_create_configuration_set(body)
|
|
93
|
+
@api_call
|
|
94
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
95
|
+
'/configuration-sets',
|
|
96
|
+
Server::DEFAULT)
|
|
97
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
98
|
+
.body_param(new_parameter(body)
|
|
99
|
+
.is_required(true))
|
|
100
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
101
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
102
|
+
.auth(Single.new('env0_API_Key')))
|
|
103
|
+
.response(new_response_handler
|
|
104
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
105
|
+
.deserialize_into(ConfigurationApiCreateConfigurationSetResponse.method(:from_hash))
|
|
106
|
+
.is_api_response(true)
|
|
107
|
+
.local_error('401',
|
|
108
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
109
|
+
' invalid.',
|
|
110
|
+
ErrorException)
|
|
111
|
+
.local_error('403',
|
|
112
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
113
|
+
' the route does not exist for the caller.',
|
|
114
|
+
ErrorException))
|
|
115
|
+
.execute
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Returns the configuration sets created at the given scope. Set
|
|
119
|
+
# `includeHigherScopes` to also return sets created at scopes above it.
|
|
120
|
+
# @param [String] scope Required parameter: TODO: type description here
|
|
121
|
+
# @param [String] scope_id Required parameter: TODO: type description here
|
|
122
|
+
# @param [String] include_higher_scopes Optional parameter: TODO: type
|
|
123
|
+
# description here
|
|
124
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
125
|
+
def configuration_find_sets_by_creation_scope(scope,
|
|
126
|
+
scope_id,
|
|
127
|
+
include_higher_scopes: nil)
|
|
128
|
+
@api_call
|
|
129
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
130
|
+
'/configuration-sets',
|
|
131
|
+
Server::DEFAULT)
|
|
132
|
+
.query_param(new_parameter(scope, key: 'scope')
|
|
133
|
+
.is_required(true))
|
|
134
|
+
.query_param(new_parameter(scope_id, key: 'scopeId')
|
|
135
|
+
.is_required(true))
|
|
136
|
+
.query_param(new_parameter(include_higher_scopes, key: 'includeHigherScopes'))
|
|
137
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
138
|
+
.auth(Single.new('env0_API_Key')))
|
|
139
|
+
.response(new_response_handler
|
|
140
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
141
|
+
.deserialize_into(ConfigurationSet.method(:from_hash))
|
|
142
|
+
.is_api_response(true)
|
|
143
|
+
.is_response_array(true)
|
|
144
|
+
.local_error('401',
|
|
145
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
146
|
+
' invalid.',
|
|
147
|
+
ErrorException)
|
|
148
|
+
.local_error('403',
|
|
149
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
150
|
+
' the route does not exist for the caller.',
|
|
151
|
+
ErrorException))
|
|
152
|
+
.execute
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Creates or updates configuration variables. Variables are resolved through
|
|
156
|
+
# env zero's scope hierarchy, so a variable set at a lower scope overrides
|
|
157
|
+
# the same variable set higher up. Returns the resulting variables.
|
|
158
|
+
# @param [Array[ConfigurationPropertyRequest]] body Required parameter:
|
|
159
|
+
# TODO: type description here
|
|
160
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
161
|
+
def configuration_create_or_update_variable(body)
|
|
162
|
+
@api_call
|
|
163
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
164
|
+
'/configuration',
|
|
165
|
+
Server::DEFAULT)
|
|
166
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
167
|
+
.body_param(new_parameter(body)
|
|
168
|
+
.is_required(true))
|
|
169
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
170
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
171
|
+
.auth(Single.new('env0_API_Key')))
|
|
172
|
+
.response(new_response_handler
|
|
173
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
174
|
+
.deserialize_into(ConfigurationPropertyResponse.method(:from_hash))
|
|
175
|
+
.is_api_response(true)
|
|
176
|
+
.is_response_array(true)
|
|
177
|
+
.local_error('401',
|
|
178
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
179
|
+
' invalid.',
|
|
180
|
+
ErrorException)
|
|
181
|
+
.local_error('403',
|
|
182
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
183
|
+
' the route does not exist for the caller.',
|
|
184
|
+
ErrorException))
|
|
185
|
+
.execute
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Lists all variables for the provided scope(s).
|
|
189
|
+
# If more than one scope is given - variables will be overridden by lower
|
|
190
|
+
# level scopes - just like env zero does.
|
|
191
|
+
# For example - Provided both organizationId and projectId,
|
|
192
|
+
# if a variable exists on both scopes, a single instance of it will be
|
|
193
|
+
# returned, with its Project scope value
|
|
194
|
+
# @param [String] organization_id Required parameter: Used for querying
|
|
195
|
+
# variables defined on organization level
|
|
196
|
+
# @param [String] project_id Optional parameter: Used for querying variables
|
|
197
|
+
# defined on project level
|
|
198
|
+
# @param [String] blueprint_id Optional parameter: Used for querying
|
|
199
|
+
# variables defined on blueprint level
|
|
200
|
+
# @param [String] environment_id Optional parameter: Used for querying
|
|
201
|
+
# variables defined on environment level
|
|
202
|
+
# @param [String] deployment_log_id Optional parameter: Used for querying
|
|
203
|
+
# variables defined for a specific deployment
|
|
204
|
+
# @param [String] workflow_environment_id Optional parameter: Used for
|
|
205
|
+
# querying variables defined on workflow environment level
|
|
206
|
+
# @param [String] workflow_blueprint_id Optional parameter: Used for
|
|
207
|
+
# querying variables defined on workflow blueprint level
|
|
208
|
+
# @param [String] workflow_blueprint_id_sub_alias Optional parameter: Used
|
|
209
|
+
# for querying sub environment blueprint variables, constructed as
|
|
210
|
+
# {workflowBlueprintId}:{subAlias}
|
|
211
|
+
# @param [String] set_id Optional parameter: Used for querying variables
|
|
212
|
+
# defined in a configuration set
|
|
213
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
214
|
+
def configuration_find_variables_by_scope(organization_id,
|
|
215
|
+
project_id: nil,
|
|
216
|
+
blueprint_id: nil,
|
|
217
|
+
environment_id: nil,
|
|
218
|
+
deployment_log_id: nil,
|
|
219
|
+
workflow_environment_id: nil,
|
|
220
|
+
workflow_blueprint_id: nil,
|
|
221
|
+
workflow_blueprint_id_sub_alias: nil,
|
|
222
|
+
set_id: nil)
|
|
223
|
+
@api_call
|
|
224
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
225
|
+
'/configuration',
|
|
226
|
+
Server::DEFAULT)
|
|
227
|
+
.query_param(new_parameter(organization_id, key: 'organizationId')
|
|
228
|
+
.is_required(true))
|
|
229
|
+
.query_param(new_parameter(project_id, key: 'projectId'))
|
|
230
|
+
.query_param(new_parameter(blueprint_id, key: 'blueprintId'))
|
|
231
|
+
.query_param(new_parameter(environment_id, key: 'environmentId'))
|
|
232
|
+
.query_param(new_parameter(deployment_log_id, key: 'deploymentLogId'))
|
|
233
|
+
.query_param(new_parameter(workflow_environment_id, key: 'workflowEnvironmentId'))
|
|
234
|
+
.query_param(new_parameter(workflow_blueprint_id, key: 'workflowBlueprintId'))
|
|
235
|
+
.query_param(new_parameter(workflow_blueprint_id_sub_alias, key: 'workflowBlueprintIdSubAlias'))
|
|
236
|
+
.query_param(new_parameter(set_id, key: 'setId'))
|
|
237
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
238
|
+
.auth(Single.new('env0_API_Key')))
|
|
239
|
+
.response(new_response_handler
|
|
240
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
241
|
+
.deserialize_into(ConfigurationApiFindVariablesByScopeOverridingConfigurationProperty.method(:from_hash))
|
|
242
|
+
.is_api_response(true)
|
|
243
|
+
.is_response_array(true)
|
|
244
|
+
.local_error('401',
|
|
245
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
246
|
+
' invalid.',
|
|
247
|
+
ErrorException)
|
|
248
|
+
.local_error('403',
|
|
249
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
250
|
+
' the route does not exist for the caller.',
|
|
251
|
+
ErrorException))
|
|
252
|
+
.execute
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Deletes a configuration variable by id.
|
|
256
|
+
# @param [String] id Required parameter: TODO: type description here
|
|
257
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
258
|
+
def configuration_delete_variable(id)
|
|
259
|
+
@api_call
|
|
260
|
+
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
261
|
+
'/configuration/{id}',
|
|
262
|
+
Server::DEFAULT)
|
|
263
|
+
.template_param(new_parameter(id, key: 'id')
|
|
264
|
+
.is_required(true)
|
|
265
|
+
.should_encode(true))
|
|
266
|
+
.auth(Single.new('env0_API_Key')))
|
|
267
|
+
.response(new_response_handler
|
|
268
|
+
.is_response_void(true)
|
|
269
|
+
.is_api_response(true)
|
|
270
|
+
.local_error('401',
|
|
271
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
272
|
+
' invalid.',
|
|
273
|
+
ErrorException)
|
|
274
|
+
.local_error('403',
|
|
275
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
276
|
+
' the route does not exist for the caller.',
|
|
277
|
+
ErrorException))
|
|
278
|
+
.execute
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# Returns a single configuration variable by id, including its scope, type,
|
|
282
|
+
# value, and whether it is sensitive, read-only or required. The value of a
|
|
283
|
+
# sensitive variable is not returned.
|
|
284
|
+
# @param [String] id Required parameter: TODO: type description here
|
|
285
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
286
|
+
def configuration_find_variable_by_id(id)
|
|
287
|
+
@api_call
|
|
288
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
289
|
+
'/configuration/{id}',
|
|
290
|
+
Server::DEFAULT)
|
|
291
|
+
.template_param(new_parameter(id, key: 'id')
|
|
292
|
+
.is_required(true)
|
|
293
|
+
.should_encode(true))
|
|
294
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
295
|
+
.auth(Single.new('env0_API_Key')))
|
|
296
|
+
.response(new_response_handler
|
|
297
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
298
|
+
.deserialize_into(ConfigurationApiFindVariableByIdResponse.method(:from_hash))
|
|
299
|
+
.is_api_response(true)
|
|
300
|
+
.local_error('401',
|
|
301
|
+
'Authentication failed - the API key ID or secret is missing or'\
|
|
302
|
+
' invalid.',
|
|
303
|
+
ErrorException)
|
|
304
|
+
.local_error('403',
|
|
305
|
+
'The authenticated key lacks permission for this resource, or'\
|
|
306
|
+
' the route does not exist for the caller.',
|
|
307
|
+
ErrorException))
|
|
308
|
+
.execute
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
end
|