├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── NOTICE ├── README.md ├── examples └── cloud_account │ └── cloud_account.go ├── go.mod ├── go.sum ├── hack ├── fix_blueprint_swagger ├── fix_catalog_deployment_swagger ├── fix_cmx_swagger ├── fix_iaas_swagger ├── fix_pipeline_swagger ├── fix_project_swagger ├── fix_relocation_swagger ├── fix_vra_swagger └── fixup.sh ├── main.go ├── pkg ├── client │ ├── about │ │ ├── about_client.go │ │ ├── get_about_page_mixin5_parameters.go │ │ ├── get_about_page_mixin5_responses.go │ │ ├── get_about_page_parameters.go │ │ ├── get_about_page_responses.go │ │ ├── get_about_using_get1_parameters.go │ │ ├── get_about_using_get1_responses.go │ │ ├── get_about_using_get_parameters.go │ │ ├── get_about_using_get_responses.go │ │ ├── handle_get_about_using_get_parameters.go │ │ └── handle_get_about_using_get_responses.go │ ├── about_the_service │ │ ├── about_parameters.go │ │ ├── about_responses.go │ │ └── about_the_service_client.go │ ├── blueprint │ │ ├── blueprint_client.go │ │ ├── create_blueprint_using_post1_parameters.go │ │ ├── create_blueprint_using_post1_responses.go │ │ ├── create_blueprint_version_using_post1_parameters.go │ │ ├── create_blueprint_version_using_post1_responses.go │ │ ├── delete_blueprint_using_delete1_parameters.go │ │ ├── delete_blueprint_using_delete1_responses.go │ │ ├── get_blueprint_inputs_schema_using_get1_parameters.go │ │ ├── get_blueprint_inputs_schema_using_get1_responses.go │ │ ├── get_blueprint_using_get1_parameters.go │ │ ├── get_blueprint_using_get1_responses.go │ │ ├── get_blueprint_version_inputs_schema_using_get1_parameters.go │ │ ├── get_blueprint_version_inputs_schema_using_get1_responses.go │ │ ├── get_blueprint_version_using_get1_parameters.go │ │ ├── get_blueprint_version_using_get1_responses.go │ │ ├── list_blueprint_versions_using_get_parameters.go │ │ ├── list_blueprint_versions_using_get_responses.go │ │ ├── list_blueprints_using_get1_parameters.go │ │ ├── list_blueprints_using_get1_responses.go │ │ ├── release_blueprint_version_using_post1_parameters.go │ │ ├── release_blueprint_version_using_post1_responses.go │ │ ├── restore_blueprint_version_using_post1_parameters.go │ │ ├── restore_blueprint_version_using_post1_responses.go │ │ ├── un_release_blueprint_version_using_post1_parameters.go │ │ ├── un_release_blueprint_version_using_post1_responses.go │ │ ├── update_blueprint_using_put1_parameters.go │ │ └── update_blueprint_using_put1_responses.go │ ├── blueprint_requests │ │ ├── blueprint_requests_client.go │ │ ├── cancel_blueprint_request_using_post_parameters.go │ │ ├── cancel_blueprint_request_using_post_responses.go │ │ ├── create_blueprint_request_using_post1_parameters.go │ │ ├── create_blueprint_request_using_post1_responses.go │ │ ├── delete_blueprint_request_using_delete1_parameters.go │ │ ├── delete_blueprint_request_using_delete1_responses.go │ │ ├── get_blueprint_plan_using_get1_parameters.go │ │ ├── get_blueprint_plan_using_get1_responses.go │ │ ├── get_blueprint_request_using_get1_parameters.go │ │ ├── get_blueprint_request_using_get1_responses.go │ │ ├── get_blueprint_resources_plan_using_get1_parameters.go │ │ ├── get_blueprint_resources_plan_using_get1_responses.go │ │ ├── list_blueprint_requests_using_get1_parameters.go │ │ └── list_blueprint_requests_using_get1_responses.go │ ├── blueprint_terraform_integrations │ │ ├── blueprint_terraform_integrations_client.go │ │ ├── create_blueprint_from_mapping_using_post_parameters.go │ │ ├── create_blueprint_from_mapping_using_post_responses.go │ │ ├── create_blueprint_mapping_using_post_parameters.go │ │ ├── create_blueprint_mapping_using_post_responses.go │ │ ├── create_terraform_version_using_post_parameters.go │ │ ├── create_terraform_version_using_post_responses.go │ │ ├── delete_terraform_version_using_delete_parameters.go │ │ ├── delete_terraform_version_using_delete_responses.go │ │ ├── get_configuration_source_tree_using_get_parameters.go │ │ ├── get_configuration_source_tree_using_get_responses.go │ │ ├── get_terraform_configuration_source_commit_list_using_get_parameters.go │ │ ├── get_terraform_configuration_source_commit_list_using_get_responses.go │ │ ├── get_terraform_configuration_sources_using_get_parameters.go │ │ ├── get_terraform_configuration_sources_using_get_responses.go │ │ ├── get_terraform_version_using_get_parameters.go │ │ ├── get_terraform_version_using_get_responses.go │ │ ├── list_terraform_versions_using_get_parameters.go │ │ ├── list_terraform_versions_using_get_responses.go │ │ ├── update_terraform_version_using_patch_parameters.go │ │ └── update_terraform_version_using_patch_responses.go │ ├── blueprint_validation │ │ ├── blueprint_validation_client.go │ │ ├── validate_blueprint_using_post1_parameters.go │ │ └── validate_blueprint_using_post1_responses.go │ ├── capability_tags │ │ ├── capability_tags_client.go │ │ ├── search_tags_using_get_parameters.go │ │ └── search_tags_using_get_responses.go │ ├── catalog_admin_items │ │ ├── catalog_admin_items_client.go │ │ ├── get_catalog_item_using_get4_parameters.go │ │ ├── get_catalog_item_using_get4_responses.go │ │ ├── get_catalog_items_using_get4_parameters.go │ │ ├── get_catalog_items_using_get4_responses.go │ │ ├── update_catalog_item_using_patch2_parameters.go │ │ └── update_catalog_item_using_patch2_responses.go │ ├── catalog_entitlements │ │ ├── catalog_entitlements_client.go │ │ ├── create_entitlement_using_post2_parameters.go │ │ ├── create_entitlement_using_post2_responses.go │ │ ├── delete_entitlement_using_delete2_parameters.go │ │ ├── delete_entitlement_using_delete2_responses.go │ │ ├── get_entitlements_using_get2_parameters.go │ │ └── get_entitlements_using_get2_responses.go │ ├── catalog_item_types │ │ ├── catalog_item_types_client.go │ │ ├── get_type_by_id_using_get2_parameters.go │ │ ├── get_type_by_id_using_get2_responses.go │ │ ├── get_types_using_get4_parameters.go │ │ └── get_types_using_get4_responses.go │ ├── catalog_items │ │ ├── catalog_items_client.go │ │ ├── get_catalog_item_using_get5_parameters.go │ │ ├── get_catalog_item_using_get5_responses.go │ │ ├── get_catalog_items_using_get5_parameters.go │ │ ├── get_catalog_items_using_get5_responses.go │ │ ├── get_upfront_price_response_for_catalog_item_using_get2_parameters.go │ │ ├── get_upfront_price_response_for_catalog_item_using_get2_responses.go │ │ ├── get_version_by_id_using_get2_parameters.go │ │ ├── get_version_by_id_using_get2_responses.go │ │ ├── get_versions_using_get2_parameters.go │ │ ├── get_versions_using_get2_responses.go │ │ ├── publish_catalog_item_parameters.go │ │ ├── publish_catalog_item_responses.go │ │ ├── republish_catalog_item_parameters.go │ │ ├── republish_catalog_item_responses.go │ │ ├── request_catalog_item_instances_using_post1_parameters.go │ │ ├── request_catalog_item_instances_using_post1_responses.go │ │ ├── submit_upfront_price_request_for_catalog_item_using_post2_parameters.go │ │ ├── submit_upfront_price_request_for_catalog_item_using_post2_responses.go │ │ ├── unpublish_catalog_item_parameters.go │ │ └── unpublish_catalog_item_responses.go │ ├── catalog_sources │ │ ├── catalog_sources_client.go │ │ ├── delete_using_delete4_parameters.go │ │ ├── delete_using_delete4_responses.go │ │ ├── get_page_using_get2_parameters.go │ │ ├── get_page_using_get2_responses.go │ │ ├── get_using_get2_parameters.go │ │ ├── get_using_get2_responses.go │ │ ├── post_using_post2_parameters.go │ │ └── post_using_post2_responses.go │ ├── certificates │ │ ├── certificates_client.go │ │ ├── get_certificate_info_parameters.go │ │ └── get_certificate_info_responses.go │ ├── cloud_account │ │ ├── cloud_account_client.go │ │ ├── create_aws_cloud_account_async_parameters.go │ │ ├── create_aws_cloud_account_async_responses.go │ │ ├── create_azure_cloud_account_async_parameters.go │ │ ├── create_azure_cloud_account_async_responses.go │ │ ├── create_cloud_account_async_parameters.go │ │ ├── create_cloud_account_async_responses.go │ │ ├── create_gcp_cloud_account_async_parameters.go │ │ ├── create_gcp_cloud_account_async_responses.go │ │ ├── create_nsx_t_cloud_account_async_parameters.go │ │ ├── create_nsx_t_cloud_account_async_responses.go │ │ ├── create_nsx_v_cloud_account_async_parameters.go │ │ ├── create_nsx_v_cloud_account_async_responses.go │ │ ├── create_vcf_cloud_account_async_parameters.go │ │ ├── create_vcf_cloud_account_async_responses.go │ │ ├── create_vmc_cloud_account_async_parameters.go │ │ ├── create_vmc_cloud_account_async_responses.go │ │ ├── create_vsphere_cloud_account_async_parameters.go │ │ ├── create_vsphere_cloud_account_async_responses.go │ │ ├── delete_aws_cloud_account_parameters.go │ │ ├── delete_aws_cloud_account_responses.go │ │ ├── delete_azure_cloud_account_parameters.go │ │ ├── delete_azure_cloud_account_responses.go │ │ ├── delete_cloud_account_nsx_t_parameters.go │ │ ├── delete_cloud_account_nsx_t_responses.go │ │ ├── delete_cloud_account_nsx_v_parameters.go │ │ ├── delete_cloud_account_nsx_v_responses.go │ │ ├── delete_cloud_account_parameters.go │ │ ├── delete_cloud_account_responses.go │ │ ├── delete_gcp_cloud_account_parameters.go │ │ ├── delete_gcp_cloud_account_responses.go │ │ ├── delete_vcf_cloud_account_parameters.go │ │ ├── delete_vcf_cloud_account_responses.go │ │ ├── delete_vmc_cloud_account_parameters.go │ │ ├── delete_vmc_cloud_account_responses.go │ │ ├── delete_vsphere_cloud_account_parameters.go │ │ ├── delete_vsphere_cloud_account_responses.go │ │ ├── enumerate_aws_regions_async_parameters.go │ │ ├── enumerate_aws_regions_async_responses.go │ │ ├── enumerate_azure_regions_async_parameters.go │ │ ├── enumerate_azure_regions_async_responses.go │ │ ├── enumerate_gcp_regions_async_parameters.go │ │ ├── enumerate_gcp_regions_async_responses.go │ │ ├── enumerate_private_images_aws_parameters.go │ │ ├── enumerate_private_images_aws_responses.go │ │ ├── enumerate_private_images_azure_parameters.go │ │ ├── enumerate_private_images_azure_responses.go │ │ ├── enumerate_private_images_gcp_parameters.go │ │ ├── enumerate_private_images_gcp_responses.go │ │ ├── enumerate_private_images_parameters.go │ │ ├── enumerate_private_images_responses.go │ │ ├── enumerate_private_images_vcf_parameters.go │ │ ├── enumerate_private_images_vcf_responses.go │ │ ├── enumerate_private_images_vmc_parameters.go │ │ ├── enumerate_private_images_vmc_responses.go │ │ ├── enumerate_private_images_vsphere_parameters.go │ │ ├── enumerate_private_images_vsphere_responses.go │ │ ├── enumerate_regions_async_parameters.go │ │ ├── enumerate_regions_async_responses.go │ │ ├── enumerate_vcf_regions_async_parameters.go │ │ ├── enumerate_vcf_regions_async_responses.go │ │ ├── enumerate_vmc_regions_async_parameters.go │ │ ├── enumerate_vmc_regions_async_responses.go │ │ ├── enumerate_vsphere_regions_async_parameters.go │ │ ├── enumerate_vsphere_regions_async_responses.go │ │ ├── get_aws_cloud_account_parameters.go │ │ ├── get_aws_cloud_account_responses.go │ │ ├── get_aws_cloud_accounts_parameters.go │ │ ├── get_aws_cloud_accounts_responses.go │ │ ├── get_azure_cloud_account_parameters.go │ │ ├── get_azure_cloud_account_responses.go │ │ ├── get_azure_cloud_accounts_parameters.go │ │ ├── get_azure_cloud_accounts_responses.go │ │ ├── get_cloud_account_parameters.go │ │ ├── get_cloud_account_responses.go │ │ ├── get_cloud_accounts_parameters.go │ │ ├── get_cloud_accounts_responses.go │ │ ├── get_gcp_cloud_account_parameters.go │ │ ├── get_gcp_cloud_account_responses.go │ │ ├── get_gcp_cloud_accounts_parameters.go │ │ ├── get_gcp_cloud_accounts_responses.go │ │ ├── get_nsx_t_cloud_account_parameters.go │ │ ├── get_nsx_t_cloud_account_responses.go │ │ ├── get_nsx_t_cloud_accounts_parameters.go │ │ ├── get_nsx_t_cloud_accounts_responses.go │ │ ├── get_nsx_v_cloud_account_parameters.go │ │ ├── get_nsx_v_cloud_account_responses.go │ │ ├── get_nsx_v_cloud_accounts_parameters.go │ │ ├── get_nsx_v_cloud_accounts_responses.go │ │ ├── get_region_enumeration_result_parameters.go │ │ ├── get_region_enumeration_result_responses.go │ │ ├── get_vcf_cloud_account_parameters.go │ │ ├── get_vcf_cloud_account_responses.go │ │ ├── get_vcf_cloud_accounts_parameters.go │ │ ├── get_vcf_cloud_accounts_responses.go │ │ ├── get_vmc_cloud_account_parameters.go │ │ ├── get_vmc_cloud_account_responses.go │ │ ├── get_vmc_cloud_accounts_parameters.go │ │ ├── get_vmc_cloud_accounts_responses.go │ │ ├── get_vsphere_cloud_account_parameters.go │ │ ├── get_vsphere_cloud_account_responses.go │ │ ├── get_vsphere_cloud_accounts_parameters.go │ │ ├── get_vsphere_cloud_accounts_responses.go │ │ ├── run_endpoint_health_check_parameters.go │ │ ├── run_endpoint_health_check_responses.go │ │ ├── update_aws_cloud_account_async_parameters.go │ │ ├── update_aws_cloud_account_async_responses.go │ │ ├── update_azure_cloud_account_async_parameters.go │ │ ├── update_azure_cloud_account_async_responses.go │ │ ├── update_cloud_account_async_parameters.go │ │ ├── update_cloud_account_async_responses.go │ │ ├── update_gcp_cloud_account_async_parameters.go │ │ ├── update_gcp_cloud_account_async_responses.go │ │ ├── update_nsx_t_cloud_account_async_parameters.go │ │ ├── update_nsx_t_cloud_account_async_responses.go │ │ ├── update_nsx_v_cloud_account_async_parameters.go │ │ ├── update_nsx_v_cloud_account_async_responses.go │ │ ├── update_vcf_cloud_account_async_parameters.go │ │ ├── update_vcf_cloud_account_async_responses.go │ │ ├── update_vmc_cloud_account_async_parameters.go │ │ ├── update_vmc_cloud_account_async_responses.go │ │ ├── update_vsphere_cloud_account_async_parameters.go │ │ └── update_vsphere_cloud_account_async_responses.go │ ├── cluster_plans │ │ ├── cluster_plans_client.go │ │ ├── create_using_post_parameters.go │ │ ├── create_using_post_responses.go │ │ ├── delete_using_delete_parameters.go │ │ ├── delete_using_delete_responses.go │ │ ├── get_using_get_parameters.go │ │ ├── get_using_get_responses.go │ │ ├── search_cluster_plan_aggregations_using_get_parameters.go │ │ ├── search_cluster_plan_aggregations_using_get_responses.go │ │ ├── search_cluster_plans_using_get_parameters.go │ │ ├── search_cluster_plans_using_get_responses.go │ │ ├── update_using_put_parameters.go │ │ └── update_using_put_responses.go │ ├── compute │ │ ├── compute_client.go │ │ ├── create_machine_parameters.go │ │ ├── create_machine_responses.go │ │ ├── create_machine_snapshot_parameters.go │ │ ├── create_machine_snapshot_responses.go │ │ ├── delete_machine_parameters.go │ │ ├── delete_machine_responses.go │ │ ├── delete_machine_snapshot_parameters.go │ │ ├── delete_machine_snapshot_responses.go │ │ ├── get_machine_parameters.go │ │ ├── get_machine_responses.go │ │ ├── get_machine_snapshot_parameters.go │ │ ├── get_machine_snapshot_responses.go │ │ ├── get_machine_snapshots_parameters.go │ │ ├── get_machine_snapshots_responses.go │ │ ├── get_machines_parameters.go │ │ ├── get_machines_responses.go │ │ ├── power_off_machine_parameters.go │ │ ├── power_off_machine_responses.go │ │ ├── power_on_machine_parameters.go │ │ ├── power_on_machine_responses.go │ │ ├── reboot_machine_parameters.go │ │ ├── reboot_machine_responses.go │ │ ├── reset_machine_parameters.go │ │ ├── reset_machine_responses.go │ │ ├── resize_machine_parameters.go │ │ ├── resize_machine_responses.go │ │ ├── restart_machine_parameters.go │ │ ├── restart_machine_responses.go │ │ ├── revert_machine_snapshot_parameters.go │ │ ├── revert_machine_snapshot_responses.go │ │ ├── shutdown_machine_parameters.go │ │ ├── shutdown_machine_responses.go │ │ ├── suspend_machine_parameters.go │ │ ├── suspend_machine_responses.go │ │ ├── update_machine_parameters.go │ │ └── update_machine_responses.go │ ├── compute_gateway │ │ ├── compute_gateway_client.go │ │ ├── create_compute_gateway_parameters.go │ │ ├── create_compute_gateway_responses.go │ │ ├── delete_compute_gateway_parameters.go │ │ ├── delete_compute_gateway_responses.go │ │ ├── get_compute_gateway_parameters.go │ │ ├── get_compute_gateway_responses.go │ │ ├── get_compute_gateways_parameters.go │ │ └── get_compute_gateways_responses.go │ ├── compute_nat │ │ ├── compute_nat_client.go │ │ ├── create_compute_nat_parameters.go │ │ ├── create_compute_nat_responses.go │ │ ├── delete_compute_nat_parameters.go │ │ ├── delete_compute_nat_responses.go │ │ ├── get_compute_nat_parameters.go │ │ ├── get_compute_nat_responses.go │ │ ├── get_compute_nats_parameters.go │ │ ├── get_compute_nats_responses.go │ │ ├── reconfigure_nat_parameters.go │ │ └── reconfigure_nat_responses.go │ ├── content_source │ │ ├── content_source_client.go │ │ ├── create_content_source_using_post_parameters.go │ │ ├── create_content_source_using_post_responses.go │ │ ├── delete_content_source_using_delete_parameters.go │ │ ├── delete_content_source_using_delete_responses.go │ │ ├── get_content_source_using_get_parameters.go │ │ ├── get_content_source_using_get_responses.go │ │ ├── list_content_sources_using_get_parameters.go │ │ └── list_content_sources_using_get_responses.go │ ├── custom_integrations │ │ ├── create_custom_integration_using_post_parameters.go │ │ ├── create_custom_integration_using_post_responses.go │ │ ├── create_version_by_id_using_post_parameters.go │ │ ├── create_version_by_id_using_post_responses.go │ │ ├── custom_integrations_client.go │ │ ├── delete_draft_by_id_using_delete_parameters.go │ │ ├── delete_draft_by_id_using_delete_responses.go │ │ ├── delete_version_by_id_using_delete_parameters.go │ │ ├── delete_version_by_id_using_delete_responses.go │ │ ├── deprecate_by_id_and_version_using_post_parameters.go │ │ ├── deprecate_by_id_and_version_using_post_responses.go │ │ ├── get_all_custom_integration_versions_by_id_using_get_parameters.go │ │ ├── get_all_custom_integration_versions_by_id_using_get_responses.go │ │ ├── get_custom_integration_version_by_id_using_get_parameters.go │ │ ├── get_custom_integration_version_by_id_using_get_responses.go │ │ ├── get_custom_integrations_using_get_parameters.go │ │ ├── get_custom_integrations_using_get_responses.go │ │ ├── get_draft_by_id_using_get_parameters.go │ │ ├── get_draft_by_id_using_get_responses.go │ │ ├── release_by_id_and_version_using_post_parameters.go │ │ ├── release_by_id_and_version_using_post_responses.go │ │ ├── restore_by_id_and_version_using_post_parameters.go │ │ ├── restore_by_id_and_version_using_post_responses.go │ │ ├── toggle_latest_using_patch_parameters.go │ │ ├── toggle_latest_using_patch_responses.go │ │ ├── update_by_id_using_put_parameters.go │ │ ├── update_by_id_using_put_responses.go │ │ ├── withdraw_by_id_and_version_using_post_parameters.go │ │ └── withdraw_by_id_and_version_using_post_responses.go │ ├── custom_naming │ │ ├── create_custom_name_parameters.go │ │ ├── create_custom_name_responses.go │ │ ├── custom_naming_client.go │ │ ├── delete_customname_parameters.go │ │ ├── delete_customname_responses.go │ │ ├── get_custom_name_by_project_id_parameters.go │ │ ├── get_custom_name_by_project_id_responses.go │ │ ├── get_custom_name_parameters.go │ │ ├── get_custom_name_responses.go │ │ ├── update_custom_name_parameters.go │ │ └── update_custom_name_responses.go │ ├── data_collector │ │ ├── create_data_collector_parameters.go │ │ ├── create_data_collector_responses.go │ │ ├── data_collector_client.go │ │ ├── delete_data_collector_parameters.go │ │ ├── delete_data_collector_responses.go │ │ ├── get_data_collector_parameters.go │ │ ├── get_data_collector_responses.go │ │ ├── get_data_collectors_parameters.go │ │ └── get_data_collectors_responses.go │ ├── deployment │ │ ├── create_deployment_parameters.go │ │ ├── create_deployment_responses.go │ │ ├── delete_deployment_parameters.go │ │ ├── delete_deployment_responses.go │ │ ├── deployment_client.go │ │ ├── get_deployments_parameters.go │ │ ├── get_deployments_responses.go │ │ ├── get_single_deployment_parameters.go │ │ └── get_single_deployment_responses.go │ ├── deployment_actions │ │ ├── deployment_actions_client.go │ │ ├── get_deployment_action_using_get2_parameters.go │ │ ├── get_deployment_action_using_get2_responses.go │ │ ├── get_deployment_actions_using_get2_parameters.go │ │ ├── get_deployment_actions_using_get2_responses.go │ │ ├── get_resource_action_using_get4_parameters.go │ │ ├── get_resource_action_using_get4_responses.go │ │ ├── get_resource_actions_using_get4_parameters.go │ │ ├── get_resource_actions_using_get4_responses.go │ │ ├── submit_deployment_action_request_using_post2_parameters.go │ │ ├── submit_deployment_action_request_using_post2_responses.go │ │ ├── submit_resource_action_request_using_post4_parameters.go │ │ └── submit_resource_action_request_using_post4_responses.go │ ├── deployments │ │ ├── check_deployment_name_exists_using_get2_parameters.go │ │ ├── check_deployment_name_exists_using_get2_responses.go │ │ ├── check_deployment_name_using_get2_parameters.go │ │ ├── check_deployment_name_using_get2_responses.go │ │ ├── delete_deployment_using_delete2_parameters.go │ │ ├── delete_deployment_using_delete2_responses.go │ │ ├── delete_resource_using_delete2_parameters.go │ │ ├── delete_resource_using_delete2_responses.go │ │ ├── deployments_client.go │ │ ├── get_deployment_by_id_v3_using_get_parameters.go │ │ ├── get_deployment_by_id_v3_using_get_responses.go │ │ ├── get_deployment_expense_history_by_id_using_get2_parameters.go │ │ ├── get_deployment_expense_history_by_id_using_get2_responses.go │ │ ├── get_deployment_filter_by_id_using_get2_parameters.go │ │ ├── get_deployment_filter_by_id_using_get2_responses.go │ │ ├── get_deployment_filters_using_get2_parameters.go │ │ ├── get_deployment_filters_using_get2_responses.go │ │ ├── get_deployment_resources_using_get2_parameters.go │ │ ├── get_deployment_resources_using_get2_responses.go │ │ ├── get_deployments_for_project_using_get2_parameters.go │ │ ├── get_deployments_for_project_using_get2_responses.go │ │ ├── get_deployments_v3_using_get_parameters.go │ │ ├── get_deployments_v3_using_get_responses.go │ │ ├── get_resource_by_id_using_get4_parameters.go │ │ ├── get_resource_by_id_using_get4_responses.go │ │ ├── patch_deployment_using_patch2_parameters.go │ │ └── patch_deployment_using_patch2_responses.go │ ├── disk │ │ ├── attach_machine_disk_parameters.go │ │ ├── attach_machine_disk_responses.go │ │ ├── create_block_device_parameters.go │ │ ├── create_block_device_responses.go │ │ ├── create_block_device_snapshot_parameters.go │ │ ├── create_block_device_snapshot_responses.go │ │ ├── delete_block_device_parameters.go │ │ ├── delete_block_device_responses.go │ │ ├── delete_block_device_snapshot_parameters.go │ │ ├── delete_block_device_snapshot_responses.go │ │ ├── delete_machine_disk_parameters.go │ │ ├── delete_machine_disk_responses.go │ │ ├── disk_client.go │ │ ├── get_block_device_parameters.go │ │ ├── get_block_device_responses.go │ │ ├── get_block_devices_parameters.go │ │ ├── get_block_devices_responses.go │ │ ├── get_disk_snapshot_parameters.go │ │ ├── get_disk_snapshot_responses.go │ │ ├── get_disk_snapshots_parameters.go │ │ ├── get_disk_snapshots_responses.go │ │ ├── get_machine_disk_parameters.go │ │ ├── get_machine_disk_responses.go │ │ ├── get_machine_disks_parameters.go │ │ ├── get_machine_disks_responses.go │ │ ├── promote_disk_parameters.go │ │ ├── promote_disk_responses.go │ │ ├── resize_block_device_parameters.go │ │ ├── resize_block_device_responses.go │ │ ├── revert_disk_snapshot_parameters.go │ │ └── revert_disk_snapshot_responses.go │ ├── endpoints │ │ ├── create_endpoint_using_post_parameters.go │ │ ├── create_endpoint_using_post_responses.go │ │ ├── delete_endpoint_by_id_using_delete_parameters.go │ │ ├── delete_endpoint_by_id_using_delete_responses.go │ │ ├── delete_endpoint_by_name_using_delete_parameters.go │ │ ├── delete_endpoint_by_name_using_delete_responses.go │ │ ├── endpoints_client.go │ │ ├── get_all_endpoints_using_get_parameters.go │ │ ├── get_all_endpoints_using_get_responses.go │ │ ├── get_endpoint_by_id_using_get_parameters.go │ │ ├── get_endpoint_by_id_using_get_responses.go │ │ ├── get_endpoint_by_name_using_get_parameters.go │ │ ├── get_endpoint_by_name_using_get_responses.go │ │ ├── get_endpoint_properties_using_get_parameters.go │ │ ├── get_endpoint_properties_using_get_responses.go │ │ ├── get_endpoint_tiles_using_get_parameters.go │ │ ├── get_endpoint_tiles_using_get_responses.go │ │ ├── get_using_get_mixin4_parameters.go │ │ ├── get_using_get_mixin4_responses.go │ │ ├── update_endpoint_by_id_using_put_parameters.go │ │ ├── update_endpoint_by_id_using_put_responses.go │ │ ├── update_endpoint_by_name_using_put_parameters.go │ │ ├── update_endpoint_by_name_using_put_responses.go │ │ ├── validate_endpoint_using_post_parameters.go │ │ └── validate_endpoint_using_post_responses.go │ ├── executions │ │ ├── delete_all_executions_using_delete_parameters.go │ │ ├── delete_all_executions_using_delete_responses.go │ │ ├── delete_execution_by_id_using_delete_parameters.go │ │ ├── delete_execution_by_id_using_delete_responses.go │ │ ├── executions_client.go │ │ ├── get_all_executions_using_get_parameters.go │ │ ├── get_all_executions_using_get_responses.go │ │ ├── get_execution_by_id_using_get_parameters.go │ │ ├── get_execution_by_id_using_get_responses.go │ │ ├── modify_execution_using_post_parameters.go │ │ ├── modify_execution_using_post_responses.go │ │ ├── update_using_post_parameters.go │ │ └── update_using_post_responses.go │ ├── fabric_aws_volume_types │ │ ├── fabricaws_volume_types_client.go │ │ ├── get_fabric_aws_volume_types_parameters.go │ │ └── get_fabric_aws_volume_types_responses.go │ ├── fabric_azure_disk_encryption_sets │ │ ├── fabric_azure_disk_encryption_sets_client.go │ │ ├── get_azure_disk_encryption_sets_parameters.go │ │ └── get_azure_disk_encryption_sets_responses.go │ ├── fabric_azure_storage_account │ │ ├── fabric_azure_storage_account_client.go │ │ ├── get_fabric_azure_storage_account_parameters.go │ │ ├── get_fabric_azure_storage_account_responses.go │ │ ├── get_fabric_azure_storage_accounts_parameters.go │ │ └── get_fabric_azure_storage_accounts_responses.go │ ├── fabric_compute │ │ ├── fabric_compute_client.go │ │ ├── get_fabric_compute_parameters.go │ │ ├── get_fabric_compute_responses.go │ │ ├── get_fabric_computes_parameters.go │ │ ├── get_fabric_computes_responses.go │ │ ├── update_fabric_compute_parameters.go │ │ └── update_fabric_compute_responses.go │ ├── fabric_flavors │ │ ├── fabric_flavors_client.go │ │ ├── get_fabric_flavors_parameters.go │ │ └── get_fabric_flavors_responses.go │ ├── fabric_images │ │ ├── fabric_images_client.go │ │ ├── get_fabric_image_parameters.go │ │ ├── get_fabric_image_responses.go │ │ ├── get_fabric_images_parameters.go │ │ └── get_fabric_images_responses.go │ ├── fabric_network │ │ ├── fabric_network_client.go │ │ ├── get_fabric_network_parameters.go │ │ ├── get_fabric_network_responses.go │ │ ├── get_fabric_networks_parameters.go │ │ ├── get_fabric_networks_responses.go │ │ ├── get_vsphere_fabric_network_parameters.go │ │ ├── get_vsphere_fabric_network_responses.go │ │ ├── get_vsphere_fabric_networks_parameters.go │ │ ├── get_vsphere_fabric_networks_responses.go │ │ ├── update_fabric_network_parameters.go │ │ ├── update_fabric_network_responses.go │ │ ├── updatevsphere_fabric_network_parameters.go │ │ └── updatevsphere_fabric_network_responses.go │ ├── fabric_vsphere_datastore │ │ ├── fabricvsphere_datastore_client.go │ │ ├── get_fabric_vsphere_datastore_parameters.go │ │ ├── get_fabric_vsphere_datastore_responses.go │ │ ├── get_fabric_vsphere_datastores_parameters.go │ │ ├── get_fabric_vsphere_datastores_responses.go │ │ ├── update_fabric_vsphere_datastore_parameters.go │ │ └── update_fabric_vsphere_datastore_responses.go │ ├── fabric_vsphere_storage_policies │ │ ├── fabricvsphere_storage_policies_client.go │ │ ├── get_fabric_vsphere_storage_policies_parameters.go │ │ ├── get_fabric_vsphere_storage_policies_responses.go │ │ ├── get_fabric_vsphere_storage_policy_parameters.go │ │ └── get_fabric_vsphere_storage_policy_responses.go │ ├── flavor_profile │ │ ├── create_flavor_profile_parameters.go │ │ ├── create_flavor_profile_responses.go │ │ ├── delete_flavor_profile_parameters.go │ │ ├── delete_flavor_profile_responses.go │ │ ├── flavor_profile_client.go │ │ ├── get_flavor_profile_parameters.go │ │ ├── get_flavor_profile_responses.go │ │ ├── get_flavor_profiles_parameters.go │ │ ├── get_flavor_profiles_responses.go │ │ ├── update_flavor_profile_parameters.go │ │ └── update_flavor_profile_responses.go │ ├── flavors │ │ ├── flavors_client.go │ │ ├── get_flavors_parameters.go │ │ └── get_flavors_responses.go │ ├── folders │ │ ├── folders_client.go │ │ ├── get_folders_parameters.go │ │ └── get_folders_responses.go │ ├── icons │ │ ├── delete2_parameters.go │ │ ├── delete2_responses.go │ │ ├── download2_parameters.go │ │ ├── download2_responses.go │ │ ├── icons_client.go │ │ ├── upload2_parameters.go │ │ └── upload2_responses.go │ ├── image_profile │ │ ├── create_image_profile_parameters.go │ │ ├── create_image_profile_responses.go │ │ ├── delete_image_profile_parameters.go │ │ ├── delete_image_profile_responses.go │ │ ├── get_image_profile_parameters.go │ │ ├── get_image_profile_responses.go │ │ ├── get_image_profiles_parameters.go │ │ ├── get_image_profiles_responses.go │ │ ├── image_profile_client.go │ │ ├── update_image_profile_parameters.go │ │ └── update_image_profile_responses.go │ ├── images │ │ ├── get_images_parameters.go │ │ ├── get_images_responses.go │ │ └── images_client.go │ ├── installers │ │ ├── get_installer_using_get_parameters.go │ │ ├── get_installer_using_get_responses.go │ │ ├── get_kubernetes_properties_using_get_parameters.go │ │ ├── get_kubernetes_properties_using_get_responses.go │ │ ├── install_using_post_parameters.go │ │ ├── install_using_post_responses.go │ │ ├── installers_client.go │ │ ├── uninstall_using_post_parameters.go │ │ └── uninstall_using_post_responses.go │ ├── integration │ │ ├── create_integration_async_parameters.go │ │ ├── create_integration_async_responses.go │ │ ├── delete_integration_parameters.go │ │ ├── delete_integration_responses.go │ │ ├── get_integration_parameters.go │ │ ├── get_integration_responses.go │ │ ├── get_integrations_parameters.go │ │ ├── get_integrations_responses.go │ │ ├── integration_client.go │ │ ├── update_integration_async_parameters.go │ │ └── update_integration_async_responses.go │ ├── kubernetes_clusters │ │ ├── assign_status_using_get_parameters.go │ │ ├── assign_status_using_get_responses.go │ │ ├── assign_using_post_parameters.go │ │ ├── assign_using_post_responses.go │ │ ├── delete_cluster_using_delete_parameters.go │ │ ├── delete_cluster_using_delete_responses.go │ │ ├── destroy_cluster_using_delete_parameters.go │ │ ├── destroy_cluster_using_delete_responses.go │ │ ├── get_cluster_using_get_parameters.go │ │ ├── get_cluster_using_get_responses.go │ │ ├── get_kube_config_using_get_parameters.go │ │ ├── get_kube_config_using_get_responses.go │ │ ├── get_nodes_using_get_parameters.go │ │ ├── get_nodes_using_get_responses.go │ │ ├── kubernetes_clusters_client.go │ │ ├── list_using_get_parameters.go │ │ ├── list_using_get_responses.go │ │ ├── onboard_using_post_parameters.go │ │ ├── onboard_using_post_responses.go │ │ ├── update_using_put1_parameters.go │ │ ├── update_using_put1_responses.go │ │ ├── validate_using_put_parameters.go │ │ └── validate_using_put_responses.go │ ├── kubernetes_zones │ │ ├── create_zone_using_post_parameters.go │ │ ├── create_zone_using_post_responses.go │ │ ├── delete_zone_using_delete_parameters.go │ │ ├── delete_zone_using_delete_responses.go │ │ ├── get_zone_using_get_parameters.go │ │ ├── get_zone_using_get_responses.go │ │ ├── kubernetes_zones_client.go │ │ ├── list_zones_using_get_parameters.go │ │ ├── list_zones_using_get_responses.go │ │ ├── update_zone_projects_using_put_parameters.go │ │ ├── update_zone_projects_using_put_responses.go │ │ ├── update_zone_using_put_parameters.go │ │ └── update_zone_using_put_responses.go │ ├── limit_ranges │ │ ├── get_using_get1_parameters.go │ │ ├── get_using_get1_responses.go │ │ ├── limit_ranges_client.go │ │ ├── list_using_get1_parameters.go │ │ └── list_using_get1_responses.go │ ├── load_balancer │ │ ├── create_load_balancer_parameters.go │ │ ├── create_load_balancer_responses.go │ │ ├── delete_load_balancer_operation_parameters.go │ │ ├── delete_load_balancer_operation_responses.go │ │ ├── delete_load_balancer_parameters.go │ │ ├── delete_load_balancer_responses.go │ │ ├── get_load_balancer_network_interface_parameters.go │ │ ├── get_load_balancer_network_interface_responses.go │ │ ├── get_load_balancer_parameters.go │ │ ├── get_load_balancer_responses.go │ │ ├── get_load_balancers_parameters.go │ │ ├── get_load_balancers_responses.go │ │ ├── load_balancer_client.go │ │ ├── scale_load_balancer_parameters.go │ │ └── scale_load_balancer_responses.go │ ├── location │ │ ├── create_zone_parameters.go │ │ ├── create_zone_responses.go │ │ ├── delete_zone_parameters.go │ │ ├── delete_zone_responses.go │ │ ├── get_computes_parameters.go │ │ ├── get_computes_responses.go │ │ ├── get_region_parameters.go │ │ ├── get_region_responses.go │ │ ├── get_regions_parameters.go │ │ ├── get_regions_responses.go │ │ ├── get_zone_parameters.go │ │ ├── get_zone_responses.go │ │ ├── get_zones_parameters.go │ │ ├── get_zones_responses.go │ │ ├── location_client.go │ │ ├── update_zone_parameters.go │ │ └── update_zone_responses.go │ ├── login │ │ ├── login_client.go │ │ ├── retrieve_auth_token_parameters.go │ │ └── retrieve_auth_token_responses.go │ ├── namespaces │ │ ├── create_using_post1_parameters.go │ │ ├── create_using_post1_responses.go │ │ ├── delete_using_delete1_parameters.go │ │ ├── delete_using_delete1_responses.go │ │ ├── get_kube_config_using_get1_parameters.go │ │ ├── get_kube_config_using_get1_responses.go │ │ ├── get_using_get2_mixin1_parameters.go │ │ ├── get_using_get2_mixin1_responses.go │ │ ├── list_using_get2_parameters.go │ │ ├── list_using_get2_responses.go │ │ ├── namespaces_client.go │ │ ├── register_using_put_parameters.go │ │ ├── register_using_put_responses.go │ │ ├── update_using_put2_parameters.go │ │ └── update_using_put2_responses.go │ ├── network │ │ ├── create_network_parameters.go │ │ ├── create_network_responses.go │ │ ├── delete_network_parameters.go │ │ ├── delete_network_responses.go │ │ ├── get_machine_network_interface_parameters.go │ │ ├── get_machine_network_interface_responses.go │ │ ├── get_network_domain_parameters.go │ │ ├── get_network_domain_responses.go │ │ ├── get_network_domains_parameters.go │ │ ├── get_network_domains_responses.go │ │ ├── get_network_parameters.go │ │ ├── get_network_responses.go │ │ ├── get_networks_parameters.go │ │ ├── get_networks_responses.go │ │ ├── network_client.go │ │ ├── patch_machine_network_interface_parameters.go │ │ └── patch_machine_network_interface_responses.go │ ├── network_ip_range │ │ ├── create_internal_network_ip_range_parameters.go │ │ ├── create_internal_network_ip_range_responses.go │ │ ├── delete_internal_network_ip_range_parameters.go │ │ ├── delete_internal_network_ip_range_responses.go │ │ ├── get_external_ip_block_parameters.go │ │ ├── get_external_ip_block_responses.go │ │ ├── get_external_ip_blocks_parameters.go │ │ ├── get_external_ip_blocks_responses.go │ │ ├── get_external_network_ip_range_parameters.go │ │ ├── get_external_network_ip_range_responses.go │ │ ├── get_external_network_ip_ranges_parameters.go │ │ ├── get_external_network_ip_ranges_responses.go │ │ ├── get_internal_network_ip_range_parameters.go │ │ ├── get_internal_network_ip_range_responses.go │ │ ├── get_internal_network_ip_ranges_parameters.go │ │ ├── get_internal_network_ip_ranges_responses.go │ │ ├── network_ip_range_client.go │ │ ├── update_external_network_ip_range_parameters.go │ │ ├── update_external_network_ip_range_responses.go │ │ ├── update_internal_network_ip_range_parameters.go │ │ └── update_internal_network_ip_range_responses.go │ ├── network_profile │ │ ├── create_network_profile_parameters.go │ │ ├── create_network_profile_responses.go │ │ ├── delete_network_profile_parameters.go │ │ ├── delete_network_profile_responses.go │ │ ├── get_network_profile_parameters.go │ │ ├── get_network_profile_responses.go │ │ ├── get_network_profiles_parameters.go │ │ ├── get_network_profiles_responses.go │ │ ├── network_profile_client.go │ │ ├── update_network_profile_parameters.go │ │ └── update_network_profile_responses.go │ ├── notification_scenario_configuration │ │ ├── create_or_update_using_post2_parameters.go │ │ ├── create_or_update_using_post2_responses.go │ │ ├── delete_using_delete5_parameters.go │ │ ├── delete_using_delete5_responses.go │ │ ├── get_all_scenario_configs_using_get2_parameters.go │ │ ├── get_all_scenario_configs_using_get2_responses.go │ │ ├── get_scenario_config_using_get2_parameters.go │ │ ├── get_scenario_config_using_get2_responses.go │ │ └── notification_scenario_configuration_client.go │ ├── onboarding_blueprints │ │ ├── create_blueprint_by_id_parameters.go │ │ ├── create_blueprint_by_id_responses.go │ │ ├── create_blueprint_parameters.go │ │ ├── create_blueprint_responses.go │ │ ├── delete_blueprint_by_id_parameters.go │ │ ├── delete_blueprint_by_id_responses.go │ │ ├── onboarding_blueprints_client.go │ │ ├── query_blueprints_parameters.go │ │ ├── query_blueprints_responses.go │ │ ├── update_blueprint_by_id_parameters.go │ │ └── update_blueprint_by_id_responses.go │ ├── onboarding_deployments │ │ ├── create_deployment_mixin6_parameters.go │ │ ├── create_deployment_mixin6_responses.go │ │ ├── create_deployment_with_resources_parameters.go │ │ ├── create_deployment_with_resources_responses.go │ │ ├── create_deployments_bulk_parameters.go │ │ ├── create_deployments_bulk_responses.go │ │ ├── delete_deployment_by_parameters.go │ │ ├── delete_deployment_by_responses.go │ │ ├── get_deployment_by_id_parameters.go │ │ ├── get_deployment_by_id_responses.go │ │ ├── onboarding_deployments_client.go │ │ ├── query_deployments_parameters.go │ │ ├── query_deployments_responses.go │ │ ├── update_deployment_by_id_parameters.go │ │ └── update_deployment_by_id_responses.go │ ├── onboarding_plan_execution │ │ ├── delete_plan_execution_by_id_parameters.go │ │ ├── delete_plan_execution_by_id_responses.go │ │ ├── execute_plan_parameters.go │ │ ├── execute_plan_responses.go │ │ ├── get_plan_execution_by_id_parameters.go │ │ ├── get_plan_execution_by_id_responses.go │ │ ├── onboarding_plan_execution_client.go │ │ ├── query_plan_executions_parameters.go │ │ └── query_plan_executions_responses.go │ ├── onboarding_plans │ │ ├── create_plan_parameters.go │ │ ├── create_plan_responses.go │ │ ├── delete_plan_by_id_parameters.go │ │ ├── delete_plan_by_id_responses.go │ │ ├── get_plan_by_id_parameters.go │ │ ├── get_plan_by_id_responses.go │ │ ├── onboarding_plans_client.go │ │ ├── query_plans_parameters.go │ │ ├── query_plans_responses.go │ │ ├── update_plan_by_id_parameters.go │ │ └── update_plan_by_id_responses.go │ ├── onboarding_resources │ │ ├── create_resource_parameters.go │ │ ├── create_resource_responses.go │ │ ├── delete_resource_by_id_parameters.go │ │ ├── delete_resource_by_id_responses.go │ │ ├── get_resource_by_id_parameters.go │ │ ├── get_resource_by_id_responses.go │ │ ├── onboarding_resources_client.go │ │ ├── query_resources_parameters.go │ │ ├── query_resources_responses.go │ │ ├── update_resource_by_id_parameters.go │ │ └── update_resource_by_id_responses.go │ ├── perspective_sync │ │ ├── perspective_sync_client.go │ │ ├── sync_perspective_group_using_post2_parameters.go │ │ └── sync_perspective_group_using_post2_responses.go │ ├── pipelines │ │ ├── act_on_pipeline_using_post_parameters.go │ │ ├── act_on_pipeline_using_post_responses.go │ │ ├── clone_pipeline_by_name_using_post_parameters.go │ │ ├── clone_pipeline_by_name_using_post_responses.go │ │ ├── create_pipeline_using_post_parameters.go │ │ ├── create_pipeline_using_post_responses.go │ │ ├── delete_pipeline_by_id_using_delete_parameters.go │ │ ├── delete_pipeline_by_id_using_delete_responses.go │ │ ├── delete_pipeline_by_name_using_delete_parameters.go │ │ ├── delete_pipeline_by_name_using_delete_responses.go │ │ ├── execute_pipeline_by_id_using_post_parameters.go │ │ ├── execute_pipeline_by_id_using_post_responses.go │ │ ├── execute_pipeline_by_name_using_post_parameters.go │ │ ├── execute_pipeline_by_name_using_post_responses.go │ │ ├── export_using_get_parameters.go │ │ ├── export_using_get_responses.go │ │ ├── get_all_pipelines_using_get_parameters.go │ │ ├── get_all_pipelines_using_get_responses.go │ │ ├── get_execution_by_index_and_pipeline_id_using_get_parameters.go │ │ ├── get_execution_by_index_and_pipeline_id_using_get_responses.go │ │ ├── get_execution_by_name_and_index_using_get_parameters.go │ │ ├── get_execution_by_name_and_index_using_get_responses.go │ │ ├── get_executions_by_id_using_get_parameters.go │ │ ├── get_executions_by_id_using_get_responses.go │ │ ├── get_executions_by_name_using_get_parameters.go │ │ ├── get_executions_by_name_using_get_responses.go │ │ ├── get_pipeline_by_id_using_get_parameters.go │ │ ├── get_pipeline_by_id_using_get_responses.go │ │ ├── get_pipeline_by_name_using_get_parameters.go │ │ ├── get_pipeline_by_name_using_get_responses.go │ │ ├── get_pipeline_tiles_using_get_parameters.go │ │ ├── get_pipeline_tiles_using_get_responses.go │ │ ├── import_yaml_using_post_parameters.go │ │ ├── import_yaml_using_post_responses.go │ │ ├── patch_pipeline_by_name_using_patch_parameters.go │ │ ├── patch_pipeline_by_name_using_patch_responses.go │ │ ├── patch_pipeline_global_by_name_using_patch_parameters.go │ │ ├── patch_pipeline_global_by_name_using_patch_responses.go │ │ ├── patch_pipeline_global_using_patch_parameters.go │ │ ├── patch_pipeline_global_using_patch_responses.go │ │ ├── patch_pipeline_using_patch_parameters.go │ │ ├── patch_pipeline_using_patch_responses.go │ │ ├── pipelines_client.go │ │ ├── update_pipeline_by_name_using_put_parameters.go │ │ ├── update_pipeline_by_name_using_put_responses.go │ │ ├── update_pipeline_using_put_parameters.go │ │ └── update_pipeline_using_put_responses.go │ ├── pks_endpoints │ │ ├── create_cluster_using_post_parameters.go │ │ ├── create_cluster_using_post_responses.go │ │ ├── destroy_cluster_using_delete1_parameters.go │ │ ├── destroy_cluster_using_delete1_responses.go │ │ ├── get_clusters_using_get_parameters.go │ │ ├── get_clusters_using_get_responses.go │ │ ├── get_plans_using_get_parameters.go │ │ ├── get_plans_using_get_responses.go │ │ ├── pks_endpoints_client.go │ │ ├── update_cluster_using_put_parameters.go │ │ └── update_cluster_using_put_responses.go │ ├── policies │ │ ├── create_policy_using_post1_parameters.go │ │ ├── create_policy_using_post1_responses.go │ │ ├── delete_policy_using_delete5_parameters.go │ │ ├── delete_policy_using_delete5_responses.go │ │ ├── get_policies_using_get5_parameters.go │ │ ├── get_policies_using_get5_responses.go │ │ ├── get_policy_using_get5_parameters.go │ │ ├── get_policy_using_get5_responses.go │ │ └── policies_client.go │ ├── policy_decisions │ │ ├── get_decision_by_id_using_get2_parameters.go │ │ ├── get_decision_by_id_using_get2_responses.go │ │ ├── get_decisions_using_get2_parameters.go │ │ ├── get_decisions_using_get2_responses.go │ │ └── policy_decisions_client.go │ ├── policy_types │ │ ├── get_policy_type_by_id_using_get2_parameters.go │ │ ├── get_policy_type_by_id_using_get2_responses.go │ │ ├── get_policy_type_scope_schema_using_get2_parameters.go │ │ ├── get_policy_type_scope_schema_using_get2_responses.go │ │ ├── get_types_using_get5_parameters.go │ │ ├── get_types_using_get5_responses.go │ │ └── policy_types_client.go │ ├── pricing_card_assignments │ │ ├── change_metering_assignment_strategy_using_patch2_parameters.go │ │ ├── change_metering_assignment_strategy_using_patch2_responses.go │ │ ├── create_metering_assignment_strategy_using_post2_parameters.go │ │ ├── create_metering_assignment_strategy_using_post2_responses.go │ │ ├── create_metering_policy_assignment_using_post2_parameters.go │ │ ├── create_metering_policy_assignment_using_post2_responses.go │ │ ├── delete_metering_policy_assignment_using_delete2_parameters.go │ │ ├── delete_metering_policy_assignment_using_delete2_responses.go │ │ ├── get_all_metering_policy_assignments_using_get2_parameters.go │ │ ├── get_all_metering_policy_assignments_using_get2_responses.go │ │ ├── get_metering_assignment_strategy_using_get2_parameters.go │ │ ├── get_metering_assignment_strategy_using_get2_responses.go │ │ ├── get_metering_policy_assignment_using_get2_parameters.go │ │ ├── get_metering_policy_assignment_using_get2_responses.go │ │ ├── patch_metering_policy_assignment_using_patch2_parameters.go │ │ ├── patch_metering_policy_assignment_using_patch2_responses.go │ │ └── pricing_card_assignments_client.go │ ├── pricing_cards │ │ ├── create_policy_using_post2_parameters.go │ │ ├── create_policy_using_post2_responses.go │ │ ├── delete_policy_using_delete4_parameters.go │ │ ├── delete_policy_using_delete4_responses.go │ │ ├── get_policies_using_get4_parameters.go │ │ ├── get_policies_using_get4_responses.go │ │ ├── get_policy_using_get4_parameters.go │ │ ├── get_policy_using_get4_responses.go │ │ ├── pricing_cards_client.go │ │ ├── update_policy_using_put2_parameters.go │ │ └── update_policy_using_put2_responses.go │ ├── project │ │ ├── create_project_parameters.go │ │ ├── create_project_responses.go │ │ ├── create_using_post_mixin5_parameters.go │ │ ├── create_using_post_mixin5_responses.go │ │ ├── delete_project_parameters.go │ │ ├── delete_project_responses.go │ │ ├── delete_project_using_delete_parameters.go │ │ ├── delete_project_using_delete_responses.go │ │ ├── get_all_projects_using_get_parameters.go │ │ ├── get_all_projects_using_get_responses.go │ │ ├── get_project_parameters.go │ │ ├── get_project_resource_metadata_parameters.go │ │ ├── get_project_resource_metadata_responses.go │ │ ├── get_project_responses.go │ │ ├── get_project_using_get_parameters.go │ │ ├── get_project_using_get_responses.go │ │ ├── get_projects_parameters.go │ │ ├── get_projects_responses.go │ │ ├── get_using_get_mixin5_parameters.go │ │ ├── get_using_get_mixin5_responses.go │ │ ├── modify_project_costs_using_patch_parameters.go │ │ ├── modify_project_costs_using_patch_responses.go │ │ ├── modify_project_principals_using_patch_parameters.go │ │ ├── modify_project_principals_using_patch_responses.go │ │ ├── modify_project_using_patch_parameters.go │ │ ├── modify_project_using_patch_responses.go │ │ ├── project_client.go │ │ ├── sync_projects_principals_using_post_parameters.go │ │ ├── sync_projects_principals_using_post_responses.go │ │ ├── update_project_parameters.go │ │ ├── update_project_resource_metadata_parameters.go │ │ ├── update_project_resource_metadata_responses.go │ │ ├── update_project_responses.go │ │ ├── update_using_patch_mixin5_parameters.go │ │ └── update_using_patch_mixin5_responses.go │ ├── projects │ │ ├── count_of_entities_in_project_using_get_parameters.go │ │ ├── count_of_entities_in_project_using_get_responses.go │ │ └── projects_client.go │ ├── property │ │ ├── delete_configuration_property_parameters.go │ │ ├── delete_configuration_property_responses.go │ │ ├── get_configuration_properties_parameters.go │ │ ├── get_configuration_properties_responses.go │ │ ├── get_configuration_property_parameters.go │ │ ├── get_configuration_property_responses.go │ │ ├── patch_configuration_property_parameters.go │ │ ├── patch_configuration_property_responses.go │ │ └── property_client.go │ ├── property_groups │ │ ├── create_property_group_using_post_parameters.go │ │ ├── create_property_group_using_post_responses.go │ │ ├── delete_property_group_using_delete_parameters.go │ │ ├── delete_property_group_using_delete_responses.go │ │ ├── get_property_group_using_get_parameters.go │ │ ├── get_property_group_using_get_responses.go │ │ ├── list_property_groups_using_get_parameters.go │ │ ├── list_property_groups_using_get_responses.go │ │ ├── property_groups_client.go │ │ ├── update_property_group_using_put_parameters.go │ │ └── update_property_group_using_put_responses.go │ ├── provider_requests │ │ ├── patch_using_patch_parameters.go │ │ ├── patch_using_patch_responses.go │ │ ├── post_using_post_parameters.go │ │ ├── post_using_post_responses.go │ │ └── provider_requests_client.go │ ├── query_for_discovered_machines │ │ ├── query_for_discovered_machines_client.go │ │ ├── query_unmanaged_machines_parameters.go │ │ └── query_unmanaged_machines_responses.go │ ├── request │ │ ├── delete_request_parameters.go │ │ ├── delete_request_responses.go │ │ ├── get_request_tracker_parameters.go │ │ ├── get_request_tracker_responses.go │ │ ├── get_request_trackers_parameters.go │ │ ├── get_request_trackers_responses.go │ │ └── request_client.go │ ├── requests │ │ ├── action_deployment_request_using_post2_parameters.go │ │ ├── action_deployment_request_using_post2_responses.go │ │ ├── get_deployment_requests_using_get2_parameters.go │ │ ├── get_deployment_requests_using_get2_responses.go │ │ ├── get_event_logs_content_using_get2_parameters.go │ │ ├── get_event_logs_content_using_get2_responses.go │ │ ├── get_event_logs_using_get2_parameters.go │ │ ├── get_event_logs_using_get2_responses.go │ │ ├── get_request_events_using_get2_parameters.go │ │ ├── get_request_events_using_get2_responses.go │ │ ├── get_request_using_get2_parameters.go │ │ ├── get_request_using_get2_responses.go │ │ ├── list_resource_requests_using_get2_parameters.go │ │ ├── list_resource_requests_using_get2_responses.go │ │ └── requests_client.go │ ├── resource_actions │ │ ├── get_resource_action_using_get5_parameters.go │ │ ├── get_resource_action_using_get5_responses.go │ │ ├── get_resource_actions_using_get5_parameters.go │ │ ├── get_resource_actions_using_get5_responses.go │ │ ├── resource_actions_client.go │ │ ├── submit_resource_action_request_using_post5_parameters.go │ │ └── submit_resource_action_request_using_post5_responses.go │ ├── resource_quotas │ │ ├── get_using_get3_parameters.go │ │ ├── get_using_get3_responses.go │ │ ├── list_using_get3_parameters.go │ │ ├── list_using_get3_responses.go │ │ └── resource_quotas_client.go │ ├── resource_types │ │ ├── get_resource_type_using_get2_parameters.go │ │ ├── get_resource_type_using_get2_responses.go │ │ ├── get_resource_type_using_get_parameters.go │ │ ├── get_resource_type_using_get_responses.go │ │ ├── list_resource_types_using_get2_parameters.go │ │ ├── list_resource_types_using_get2_responses.go │ │ ├── list_resource_types_using_get_parameters.go │ │ ├── list_resource_types_using_get_responses.go │ │ └── resource_types_client.go │ ├── resources │ │ ├── create_resource_using_post2_parameters.go │ │ ├── create_resource_using_post2_responses.go │ │ ├── get_resource_by_id_using_get5_parameters.go │ │ ├── get_resource_by_id_using_get5_responses.go │ │ ├── get_resource_filter_by_id_using_get2_parameters.go │ │ ├── get_resource_filter_by_id_using_get2_responses.go │ │ ├── get_resource_filters_using_get2_parameters.go │ │ ├── get_resource_filters_using_get2_responses.go │ │ ├── get_resources_using_get2_parameters.go │ │ ├── get_resources_using_get2_responses.go │ │ └── resources_client.go │ ├── security_group │ │ ├── change_security_groups_parameters.go │ │ ├── change_security_groups_responses.go │ │ ├── create_on_demand_security_group_parameters.go │ │ ├── create_on_demand_security_group_responses.go │ │ ├── delete_security_group_parameters.go │ │ ├── delete_security_group_responses.go │ │ ├── get_security_group_parameters.go │ │ ├── get_security_group_responses.go │ │ ├── get_security_groups_parameters.go │ │ ├── get_security_groups_responses.go │ │ ├── reconfigure_security_group_parameters.go │ │ ├── reconfigure_security_group_responses.go │ │ ├── security_group_client.go │ │ ├── update_security_group_parameters.go │ │ └── update_security_group_responses.go │ ├── source_control_sync │ │ ├── get_sync_request_using_get_parameters.go │ │ ├── get_sync_request_using_get_responses.go │ │ ├── schedule_sync_all_using_post_parameters.go │ │ ├── schedule_sync_all_using_post_responses.go │ │ ├── schedule_sync_using_post_parameters.go │ │ ├── schedule_sync_using_post_responses.go │ │ ├── source_control_sync_client.go │ │ ├── sync_history_using_get_parameters.go │ │ └── sync_history_using_get_responses.go │ ├── storage_profile │ │ ├── create_aws_storage_profile_parameters.go │ │ ├── create_aws_storage_profile_responses.go │ │ ├── create_azure_storage_profile_parameters.go │ │ ├── create_azure_storage_profile_responses.go │ │ ├── create_gcp_storage_profile_parameters.go │ │ ├── create_gcp_storage_profile_responses.go │ │ ├── create_storage_profile_parameters.go │ │ ├── create_storage_profile_responses.go │ │ ├── create_vsphere_storage_profile_parameters.go │ │ ├── create_vsphere_storage_profile_responses.go │ │ ├── delete_aws_storage_profile_parameters.go │ │ ├── delete_aws_storage_profile_responses.go │ │ ├── delete_azure_storage_profile_parameters.go │ │ ├── delete_azure_storage_profile_responses.go │ │ ├── delete_gcp_storage_profile_parameters.go │ │ ├── delete_gcp_storage_profile_responses.go │ │ ├── delete_storage_profile_parameters.go │ │ ├── delete_storage_profile_responses.go │ │ ├── delete_vsphere_storage_profile_parameters.go │ │ ├── delete_vsphere_storage_profile_responses.go │ │ ├── get_aws_storage_profile_parameters.go │ │ ├── get_aws_storage_profile_responses.go │ │ ├── get_aws_storage_profiles_parameters.go │ │ ├── get_aws_storage_profiles_responses.go │ │ ├── get_azure_storage_profile_parameters.go │ │ ├── get_azure_storage_profile_responses.go │ │ ├── get_azure_storage_profiles_parameters.go │ │ ├── get_azure_storage_profiles_responses.go │ │ ├── get_gcp_storage_profile_parameters.go │ │ ├── get_gcp_storage_profile_responses.go │ │ ├── get_gcp_storage_profiles_parameters.go │ │ ├── get_gcp_storage_profiles_responses.go │ │ ├── get_storage_profile_parameters.go │ │ ├── get_storage_profile_responses.go │ │ ├── get_storage_profiles_parameters.go │ │ ├── get_storage_profiles_responses.go │ │ ├── get_vsphere_storage_profile_parameters.go │ │ ├── get_vsphere_storage_profile_responses.go │ │ ├── get_vsphere_storage_profiles_parameters.go │ │ ├── get_vsphere_storage_profiles_responses.go │ │ ├── replace_storage_profile_parameters.go │ │ ├── replace_storage_profile_responses.go │ │ ├── storage_profile_client.go │ │ ├── update_aws_storage_profile_parameters.go │ │ ├── update_aws_storage_profile_responses.go │ │ ├── update_azure_storage_profile_parameters.go │ │ ├── update_azure_storage_profile_responses.go │ │ ├── update_gcp_storage_profile_parameters.go │ │ ├── update_gcp_storage_profile_responses.go │ │ ├── update_vsphere_storage_profile_parameters.go │ │ └── update_vsphere_storage_profile_responses.go │ ├── supervisor_clusters │ │ ├── existing_tanzu_clusters_using_get_parameters.go │ │ ├── existing_tanzu_clusters_using_get_responses.go │ │ ├── get_cluster_using_get1_parameters.go │ │ ├── get_cluster_using_get1_responses.go │ │ ├── get_cluster_using_get2_parameters.go │ │ ├── get_cluster_using_get2_responses.go │ │ ├── list_clusters_on_endpoint_using_get_parameters.go │ │ ├── list_clusters_on_endpoint_using_get_responses.go │ │ ├── list_using_get4_parameters.go │ │ ├── list_using_get4_responses.go │ │ ├── register_using_put1_parameters.go │ │ ├── register_using_put1_responses.go │ │ ├── supervisor_clusters_client.go │ │ ├── unregister_using_delete_parameters.go │ │ └── unregister_using_delete_responses.go │ ├── supervisor_namespaces │ │ ├── create_using_post2_parameters.go │ │ ├── create_using_post2_responses.go │ │ ├── delete_using_delete2_parameters.go │ │ ├── delete_using_delete2_responses.go │ │ ├── get_namespace_quotas_using_get_parameters.go │ │ ├── get_namespace_quotas_using_get_responses.go │ │ ├── get_namespace_using_get_parameters.go │ │ ├── get_namespace_using_get_responses.go │ │ ├── list_using_get5_parameters.go │ │ ├── list_using_get5_responses.go │ │ ├── register_using_put2_parameters.go │ │ ├── register_using_put2_responses.go │ │ ├── set_namespace_quotas_using_put_parameters.go │ │ ├── set_namespace_quotas_using_put_responses.go │ │ ├── supervisor_namespaces_client.go │ │ ├── sync_status_using_get_parameters.go │ │ ├── sync_status_using_get_responses.go │ │ ├── sync_using_post_parameters.go │ │ ├── sync_using_post_responses.go │ │ ├── update_using_patch_parameters.go │ │ └── update_using_patch_responses.go │ ├── t_m_c_endpoints │ │ ├── create_request_tracker_using_post_parameters.go │ │ ├── create_request_tracker_using_post_responses.go │ │ ├── get_cluster_groups_by_endpoint_using_get_parameters.go │ │ ├── get_cluster_groups_by_endpoint_using_get_responses.go │ │ ├── get_cluster_groups_by_request_tracker_using_get_parameters.go │ │ ├── get_cluster_groups_by_request_tracker_using_get_responses.go │ │ ├── get_tmc_cli_binaries_using_get_parameters.go │ │ ├── get_tmc_cli_binaries_using_get_responses.go │ │ ├── get_workspaces_by_endpoint_using_get_parameters.go │ │ ├── get_workspaces_by_endpoint_using_get_responses.go │ │ ├── get_workspaces_by_request_tracker_using_get_parameters.go │ │ ├── get_workspaces_by_request_tracker_using_get_responses.go │ │ └── tmc_endpoints_client.go │ ├── tags │ │ ├── get_tags_parameters.go │ │ ├── get_tags_responses.go │ │ └── tags_client.go │ ├── triggers │ │ ├── clone_gerrit_listener_by_name_using_post_parameters.go │ │ ├── clone_gerrit_listener_by_name_using_post_responses.go │ │ ├── clone_gerrit_listener_using_post_parameters.go │ │ ├── clone_gerrit_listener_using_post_responses.go │ │ ├── clone_gerrit_trigger_by_name_using_post_parameters.go │ │ ├── clone_gerrit_trigger_by_name_using_post_responses.go │ │ ├── clone_gerrit_trigger_using_post_parameters.go │ │ ├── clone_gerrit_trigger_using_post_responses.go │ │ ├── create_docker_registry_webhook_using_post_parameters.go │ │ ├── create_docker_registry_webhook_using_post_responses.go │ │ ├── create_gerrit_listener_using_post_parameters.go │ │ ├── create_gerrit_listener_using_post_responses.go │ │ ├── create_gerrit_trigger_using_post_parameters.go │ │ ├── create_gerrit_trigger_using_post_responses.go │ │ ├── create_git_webhook_using_post_parameters.go │ │ ├── create_git_webhook_using_post_responses.go │ │ ├── delete_docker_registry_event_by_id_using_delete_parameters.go │ │ ├── delete_docker_registry_event_by_id_using_delete_responses.go │ │ ├── delete_docker_registry_webhook_by_id_using_delete_parameters.go │ │ ├── delete_docker_registry_webhook_by_id_using_delete_responses.go │ │ ├── delete_docker_registry_webhook_by_name_using_delete_parameters.go │ │ ├── delete_docker_registry_webhook_by_name_using_delete_responses.go │ │ ├── delete_gerrit_event_by_id_using_delete_parameters.go │ │ ├── delete_gerrit_event_by_id_using_delete_responses.go │ │ ├── delete_gerrit_listener_by_id_using_delete_parameters.go │ │ ├── delete_gerrit_listener_by_id_using_delete_responses.go │ │ ├── delete_gerrit_listener_by_name_using_delete_parameters.go │ │ ├── delete_gerrit_listener_by_name_using_delete_responses.go │ │ ├── delete_gerrit_trigger_by_id_using_delete_parameters.go │ │ ├── delete_gerrit_trigger_by_id_using_delete_responses.go │ │ ├── delete_gerrit_trigger_by_name_using_delete_parameters.go │ │ ├── delete_gerrit_trigger_by_name_using_delete_responses.go │ │ ├── delete_git_events_by_id_using_delete_parameters.go │ │ ├── delete_git_events_by_id_using_delete_responses.go │ │ ├── delete_git_webhook_by_id_using_delete_parameters.go │ │ ├── delete_git_webhook_by_id_using_delete_responses.go │ │ ├── delete_git_webhook_by_name_using_delete_parameters.go │ │ ├── delete_git_webhook_by_name_using_delete_responses.go │ │ ├── get_all_docker_registry_events_using_get_parameters.go │ │ ├── get_all_docker_registry_events_using_get_responses.go │ │ ├── get_all_docker_registry_webhooks_using_get_parameters.go │ │ ├── get_all_docker_registry_webhooks_using_get_responses.go │ │ ├── get_all_gerrit_events_using_get_parameters.go │ │ ├── get_all_gerrit_events_using_get_responses.go │ │ ├── get_all_gerrit_listeners_using_get_parameters.go │ │ ├── get_all_gerrit_listeners_using_get_responses.go │ │ ├── get_all_gerrit_triggers_using_get_parameters.go │ │ ├── get_all_gerrit_triggers_using_get_responses.go │ │ ├── get_all_git_events_using_get_parameters.go │ │ ├── get_all_git_events_using_get_responses.go │ │ ├── get_all_git_webhooks_using_get_parameters.go │ │ ├── get_all_git_webhooks_using_get_responses.go │ │ ├── get_docker_registry_webhook_name_using_get_parameters.go │ │ ├── get_docker_registry_webhook_name_using_get_responses.go │ │ ├── get_gerrit_event_by_id_using_get_parameters.go │ │ ├── get_gerrit_event_by_id_using_get_responses.go │ │ ├── get_gerrit_listener_by_id_using_get_parameters.go │ │ ├── get_gerrit_listener_by_id_using_get_responses.go │ │ ├── get_gerrit_listener_by_name_using_get_parameters.go │ │ ├── get_gerrit_listener_by_name_using_get_responses.go │ │ ├── get_gerrit_projects_by_id_using_get_parameters.go │ │ ├── get_gerrit_projects_by_id_using_get_responses.go │ │ ├── get_gerrit_projects_by_name_using_get_parameters.go │ │ ├── get_gerrit_projects_by_name_using_get_responses.go │ │ ├── get_gerrit_trigger_by_id_using_get_parameters.go │ │ ├── get_gerrit_trigger_by_id_using_get_responses.go │ │ ├── get_gerrit_trigger_by_name_using_get_parameters.go │ │ ├── get_gerrit_trigger_by_name_using_get_responses.go │ │ ├── get_git_event_by_id_using_get_parameters.go │ │ ├── get_git_event_by_id_using_get_responses.go │ │ ├── get_git_webhook_by_id_using_get_parameters.go │ │ ├── get_git_webhook_by_id_using_get_responses.go │ │ ├── get_git_webhook_by_name_using_get_parameters.go │ │ ├── get_git_webhook_by_name_using_get_responses.go │ │ ├── get_registry_event_by_id_parameters.go │ │ ├── get_registry_event_by_id_responses.go │ │ ├── get_registry_webhook_by_id_parameters.go │ │ ├── get_registry_webhook_by_id_responses.go │ │ ├── manual_gerrit_event_trigger_using_post_parameters.go │ │ ├── manual_gerrit_event_trigger_using_post_responses.go │ │ ├── patch_docker_registry_webhook_by_id_using_patch_parameters.go │ │ ├── patch_docker_registry_webhook_by_id_using_patch_responses.go │ │ ├── patch_docker_registry_webhook_by_name_using_patch_parameters.go │ │ ├── patch_docker_registry_webhook_by_name_using_patch_responses.go │ │ ├── patch_gerrit_listener_by_id_using_patch_parameters.go │ │ ├── patch_gerrit_listener_by_id_using_patch_responses.go │ │ ├── patch_gerrit_listener_by_name_using_patch_parameters.go │ │ ├── patch_gerrit_listener_by_name_using_patch_responses.go │ │ ├── patch_gerrit_trigger_by_id_using_patch_parameters.go │ │ ├── patch_gerrit_trigger_by_id_using_patch_responses.go │ │ ├── patch_gerrit_trigger_by_name_using_patch_parameters.go │ │ ├── patch_gerrit_trigger_by_name_using_patch_responses.go │ │ ├── resume_or_rerun_docker_registry_event_using_post_parameters.go │ │ ├── resume_or_rerun_docker_registry_event_using_post_responses.go │ │ ├── resume_or_rerun_gerrit_event_using_post_parameters.go │ │ ├── resume_or_rerun_gerrit_event_using_post_responses.go │ │ ├── resume_or_rerun_git_event_using_post_parameters.go │ │ ├── resume_or_rerun_git_event_using_post_responses.go │ │ ├── triggers_client.go │ │ ├── update_docker_registry_webhook_by_id_using_put_parameters.go │ │ ├── update_docker_registry_webhook_by_id_using_put_responses.go │ │ ├── update_docker_registry_webhook_by_name_using_put_parameters.go │ │ ├── update_docker_registry_webhook_by_name_using_put_responses.go │ │ ├── update_gerrit_listener_by_id_using_put_parameters.go │ │ ├── update_gerrit_listener_by_id_using_put_responses.go │ │ ├── update_gerrit_listener_by_name_using_put_parameters.go │ │ ├── update_gerrit_listener_by_name_using_put_responses.go │ │ ├── update_gerrit_trigger_by_id_using_put_parameters.go │ │ ├── update_gerrit_trigger_by_id_using_put_responses.go │ │ ├── update_gerrit_trigger_by_name_using_put_parameters.go │ │ ├── update_gerrit_trigger_by_name_using_put_responses.go │ │ ├── update_git_webhook_by_id_using_put_parameters.go │ │ ├── update_git_webhook_by_id_using_put_responses.go │ │ ├── update_git_webhook_by_name_using_put_parameters.go │ │ ├── update_git_webhook_by_name_using_put_responses.go │ │ ├── validate_gerrit_listener_using_post_parameters.go │ │ └── validate_gerrit_listener_using_post_responses.go │ ├── unregister_machines │ │ ├── unregister_machine_parameters.go │ │ ├── unregister_machine_responses.go │ │ └── unregister_machines_client.go │ ├── user_events │ │ ├── get_user_events_using_get2_parameters.go │ │ ├── get_user_events_using_get2_responses.go │ │ └── user_events_client.go │ ├── user_operations │ │ ├── delete_user_operation_by_id_using_delete_parameters.go │ │ ├── delete_user_operation_by_id_using_delete_responses.go │ │ ├── get_all_user_operations_using_get_parameters.go │ │ ├── get_all_user_operations_using_get_responses.go │ │ ├── get_user_operation_by_id_using_get_parameters.go │ │ ├── get_user_operation_by_id_using_get_responses.go │ │ ├── modify_patch_user_operation_using_patch_parameters.go │ │ ├── modify_patch_user_operation_using_patch_responses.go │ │ ├── modify_post_user_operation_using_post_parameters.go │ │ ├── modify_post_user_operation_using_post_responses.go │ │ └── user_operations_client.go │ ├── variables │ │ ├── create_variable_using_post_parameters.go │ │ ├── create_variable_using_post_responses.go │ │ ├── delete_variable_by_id_using_delete_parameters.go │ │ ├── delete_variable_by_id_using_delete_responses.go │ │ ├── delete_variable_by_name_using_delete_parameters.go │ │ ├── delete_variable_by_name_using_delete_responses.go │ │ ├── get_all_variables_using_get_parameters.go │ │ ├── get_all_variables_using_get_responses.go │ │ ├── get_variable_by_id_using_get_parameters.go │ │ ├── get_variable_by_id_using_get_responses.go │ │ ├── get_variable_by_name_using_get_parameters.go │ │ ├── get_variable_by_name_using_get_responses.go │ │ ├── update_variable_by_id_using_put_parameters.go │ │ ├── update_variable_by_id_using_put_responses.go │ │ ├── update_variable_by_name_using_put_parameters.go │ │ ├── update_variable_by_name_using_put_responses.go │ │ └── variables_client.go │ ├── vcenter_endpoints │ │ ├── get_storage_classes_using_get_parameters.go │ │ ├── get_storage_classes_using_get_responses.go │ │ └── vcenter_endpoints_client.go │ ├── vcf │ │ ├── create_service_credentials_using_post_parameters.go │ │ ├── create_service_credentials_using_post_responses.go │ │ ├── delete_service_account_using_delete_parameters.go │ │ ├── delete_service_account_using_delete_responses.go │ │ ├── delete_service_credential_using_delete_parameters.go │ │ ├── delete_service_credential_using_delete_responses.go │ │ ├── enumerate_domains_using_post_parameters.go │ │ ├── enumerate_domains_using_post_responses.go │ │ ├── get_domain_using_get_parameters.go │ │ ├── get_domain_using_get_responses.go │ │ ├── get_domains_using_get_parameters.go │ │ ├── get_domains_using_get_responses.go │ │ ├── patch_service_account_using_patch_parameters.go │ │ ├── patch_service_account_using_patch_responses.go │ │ └── vcf_client.go │ ├── vra_client.go │ └── vsphere_endpoints │ │ ├── get_full_virtual_machine_classes_using_get_parameters.go │ │ ├── get_full_virtual_machine_classes_using_get_responses.go │ │ ├── get_storage_classes_using_get1_parameters.go │ │ ├── get_storage_classes_using_get1_responses.go │ │ ├── get_tanzu_kubernetes_releases_using_get_parameters.go │ │ ├── get_tanzu_kubernetes_releases_using_get_responses.go │ │ ├── get_virtual_machine_classes_using_get_parameters.go │ │ ├── get_virtual_machine_classes_using_get_responses.go │ │ └── vsphere_endpoints_client.go └── models │ ├── about.go │ ├── about_api_description.go │ ├── about_deprecation_policy.go │ ├── about_response.go │ ├── admin_catalog_item_patch.go │ ├── api_description.go │ ├── auth_credentials_service_state.go │ ├── auth_response.go │ ├── authorization_context.go │ ├── aws_storage_profile.go │ ├── azure_storage_profile.go │ ├── batch_user_operation_request.go │ ├── batch_user_operation_response.go │ ├── batch_user_operation_status.go │ ├── binaries_response.go │ ├── block_device.go │ ├── block_device_result.go │ ├── block_device_specification.go │ ├── blueprint.go │ ├── blueprint_about.go │ ├── blueprint_content_source.go │ ├── blueprint_content_source_config.go │ ├── blueprint_plan.go │ ├── blueprint_plan_resource.go │ ├── blueprint_plan_task.go │ ├── blueprint_request.go │ ├── blueprint_resources_plan.go │ ├── blueprint_validation_message.go │ ├── blueprint_validation_request.go │ ├── blueprint_validation_response.go │ ├── blueprint_version.go │ ├── blueprint_version_request.go │ ├── bulk_create_deployment_request.go │ ├── catalog_item.go │ ├── catalog_item_publish_request.go │ ├── catalog_item_request.go │ ├── catalog_item_request_response.go │ ├── catalog_item_resource_upfront_price_response.go │ ├── catalog_item_type.go │ ├── catalog_item_upfront_price_response.go │ ├── catalog_item_version.go │ ├── catalog_source.go │ ├── certificate_fingerprint.go │ ├── certificate_info.go │ ├── certificate_info_specification.go │ ├── certificate_issued_to.go │ ├── certificate_issuer.go │ ├── certificate_validity.go │ ├── change_security_group_specification.go │ ├── claims.go │ ├── clause.go │ ├── cloud_account.go │ ├── cloud_account_aws.go │ ├── cloud_account_aws_region_enumeration_specification.go │ ├── cloud_account_aws_result.go │ ├── cloud_account_aws_specification.go │ ├── cloud_account_azure.go │ ├── cloud_account_azure_region_enumeration_specification.go │ ├── cloud_account_azure_result.go │ ├── cloud_account_azure_specification.go │ ├── cloud_account_gcp.go │ ├── cloud_account_gcp_region_enumeration_specification.go │ ├── cloud_account_gcp_result.go │ ├── cloud_account_gcp_specification.go │ ├── cloud_account_nsx_t.go │ ├── cloud_account_nsx_t_result.go │ ├── cloud_account_nsx_t_specification.go │ ├── cloud_account_nsx_v.go │ ├── cloud_account_nsx_v_result.go │ ├── cloud_account_nsx_v_specification.go │ ├── cloud_account_region_enumeration_specification.go │ ├── cloud_account_regions.go │ ├── cloud_account_result.go │ ├── cloud_account_specification.go │ ├── cloud_account_vcf.go │ ├── cloud_account_vcf_region_enumeration_specification.go │ ├── cloud_account_vcf_result.go │ ├── cloud_account_vcf_specification.go │ ├── cloud_account_vmc.go │ ├── cloud_account_vmc_region_enumeration_specification.go │ ├── cloud_account_vmc_result.go │ ├── cloud_account_vmc_specification.go │ ├── cloud_account_vsphere.go │ ├── cloud_account_vsphere_region_enumeration_specification.go │ ├── cloud_account_vsphere_result.go │ ├── cloud_account_vsphere_specification.go │ ├── cluster_group.go │ ├── cluster_plan.go │ ├── cluster_plan_aggregation.go │ ├── cn_project_vo.go │ ├── cn_template_counter_vo.go │ ├── cn_template_vo.go │ ├── commit_details.go │ ├── completion_handler.go │ ├── compute_gateway.go │ ├── compute_gateway_result.go │ ├── compute_gateway_specification.go │ ├── compute_nat.go │ ├── compute_nat_result.go │ ├── compute_nat_specification.go │ ├── condition.go │ ├── configuration_property.go │ ├── configuration_property_result.go │ ├── constraint.go │ ├── content_about.go │ ├── content_definition.go │ ├── content_source.go │ ├── content_sources.go │ ├── create_deployment_request.go │ ├── create_resource_request.go │ ├── criteria.go │ ├── csp_login_specification.go │ ├── custom_integration.go │ ├── custom_integration_patch_request.go │ ├── custom_integration_spec.go │ ├── custom_integrations.go │ ├── custom_naming.go │ ├── custom_naming_counter.go │ ├── custom_naming_model.go │ ├── custom_naming_project.go │ ├── custom_naming_template.go │ ├── custom_properties.go │ ├── data_collector.go │ ├── data_collector_registration.go │ ├── data_collector_result.go │ ├── data_element.go │ ├── deployment.go │ ├── deployment_expense_history.go │ ├── deployment_filter.go │ ├── deployment_filter_schema.go │ ├── deployment_reference.go │ ├── deployment_resource.go │ ├── deployment_resource_type.go │ ├── deployment_result.go │ ├── deployment_specification.go │ ├── deployment_update.go │ ├── deprecation_policy.go │ ├── disk_attachment_specification.go │ ├── disk_encryption_set.go │ ├── disk_encryption_set_list.go │ ├── disk_snapshot.go │ ├── disk_snapshot_specification.go │ ├── docker_registry_event.go │ ├── docker_registry_events.go │ ├── docker_registry_web_hook.go │ ├── docker_registry_web_hook_spec.go │ ├── docker_registry_webhooks.go │ ├── email_event_config.go │ ├── endpoint.go │ ├── endpoint_certificate.go │ ├── endpoint_certificate_chain.go │ ├── endpoint_properties.go │ ├── endpoint_spec.go │ ├── endpoint_validation_spec.go │ ├── endpoints.go │ ├── entitlement.go │ ├── error.go │ ├── event.go │ ├── event_log.go │ ├── execution.go │ ├── execution_action_request.go │ ├── execution_request.go │ ├── execution_response.go │ ├── executions.go │ ├── expense.go │ ├── external_network_ip_range.go │ ├── external_network_ip_range_result.go │ ├── fabric_azure_storage_account.go │ ├── fabric_azure_storage_account_result.go │ ├── fabric_compute.go │ ├── fabric_compute_result.go │ ├── fabric_compute_specification.go │ ├── fabric_flavor.go │ ├── fabric_flavor_description.go │ ├── fabric_flavor_result.go │ ├── fabric_image.go │ ├── fabric_image_description.go │ ├── fabric_image_result.go │ ├── fabric_network.go │ ├── fabric_network_result.go │ ├── fabric_network_specification.go │ ├── fabric_network_vsphere.go │ ├── fabric_network_vsphere_result.go │ ├── fabric_network_vsphere_specification.go │ ├── fabric_vsphere_datastore.go │ ├── fabric_vsphere_datastore_result.go │ ├── fabric_vsphere_datastore_specification.go │ ├── fabric_vsphere_storage_policy.go │ ├── fabric_vsphere_storage_policy_result.go │ ├── fields_v1.go │ ├── file_tree.go │ ├── file_tree_directory.go │ ├── filter_entry.go │ ├── fixed_price.go │ ├── flavor_mapping.go │ ├── flavor_profile.go │ ├── flavor_profile_result.go │ ├── flavor_profile_specification.go │ ├── flavor_result.go │ ├── folder.go │ ├── folder_result.go │ ├── form_definition.go │ ├── full_name.go │ ├── gcp_storage_profile.go │ ├── gerrit_event.go │ ├── gerrit_events.go │ ├── gerrit_listener.go │ ├── gerrit_listener_patch.go │ ├── gerrit_listener_spec.go │ ├── gerrit_listeners.go │ ├── gerrit_manual_trigger.go │ ├── gerrit_trigger.go │ ├── gerrit_trigger_file_filter.go │ ├── gerrit_trigger_gerrit_event_configuration.go │ ├── gerrit_trigger_patch.go │ ├── gerrit_trigger_spec.go │ ├── gerrit_trigger_spec_gerrit_event_configuration.go │ ├── gerrit_triggers.go │ ├── git_event.go │ ├── git_events.go │ ├── git_webhook.go │ ├── git_webhook_file_filter.go │ ├── git_webhook_spec.go │ ├── git_webhooks.go │ ├── group.go │ ├── hardware.go │ ├── has_metadata.go │ ├── health_check_configuration.go │ ├── href.go │ ├── iaa_s_about.go │ ├── iaa_s_deployment.go │ ├── iaa_s_project.go │ ├── iaa_s_project_resource_metadata.go │ ├── iaa_s_project_specification.go │ ├── image_mapping.go │ ├── image_mapping_description.go │ ├── image_profile.go │ ├── image_profile_result.go │ ├── image_profile_specification.go │ ├── image_result.go │ ├── integration.go │ ├── integration_result.go │ ├── integration_specification.go │ ├── jira_event_config.go │ ├── k8_s_cluster.go │ ├── k8_s_cluster_assign_request_d_t_o.go │ ├── k8_s_cluster_assign_response_d_t_o.go │ ├── k8_s_installer.go │ ├── k8_s_limit_range.go │ ├── k8_s_namespace.go │ ├── k8_s_node.go │ ├── k8_s_resource.go │ ├── k8_s_resource_quota.go │ ├── k8_s_zone.go │ ├── k8_s_zone_cluster_assignment.go │ ├── k8_s_zone_project_assignment.go │ ├── k8_s_zone_resource_assignment.go │ ├── k8s_cluster_state.go │ ├── limits.go │ ├── link.go │ ├── load_balancer.go │ ├── load_balancer_result.go │ ├── load_balancer_specification.go │ ├── lock_request.go │ ├── machine.go │ ├── machine_boot_config.go │ ├── machine_boot_config_settings.go │ ├── machine_result.go │ ├── machine_specification.go │ ├── managed_fields_entry.go │ ├── manual_trigger_response.go │ ├── meta.go │ ├── metering.go │ ├── metering_assignment_strategy.go │ ├── metering_item.go │ ├── metering_policy.go │ ├── metering_policy_assignment.go │ ├── metering_policy_assignment_info.go │ ├── named_metering.go │ ├── named_metering_item.go │ ├── nat_rule.go │ ├── network.go │ ├── network_domain.go │ ├── network_domain_result.go │ ├── network_interface.go │ ├── network_interface_specification.go │ ├── network_ip_range.go │ ├── network_ip_range_result.go │ ├── network_ip_range_specification.go │ ├── network_profile.go │ ├── network_profile_result.go │ ├── network_profile_specification.go │ ├── network_result.go │ ├── network_specification.go │ ├── node.go │ ├── node_list.go │ ├── node_spec.go │ ├── node_status.go │ ├── notification.go │ ├── notification_configuration.go │ ├── notification_scenario_config.go │ ├── nsx_account.go │ ├── object_meta.go │ ├── onboarding_blueprint_request.go │ ├── onboarding_blueprint_response.go │ ├── onboarding_deployment_request.go │ ├── onboarding_deployment_response.go │ ├── onboarding_plan_request.go │ ├── onboarding_plan_response.go │ ├── onboarding_resource_request.go │ ├── onboarding_resource_response.go │ ├── one_time_metering.go │ ├── one_time_metering_item.go │ ├── operation.go │ ├── output_value.go │ ├── owner_reference.go │ ├── p_k_s_cluster.go │ ├── p_k_s_plan.go │ ├── page.go │ ├── page_metadata.go │ ├── page_of_blueprint.go │ ├── page_of_blueprint_content_source.go │ ├── page_of_blueprint_request.go │ ├── page_of_blueprint_version.go │ ├── page_of_catalog_item.go │ ├── page_of_catalog_item_type.go │ ├── page_of_catalog_item_version.go │ ├── page_of_catalog_source.go │ ├── page_of_cluster_group.go │ ├── page_of_cluster_plan.go │ ├── page_of_cluster_plan_aggregation.go │ ├── page_of_commit_details.go │ ├── page_of_deployment.go │ ├── page_of_deployment_resource.go │ ├── page_of_deployment_resource_type.go │ ├── page_of_event.go │ ├── page_of_filter_entry.go │ ├── page_of_k8_s_cluster.go │ ├── page_of_k8_s_limit_range.go │ ├── page_of_k8_s_namespace.go │ ├── page_of_k8_s_resource_quota.go │ ├── page_of_k8_s_zone.go │ ├── page_of_metering_policy.go │ ├── page_of_metering_policy_assignment.go │ ├── page_of_notification_scenario_config.go │ ├── page_of_policy.go │ ├── page_of_policy_decision_of_object_node.go │ ├── page_of_policy_type.go │ ├── page_of_projects.go │ ├── page_of_property_group.go │ ├── page_of_request.go │ ├── page_of_resource.go │ ├── page_of_resource_type.go │ ├── page_of_storage_policy.go │ ├── page_of_supervisor_cluster.go │ ├── page_of_supervisor_namespace.go │ ├── page_of_tag_state.go │ ├── page_of_terraform_version.go │ ├── page_of_user_event.go │ ├── page_of_workspace.go │ ├── pageable.go │ ├── parameter.go │ ├── photon_model_endpoint_config_request.go │ ├── pipeline.go │ ├── pipeline_patch_request.go │ ├── pipeline_spec.go │ ├── pipeline_starred_property.go │ ├── pipelines.go │ ├── plan_execution_request.go │ ├── plan_execution_response.go │ ├── policies.go │ ├── policy.go │ ├── policy_decision_of_object_node.go │ ├── policy_decision_policy.go │ ├── policy_feature_config.go │ ├── policy_stats.go │ ├── policy_type.go │ ├── principal.go │ ├── principal_role.go │ ├── principal_role_assignment.go │ ├── project.go │ ├── project_about.go │ ├── project_constraint.go │ ├── project_cost.go │ ├── project_principals_assignment.go │ ├── project_resource_metadata.go │ ├── project_resource_metadata_specification.go │ ├── project_result.go │ ├── project_roles.go │ ├── project_specification.go │ ├── property.go │ ├── property_definition.go │ ├── property_description.go │ ├── property_group.go │ ├── property_meta_data.go │ ├── provider.go │ ├── public_key.go │ ├── rate_factor.go │ ├── rate_factor_item.go │ ├── reconfigure_compute_nat_specification.go │ ├── reference.go │ ├── region.go │ ├── region_result.go │ ├── region_specification.go │ ├── remote_access_specification.go │ ├── request.go │ ├── request_tracker.go │ ├── request_tracker_result.go │ ├── requests.go │ ├── resource.go │ ├── resource_action.go │ ├── resource_action_request.go │ ├── resource_field_filter.go │ ├── resource_reference.go │ ├── resource_request.go │ ├── resource_request_response.go │ ├── resource_response.go │ ├── resource_specification.go │ ├── resource_type.go │ ├── resources.go │ ├── response_entity.go │ ├── resume_request.go │ ├── rollback_configuration.go │ ├── rollback_response.go │ ├── route.go │ ├── route_configuration.go │ ├── rule.go │ ├── salt_configuration.go │ ├── security_group.go │ ├── security_group_result.go │ ├── security_group_specification.go │ ├── server_sent_event.go │ ├── service_account_request.go │ ├── service_document_description.go │ ├── service_document_query_result.go │ ├── service_error_response.go │ ├── service_request.go │ ├── slice_of_event_log.go │ ├── snapshot.go │ ├── snapshot_specification.go │ ├── socket_context.go │ ├── sort.go │ ├── source_control_sync_all_request.go │ ├── source_control_sync_history.go │ ├── source_control_sync_history_item.go │ ├── source_control_sync_request.go │ ├── source_control_sync_requests.go │ ├── stack_trace_element.go │ ├── stage.go │ ├── stage_execution.go │ ├── storage_policy.go │ ├── storage_profile.go │ ├── storage_profile_aws_result.go │ ├── storage_profile_aws_specification.go │ ├── storage_profile_azure_result.go │ ├── storage_profile_azure_specification.go │ ├── storage_profile_gcp_result.go │ ├── storage_profile_gcp_specification.go │ ├── storage_profile_result.go │ ├── storage_profile_specification.go │ ├── storage_profile_vsphere_result.go │ ├── storage_profile_vsphere_specification.go │ ├── storage_spec.go │ ├── streaming_response_body.go │ ├── supervisor_cluster.go │ ├── supervisor_cluster_assignment.go │ ├── supervisor_namespace.go │ ├── supervisor_namespace_assignment.go │ ├── supervisor_namespace_create_d_t_o.go │ ├── supervisor_namespace_quota.go │ ├── supervisor_namespace_sync_request_d_t_o.go │ ├── supervisor_namespace_sync_response_d_t_o.go │ ├── supervisor_namespace_update_d_t_o.go │ ├── supported_api.go │ ├── t_m_c_endpoint_config_request.go │ ├── t_m_c_endpoint_properties.go │ ├── t_m_c_request_tracker.go │ ├── tag.go │ ├── tag_based_metering.go │ ├── tag_based_metering_item.go │ ├── tag_based_one_time_metering.go │ ├── tag_based_one_time_metering_item.go │ ├── tag_based_rate_factor_item.go │ ├── tag_result.go │ ├── tag_state.go │ ├── task.go │ ├── task_execution.go │ ├── task_state.go │ ├── terraform_blueprint_config.go │ ├── terraform_configuration_source_reference.go │ ├── terraform_to_blueprint_mapping.go │ ├── terraform_version.go │ ├── throwable.go │ ├── tile_executor_response.go │ ├── tile_info.go │ ├── tiles.go │ ├── time_series_value.go │ ├── type.go │ ├── unmanaged_machine_query_service_request.go │ ├── unregister_machine_request.go │ ├── unregister_machine_response.go │ ├── update_cloud_account_aws_specification.go │ ├── update_cloud_account_azure_specification.go │ ├── update_cloud_account_gcp_specification.go │ ├── update_cloud_account_nsx_t_specification.go │ ├── update_cloud_account_nsx_v_specification.go │ ├── update_cloud_account_specification.go │ ├── update_cloud_account_vcf_specification.go │ ├── update_cloud_account_vmc_specification.go │ ├── update_cloud_account_vsphere_specification.go │ ├── update_external_network_ip_range_specification.go │ ├── update_flavor_profile_specification.go │ ├── update_image_profile_specification.go │ ├── update_integration_specification.go │ ├── update_machine_specification.go │ ├── update_network_interface_specification.go │ ├── update_project_specification.go │ ├── update_security_group_specification.go │ ├── uri.go │ ├── user.go │ ├── user_event.go │ ├── user_experiences_response.go │ ├── user_op_resource.go │ ├── user_op_response.go │ ├── user_operation.go │ ├── user_operations.go │ ├── validation_message.go │ ├── validator_response.go │ ├── variable.go │ ├── variable_spec.go │ ├── variables.go │ ├── vcf_credential_requests.go │ ├── vcf_domain.go │ ├── vcf_domains.go │ ├── vcf_service_account.go │ ├── vcf_service_credential.go │ ├── vcf_service_credential_creation_response.go │ ├── version.go │ ├── version_request.go │ ├── virtual_machine_class.go │ ├── virtual_machine_class_spec.go │ ├── volume_type_list.go │ ├── vsphere_account.go │ ├── vsphere_storage_profile.go │ ├── webhook_enable_patch.go │ ├── webhook_event_config.go │ ├── workspace.go │ ├── workspace_result.go │ ├── x509_certificate.go │ ├── zone.go │ ├── zone_assignment.go │ ├── zone_assignment_specification.go │ ├── zone_result.go │ └── zone_specification.go └── swagger ├── vra-blueprint.json ├── vra-catalog-deployment.json ├── vra-cmx.json ├── vra-content.json ├── vra-iaas.json ├── vra-pipeline.json ├── vra-project.json └── vra-relocation.json /.gitignore: -------------------------------------------------------------------------------- 1 | vra-sdk-go 2 | swagger/vra-combined.json 3 | swagger/vra-blueprint-fixed.json 4 | swagger/vra-iaas-fixed.json 5 | swagger/vra-catalog-deployment-fixed.json 6 | swagger/vra-pipeline-fixed.json 7 | swagger/vra-project-fixed.json 8 | swagger/vra-cmx-fixed.json 9 | swagger/vra-relocation-fixed.json 10 | sdk-test 11 | tokens 12 | examples/cloud_account/cloud_account 13 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Cloud Automation Services SDK for Go 2 | Copyright (c) 2019 VMware, Inc. All Rights Reserved. 3 | 4 | This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in compliance with the Apache 2.0 License. 5 | 6 | This product may include a number of subcomponents with separate copyright notices and license terms. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license, as noted in the LICENSE file. 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vra-sdk-go 2 | 3 | ## Overview 4 | 5 | This Go language SDK is for the VMware vRealize Automation products. 6 | 7 | ## Building and updating the SDK 8 | 9 | This SDK is auto-generated from the swagger files produced from the 10 | vRealize Automation product. As such, it is suggested to file an issue 11 | for the maintainers to update the SDK rather than a PR. 12 | 13 | To update, run the following commands: 14 | ``` 15 | # Download new base swagger files 16 | make update 17 | 18 | # Process the swagger files to generate the SDK 19 | make swaggeer 20 | ``` 21 | 22 | Note: the process of creating the SDK will validate the swagger for 23 | correctness as well as run some fixup scripts to normalizes the name 24 | mangling and adds some missing filter parameters. 25 | 26 | Tools used for the SDK generation: 27 | - [go-swagger](https://github.com/go-swagger/go-swagger) 28 | 29 | ## Contributing 30 | 31 | The vra-sdk-go project team welcomes contributions from the community. 32 | If you wish to contribute code and you have not signed our contributor 33 | license agreement (CLA), our bot will update the issue when you open a 34 | Pull Request. For any questions about the CLA process, please refer to 35 | our [FAQ](https://cla.vmware.com/faq). For more detailed information, 36 | refer to [CONTRIBUTING.md](CONTRIBUTING.md). 37 | 38 | ## License 39 | 40 | vra-sdk-go is available under the [Apache 2 license](LICENSE). 41 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/vmware/vra-sdk-go 2 | 3 | require ( 4 | github.com/go-openapi/errors v0.20.3 5 | github.com/go-openapi/loads v0.21.2 // indirect 6 | github.com/go-openapi/runtime v0.24.1 7 | github.com/go-openapi/spec v0.20.7 // indirect 8 | github.com/go-openapi/strfmt v0.21.3 9 | github.com/go-openapi/swag v0.22.3 10 | github.com/go-openapi/validate v0.22.0 11 | github.com/mitchellh/mapstructure v1.5.0 // indirect 12 | go.mongodb.org/mongo-driver v1.10.3 // indirect 13 | ) 14 | 15 | go 1.14 16 | -------------------------------------------------------------------------------- /hack/fix_blueprint_swagger: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import argparse 4 | import json 5 | 6 | 7 | # This is the location of the IaaS swagger 8 | old_filename = "swagger/vra-blueprint.json" 9 | new_filename = "swagger/vra-blueprint-fixed.json" 10 | 11 | 12 | def replace_value(d, k, v, new): 13 | if k in d and d[k] == v: 14 | d[k] = new 15 | for child in d.values(): 16 | if isinstance(child, dict): 17 | replace_value(child, k, v, new) 18 | elif isinstance(child, list): 19 | for i in child: 20 | if isinstance(i, dict): 21 | replace_value(i, k, v, new) 22 | 23 | 24 | def rename_blueprint_models(swagger): 25 | definitions = [ 26 | ('ContentSource', 'BlueprintContentSource', '#/definitions/ContentSource', '#/definitions/BlueprintContentSource'), 27 | ('ContentSourceConfig', 'BlueprintContentSourceConfig', '#/definitions/ContentSourceConfig', '#/definitions/BlueprintContentSourceConfig'), 28 | ('PageOfContentSource', 'PageOfBlueprintContentSource', '#/definitions/PageOfContentSource', '#/definitions/PageOfBlueprintContentSource'), 29 | ] 30 | 31 | for (oldDef, newDef, oldRef, newRef) in definitions: 32 | v = swagger['definitions'][oldDef] 33 | del swagger['definitions'][oldDef] 34 | swagger['definitions'][newDef] = v 35 | replace_value(swagger, "$ref", oldRef, newRef) 36 | 37 | 38 | def remove_global_security(swagger): 39 | if 'securityDefinitions' in swagger: 40 | del swagger['securityDefinitions'] 41 | 42 | 43 | # See https://jira.eng.vmware.com/browse/TCS-4017 for context 44 | def remove_security(swagger): 45 | for p in swagger['paths']: 46 | param_list = swagger['paths'][p] 47 | for method in param_list: 48 | if 'security' in swagger['paths'][p][method]: 49 | del swagger['paths'][p][method]['security'] 50 | 51 | 52 | if __name__ == "__main__": 53 | parser = argparse.ArgumentParser() 54 | parser.add_argument('--omit-security', action='store_false') 55 | args = parser.parse_args() 56 | 57 | # read in the swagger spec 58 | swagger = json.loads(open(old_filename).read()) 59 | 60 | rename_blueprint_models(swagger) 61 | 62 | if args.omit_security: 63 | remove_global_security(swagger) 64 | remove_security(swagger) 65 | 66 | # Overwrite the swagger spec 67 | f = open(new_filename, "w") 68 | f.write(json.dumps(swagger, sort_keys=False, indent=2)) 69 | f.write('\n') 70 | -------------------------------------------------------------------------------- /hack/fix_cmx_swagger: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import argparse 4 | import json 5 | 6 | 7 | # This is the location of the CMX swagger 8 | old_filename = "swagger/vra-cmx.json" 9 | new_filename = "swagger/vra-cmx-fixed.json" 10 | 11 | 12 | def replace_value(d, k, v, new): 13 | if k in d and d[k] == v: 14 | d[k] = new 15 | for child in d.values(): 16 | if isinstance(child, dict): 17 | replace_value(child, k, v, new) 18 | elif isinstance(child, list): 19 | for i in child: 20 | if isinstance(i, dict): 21 | replace_value(i, k, v, new) 22 | 23 | 24 | def remove_global_security(swagger): 25 | if 'securityDefinitions' in swagger: 26 | del swagger['securityDefinitions'] 27 | 28 | 29 | # See https://jira.eng.vmware.com/browse/TCS-4017 for context 30 | def remove_security(swagger): 31 | for p in swagger['paths']: 32 | param_list = swagger['paths'][p] 33 | for method in param_list: 34 | if 'security' in swagger['paths'][p][method]: 35 | del swagger['paths'][p][method]['security'] 36 | 37 | 38 | if __name__ == "__main__": 39 | parser = argparse.ArgumentParser() 40 | parser.add_argument('--omit-security', action='store_false') 41 | args = parser.parse_args() 42 | 43 | # read in the swagger spec 44 | swagger = json.loads(open(old_filename).read()) 45 | 46 | if args.omit_security: 47 | remove_global_security(swagger) 48 | remove_security(swagger) 49 | 50 | # Overwrite the swagger spec 51 | f = open(new_filename, "w") 52 | f.write(json.dumps(swagger, sort_keys=False, indent=2)) 53 | f.write('\n') 54 | -------------------------------------------------------------------------------- /hack/fix_project_swagger: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import argparse 4 | import json 5 | 6 | 7 | # This is the location of the Project swagger 8 | old_filename = "swagger/vra-project.json" 9 | new_filename = "swagger/vra-project-fixed.json" 10 | 11 | 12 | def replace_value(d, k, v, new): 13 | if k in d and d[k] == v: 14 | d[k] = new 15 | for child in d.values(): 16 | if isinstance(child, dict): 17 | replace_value(child, k, v, new) 18 | elif isinstance(child, list): 19 | for i in child: 20 | if isinstance(i, dict): 21 | replace_value(i, k, v, new) 22 | 23 | 24 | def rename_project_models(swagger): 25 | definitions = [ 26 | ('About', 'ProjectAbout', '#/definitions/About', '#/definitions/ProjectAbout'), 27 | ('Constraint', 'ProjectConstraint', '#/definitions/Constraint', '#/definitions/ProjectConstraint'), 28 | ] 29 | 30 | for (oldDef, newDef, oldRef, newRef) in definitions: 31 | v = swagger['definitions'][oldDef] 32 | del swagger['definitions'][oldDef] 33 | swagger['definitions'][newDef] = v 34 | replace_value(swagger, "$ref", oldRef, newRef) 35 | 36 | 37 | def remove_global_security(swagger): 38 | if 'securityDefinitions' in swagger: 39 | del swagger['securityDefinitions'] 40 | 41 | 42 | # See https://jira.eng.vmware.com/browse/TCS-4017 for context 43 | def remove_security(swagger): 44 | for p in swagger['paths']: 45 | param_list = swagger['paths'][p] 46 | for method in param_list: 47 | if 'security' in swagger['paths'][p][method]: 48 | del swagger['paths'][p][method]['security'] 49 | 50 | 51 | if __name__ == "__main__": 52 | parser = argparse.ArgumentParser() 53 | parser.add_argument('--omit-security', action='store_false') 54 | args = parser.parse_args() 55 | 56 | # read in the swagger spec 57 | swagger = json.loads(open(old_filename).read()) 58 | 59 | rename_project_models(swagger) 60 | 61 | if args.omit_security: 62 | remove_global_security(swagger) 63 | remove_security(swagger) 64 | 65 | # Overwrite the swagger spec 66 | f = open(new_filename, "w") 67 | f.write(json.dumps(swagger, sort_keys=False, indent=2)) 68 | f.write('\n') 69 | -------------------------------------------------------------------------------- /hack/fix_relocation_swagger: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import argparse 4 | import json 5 | 6 | 7 | # This is the location of the Relocation swagger 8 | old_filename = "swagger/vra-relocation.json" 9 | new_filename = "swagger/vra-relocation-fixed.json" 10 | 11 | 12 | def replace_value(d, k, v, new): 13 | if k in d and d[k] == v: 14 | d[k] = new 15 | for child in d.values(): 16 | if isinstance(child, dict): 17 | replace_value(child, k, v, new) 18 | elif isinstance(child, list): 19 | for i in child: 20 | if isinstance(i, dict): 21 | replace_value(i, k, v, new) 22 | 23 | 24 | def remove_global_security(swagger): 25 | if 'securityDefinitions' in swagger: 26 | del swagger['securityDefinitions'] 27 | 28 | 29 | # See https://jira.eng.vmware.com/browse/TCS-4017 for context 30 | def remove_security(swagger): 31 | for p in swagger['paths']: 32 | param_list = swagger['paths'][p] 33 | for method in param_list: 34 | if 'security' in swagger['paths'][p][method]: 35 | del swagger['paths'][p][method]['security'] 36 | 37 | 38 | if __name__ == "__main__": 39 | parser = argparse.ArgumentParser() 40 | parser.add_argument('--omit-security', action='store_false') 41 | args = parser.parse_args() 42 | 43 | # read in the swagger spec 44 | swagger = json.loads(open(old_filename).read()) 45 | 46 | if args.omit_security: 47 | remove_global_security(swagger) 48 | remove_security(swagger) 49 | 50 | # Overwrite the swagger spec 51 | f = open(new_filename, "w") 52 | f.write(json.dumps(swagger, sort_keys=False, indent=2)) 53 | f.write('\n') 54 | -------------------------------------------------------------------------------- /hack/fixup.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # Uncomment the other line if backup files are wanted for debugging 4 | BACKUP="" 5 | # BACKUP=".bak" 6 | 7 | rename() { 8 | find pkg/client -type d -name "*$1*" | sed "s/\(.*\)$1\(.*\)/mv & \1$2\2/" | sh 9 | find pkg/client -type f -name "*$1*" | sed "s/\(.*\)$1\(.*\)/mv & \1$2\2/" | sh 10 | } 11 | 12 | rename v_sphere vsphere 13 | rename v_center vcenter 14 | rename v_c_f vcf 15 | rename vm_c vmc 16 | rename a_w_s aws 17 | rename p_k_s pks 18 | rename _d_e_l_e_t_e _delete 19 | rename _g_e_t _get 20 | rename _p_a_t_c_h _patch 21 | rename _p_o_s_t _post 22 | rename _p_u_t _put 23 | rename _g_e_t1 _get1 24 | rename _d_e_l_e_t_e1 _delete1 25 | rename _p_a_t_c_h1 _patch1 26 | rename _p_o_s_t1 _post1 27 | rename _p_u_t1 _put1 28 | 29 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/_a_w_s_/_aws_/g' {} + 30 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/_v_c_f_/_vcf_/g' {} + 31 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/v_c_f/vcf/g' {} + 32 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/_v_m_c_/_vmc_/g' {} + 33 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/_v_sphere_/_vsphere_/g' {} + 34 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/v_sphere_/vsphere_/g' {} + 35 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/v_center_/vcenter_/g' {} + 36 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/p_k_s_/pks_/g' {} + 37 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/_d_e_l_e_t_e/_delete/g' {} + 38 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/_g_e_t/_get/g' {} + 39 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/_p_a_t_c_h/_patch/g' {} + 40 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/_p_o_s_t/_post/g' {} + 41 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/_p_u_t/_put/g' {} + 42 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/ iaa s/ iaas /g' {} + 43 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/ v mware/ vmware/g' {} + 44 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/VMwareCloudAssemblyBlueprintAPI/API/g' {} + 45 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/ g e t params/ get params/g' {} + 46 | find pkg -type f -name '*.go' -exec sed -i "$BACKUP" 's/ g e t 1 / get1 /g' {} + 47 | 48 | mv pkg/client/v_mware_cloud_assembly_blueprint_api_client.go pkg/client/vra_client.go 49 | sed -i "$BACKUP" 's/^\(.*DefaultHost string = \).*/\1"api.mgmt.cloud.vmware.com"/' ./pkg/client/vra_client.go 50 | 51 | # cleanup if needed 52 | find pkg -type f -name "*.bak" -exec rm {} + 53 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | 7 | "github.com/go-openapi/strfmt" 8 | "github.com/vmware/vra-sdk-go/pkg/client" 9 | "github.com/vmware/vra-sdk-go/pkg/client/cloud_account" 10 | "github.com/vmware/vra-sdk-go/pkg/client/login" 11 | "github.com/vmware/vra-sdk-go/pkg/client/project" 12 | "github.com/vmware/vra-sdk-go/pkg/models" 13 | 14 | httptransport "github.com/go-openapi/runtime/client" 15 | ) 16 | 17 | var apiHost = "api.mgmt.cloud.vmware.com" 18 | 19 | func getToken(apiToken string) (string, error) { 20 | transport := httptransport.New(apiHost, "", nil) 21 | transport.SetDebug(true) 22 | fmt.Printf("transport: %+v\n", transport) 23 | apiclient := client.New(transport, strfmt.Default) 24 | 25 | fmt.Printf("apiclient: %+v\n", apiclient) 26 | fmt.Printf("transport: %+v\n", apiclient.Transport) 27 | fmt.Printf("Login: %+v\n", apiclient.Login) 28 | params := login.NewRetrieveAuthTokenParams().WithBody( 29 | &models.CspLoginSpecification{ 30 | RefreshToken: &apiToken, 31 | }, 32 | ) 33 | authTokenResponse, err := apiclient.Login.RetrieveAuthToken(params) 34 | if err != nil || *authTokenResponse.Payload.TokenType != "bearer" { 35 | return "", err 36 | } 37 | 38 | return *authTokenResponse.Payload.Token, nil 39 | } 40 | 41 | func main() { 42 | // Assume a valid refresh token is passed in via an environment variable 43 | vraRefreshToken := os.Getenv("VRA_REFRESH_TOKEN") 44 | if vraRefreshToken == "" { 45 | fmt.Printf("Need to set VRA_REFRESH_TOKEN\n") 46 | os.Exit(1) 47 | } 48 | 49 | bearerToken, err := getToken(vraRefreshToken) 50 | if err != nil { 51 | fmt.Printf("Could not get bearer token: %v\n", err) 52 | os.Exit(1) 53 | } 54 | 55 | transport := httptransport.New(apiHost, "", nil) 56 | transport.SetDebug(true) 57 | transport.DefaultAuthentication = httptransport.APIKeyAuth("Authorization", "header", "Bearer "+bearerToken) 58 | apiclient := client.New(transport, strfmt.Default) 59 | fmt.Printf("apiclient: %+v\n", apiclient) 60 | ret, err := apiclient.CloudAccount.GetCloudAccounts(cloud_account.NewGetCloudAccountsParams()) 61 | fmt.Printf("%+v %+v\n", ret, err) 62 | 63 | projectReturn, err := apiclient.Project.GetProjects(project.NewGetProjectsParams()) 64 | fmt.Printf("%+v %+v\n", projectReturn, err) 65 | } 66 | -------------------------------------------------------------------------------- /pkg/client/about_the_service/about_the_service_client.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package about_the_service 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/go-openapi/runtime" 12 | "github.com/go-openapi/strfmt" 13 | ) 14 | 15 | // New creates a new about the service API client. 16 | func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { 17 | return &Client{transport: transport, formats: formats} 18 | } 19 | 20 | /* 21 | Client for about the service API 22 | */ 23 | type Client struct { 24 | transport runtime.ClientTransport 25 | formats strfmt.Registry 26 | } 27 | 28 | // ClientOption is the option for Client methods 29 | type ClientOption func(*runtime.ClientOperation) 30 | 31 | // ClientService is the interface for Client methods 32 | type ClientService interface { 33 | About(params *AboutParams, opts ...ClientOption) (*AboutOK, error) 34 | 35 | SetTransport(transport runtime.ClientTransport) 36 | } 37 | 38 | /* 39 | About provides basic information about relocation service 40 | */ 41 | func (a *Client) About(params *AboutParams, opts ...ClientOption) (*AboutOK, error) { 42 | // TODO: Validate the params before sending 43 | if params == nil { 44 | params = NewAboutParams() 45 | } 46 | op := &runtime.ClientOperation{ 47 | ID: "about", 48 | Method: "GET", 49 | PathPattern: "/relocation/about", 50 | ProducesMediaTypes: []string{"application/json"}, 51 | ConsumesMediaTypes: []string{"application/json"}, 52 | Schemes: []string{"https"}, 53 | Params: params, 54 | Reader: &AboutReader{formats: a.formats}, 55 | Context: params.Context, 56 | Client: params.HTTPClient, 57 | } 58 | for _, opt := range opts { 59 | opt(op) 60 | } 61 | 62 | result, err := a.transport.Submit(op) 63 | if err != nil { 64 | return nil, err 65 | } 66 | success, ok := result.(*AboutOK) 67 | if ok { 68 | return success, nil 69 | } 70 | // unexpected success response 71 | // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 72 | msg := fmt.Sprintf("unexpected success response for about: API contract not enforced by server. Client expected to get an error, but got: %T", result) 73 | panic(msg) 74 | } 75 | 76 | // SetTransport changes the transport on the client 77 | func (a *Client) SetTransport(transport runtime.ClientTransport) { 78 | a.transport = transport 79 | } 80 | -------------------------------------------------------------------------------- /pkg/client/images/images_client.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package images 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/go-openapi/runtime" 12 | "github.com/go-openapi/strfmt" 13 | ) 14 | 15 | // New creates a new images API client. 16 | func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { 17 | return &Client{transport: transport, formats: formats} 18 | } 19 | 20 | /* 21 | Client for images API 22 | */ 23 | type Client struct { 24 | transport runtime.ClientTransport 25 | formats strfmt.Registry 26 | } 27 | 28 | // ClientOption is the option for Client methods 29 | type ClientOption func(*runtime.ClientOperation) 30 | 31 | // ClientService is the interface for Client methods 32 | type ClientService interface { 33 | GetImages(params *GetImagesParams, opts ...ClientOption) (*GetImagesOK, error) 34 | 35 | SetTransport(transport runtime.ClientTransport) 36 | } 37 | 38 | /* 39 | GetImages gets images 40 | 41 | Get all images defined in ImageProfile. 42 | */ 43 | func (a *Client) GetImages(params *GetImagesParams, opts ...ClientOption) (*GetImagesOK, error) { 44 | // TODO: Validate the params before sending 45 | if params == nil { 46 | params = NewGetImagesParams() 47 | } 48 | op := &runtime.ClientOperation{ 49 | ID: "getImages", 50 | Method: "GET", 51 | PathPattern: "/iaas/api/images", 52 | ProducesMediaTypes: []string{"app/json", "application/json"}, 53 | ConsumesMediaTypes: []string{"application/json"}, 54 | Schemes: []string{"https"}, 55 | Params: params, 56 | Reader: &GetImagesReader{formats: a.formats}, 57 | Context: params.Context, 58 | Client: params.HTTPClient, 59 | } 60 | for _, opt := range opts { 61 | opt(op) 62 | } 63 | 64 | result, err := a.transport.Submit(op) 65 | if err != nil { 66 | return nil, err 67 | } 68 | success, ok := result.(*GetImagesOK) 69 | if ok { 70 | return success, nil 71 | } 72 | // unexpected success response 73 | // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 74 | msg := fmt.Sprintf("unexpected success response for getImages: API contract not enforced by server. Client expected to get an error, but got: %T", result) 75 | panic(msg) 76 | } 77 | 78 | // SetTransport changes the transport on the client 79 | func (a *Client) SetTransport(transport runtime.ClientTransport) { 80 | a.transport = transport 81 | } 82 | -------------------------------------------------------------------------------- /pkg/client/tags/tags_client.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package tags 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/go-openapi/runtime" 12 | "github.com/go-openapi/strfmt" 13 | ) 14 | 15 | // New creates a new tags API client. 16 | func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { 17 | return &Client{transport: transport, formats: formats} 18 | } 19 | 20 | /* 21 | Client for tags API 22 | */ 23 | type Client struct { 24 | transport runtime.ClientTransport 25 | formats strfmt.Registry 26 | } 27 | 28 | // ClientOption is the option for Client methods 29 | type ClientOption func(*runtime.ClientOperation) 30 | 31 | // ClientService is the interface for Client methods 32 | type ClientService interface { 33 | GetTags(params *GetTagsParams, opts ...ClientOption) (*GetTagsOK, error) 34 | 35 | SetTransport(transport runtime.ClientTransport) 36 | } 37 | 38 | /* 39 | GetTags gets tags 40 | 41 | Get all tags 42 | */ 43 | func (a *Client) GetTags(params *GetTagsParams, opts ...ClientOption) (*GetTagsOK, error) { 44 | // TODO: Validate the params before sending 45 | if params == nil { 46 | params = NewGetTagsParams() 47 | } 48 | op := &runtime.ClientOperation{ 49 | ID: "getTags", 50 | Method: "GET", 51 | PathPattern: "/iaas/api/tags", 52 | ProducesMediaTypes: []string{"app/json", "application/json"}, 53 | ConsumesMediaTypes: []string{"application/json"}, 54 | Schemes: []string{"https"}, 55 | Params: params, 56 | Reader: &GetTagsReader{formats: a.formats}, 57 | Context: params.Context, 58 | Client: params.HTTPClient, 59 | } 60 | for _, opt := range opts { 61 | opt(op) 62 | } 63 | 64 | result, err := a.transport.Submit(op) 65 | if err != nil { 66 | return nil, err 67 | } 68 | success, ok := result.(*GetTagsOK) 69 | if ok { 70 | return success, nil 71 | } 72 | // unexpected success response 73 | // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 74 | msg := fmt.Sprintf("unexpected success response for getTags: API contract not enforced by server. Client expected to get an error, but got: %T", result) 75 | panic(msg) 76 | } 77 | 78 | // SetTransport changes the transport on the client 79 | func (a *Client) SetTransport(transport runtime.ClientTransport) { 80 | a.transport = transport 81 | } 82 | -------------------------------------------------------------------------------- /pkg/models/about_deprecation_policy.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // AboutDeprecationPolicy About$DeprecationPolicy 16 | // 17 | // swagger:model AboutDeprecationPolicy 18 | type AboutDeprecationPolicy struct { 19 | 20 | // The date the api was deprecated in yyyy-MM-dd format (UTC). Could be empty if the api is not deprecated. 21 | DeprecatedAt string `json:"deprecatedAt,omitempty"` 22 | 23 | // A free text description that contains information about why this api is deprecated and how to migrate to a newer version. 24 | Description string `json:"description,omitempty"` 25 | 26 | // The date the api support will be dropped in yyyy-MM-dd format (UTC). The api may still be available for use after that date but this is not guaranteed. 27 | ExpiresAt string `json:"expiresAt,omitempty"` 28 | } 29 | 30 | // Validate validates this about deprecation policy 31 | func (m *AboutDeprecationPolicy) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this about deprecation policy based on context it is used 36 | func (m *AboutDeprecationPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *AboutDeprecationPolicy) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *AboutDeprecationPolicy) UnmarshalBinary(b []byte) error { 50 | var res AboutDeprecationPolicy 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/about_response.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // AboutResponse about response 16 | // 17 | // swagger:model AboutResponse 18 | type AboutResponse struct { 19 | 20 | // Relocation service commit identifier. 21 | GitCommitID string `json:"gitCommitId,omitempty"` 22 | 23 | // Relocation service version. 24 | Version string `json:"version,omitempty"` 25 | 26 | // Xenon-Spring version. 27 | XenonVersion string `json:"xenonVersion,omitempty"` 28 | } 29 | 30 | // Validate validates this about response 31 | func (m *AboutResponse) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this about response based on context it is used 36 | func (m *AboutResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *AboutResponse) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *AboutResponse) UnmarshalBinary(b []byte) error { 50 | var res AboutResponse 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/admin_catalog_item_patch.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // AdminCatalogItemPatch AdminCatalogItemPatch 18 | // 19 | // # A patch to update attributes for a catalog item 20 | // 21 | // swagger:model AdminCatalogItemPatch 22 | type AdminCatalogItemPatch struct { 23 | 24 | // Max number of instances that can be requested at a time 25 | // Maximum: 127 26 | // Minimum: -128 27 | BulkRequestLimit *int32 `json:"bulkRequestLimit,omitempty"` 28 | 29 | // form id 30 | FormID string `json:"formId,omitempty"` 31 | 32 | // icon id 33 | IconID string `json:"iconId,omitempty"` 34 | } 35 | 36 | // Validate validates this admin catalog item patch 37 | func (m *AdminCatalogItemPatch) Validate(formats strfmt.Registry) error { 38 | var res []error 39 | 40 | if err := m.validateBulkRequestLimit(formats); err != nil { 41 | res = append(res, err) 42 | } 43 | 44 | if len(res) > 0 { 45 | return errors.CompositeValidationError(res...) 46 | } 47 | return nil 48 | } 49 | 50 | func (m *AdminCatalogItemPatch) validateBulkRequestLimit(formats strfmt.Registry) error { 51 | if swag.IsZero(m.BulkRequestLimit) { // not required 52 | return nil 53 | } 54 | 55 | if err := validate.MinimumInt("bulkRequestLimit", "body", int64(*m.BulkRequestLimit), -128, false); err != nil { 56 | return err 57 | } 58 | 59 | if err := validate.MaximumInt("bulkRequestLimit", "body", int64(*m.BulkRequestLimit), 127, false); err != nil { 60 | return err 61 | } 62 | 63 | return nil 64 | } 65 | 66 | // ContextValidate validates this admin catalog item patch based on context it is used 67 | func (m *AdminCatalogItemPatch) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 68 | return nil 69 | } 70 | 71 | // MarshalBinary interface implementation 72 | func (m *AdminCatalogItemPatch) MarshalBinary() ([]byte, error) { 73 | if m == nil { 74 | return nil, nil 75 | } 76 | return swag.WriteJSON(m) 77 | } 78 | 79 | // UnmarshalBinary interface implementation 80 | func (m *AdminCatalogItemPatch) UnmarshalBinary(b []byte) error { 81 | var res AdminCatalogItemPatch 82 | if err := swag.ReadJSON(b, &res); err != nil { 83 | return err 84 | } 85 | *m = res 86 | return nil 87 | } 88 | -------------------------------------------------------------------------------- /pkg/models/auth_credentials_service_state.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // AuthCredentialsServiceState AuthCredentialsServiceState 16 | // 17 | // swagger:model AuthCredentialsServiceState 18 | type AuthCredentialsServiceState struct { 19 | 20 | // bearer 21 | Bearer bool `json:"bearer,omitempty"` 22 | 23 | // custom properties 24 | CustomProperties map[string]string `json:"customProperties,omitempty"` 25 | 26 | // document self link 27 | DocumentSelfLink string `json:"documentSelfLink,omitempty"` 28 | 29 | // password 30 | Password bool `json:"password,omitempty"` 31 | 32 | // private key 33 | PrivateKey string `json:"privateKey,omitempty"` 34 | 35 | // private key Id 36 | PrivateKeyID string `json:"privateKeyId,omitempty"` 37 | 38 | // public key 39 | PublicKey string `json:"publicKey,omitempty"` 40 | 41 | // tenant links 42 | TenantLinks []string `json:"tenantLinks"` 43 | 44 | // type 45 | Type string `json:"type,omitempty"` 46 | 47 | // user email 48 | UserEmail string `json:"userEmail,omitempty"` 49 | } 50 | 51 | // Validate validates this auth credentials service state 52 | func (m *AuthCredentialsServiceState) Validate(formats strfmt.Registry) error { 53 | return nil 54 | } 55 | 56 | // ContextValidate validates this auth credentials service state based on context it is used 57 | func (m *AuthCredentialsServiceState) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 58 | return nil 59 | } 60 | 61 | // MarshalBinary interface implementation 62 | func (m *AuthCredentialsServiceState) MarshalBinary() ([]byte, error) { 63 | if m == nil { 64 | return nil, nil 65 | } 66 | return swag.WriteJSON(m) 67 | } 68 | 69 | // UnmarshalBinary interface implementation 70 | func (m *AuthCredentialsServiceState) UnmarshalBinary(b []byte) error { 71 | var res AuthCredentialsServiceState 72 | if err := swag.ReadJSON(b, &res); err != nil { 73 | return err 74 | } 75 | *m = res 76 | return nil 77 | } 78 | -------------------------------------------------------------------------------- /pkg/models/auth_response.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // AuthResponse Entity that holds auth token details. 18 | // 19 | // swagger:model AuthResponse 20 | type AuthResponse struct { 21 | 22 | // Base64 encoded auth token. 23 | // Required: true 24 | Token *string `json:"token"` 25 | 26 | // Type of the token. 27 | // Example: Bearer 28 | // Required: true 29 | TokenType *string `json:"tokenType"` 30 | } 31 | 32 | // Validate validates this auth response 33 | func (m *AuthResponse) Validate(formats strfmt.Registry) error { 34 | var res []error 35 | 36 | if err := m.validateToken(formats); err != nil { 37 | res = append(res, err) 38 | } 39 | 40 | if err := m.validateTokenType(formats); err != nil { 41 | res = append(res, err) 42 | } 43 | 44 | if len(res) > 0 { 45 | return errors.CompositeValidationError(res...) 46 | } 47 | return nil 48 | } 49 | 50 | func (m *AuthResponse) validateToken(formats strfmt.Registry) error { 51 | 52 | if err := validate.Required("token", "body", m.Token); err != nil { 53 | return err 54 | } 55 | 56 | return nil 57 | } 58 | 59 | func (m *AuthResponse) validateTokenType(formats strfmt.Registry) error { 60 | 61 | if err := validate.Required("tokenType", "body", m.TokenType); err != nil { 62 | return err 63 | } 64 | 65 | return nil 66 | } 67 | 68 | // ContextValidate validates this auth response based on context it is used 69 | func (m *AuthResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 70 | return nil 71 | } 72 | 73 | // MarshalBinary interface implementation 74 | func (m *AuthResponse) MarshalBinary() ([]byte, error) { 75 | if m == nil { 76 | return nil, nil 77 | } 78 | return swag.WriteJSON(m) 79 | } 80 | 81 | // UnmarshalBinary interface implementation 82 | func (m *AuthResponse) UnmarshalBinary(b []byte) error { 83 | var res AuthResponse 84 | if err := swag.ReadJSON(b, &res); err != nil { 85 | return err 86 | } 87 | *m = res 88 | return nil 89 | } 90 | -------------------------------------------------------------------------------- /pkg/models/blueprint_content_source_config.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // BlueprintContentSourceConfig ContentSourceConfig 16 | // 17 | // swagger:model BlueprintContentSourceConfig 18 | type BlueprintContentSourceConfig struct { 19 | 20 | // branch 21 | Branch string `json:"branch,omitempty"` 22 | 23 | // content type 24 | ContentType string `json:"contentType,omitempty"` 25 | 26 | // integration Id 27 | IntegrationID string `json:"integrationId,omitempty"` 28 | 29 | // path 30 | Path string `json:"path,omitempty"` 31 | 32 | // repository 33 | Repository string `json:"repository,omitempty"` 34 | 35 | // request scope org 36 | RequestScopeOrg bool `json:"requestScopeOrg,omitempty"` 37 | } 38 | 39 | // Validate validates this blueprint content source config 40 | func (m *BlueprintContentSourceConfig) Validate(formats strfmt.Registry) error { 41 | return nil 42 | } 43 | 44 | // ContextValidate validates this blueprint content source config based on context it is used 45 | func (m *BlueprintContentSourceConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 46 | return nil 47 | } 48 | 49 | // MarshalBinary interface implementation 50 | func (m *BlueprintContentSourceConfig) MarshalBinary() ([]byte, error) { 51 | if m == nil { 52 | return nil, nil 53 | } 54 | return swag.WriteJSON(m) 55 | } 56 | 57 | // UnmarshalBinary interface implementation 58 | func (m *BlueprintContentSourceConfig) UnmarshalBinary(b []byte) error { 59 | var res BlueprintContentSourceConfig 60 | if err := swag.ReadJSON(b, &res); err != nil { 61 | return err 62 | } 63 | *m = res 64 | return nil 65 | } 66 | -------------------------------------------------------------------------------- /pkg/models/blueprint_validation_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // BlueprintValidationRequest BlueprintValidationRequest 18 | // 19 | // swagger:model BlueprintValidationRequest 20 | type BlueprintValidationRequest struct { 21 | 22 | // Blueprint Id 23 | // Format: uuid 24 | BlueprintID strfmt.UUID `json:"blueprintId,omitempty"` 25 | 26 | // Blueprint Version 27 | BlueprintVersion string `json:"blueprintVersion,omitempty"` 28 | 29 | // Blueprint YAML content 30 | Content string `json:"content,omitempty"` 31 | 32 | // Blueprint request inputs 33 | Inputs interface{} `json:"inputs,omitempty"` 34 | 35 | // Project Id 36 | ProjectID string `json:"projectId,omitempty"` 37 | } 38 | 39 | // Validate validates this blueprint validation request 40 | func (m *BlueprintValidationRequest) Validate(formats strfmt.Registry) error { 41 | var res []error 42 | 43 | if err := m.validateBlueprintID(formats); err != nil { 44 | res = append(res, err) 45 | } 46 | 47 | if len(res) > 0 { 48 | return errors.CompositeValidationError(res...) 49 | } 50 | return nil 51 | } 52 | 53 | func (m *BlueprintValidationRequest) validateBlueprintID(formats strfmt.Registry) error { 54 | if swag.IsZero(m.BlueprintID) { // not required 55 | return nil 56 | } 57 | 58 | if err := validate.FormatOf("blueprintId", "body", "uuid", m.BlueprintID.String(), formats); err != nil { 59 | return err 60 | } 61 | 62 | return nil 63 | } 64 | 65 | // ContextValidate validates this blueprint validation request based on context it is used 66 | func (m *BlueprintValidationRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 67 | return nil 68 | } 69 | 70 | // MarshalBinary interface implementation 71 | func (m *BlueprintValidationRequest) MarshalBinary() ([]byte, error) { 72 | if m == nil { 73 | return nil, nil 74 | } 75 | return swag.WriteJSON(m) 76 | } 77 | 78 | // UnmarshalBinary interface implementation 79 | func (m *BlueprintValidationRequest) UnmarshalBinary(b []byte) error { 80 | var res BlueprintValidationRequest 81 | if err := swag.ReadJSON(b, &res); err != nil { 82 | return err 83 | } 84 | *m = res 85 | return nil 86 | } 87 | -------------------------------------------------------------------------------- /pkg/models/blueprint_version_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // BlueprintVersionRequest BlueprintVersionRequest 18 | // 19 | // swagger:model BlueprintVersionRequest 20 | type BlueprintVersionRequest struct { 21 | 22 | // Blueprint version change log 23 | ChangeLog string `json:"changeLog,omitempty"` 24 | 25 | // Blueprint version description 26 | Description string `json:"description,omitempty"` 27 | 28 | // Flag indicating to release version 29 | Release bool `json:"release,omitempty"` 30 | 31 | // Blueprint version 32 | // Required: true 33 | Version *string `json:"version"` 34 | } 35 | 36 | // Validate validates this blueprint version request 37 | func (m *BlueprintVersionRequest) Validate(formats strfmt.Registry) error { 38 | var res []error 39 | 40 | if err := m.validateVersion(formats); err != nil { 41 | res = append(res, err) 42 | } 43 | 44 | if len(res) > 0 { 45 | return errors.CompositeValidationError(res...) 46 | } 47 | return nil 48 | } 49 | 50 | func (m *BlueprintVersionRequest) validateVersion(formats strfmt.Registry) error { 51 | 52 | if err := validate.Required("version", "body", m.Version); err != nil { 53 | return err 54 | } 55 | 56 | return nil 57 | } 58 | 59 | // ContextValidate validates this blueprint version request based on context it is used 60 | func (m *BlueprintVersionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 61 | return nil 62 | } 63 | 64 | // MarshalBinary interface implementation 65 | func (m *BlueprintVersionRequest) MarshalBinary() ([]byte, error) { 66 | if m == nil { 67 | return nil, nil 68 | } 69 | return swag.WriteJSON(m) 70 | } 71 | 72 | // UnmarshalBinary interface implementation 73 | func (m *BlueprintVersionRequest) UnmarshalBinary(b []byte) error { 74 | var res BlueprintVersionRequest 75 | if err := swag.ReadJSON(b, &res); err != nil { 76 | return err 77 | } 78 | *m = res 79 | return nil 80 | } 81 | -------------------------------------------------------------------------------- /pkg/models/catalog_item_request_response.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // CatalogItemRequestResponse CatalogItemRequestResponse 16 | // 17 | // # The blueprint service's response to a deployment request 18 | // 19 | // swagger:model CatalogItemRequestResponse 20 | type CatalogItemRequestResponse struct { 21 | 22 | // The created deployment's ID 23 | DeploymentID string `json:"deploymentId,omitempty"` 24 | 25 | // The created deployment's name 26 | DeploymentName string `json:"deploymentName,omitempty"` 27 | } 28 | 29 | // Validate validates this catalog item request response 30 | func (m *CatalogItemRequestResponse) Validate(formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // ContextValidate validates this catalog item request response based on context it is used 35 | func (m *CatalogItemRequestResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 36 | return nil 37 | } 38 | 39 | // MarshalBinary interface implementation 40 | func (m *CatalogItemRequestResponse) MarshalBinary() ([]byte, error) { 41 | if m == nil { 42 | return nil, nil 43 | } 44 | return swag.WriteJSON(m) 45 | } 46 | 47 | // UnmarshalBinary interface implementation 48 | func (m *CatalogItemRequestResponse) UnmarshalBinary(b []byte) error { 49 | var res CatalogItemRequestResponse 50 | if err := swag.ReadJSON(b, &res); err != nil { 51 | return err 52 | } 53 | *m = res 54 | return nil 55 | } 56 | -------------------------------------------------------------------------------- /pkg/models/catalog_item_version.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // CatalogItemVersion CatalogItemVersion 18 | // 19 | // Represents a version of a Catalog Item that can be requested by a consumer. 20 | // 21 | // swagger:model CatalogItemVersion 22 | type CatalogItemVersion struct { 23 | 24 | // Created At 25 | // Format: date-time 26 | CreatedAt strfmt.DateTime `json:"createdAt,omitempty"` 27 | 28 | // Description 29 | Description string `json:"description,omitempty"` 30 | 31 | // External ID 32 | ExternalID string `json:"externalId,omitempty"` 33 | 34 | // Form ID 35 | FormID string `json:"formId,omitempty"` 36 | 37 | // Version ID 38 | ID string `json:"id,omitempty"` 39 | 40 | // Input Schema 41 | Schema interface{} `json:"schema,omitempty"` 42 | } 43 | 44 | // Validate validates this catalog item version 45 | func (m *CatalogItemVersion) Validate(formats strfmt.Registry) error { 46 | var res []error 47 | 48 | if err := m.validateCreatedAt(formats); err != nil { 49 | res = append(res, err) 50 | } 51 | 52 | if len(res) > 0 { 53 | return errors.CompositeValidationError(res...) 54 | } 55 | return nil 56 | } 57 | 58 | func (m *CatalogItemVersion) validateCreatedAt(formats strfmt.Registry) error { 59 | if swag.IsZero(m.CreatedAt) { // not required 60 | return nil 61 | } 62 | 63 | if err := validate.FormatOf("createdAt", "body", "date-time", m.CreatedAt.String(), formats); err != nil { 64 | return err 65 | } 66 | 67 | return nil 68 | } 69 | 70 | // ContextValidate validates this catalog item version based on context it is used 71 | func (m *CatalogItemVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 72 | return nil 73 | } 74 | 75 | // MarshalBinary interface implementation 76 | func (m *CatalogItemVersion) MarshalBinary() ([]byte, error) { 77 | if m == nil { 78 | return nil, nil 79 | } 80 | return swag.WriteJSON(m) 81 | } 82 | 83 | // UnmarshalBinary interface implementation 84 | func (m *CatalogItemVersion) UnmarshalBinary(b []byte) error { 85 | var res CatalogItemVersion 86 | if err := swag.ReadJSON(b, &res); err != nil { 87 | return err 88 | } 89 | *m = res 90 | return nil 91 | } 92 | -------------------------------------------------------------------------------- /pkg/models/certificate_info_specification.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // CertificateInfoSpecification Specification for certificate for a cloud account. 18 | // 19 | // swagger:model CertificateInfoSpecification 20 | type CertificateInfoSpecification struct { 21 | 22 | // The certificate in string format. 23 | // Example: PEM for X509Certificate 24 | // Required: true 25 | Certificate *string `json:"certificate"` 26 | } 27 | 28 | // Validate validates this certificate info specification 29 | func (m *CertificateInfoSpecification) Validate(formats strfmt.Registry) error { 30 | var res []error 31 | 32 | if err := m.validateCertificate(formats); err != nil { 33 | res = append(res, err) 34 | } 35 | 36 | if len(res) > 0 { 37 | return errors.CompositeValidationError(res...) 38 | } 39 | return nil 40 | } 41 | 42 | func (m *CertificateInfoSpecification) validateCertificate(formats strfmt.Registry) error { 43 | 44 | if err := validate.Required("certificate", "body", m.Certificate); err != nil { 45 | return err 46 | } 47 | 48 | return nil 49 | } 50 | 51 | // ContextValidate validates this certificate info specification based on context it is used 52 | func (m *CertificateInfoSpecification) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 53 | return nil 54 | } 55 | 56 | // MarshalBinary interface implementation 57 | func (m *CertificateInfoSpecification) MarshalBinary() ([]byte, error) { 58 | if m == nil { 59 | return nil, nil 60 | } 61 | return swag.WriteJSON(m) 62 | } 63 | 64 | // UnmarshalBinary interface implementation 65 | func (m *CertificateInfoSpecification) UnmarshalBinary(b []byte) error { 66 | var res CertificateInfoSpecification 67 | if err := swag.ReadJSON(b, &res); err != nil { 68 | return err 69 | } 70 | *m = res 71 | return nil 72 | } 73 | -------------------------------------------------------------------------------- /pkg/models/certificate_issuer.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // CertificateIssuer CertificateIssuer 16 | // 17 | // swagger:model CertificateIssuer 18 | type CertificateIssuer struct { 19 | 20 | // A human-friendly name used as an identifier for the holding body. 21 | // Example: vmware.com 22 | CommonName string `json:"commonName,omitempty"` 23 | 24 | // Name of the organisation. 25 | // Example: VMware Inc. 26 | Organization string `json:"organization,omitempty"` 27 | } 28 | 29 | // Validate validates this certificate issuer 30 | func (m *CertificateIssuer) Validate(formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // ContextValidate validates this certificate issuer based on context it is used 35 | func (m *CertificateIssuer) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 36 | return nil 37 | } 38 | 39 | // MarshalBinary interface implementation 40 | func (m *CertificateIssuer) MarshalBinary() ([]byte, error) { 41 | if m == nil { 42 | return nil, nil 43 | } 44 | return swag.WriteJSON(m) 45 | } 46 | 47 | // UnmarshalBinary interface implementation 48 | func (m *CertificateIssuer) UnmarshalBinary(b []byte) error { 49 | var res CertificateIssuer 50 | if err := swag.ReadJSON(b, &res); err != nil { 51 | return err 52 | } 53 | *m = res 54 | return nil 55 | } 56 | -------------------------------------------------------------------------------- /pkg/models/claims.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Claims Claims 16 | // 17 | // swagger:model Claims 18 | type Claims struct { 19 | 20 | // audience 21 | Audience []string `json:"audience"` 22 | 23 | // expiration time 24 | ExpirationTime int64 `json:"expirationTime,omitempty"` 25 | 26 | // issued at 27 | IssuedAt int64 `json:"issuedAt,omitempty"` 28 | 29 | // issuer 30 | Issuer string `json:"issuer,omitempty"` 31 | 32 | // jwt Id 33 | JwtID string `json:"jwtId,omitempty"` 34 | 35 | // not before 36 | NotBefore int64 `json:"notBefore,omitempty"` 37 | 38 | // properties 39 | Properties map[string]string `json:"properties,omitempty"` 40 | 41 | // subject 42 | Subject string `json:"subject,omitempty"` 43 | } 44 | 45 | // Validate validates this claims 46 | func (m *Claims) Validate(formats strfmt.Registry) error { 47 | return nil 48 | } 49 | 50 | // ContextValidate validates this claims based on context it is used 51 | func (m *Claims) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 52 | return nil 53 | } 54 | 55 | // MarshalBinary interface implementation 56 | func (m *Claims) MarshalBinary() ([]byte, error) { 57 | if m == nil { 58 | return nil, nil 59 | } 60 | return swag.WriteJSON(m) 61 | } 62 | 63 | // UnmarshalBinary interface implementation 64 | func (m *Claims) UnmarshalBinary(b []byte) error { 65 | var res Claims 66 | if err := swag.ReadJSON(b, &res); err != nil { 67 | return err 68 | } 69 | *m = res 70 | return nil 71 | } 72 | -------------------------------------------------------------------------------- /pkg/models/clause.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | // Clause Clause 9 | // 10 | // swagger:model Clause 11 | type Clause interface{} 12 | -------------------------------------------------------------------------------- /pkg/models/cloud_account_aws_region_enumeration_specification.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // CloudAccountAwsRegionEnumerationSpecification Specification for a region enumeration of aws cloud account. 16 | // 17 | // swagger:model CloudAccountAwsRegionEnumerationSpecification 18 | type CloudAccountAwsRegionEnumerationSpecification struct { 19 | 20 | // Aws Access key ID. Either provide accessKeyId or provide a cloudAccountId of an existing account. 21 | // Example: ACDC55DB4MFH6ADG75KK 22 | AccessKeyID string `json:"accessKeyId,omitempty"` 23 | 24 | // Existing cloud account id. Either provide existing cloud account id, or accessKeyId/secretAccessKey credentials pair. 25 | // Example: b8b7a918-342e-4a53-a3b0-b935da0fe601 26 | CloudAccountID string `json:"cloudAccountId,omitempty"` 27 | 28 | // Aws Secret Access Key. Either provide secretAccessKey or provide a cloudAccountId of an existing account. 29 | // Example: gfsScK345sGGaVdds222dasdfDDSSasdfdsa34fS 30 | SecretAccessKey string `json:"secretAccessKey,omitempty"` 31 | } 32 | 33 | // Validate validates this cloud account aws region enumeration specification 34 | func (m *CloudAccountAwsRegionEnumerationSpecification) Validate(formats strfmt.Registry) error { 35 | return nil 36 | } 37 | 38 | // ContextValidate validates this cloud account aws region enumeration specification based on context it is used 39 | func (m *CloudAccountAwsRegionEnumerationSpecification) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 40 | return nil 41 | } 42 | 43 | // MarshalBinary interface implementation 44 | func (m *CloudAccountAwsRegionEnumerationSpecification) MarshalBinary() ([]byte, error) { 45 | if m == nil { 46 | return nil, nil 47 | } 48 | return swag.WriteJSON(m) 49 | } 50 | 51 | // UnmarshalBinary interface implementation 52 | func (m *CloudAccountAwsRegionEnumerationSpecification) UnmarshalBinary(b []byte) error { 53 | var res CloudAccountAwsRegionEnumerationSpecification 54 | if err := swag.ReadJSON(b, &res); err != nil { 55 | return err 56 | } 57 | *m = res 58 | return nil 59 | } 60 | -------------------------------------------------------------------------------- /pkg/models/cluster_plan_aggregation.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // ClusterPlanAggregation ClusterPlanAggregation 16 | // 17 | // swagger:model ClusterPlanAggregation 18 | type ClusterPlanAggregation struct { 19 | 20 | // cloud account self link Id 21 | CloudAccountSelfLinkID string `json:"cloudAccountSelfLinkId,omitempty"` 22 | 23 | // count 24 | Count int64 `json:"count,omitempty"` 25 | 26 | // name 27 | Name string `json:"name,omitempty"` 28 | } 29 | 30 | // Validate validates this cluster plan aggregation 31 | func (m *ClusterPlanAggregation) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this cluster plan aggregation based on context it is used 36 | func (m *ClusterPlanAggregation) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *ClusterPlanAggregation) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *ClusterPlanAggregation) UnmarshalBinary(b []byte) error { 50 | var res ClusterPlanAggregation 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/cn_project_vo.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // CnProjectVo cn project vo 18 | // 19 | // swagger:model CnProjectVo 20 | type CnProjectVo struct { 21 | 22 | // active 23 | Active bool `json:"active,omitempty"` 24 | 25 | // default org 26 | DefaultOrg bool `json:"defaultOrg,omitempty"` 27 | 28 | // id 29 | // Format: uuid 30 | ID strfmt.UUID `json:"id,omitempty"` 31 | 32 | // org Id 33 | OrgID string `json:"orgId,omitempty"` 34 | 35 | // project Id 36 | ProjectID string `json:"projectId,omitempty"` 37 | 38 | // project name 39 | ProjectName string `json:"projectName,omitempty"` 40 | } 41 | 42 | // Validate validates this cn project vo 43 | func (m *CnProjectVo) Validate(formats strfmt.Registry) error { 44 | var res []error 45 | 46 | if err := m.validateID(formats); err != nil { 47 | res = append(res, err) 48 | } 49 | 50 | if len(res) > 0 { 51 | return errors.CompositeValidationError(res...) 52 | } 53 | return nil 54 | } 55 | 56 | func (m *CnProjectVo) validateID(formats strfmt.Registry) error { 57 | if swag.IsZero(m.ID) { // not required 58 | return nil 59 | } 60 | 61 | if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil { 62 | return err 63 | } 64 | 65 | return nil 66 | } 67 | 68 | // ContextValidate validates this cn project vo based on context it is used 69 | func (m *CnProjectVo) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 70 | return nil 71 | } 72 | 73 | // MarshalBinary interface implementation 74 | func (m *CnProjectVo) MarshalBinary() ([]byte, error) { 75 | if m == nil { 76 | return nil, nil 77 | } 78 | return swag.WriteJSON(m) 79 | } 80 | 81 | // UnmarshalBinary interface implementation 82 | func (m *CnProjectVo) UnmarshalBinary(b []byte) error { 83 | var res CnProjectVo 84 | if err := swag.ReadJSON(b, &res); err != nil { 85 | return err 86 | } 87 | *m = res 88 | return nil 89 | } 90 | -------------------------------------------------------------------------------- /pkg/models/commit_details.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // CommitDetails CommitDetails 18 | // 19 | // swagger:model CommitDetails 20 | type CommitDetails struct { 21 | 22 | // author name 23 | AuthorName string `json:"authorName,omitempty"` 24 | 25 | // comments 26 | Comments string `json:"comments,omitempty"` 27 | 28 | // commit Id 29 | CommitID string `json:"commitId,omitempty"` 30 | 31 | // committed date 32 | // Format: date-time 33 | CommittedDate strfmt.DateTime `json:"committedDate,omitempty"` 34 | 35 | // committer email 36 | CommitterEmail string `json:"committerEmail,omitempty"` 37 | 38 | // committer name 39 | CommitterName string `json:"committerName,omitempty"` 40 | } 41 | 42 | // Validate validates this commit details 43 | func (m *CommitDetails) Validate(formats strfmt.Registry) error { 44 | var res []error 45 | 46 | if err := m.validateCommittedDate(formats); err != nil { 47 | res = append(res, err) 48 | } 49 | 50 | if len(res) > 0 { 51 | return errors.CompositeValidationError(res...) 52 | } 53 | return nil 54 | } 55 | 56 | func (m *CommitDetails) validateCommittedDate(formats strfmt.Registry) error { 57 | if swag.IsZero(m.CommittedDate) { // not required 58 | return nil 59 | } 60 | 61 | if err := validate.FormatOf("committedDate", "body", "date-time", m.CommittedDate.String(), formats); err != nil { 62 | return err 63 | } 64 | 65 | return nil 66 | } 67 | 68 | // ContextValidate validates this commit details based on context it is used 69 | func (m *CommitDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 70 | return nil 71 | } 72 | 73 | // MarshalBinary interface implementation 74 | func (m *CommitDetails) MarshalBinary() ([]byte, error) { 75 | if m == nil { 76 | return nil, nil 77 | } 78 | return swag.WriteJSON(m) 79 | } 80 | 81 | // UnmarshalBinary interface implementation 82 | func (m *CommitDetails) UnmarshalBinary(b []byte) error { 83 | var res CommitDetails 84 | if err := swag.ReadJSON(b, &res); err != nil { 85 | return err 86 | } 87 | *m = res 88 | return nil 89 | } 90 | -------------------------------------------------------------------------------- /pkg/models/completion_handler.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | // CompletionHandler CompletionHandler 9 | // 10 | // swagger:model CompletionHandler 11 | type CompletionHandler interface{} 12 | -------------------------------------------------------------------------------- /pkg/models/constraint.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // Constraint A constraint that is conveyed to the policy engine. 18 | // 19 | // swagger:model Constraint 20 | type Constraint struct { 21 | 22 | // An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags. 23 | // 24 | // Example: ha:strong 25 | // Required: true 26 | Expression *string `json:"expression"` 27 | 28 | // Indicates whether this constraint should be strictly enforced or not. 29 | // Required: true 30 | Mandatory *bool `json:"mandatory"` 31 | } 32 | 33 | // Validate validates this constraint 34 | func (m *Constraint) Validate(formats strfmt.Registry) error { 35 | var res []error 36 | 37 | if err := m.validateExpression(formats); err != nil { 38 | res = append(res, err) 39 | } 40 | 41 | if err := m.validateMandatory(formats); err != nil { 42 | res = append(res, err) 43 | } 44 | 45 | if len(res) > 0 { 46 | return errors.CompositeValidationError(res...) 47 | } 48 | return nil 49 | } 50 | 51 | func (m *Constraint) validateExpression(formats strfmt.Registry) error { 52 | 53 | if err := validate.Required("expression", "body", m.Expression); err != nil { 54 | return err 55 | } 56 | 57 | return nil 58 | } 59 | 60 | func (m *Constraint) validateMandatory(formats strfmt.Registry) error { 61 | 62 | if err := validate.Required("mandatory", "body", m.Mandatory); err != nil { 63 | return err 64 | } 65 | 66 | return nil 67 | } 68 | 69 | // ContextValidate validates this constraint based on context it is used 70 | func (m *Constraint) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 71 | return nil 72 | } 73 | 74 | // MarshalBinary interface implementation 75 | func (m *Constraint) MarshalBinary() ([]byte, error) { 76 | if m == nil { 77 | return nil, nil 78 | } 79 | return swag.WriteJSON(m) 80 | } 81 | 82 | // UnmarshalBinary interface implementation 83 | func (m *Constraint) UnmarshalBinary(b []byte) error { 84 | var res Constraint 85 | if err := swag.ReadJSON(b, &res); err != nil { 86 | return err 87 | } 88 | *m = res 89 | return nil 90 | } 91 | -------------------------------------------------------------------------------- /pkg/models/create_resource_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // CreateResourceRequest create resource request 16 | // 17 | // swagger:model CreateResourceRequest 18 | type CreateResourceRequest struct { 19 | 20 | // Link to the compute resource (machine) in the Provisioning service inventory. 21 | Link string `json:"link,omitempty"` 22 | 23 | // Resource name, usually the machine name. Will be propagated to Cloud Assembly. 24 | Name string `json:"name,omitempty"` 25 | 26 | // Tag links in the Provisioning service inventory associated with the machine. 27 | TagLinks []string `json:"tagLinks"` 28 | } 29 | 30 | // Validate validates this create resource request 31 | func (m *CreateResourceRequest) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this create resource request based on context it is used 36 | func (m *CreateResourceRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *CreateResourceRequest) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *CreateResourceRequest) UnmarshalBinary(b []byte) error { 50 | var res CreateResourceRequest 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/criteria.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Criteria Criteria 16 | // 17 | // swagger:model Criteria 18 | type Criteria struct { 19 | 20 | // match expression 21 | MatchExpression []Clause `json:"matchExpression"` 22 | } 23 | 24 | // Validate validates this criteria 25 | func (m *Criteria) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this criteria based on context it is used 30 | func (m *Criteria) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *Criteria) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *Criteria) UnmarshalBinary(b []byte) error { 44 | var res Criteria 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/csp_login_specification.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // CspLoginSpecification Specification for token retrieval request. 18 | // 19 | // swagger:model CspLoginSpecification 20 | type CspLoginSpecification struct { 21 | 22 | // Refresh token obtained from the UI 23 | // Example: 5e7c2c-9a9e-4b0-9339-a7f94 24 | // Required: true 25 | RefreshToken *string `json:"refreshToken"` 26 | } 27 | 28 | // Validate validates this csp login specification 29 | func (m *CspLoginSpecification) Validate(formats strfmt.Registry) error { 30 | var res []error 31 | 32 | if err := m.validateRefreshToken(formats); err != nil { 33 | res = append(res, err) 34 | } 35 | 36 | if len(res) > 0 { 37 | return errors.CompositeValidationError(res...) 38 | } 39 | return nil 40 | } 41 | 42 | func (m *CspLoginSpecification) validateRefreshToken(formats strfmt.Registry) error { 43 | 44 | if err := validate.Required("refreshToken", "body", m.RefreshToken); err != nil { 45 | return err 46 | } 47 | 48 | return nil 49 | } 50 | 51 | // ContextValidate validates this csp login specification based on context it is used 52 | func (m *CspLoginSpecification) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 53 | return nil 54 | } 55 | 56 | // MarshalBinary interface implementation 57 | func (m *CspLoginSpecification) MarshalBinary() ([]byte, error) { 58 | if m == nil { 59 | return nil, nil 60 | } 61 | return swag.WriteJSON(m) 62 | } 63 | 64 | // UnmarshalBinary interface implementation 65 | func (m *CspLoginSpecification) UnmarshalBinary(b []byte) error { 66 | var res CspLoginSpecification 67 | if err := swag.ReadJSON(b, &res); err != nil { 68 | return err 69 | } 70 | *m = res 71 | return nil 72 | } 73 | -------------------------------------------------------------------------------- /pkg/models/custom_properties.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // CustomProperties CustomProperties 16 | // 17 | // swagger:model CustomProperties 18 | type CustomProperties struct { 19 | 20 | // is external 21 | IsExternal bool `json:"isExternal,omitempty"` 22 | } 23 | 24 | // Validate validates this custom properties 25 | func (m *CustomProperties) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this custom properties based on context it is used 30 | func (m *CustomProperties) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *CustomProperties) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *CustomProperties) UnmarshalBinary(b []byte) error { 44 | var res CustomProperties 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/data_element.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // DataElement DataElement 16 | // 17 | // swagger:model DataElement 18 | type DataElement struct { 19 | 20 | // description 21 | Description string `json:"description,omitempty"` 22 | 23 | // error 24 | Error string `json:"error,omitempty"` 25 | 26 | // id 27 | ID string `json:"id,omitempty"` 28 | 29 | // name 30 | Name string `json:"name,omitempty"` 31 | 32 | // properties 33 | Properties interface{} `json:"properties,omitempty"` 34 | } 35 | 36 | // Validate validates this data element 37 | func (m *DataElement) Validate(formats strfmt.Registry) error { 38 | return nil 39 | } 40 | 41 | // ContextValidate validates this data element based on context it is used 42 | func (m *DataElement) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 43 | return nil 44 | } 45 | 46 | // MarshalBinary interface implementation 47 | func (m *DataElement) MarshalBinary() ([]byte, error) { 48 | if m == nil { 49 | return nil, nil 50 | } 51 | return swag.WriteJSON(m) 52 | } 53 | 54 | // UnmarshalBinary interface implementation 55 | func (m *DataElement) UnmarshalBinary(b []byte) error { 56 | var res DataElement 57 | if err := swag.ReadJSON(b, &res); err != nil { 58 | return err 59 | } 60 | *m = res 61 | return nil 62 | } 63 | -------------------------------------------------------------------------------- /pkg/models/deployment_specification.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // DeploymentSpecification deployment specification 18 | // 19 | // swagger:model DeploymentSpecification 20 | type DeploymentSpecification struct { 21 | 22 | // A human-friendly description. 23 | Description string `json:"description,omitempty"` 24 | 25 | // A human-friendly name used as an identifier in APIs that support this option. 26 | // Required: true 27 | Name *string `json:"name"` 28 | 29 | // The id of the project the current user belongs to. 30 | // Example: e058 31 | // Required: true 32 | ProjectID *string `json:"projectId"` 33 | } 34 | 35 | // Validate validates this deployment specification 36 | func (m *DeploymentSpecification) Validate(formats strfmt.Registry) error { 37 | var res []error 38 | 39 | if err := m.validateName(formats); err != nil { 40 | res = append(res, err) 41 | } 42 | 43 | if err := m.validateProjectID(formats); err != nil { 44 | res = append(res, err) 45 | } 46 | 47 | if len(res) > 0 { 48 | return errors.CompositeValidationError(res...) 49 | } 50 | return nil 51 | } 52 | 53 | func (m *DeploymentSpecification) validateName(formats strfmt.Registry) error { 54 | 55 | if err := validate.Required("name", "body", m.Name); err != nil { 56 | return err 57 | } 58 | 59 | return nil 60 | } 61 | 62 | func (m *DeploymentSpecification) validateProjectID(formats strfmt.Registry) error { 63 | 64 | if err := validate.Required("projectId", "body", m.ProjectID); err != nil { 65 | return err 66 | } 67 | 68 | return nil 69 | } 70 | 71 | // ContextValidate validates this deployment specification based on context it is used 72 | func (m *DeploymentSpecification) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 73 | return nil 74 | } 75 | 76 | // MarshalBinary interface implementation 77 | func (m *DeploymentSpecification) MarshalBinary() ([]byte, error) { 78 | if m == nil { 79 | return nil, nil 80 | } 81 | return swag.WriteJSON(m) 82 | } 83 | 84 | // UnmarshalBinary interface implementation 85 | func (m *DeploymentSpecification) UnmarshalBinary(b []byte) error { 86 | var res DeploymentSpecification 87 | if err := swag.ReadJSON(b, &res); err != nil { 88 | return err 89 | } 90 | *m = res 91 | return nil 92 | } 93 | -------------------------------------------------------------------------------- /pkg/models/deployment_update.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // DeploymentUpdate DeploymentUpdate 18 | // 19 | // # A deployment update request 20 | // 21 | // swagger:model DeploymentUpdate 22 | type DeploymentUpdate struct { 23 | 24 | // New description of the deployment 25 | Description string `json:"description,omitempty"` 26 | 27 | // New iconid of the deployment 28 | // Format: uuid 29 | IconID strfmt.UUID `json:"iconId,omitempty"` 30 | 31 | // New name of the deployment 32 | Name string `json:"name,omitempty"` 33 | } 34 | 35 | // Validate validates this deployment update 36 | func (m *DeploymentUpdate) Validate(formats strfmt.Registry) error { 37 | var res []error 38 | 39 | if err := m.validateIconID(formats); err != nil { 40 | res = append(res, err) 41 | } 42 | 43 | if len(res) > 0 { 44 | return errors.CompositeValidationError(res...) 45 | } 46 | return nil 47 | } 48 | 49 | func (m *DeploymentUpdate) validateIconID(formats strfmt.Registry) error { 50 | if swag.IsZero(m.IconID) { // not required 51 | return nil 52 | } 53 | 54 | if err := validate.FormatOf("iconId", "body", "uuid", m.IconID.String(), formats); err != nil { 55 | return err 56 | } 57 | 58 | return nil 59 | } 60 | 61 | // ContextValidate validates this deployment update based on context it is used 62 | func (m *DeploymentUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 63 | return nil 64 | } 65 | 66 | // MarshalBinary interface implementation 67 | func (m *DeploymentUpdate) MarshalBinary() ([]byte, error) { 68 | if m == nil { 69 | return nil, nil 70 | } 71 | return swag.WriteJSON(m) 72 | } 73 | 74 | // UnmarshalBinary interface implementation 75 | func (m *DeploymentUpdate) UnmarshalBinary(b []byte) error { 76 | var res DeploymentUpdate 77 | if err := swag.ReadJSON(b, &res); err != nil { 78 | return err 79 | } 80 | *m = res 81 | return nil 82 | } 83 | -------------------------------------------------------------------------------- /pkg/models/deprecation_policy.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // DeprecationPolicy deprecation policy 16 | // 17 | // swagger:model DeprecationPolicy 18 | type DeprecationPolicy struct { 19 | 20 | // The date the api was deprecated in yyyy-MM-dd format (UTC). Could be empty if the api is not deprecated. 21 | DeprecatedAt string `json:"deprecatedAt,omitempty"` 22 | 23 | // A free text description that contains information about why this api is deprecated and how to migrate to a newer version. 24 | Description string `json:"description,omitempty"` 25 | 26 | // The date the api support will be dropped in yyyy-MM-dd format (UTC). The api may still be available for use after that date but this is not guaranteed. 27 | ExpiresAt string `json:"expiresAt,omitempty"` 28 | } 29 | 30 | // Validate validates this deprecation policy 31 | func (m *DeprecationPolicy) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this deprecation policy based on context it is used 36 | func (m *DeprecationPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *DeprecationPolicy) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *DeprecationPolicy) UnmarshalBinary(b []byte) error { 50 | var res DeprecationPolicy 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/disk_encryption_set.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // DiskEncryptionSet disk encryption set 16 | // 17 | // swagger:model DiskEncryptionSet 18 | type DiskEncryptionSet struct { 19 | 20 | // id 21 | ID string `json:"id,omitempty"` 22 | 23 | // key 24 | Key string `json:"key,omitempty"` 25 | 26 | // name 27 | Name string `json:"name,omitempty"` 28 | 29 | // region Id 30 | RegionID string `json:"regionId,omitempty"` 31 | 32 | // vault 33 | Vault string `json:"vault,omitempty"` 34 | } 35 | 36 | // Validate validates this disk encryption set 37 | func (m *DiskEncryptionSet) Validate(formats strfmt.Registry) error { 38 | return nil 39 | } 40 | 41 | // ContextValidate validates this disk encryption set based on context it is used 42 | func (m *DiskEncryptionSet) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 43 | return nil 44 | } 45 | 46 | // MarshalBinary interface implementation 47 | func (m *DiskEncryptionSet) MarshalBinary() ([]byte, error) { 48 | if m == nil { 49 | return nil, nil 50 | } 51 | return swag.WriteJSON(m) 52 | } 53 | 54 | // UnmarshalBinary interface implementation 55 | func (m *DiskEncryptionSet) UnmarshalBinary(b []byte) error { 56 | var res DiskEncryptionSet 57 | if err := swag.ReadJSON(b, &res); err != nil { 58 | return err 59 | } 60 | *m = res 61 | return nil 62 | } 63 | -------------------------------------------------------------------------------- /pkg/models/endpoint_properties.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // EndpointProperties EndpointProperties 16 | // 17 | // swagger:model EndpointProperties 18 | type EndpointProperties struct { 19 | 20 | // accept self signed certificate 21 | AcceptSelfSignedCertificate bool `json:"acceptSelfSignedCertificate,omitempty"` 22 | 23 | // certificate 24 | Certificate string `json:"certificate,omitempty"` 25 | 26 | // dc Id 27 | DcID string `json:"dcId,omitempty"` 28 | 29 | // endpoint Id 30 | EndpointID string `json:"endpointId,omitempty"` 31 | 32 | // host name 33 | HostName string `json:"hostName,omitempty"` 34 | 35 | // private key 36 | PrivateKey string `json:"privateKey,omitempty"` 37 | 38 | // private key Id 39 | PrivateKeyID string `json:"privateKeyId,omitempty"` 40 | 41 | // server 42 | Server string `json:"server,omitempty"` 43 | 44 | // service account Id 45 | ServiceAccountID string `json:"serviceAccountId,omitempty"` 46 | 47 | // url 48 | URL string `json:"url,omitempty"` 49 | 50 | // use service credentials 51 | UseServiceCredentials bool `json:"useServiceCredentials,omitempty"` 52 | } 53 | 54 | // Validate validates this endpoint properties 55 | func (m *EndpointProperties) Validate(formats strfmt.Registry) error { 56 | return nil 57 | } 58 | 59 | // ContextValidate validates this endpoint properties based on context it is used 60 | func (m *EndpointProperties) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 61 | return nil 62 | } 63 | 64 | // MarshalBinary interface implementation 65 | func (m *EndpointProperties) MarshalBinary() ([]byte, error) { 66 | if m == nil { 67 | return nil, nil 68 | } 69 | return swag.WriteJSON(m) 70 | } 71 | 72 | // UnmarshalBinary interface implementation 73 | func (m *EndpointProperties) UnmarshalBinary(b []byte) error { 74 | var res EndpointProperties 75 | if err := swag.ReadJSON(b, &res); err != nil { 76 | return err 77 | } 78 | *m = res 79 | return nil 80 | } 81 | -------------------------------------------------------------------------------- /pkg/models/error.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Error Error 16 | // 17 | // Specification for a vRA API error. 18 | // 19 | // swagger:model Error 20 | type Error struct { 21 | 22 | // Error message 23 | // Example: Failed to validate credentials. 24 | Message string `json:"message,omitempty"` 25 | 26 | // status code 27 | StatusCode int32 `json:"statusCode,omitempty"` 28 | } 29 | 30 | // Validate validates this error 31 | func (m *Error) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this error based on context it is used 36 | func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *Error) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *Error) UnmarshalBinary(b []byte) error { 50 | var res Error 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/fabric_flavor_description.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // FabricFlavorDescription Represents fabric flavor instance type description. Used when creating flavor profiles. 16 | // 17 | // swagger:model FabricFlavorDescription 18 | type FabricFlavorDescription struct { 19 | 20 | // Number of CPU cores. Mandatory for private clouds such as vSphere. Not populated when inapplicable. 21 | // Example: 4 22 | CPUCount int32 `json:"cpuCount,omitempty"` 23 | 24 | // The id of the instance type in the corresponding cloud. 25 | // Example: 901004, 901008 26 | ID string `json:"id,omitempty"` 27 | 28 | // Total amount of memory (in megabytes). Mandatory for private clouds such as vSphere. Not populated when inapplicable. 29 | // Example: 4096 30 | MemoryInMB int64 `json:"memoryInMB,omitempty"` 31 | 32 | // The value of the instance type in the corresponding cloud. Valid and mandatory for public clouds 33 | // Example: t2.small, t2.medium 34 | Name string `json:"name,omitempty"` 35 | } 36 | 37 | // Validate validates this fabric flavor description 38 | func (m *FabricFlavorDescription) Validate(formats strfmt.Registry) error { 39 | return nil 40 | } 41 | 42 | // ContextValidate validates this fabric flavor description based on context it is used 43 | func (m *FabricFlavorDescription) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 44 | return nil 45 | } 46 | 47 | // MarshalBinary interface implementation 48 | func (m *FabricFlavorDescription) MarshalBinary() ([]byte, error) { 49 | if m == nil { 50 | return nil, nil 51 | } 52 | return swag.WriteJSON(m) 53 | } 54 | 55 | // UnmarshalBinary interface implementation 56 | func (m *FabricFlavorDescription) UnmarshalBinary(b []byte) error { 57 | var res FabricFlavorDescription 58 | if err := swag.ReadJSON(b, &res); err != nil { 59 | return err 60 | } 61 | *m = res 62 | return nil 63 | } 64 | -------------------------------------------------------------------------------- /pkg/models/fields_v1.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | // FieldsV1 FieldsV1 9 | // 10 | // swagger:model FieldsV1 11 | type FieldsV1 interface{} 12 | -------------------------------------------------------------------------------- /pkg/models/file_tree_directory.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // FileTreeDirectory FileTreeDirectory 16 | // 17 | // swagger:model FileTreeDirectory 18 | type FileTreeDirectory struct { 19 | 20 | // name 21 | Name string `json:"name,omitempty"` 22 | } 23 | 24 | // Validate validates this file tree directory 25 | func (m *FileTreeDirectory) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this file tree directory based on context it is used 30 | func (m *FileTreeDirectory) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *FileTreeDirectory) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *FileTreeDirectory) UnmarshalBinary(b []byte) error { 44 | var res FileTreeDirectory 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/filter_entry.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // FilterEntry FilterEntry 16 | // 17 | // swagger:model FilterEntry 18 | type FilterEntry struct { 19 | 20 | // count 21 | Count int64 `json:"count,omitempty"` 22 | 23 | // id 24 | ID string `json:"id,omitempty"` 25 | 26 | // name 27 | Name string `json:"name,omitempty"` 28 | } 29 | 30 | // Validate validates this filter entry 31 | func (m *FilterEntry) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this filter entry based on context it is used 36 | func (m *FilterEntry) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *FilterEntry) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *FilterEntry) UnmarshalBinary(b []byte) error { 50 | var res FilterEntry 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/form_definition.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // FormDefinition FormDefinition 16 | // 17 | // swagger:model FormDefinition 18 | type FormDefinition struct { 19 | 20 | // form URI 21 | FormURI string `json:"formURI,omitempty"` 22 | 23 | // track progress in modal 24 | TrackProgressInModal bool `json:"trackProgressInModal,omitempty"` 25 | } 26 | 27 | // Validate validates this form definition 28 | func (m *FormDefinition) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this form definition based on context it is used 33 | func (m *FormDefinition) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *FormDefinition) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *FormDefinition) UnmarshalBinary(b []byte) error { 47 | var res FormDefinition 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/full_name.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // FullName FullName 16 | // 17 | // swagger:model FullName 18 | type FullName struct { 19 | 20 | // name 21 | Name string `json:"name,omitempty"` 22 | 23 | // org Id 24 | OrgID string `json:"orgId,omitempty"` 25 | } 26 | 27 | // Validate validates this full name 28 | func (m *FullName) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this full name based on context it is used 33 | func (m *FullName) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *FullName) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *FullName) UnmarshalBinary(b []byte) error { 47 | var res FullName 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/gerrit_trigger_gerrit_event_configuration.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // GerritTriggerGerritEventConfiguration GerritTrigger$GerritEventConfiguration 16 | // 17 | // swagger:model GerritTriggerGerritEventConfiguration 18 | type GerritTriggerGerritEventConfiguration struct { 19 | 20 | // Type of the gerrit event. 21 | // Example: patchset-created 22 | EventType string `json:"eventType,omitempty"` 23 | 24 | // Comment to be posted to the ChangeSet on execution termination. 25 | // Example: Pipeline Execution Failed 26 | FailureComment string `json:"failureComment,omitempty"` 27 | 28 | // Map representing the Input properties for the Pipeline. 29 | // Example: [{"ip":"10.5.23.84","script":"testScript.sh"}] 30 | Input map[string]string `json:"input,omitempty"` 31 | 32 | // Pipeline that needs to be triggered on receiving this event. 33 | // Example: DemoPipeline 34 | Pipeline string `json:"pipeline,omitempty"` 35 | 36 | // Comment to be posted to the ChangeSet on execution termination. 37 | // Example: Pipeline Execution Completed 38 | SuccessComment string `json:"successComment,omitempty"` 39 | 40 | // The label to be posted on Gerrit Server to perform actions. 41 | // Example: Verified +1 42 | VerifiedLabel string `json:"verifiedLabel,omitempty"` 43 | } 44 | 45 | // Validate validates this gerrit trigger gerrit event configuration 46 | func (m *GerritTriggerGerritEventConfiguration) Validate(formats strfmt.Registry) error { 47 | return nil 48 | } 49 | 50 | // ContextValidate validates this gerrit trigger gerrit event configuration based on context it is used 51 | func (m *GerritTriggerGerritEventConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 52 | return nil 53 | } 54 | 55 | // MarshalBinary interface implementation 56 | func (m *GerritTriggerGerritEventConfiguration) MarshalBinary() ([]byte, error) { 57 | if m == nil { 58 | return nil, nil 59 | } 60 | return swag.WriteJSON(m) 61 | } 62 | 63 | // UnmarshalBinary interface implementation 64 | func (m *GerritTriggerGerritEventConfiguration) UnmarshalBinary(b []byte) error { 65 | var res GerritTriggerGerritEventConfiguration 66 | if err := swag.ReadJSON(b, &res); err != nil { 67 | return err 68 | } 69 | *m = res 70 | return nil 71 | } 72 | -------------------------------------------------------------------------------- /pkg/models/hardware.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Hardware Hardware 16 | // 17 | // swagger:model Hardware 18 | type Hardware struct { 19 | 20 | // cpus 21 | Cpus int32 `json:"cpus,omitempty"` 22 | 23 | // memory 24 | Memory string `json:"memory,omitempty"` 25 | } 26 | 27 | // Validate validates this hardware 28 | func (m *Hardware) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this hardware based on context it is used 33 | func (m *Hardware) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *Hardware) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *Hardware) UnmarshalBinary(b []byte) error { 47 | var res Hardware 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/href.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Href href 16 | // 17 | // swagger:model Href 18 | type Href struct { 19 | 20 | // href 21 | Href string `json:"href,omitempty"` 22 | 23 | // hrefs 24 | Hrefs []string `json:"hrefs"` 25 | } 26 | 27 | // Validate validates this href 28 | func (m *Href) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this href based on context it is used 33 | func (m *Href) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *Href) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *Href) UnmarshalBinary(b []byte) error { 47 | var res Href 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/k8_s_cluster_assign_request_d_t_o.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | "strconv" 11 | 12 | "github.com/go-openapi/errors" 13 | "github.com/go-openapi/strfmt" 14 | "github.com/go-openapi/swag" 15 | "github.com/go-openapi/validate" 16 | ) 17 | 18 | // K8SClusterAssignRequestDTO K8SClusterAssignRequestDTO 19 | // 20 | // swagger:model K8SClusterAssignRequestDTO 21 | type K8SClusterAssignRequestDTO struct { 22 | 23 | // cluster group 24 | ClusterGroup string `json:"clusterGroup,omitempty"` 25 | 26 | // cluster ids 27 | ClusterIds []strfmt.UUID `json:"clusterIds"` 28 | 29 | // project Id 30 | ProjectID string `json:"projectId,omitempty"` 31 | } 32 | 33 | // Validate validates this k8 s cluster assign request d t o 34 | func (m *K8SClusterAssignRequestDTO) Validate(formats strfmt.Registry) error { 35 | var res []error 36 | 37 | if err := m.validateClusterIds(formats); err != nil { 38 | res = append(res, err) 39 | } 40 | 41 | if len(res) > 0 { 42 | return errors.CompositeValidationError(res...) 43 | } 44 | return nil 45 | } 46 | 47 | func (m *K8SClusterAssignRequestDTO) validateClusterIds(formats strfmt.Registry) error { 48 | if swag.IsZero(m.ClusterIds) { // not required 49 | return nil 50 | } 51 | 52 | for i := 0; i < len(m.ClusterIds); i++ { 53 | 54 | if err := validate.FormatOf("clusterIds"+"."+strconv.Itoa(i), "body", "uuid", m.ClusterIds[i].String(), formats); err != nil { 55 | return err 56 | } 57 | 58 | } 59 | 60 | return nil 61 | } 62 | 63 | // ContextValidate validates this k8 s cluster assign request d t o based on context it is used 64 | func (m *K8SClusterAssignRequestDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 65 | return nil 66 | } 67 | 68 | // MarshalBinary interface implementation 69 | func (m *K8SClusterAssignRequestDTO) MarshalBinary() ([]byte, error) { 70 | if m == nil { 71 | return nil, nil 72 | } 73 | return swag.WriteJSON(m) 74 | } 75 | 76 | // UnmarshalBinary interface implementation 77 | func (m *K8SClusterAssignRequestDTO) UnmarshalBinary(b []byte) error { 78 | var res K8SClusterAssignRequestDTO 79 | if err := swag.ReadJSON(b, &res); err != nil { 80 | return err 81 | } 82 | *m = res 83 | return nil 84 | } 85 | -------------------------------------------------------------------------------- /pkg/models/k8s_cluster_state.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // K8sClusterState K8sClusterState 16 | // 17 | // swagger:model K8sClusterState 18 | type K8sClusterState struct { 19 | 20 | // error messages 21 | ErrorMessages string `json:"errorMessages,omitempty"` 22 | 23 | // error reported 24 | ErrorReported bool `json:"errorReported,omitempty"` 25 | 26 | // error type 27 | ErrorType string `json:"errorType,omitempty"` 28 | 29 | // id 30 | ID string `json:"id,omitempty"` 31 | 32 | // type 33 | Type string `json:"type,omitempty"` 34 | } 35 | 36 | // Validate validates this k8s cluster state 37 | func (m *K8sClusterState) Validate(formats strfmt.Registry) error { 38 | return nil 39 | } 40 | 41 | // ContextValidate validates this k8s cluster state based on context it is used 42 | func (m *K8sClusterState) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 43 | return nil 44 | } 45 | 46 | // MarshalBinary interface implementation 47 | func (m *K8sClusterState) MarshalBinary() ([]byte, error) { 48 | if m == nil { 49 | return nil, nil 50 | } 51 | return swag.WriteJSON(m) 52 | } 53 | 54 | // UnmarshalBinary interface implementation 55 | func (m *K8sClusterState) UnmarshalBinary(b []byte) error { 56 | var res K8sClusterState 57 | if err := swag.ReadJSON(b, &res); err != nil { 58 | return err 59 | } 60 | *m = res 61 | return nil 62 | } 63 | -------------------------------------------------------------------------------- /pkg/models/limits.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Limits Limits 16 | // 17 | // swagger:model Limits 18 | type Limits struct { 19 | 20 | // cpu 21 | CPU string `json:"cpu,omitempty"` 22 | 23 | // memory 24 | Memory string `json:"memory,omitempty"` 25 | } 26 | 27 | // Validate validates this limits 28 | func (m *Limits) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this limits based on context it is used 33 | func (m *Limits) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *Limits) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *Limits) UnmarshalBinary(b []byte) error { 47 | var res Limits 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/link.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Link Link 16 | // 17 | // swagger:model Link 18 | type Link struct { 19 | 20 | // href 21 | Href string `json:"href,omitempty"` 22 | 23 | // rel 24 | Rel string `json:"rel,omitempty"` 25 | } 26 | 27 | // Validate validates this link 28 | func (m *Link) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this link based on context it is used 33 | func (m *Link) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *Link) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *Link) UnmarshalBinary(b []byte) error { 47 | var res Link 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/lock_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // LockRequest LockRequest 16 | // 17 | // swagger:model LockRequest 18 | type LockRequest struct { 19 | 20 | // service name 21 | ServiceName string `json:"serviceName,omitempty"` 22 | } 23 | 24 | // Validate validates this lock request 25 | func (m *LockRequest) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this lock request based on context it is used 30 | func (m *LockRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *LockRequest) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *LockRequest) UnmarshalBinary(b []byte) error { 44 | var res LockRequest 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/machine_boot_config.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // MachineBootConfig Machine boot config that will be passed to the instance that can be used to perform common automated configuration tasks and even run scripts after the instance starts. 16 | // 17 | // swagger:model MachineBootConfig 18 | type MachineBootConfig struct { 19 | 20 | // A valid cloud config data in json-escaped yaml syntax 21 | // Example: #cloud-config\nrepo_update: true\nrepo_upgrade: all\n\npackages:\n - mysql-server\n\nruncmd:\n - sed -e '/bind-address/ s/^#*/#/' -i /etc/mysql/mysql.conf.d/mysqld.cnf\n - service mysql restart\n - mysql -e \"GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mysqlpassword';\"\n - mysql -e \"FLUSH PRIVILEGES;\"\n 22 | Content string `json:"content,omitempty"` 23 | } 24 | 25 | // Validate validates this machine boot config 26 | func (m *MachineBootConfig) Validate(formats strfmt.Registry) error { 27 | return nil 28 | } 29 | 30 | // ContextValidate validates this machine boot config based on context it is used 31 | func (m *MachineBootConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // MarshalBinary interface implementation 36 | func (m *MachineBootConfig) MarshalBinary() ([]byte, error) { 37 | if m == nil { 38 | return nil, nil 39 | } 40 | return swag.WriteJSON(m) 41 | } 42 | 43 | // UnmarshalBinary interface implementation 44 | func (m *MachineBootConfig) UnmarshalBinary(b []byte) error { 45 | var res MachineBootConfig 46 | if err := swag.ReadJSON(b, &res); err != nil { 47 | return err 48 | } 49 | *m = res 50 | return nil 51 | } 52 | -------------------------------------------------------------------------------- /pkg/models/machine_boot_config_settings.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // MachineBootConfigSettings Machine boot config settings that will define how the provisioning will handle the boot config script execution. 16 | // 17 | // swagger:model MachineBootConfigSettings 18 | type MachineBootConfigSettings struct { 19 | 20 | // In case an error is thrown while processing cloud-config whether the provisioning process should fail or continue. 21 | // Example: true 22 | DeploymentFailOnCloudConfigRuntimeError bool `json:"deploymentFailOnCloudConfigRuntimeError,omitempty"` 23 | 24 | // In case a timeout occurs whether the provisioning process should fail or continue. 25 | // Example: false 26 | PhoneHomeFailOnTimeout bool `json:"phoneHomeFailOnTimeout,omitempty"` 27 | 28 | // A phone_home module will be added to the Cloud Config and the provisioning will wait on a callback prior proceeding 29 | // Example: true 30 | PhoneHomeShouldWait bool `json:"phoneHomeShouldWait,omitempty"` 31 | 32 | // The period of time to wait for the phone_home module callback to occur 33 | // Example: 100 34 | PhoneHomeTimeoutSeconds int32 `json:"phoneHomeTimeoutSeconds,omitempty"` 35 | } 36 | 37 | // Validate validates this machine boot config settings 38 | func (m *MachineBootConfigSettings) Validate(formats strfmt.Registry) error { 39 | return nil 40 | } 41 | 42 | // ContextValidate validates this machine boot config settings based on context it is used 43 | func (m *MachineBootConfigSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 44 | return nil 45 | } 46 | 47 | // MarshalBinary interface implementation 48 | func (m *MachineBootConfigSettings) MarshalBinary() ([]byte, error) { 49 | if m == nil { 50 | return nil, nil 51 | } 52 | return swag.WriteJSON(m) 53 | } 54 | 55 | // UnmarshalBinary interface implementation 56 | func (m *MachineBootConfigSettings) UnmarshalBinary(b []byte) error { 57 | var res MachineBootConfigSettings 58 | if err := swag.ReadJSON(b, &res); err != nil { 59 | return err 60 | } 61 | *m = res 62 | return nil 63 | } 64 | -------------------------------------------------------------------------------- /pkg/models/managed_fields_entry.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // ManagedFieldsEntry ManagedFieldsEntry 16 | // 17 | // swagger:model ManagedFieldsEntry 18 | type ManagedFieldsEntry struct { 19 | 20 | // api version 21 | APIVersion string `json:"apiVersion,omitempty"` 22 | 23 | // fields type 24 | FieldsType string `json:"fieldsType,omitempty"` 25 | 26 | // fields v1 27 | FieldsV1 FieldsV1 `json:"fieldsV1,omitempty"` 28 | 29 | // manager 30 | Manager string `json:"manager,omitempty"` 31 | 32 | // operation 33 | Operation string `json:"operation,omitempty"` 34 | 35 | // subresource 36 | Subresource string `json:"subresource,omitempty"` 37 | 38 | // time 39 | Time string `json:"time,omitempty"` 40 | } 41 | 42 | // Validate validates this managed fields entry 43 | func (m *ManagedFieldsEntry) Validate(formats strfmt.Registry) error { 44 | return nil 45 | } 46 | 47 | // ContextValidate validates this managed fields entry based on context it is used 48 | func (m *ManagedFieldsEntry) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 49 | return nil 50 | } 51 | 52 | // MarshalBinary interface implementation 53 | func (m *ManagedFieldsEntry) MarshalBinary() ([]byte, error) { 54 | if m == nil { 55 | return nil, nil 56 | } 57 | return swag.WriteJSON(m) 58 | } 59 | 60 | // UnmarshalBinary interface implementation 61 | func (m *ManagedFieldsEntry) UnmarshalBinary(b []byte) error { 62 | var res ManagedFieldsEntry 63 | if err := swag.ReadJSON(b, &res); err != nil { 64 | return err 65 | } 66 | *m = res 67 | return nil 68 | } 69 | -------------------------------------------------------------------------------- /pkg/models/node_spec.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // NodeSpec NodeSpec 16 | // 17 | // swagger:model NodeSpec 18 | type NodeSpec struct { 19 | 20 | // external Id 21 | ExternalID string `json:"externalId,omitempty"` 22 | 23 | // pod c ID r 24 | PodCIDR string `json:"podCIDR,omitempty"` 25 | 26 | // provider Id 27 | ProviderID string `json:"providerId,omitempty"` 28 | 29 | // unschedulable 30 | Unschedulable bool `json:"unschedulable,omitempty"` 31 | } 32 | 33 | // Validate validates this node spec 34 | func (m *NodeSpec) Validate(formats strfmt.Registry) error { 35 | return nil 36 | } 37 | 38 | // ContextValidate validates this node spec based on context it is used 39 | func (m *NodeSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 40 | return nil 41 | } 42 | 43 | // MarshalBinary interface implementation 44 | func (m *NodeSpec) MarshalBinary() ([]byte, error) { 45 | if m == nil { 46 | return nil, nil 47 | } 48 | return swag.WriteJSON(m) 49 | } 50 | 51 | // UnmarshalBinary interface implementation 52 | func (m *NodeSpec) UnmarshalBinary(b []byte) error { 53 | var res NodeSpec 54 | if err := swag.ReadJSON(b, &res); err != nil { 55 | return err 56 | } 57 | *m = res 58 | return nil 59 | } 60 | -------------------------------------------------------------------------------- /pkg/models/node_status.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // NodeStatus NodeStatus 16 | // 17 | // swagger:model NodeStatus 18 | type NodeStatus struct { 19 | 20 | // allocatable 21 | Allocatable interface{} `json:"allocatable,omitempty"` 22 | 23 | // capacity 24 | Capacity interface{} `json:"capacity,omitempty"` 25 | 26 | // phase 27 | Phase string `json:"phase,omitempty"` 28 | } 29 | 30 | // Validate validates this node status 31 | func (m *NodeStatus) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this node status based on context it is used 36 | func (m *NodeStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *NodeStatus) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *NodeStatus) UnmarshalBinary(b []byte) error { 50 | var res NodeStatus 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/nsx_account.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // NsxAccount NsxAccount 16 | // 17 | // swagger:model NsxAccount 18 | type NsxAccount struct { 19 | 20 | // host name 21 | HostName string `json:"hostName,omitempty"` 22 | 23 | // id 24 | ID string `json:"id,omitempty"` 25 | } 26 | 27 | // Validate validates this nsx account 28 | func (m *NsxAccount) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this nsx account based on context it is used 33 | func (m *NsxAccount) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *NsxAccount) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *NsxAccount) UnmarshalBinary(b []byte) error { 47 | var res NsxAccount 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/object_meta.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // ObjectMeta ObjectMeta 16 | // 17 | // swagger:model ObjectMeta 18 | type ObjectMeta struct { 19 | 20 | // annotations 21 | Annotations map[string]string `json:"annotations,omitempty"` 22 | 23 | // cluster name 24 | ClusterName string `json:"clusterName,omitempty"` 25 | 26 | // creation timestamp 27 | CreationTimestamp string `json:"creationTimestamp,omitempty"` 28 | 29 | // deletion timestamp 30 | DeletionTimestamp string `json:"deletionTimestamp,omitempty"` 31 | 32 | // generate name 33 | GenerateName string `json:"generateName,omitempty"` 34 | 35 | // labels 36 | Labels map[string]string `json:"labels,omitempty"` 37 | 38 | // name 39 | Name string `json:"name,omitempty"` 40 | 41 | // namespace 42 | Namespace string `json:"namespace,omitempty"` 43 | 44 | // self link 45 | SelfLink string `json:"selfLink,omitempty"` 46 | 47 | // uid 48 | UID string `json:"uid,omitempty"` 49 | } 50 | 51 | // Validate validates this object meta 52 | func (m *ObjectMeta) Validate(formats strfmt.Registry) error { 53 | return nil 54 | } 55 | 56 | // ContextValidate validates this object meta based on context it is used 57 | func (m *ObjectMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 58 | return nil 59 | } 60 | 61 | // MarshalBinary interface implementation 62 | func (m *ObjectMeta) MarshalBinary() ([]byte, error) { 63 | if m == nil { 64 | return nil, nil 65 | } 66 | return swag.WriteJSON(m) 67 | } 68 | 69 | // UnmarshalBinary interface implementation 70 | func (m *ObjectMeta) UnmarshalBinary(b []byte) error { 71 | var res ObjectMeta 72 | if err := swag.ReadJSON(b, &res); err != nil { 73 | return err 74 | } 75 | *m = res 76 | return nil 77 | } 78 | -------------------------------------------------------------------------------- /pkg/models/onboarding_blueprint_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OnboardingBlueprintRequest onboarding blueprint request 16 | // 17 | // swagger:model OnboardingBlueprintRequest 18 | type OnboardingBlueprintRequest struct { 19 | 20 | // Automatically generate the Cloud Template if set. 21 | AutoGenerate bool `json:"autoGenerate,omitempty"` 22 | 23 | // Link to the parent deployment. 24 | DeploymentLink string `json:"deploymentLink,omitempty"` 25 | 26 | // Name of the auto-generated Cloud Template. 27 | Name string `json:"name,omitempty"` 28 | 29 | // Link to the parent plan. 30 | PlanLink string `json:"planLink,omitempty"` 31 | 32 | // Link to an existing Cloud Template. 33 | TemplateLink string `json:"templateLink,omitempty"` 34 | } 35 | 36 | // Validate validates this onboarding blueprint request 37 | func (m *OnboardingBlueprintRequest) Validate(formats strfmt.Registry) error { 38 | return nil 39 | } 40 | 41 | // ContextValidate validates this onboarding blueprint request based on context it is used 42 | func (m *OnboardingBlueprintRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 43 | return nil 44 | } 45 | 46 | // MarshalBinary interface implementation 47 | func (m *OnboardingBlueprintRequest) MarshalBinary() ([]byte, error) { 48 | if m == nil { 49 | return nil, nil 50 | } 51 | return swag.WriteJSON(m) 52 | } 53 | 54 | // UnmarshalBinary interface implementation 55 | func (m *OnboardingBlueprintRequest) UnmarshalBinary(b []byte) error { 56 | var res OnboardingBlueprintRequest 57 | if err := swag.ReadJSON(b, &res); err != nil { 58 | return err 59 | } 60 | *m = res 61 | return nil 62 | } 63 | -------------------------------------------------------------------------------- /pkg/models/onboarding_blueprint_response.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OnboardingBlueprintResponse onboarding blueprint response 16 | // 17 | // swagger:model OnboardingBlueprintResponse 18 | type OnboardingBlueprintResponse struct { 19 | 20 | // Automatically generate the Cloud Template if set. 21 | AutoGenerate bool `json:"autoGenerate,omitempty"` 22 | 23 | // Link to the parent deployment. 24 | DeploymentLink string `json:"deploymentLink,omitempty"` 25 | 26 | // Link to this blueprint. 27 | DocumentSelfLink string `json:"documentSelfLink,omitempty"` 28 | 29 | // Name of the auto-generated Cloud Template. 30 | Name string `json:"name,omitempty"` 31 | 32 | // Link to the parent plan. 33 | PlanLink string `json:"planLink,omitempty"` 34 | 35 | // Link to an existing Cloud Template. 36 | TemplateLink string `json:"templateLink,omitempty"` 37 | 38 | // Link to blueprint's tenant. 39 | TenantLink string `json:"tenantLink,omitempty"` 40 | } 41 | 42 | // Validate validates this onboarding blueprint response 43 | func (m *OnboardingBlueprintResponse) Validate(formats strfmt.Registry) error { 44 | return nil 45 | } 46 | 47 | // ContextValidate validates this onboarding blueprint response based on context it is used 48 | func (m *OnboardingBlueprintResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 49 | return nil 50 | } 51 | 52 | // MarshalBinary interface implementation 53 | func (m *OnboardingBlueprintResponse) MarshalBinary() ([]byte, error) { 54 | if m == nil { 55 | return nil, nil 56 | } 57 | return swag.WriteJSON(m) 58 | } 59 | 60 | // UnmarshalBinary interface implementation 61 | func (m *OnboardingBlueprintResponse) UnmarshalBinary(b []byte) error { 62 | var res OnboardingBlueprintResponse 63 | if err := swag.ReadJSON(b, &res); err != nil { 64 | return err 65 | } 66 | *m = res 67 | return nil 68 | } 69 | -------------------------------------------------------------------------------- /pkg/models/onboarding_deployment_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OnboardingDeploymentRequest onboarding deployment request 16 | // 17 | // swagger:model OnboardingDeploymentRequest 18 | type OnboardingDeploymentRequest struct { 19 | 20 | // Deployment description. Will be propagated to Cloud Assembly deployment. 21 | Description string `json:"description,omitempty"` 22 | 23 | // Deployment name. Will be propagated to Cloud Assembly deployment. 24 | Name string `json:"name,omitempty"` 25 | 26 | // Link to the parent plan. 27 | PlanLink string `json:"planLink,omitempty"` 28 | } 29 | 30 | // Validate validates this onboarding deployment request 31 | func (m *OnboardingDeploymentRequest) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this onboarding deployment request based on context it is used 36 | func (m *OnboardingDeploymentRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *OnboardingDeploymentRequest) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *OnboardingDeploymentRequest) UnmarshalBinary(b []byte) error { 50 | var res OnboardingDeploymentRequest 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/onboarding_deployment_response.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OnboardingDeploymentResponse onboarding deployment response 16 | // 17 | // swagger:model OnboardingDeploymentResponse 18 | type OnboardingDeploymentResponse struct { 19 | 20 | // Link to the onboarded deployment in Cloud Assembly. 21 | ConsumerDeploymentLink string `json:"consumerDeploymentLink,omitempty"` 22 | 23 | // Deployment description. Will be propagated to Cloud Assembly deployment. 24 | Description string `json:"description,omitempty"` 25 | 26 | // Link to this deployment. 27 | DocumentSelfLink string `json:"documentSelfLink,omitempty"` 28 | 29 | // Deployment name. Will be propagated to Cloud Assembly deployment. 30 | Name string `json:"name,omitempty"` 31 | 32 | // Link to the parent plan. 33 | PlanLink string `json:"planLink,omitempty"` 34 | 35 | // Link to the deployment's tenant. 36 | TenantLink string `json:"tenantLink,omitempty"` 37 | } 38 | 39 | // Validate validates this onboarding deployment response 40 | func (m *OnboardingDeploymentResponse) Validate(formats strfmt.Registry) error { 41 | return nil 42 | } 43 | 44 | // ContextValidate validates this onboarding deployment response based on context it is used 45 | func (m *OnboardingDeploymentResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 46 | return nil 47 | } 48 | 49 | // MarshalBinary interface implementation 50 | func (m *OnboardingDeploymentResponse) MarshalBinary() ([]byte, error) { 51 | if m == nil { 52 | return nil, nil 53 | } 54 | return swag.WriteJSON(m) 55 | } 56 | 57 | // UnmarshalBinary interface implementation 58 | func (m *OnboardingDeploymentResponse) UnmarshalBinary(b []byte) error { 59 | var res OnboardingDeploymentResponse 60 | if err := swag.ReadJSON(b, &res); err != nil { 61 | return err 62 | } 63 | *m = res 64 | return nil 65 | } 66 | -------------------------------------------------------------------------------- /pkg/models/onboarding_plan_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OnboardingPlanRequest onboarding plan request 16 | // 17 | // swagger:model OnboardingPlanRequest 18 | type OnboardingPlanRequest struct { 19 | 20 | // Plan description. 21 | Description string `json:"description,omitempty"` 22 | 23 | // Cloud account identifiers to lookup for discovered machines. 24 | EndpointIds []string `json:"endpointIds"` 25 | 26 | // Plan name. 27 | Name string `json:"name,omitempty"` 28 | 29 | // Project identifier the plan will onboard machines to. 30 | ProjectID string `json:"projectId,omitempty"` 31 | } 32 | 33 | // Validate validates this onboarding plan request 34 | func (m *OnboardingPlanRequest) Validate(formats strfmt.Registry) error { 35 | return nil 36 | } 37 | 38 | // ContextValidate validates this onboarding plan request based on context it is used 39 | func (m *OnboardingPlanRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 40 | return nil 41 | } 42 | 43 | // MarshalBinary interface implementation 44 | func (m *OnboardingPlanRequest) MarshalBinary() ([]byte, error) { 45 | if m == nil { 46 | return nil, nil 47 | } 48 | return swag.WriteJSON(m) 49 | } 50 | 51 | // UnmarshalBinary interface implementation 52 | func (m *OnboardingPlanRequest) UnmarshalBinary(b []byte) error { 53 | var res OnboardingPlanRequest 54 | if err := swag.ReadJSON(b, &res); err != nil { 55 | return err 56 | } 57 | *m = res 58 | return nil 59 | } 60 | -------------------------------------------------------------------------------- /pkg/models/onboarding_plan_response.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OnboardingPlanResponse onboarding plan response 16 | // 17 | // swagger:model OnboardingPlanResponse 18 | type OnboardingPlanResponse struct { 19 | 20 | // Plan description. 21 | Description string `json:"description,omitempty"` 22 | 23 | // Link to this plan. 24 | DocumentSelfLink string `json:"documentSelfLink,omitempty"` 25 | 26 | // Cloud account identifiers to lookup for discovered machines. 27 | EndpointIds []string `json:"endpointIds"` 28 | 29 | // Plan name. 30 | Name string `json:"name,omitempty"` 31 | 32 | // Project identifier the plan will onboard machines to. 33 | ProjectID string `json:"projectId,omitempty"` 34 | 35 | // Link to the plan's tenant. 36 | TenantLink string `json:"tenantLink,omitempty"` 37 | } 38 | 39 | // Validate validates this onboarding plan response 40 | func (m *OnboardingPlanResponse) Validate(formats strfmt.Registry) error { 41 | return nil 42 | } 43 | 44 | // ContextValidate validates this onboarding plan response based on context it is used 45 | func (m *OnboardingPlanResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 46 | return nil 47 | } 48 | 49 | // MarshalBinary interface implementation 50 | func (m *OnboardingPlanResponse) MarshalBinary() ([]byte, error) { 51 | if m == nil { 52 | return nil, nil 53 | } 54 | return swag.WriteJSON(m) 55 | } 56 | 57 | // UnmarshalBinary interface implementation 58 | func (m *OnboardingPlanResponse) UnmarshalBinary(b []byte) error { 59 | var res OnboardingPlanResponse 60 | if err := swag.ReadJSON(b, &res); err != nil { 61 | return err 62 | } 63 | *m = res 64 | return nil 65 | } 66 | -------------------------------------------------------------------------------- /pkg/models/onboarding_resource_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OnboardingResourceRequest onboarding resource request 16 | // 17 | // swagger:model OnboardingResourceRequest 18 | type OnboardingResourceRequest struct { 19 | 20 | // Link to the parent deployment. 21 | DeploymentLink string `json:"deploymentLink,omitempty"` 22 | 23 | // Link to the parent plan. 24 | PlanLink string `json:"planLink,omitempty"` 25 | 26 | // Link to the compute resource (machine) in the Provisioning service inventory. 27 | ResourceLink string `json:"resourceLink,omitempty"` 28 | 29 | // Resource name, usually the machine name. Will be propagated to Cloud Assembly. 30 | ResourceName string `json:"resourceName,omitempty"` 31 | 32 | // Tag links in the Provisioning service inventory associated with the machine. 33 | TagLinks []string `json:"tagLinks"` 34 | } 35 | 36 | // Validate validates this onboarding resource request 37 | func (m *OnboardingResourceRequest) Validate(formats strfmt.Registry) error { 38 | return nil 39 | } 40 | 41 | // ContextValidate validates this onboarding resource request based on context it is used 42 | func (m *OnboardingResourceRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 43 | return nil 44 | } 45 | 46 | // MarshalBinary interface implementation 47 | func (m *OnboardingResourceRequest) MarshalBinary() ([]byte, error) { 48 | if m == nil { 49 | return nil, nil 50 | } 51 | return swag.WriteJSON(m) 52 | } 53 | 54 | // UnmarshalBinary interface implementation 55 | func (m *OnboardingResourceRequest) UnmarshalBinary(b []byte) error { 56 | var res OnboardingResourceRequest 57 | if err := swag.ReadJSON(b, &res); err != nil { 58 | return err 59 | } 60 | *m = res 61 | return nil 62 | } 63 | -------------------------------------------------------------------------------- /pkg/models/onboarding_resource_response.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OnboardingResourceResponse onboarding resource response 16 | // 17 | // swagger:model OnboardingResourceResponse 18 | type OnboardingResourceResponse struct { 19 | 20 | // Link to the parent deployment. 21 | DeploymentLink string `json:"deploymentLink,omitempty"` 22 | 23 | // Link to this resource. 24 | DocumentSelfLink string `json:"documentSelfLink,omitempty"` 25 | 26 | // Link to the parent plan. 27 | PlanLink string `json:"planLink,omitempty"` 28 | 29 | // Link to the compute resource (machine) in the Provisioning service inventory. 30 | ResourceLink string `json:"resourceLink,omitempty"` 31 | 32 | // Resource name, usually the machine name. Will be propagated to Cloud Assembly. 33 | ResourceName string `json:"resourceName,omitempty"` 34 | 35 | // Tag links in the Provisioning service inventory associated with the machine. 36 | TagLinks []string `json:"tagLinks"` 37 | 38 | // Link to the resource's tenant. 39 | TenantLink string `json:"tenantLink,omitempty"` 40 | } 41 | 42 | // Validate validates this onboarding resource response 43 | func (m *OnboardingResourceResponse) Validate(formats strfmt.Registry) error { 44 | return nil 45 | } 46 | 47 | // ContextValidate validates this onboarding resource response based on context it is used 48 | func (m *OnboardingResourceResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 49 | return nil 50 | } 51 | 52 | // MarshalBinary interface implementation 53 | func (m *OnboardingResourceResponse) MarshalBinary() ([]byte, error) { 54 | if m == nil { 55 | return nil, nil 56 | } 57 | return swag.WriteJSON(m) 58 | } 59 | 60 | // UnmarshalBinary interface implementation 61 | func (m *OnboardingResourceResponse) UnmarshalBinary(b []byte) error { 62 | var res OnboardingResourceResponse 63 | if err := swag.ReadJSON(b, &res); err != nil { 64 | return err 65 | } 66 | *m = res 67 | return nil 68 | } 69 | -------------------------------------------------------------------------------- /pkg/models/one_time_metering.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OneTimeMetering OneTimeMetering 16 | // 17 | // swagger:model OneTimeMetering 18 | type OneTimeMetering struct { 19 | 20 | // one time fixed price 21 | OneTimeFixedPrice float64 `json:"oneTimeFixedPrice,omitempty"` 22 | } 23 | 24 | // Validate validates this one time metering 25 | func (m *OneTimeMetering) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this one time metering based on context it is used 30 | func (m *OneTimeMetering) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *OneTimeMetering) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *OneTimeMetering) UnmarshalBinary(b []byte) error { 44 | var res OneTimeMetering 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/output_value.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OutputValue OutputValue 16 | // 17 | // swagger:model OutputValue 18 | type OutputValue struct { 19 | 20 | // The description of the output value in the Terraform configuration. 21 | Description string `json:"description,omitempty"` 22 | 23 | // The name of the output value in the Terraform configuration. 24 | Name string `json:"name,omitempty"` 25 | 26 | // A flag indicating that the field should be obscured because of security concerns. 27 | Sensitive bool `json:"sensitive,omitempty"` 28 | } 29 | 30 | // Validate validates this output value 31 | func (m *OutputValue) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this output value based on context it is used 36 | func (m *OutputValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *OutputValue) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *OutputValue) UnmarshalBinary(b []byte) error { 50 | var res OutputValue 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/owner_reference.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // OwnerReference OwnerReference 16 | // 17 | // swagger:model OwnerReference 18 | type OwnerReference struct { 19 | 20 | // api version 21 | APIVersion string `json:"apiVersion,omitempty"` 22 | 23 | // block owner deletion 24 | BlockOwnerDeletion bool `json:"blockOwnerDeletion,omitempty"` 25 | 26 | // controller 27 | Controller bool `json:"controller,omitempty"` 28 | 29 | // kind 30 | Kind string `json:"kind,omitempty"` 31 | 32 | // name 33 | Name string `json:"name,omitempty"` 34 | 35 | // uid 36 | UID string `json:"uid,omitempty"` 37 | } 38 | 39 | // Validate validates this owner reference 40 | func (m *OwnerReference) Validate(formats strfmt.Registry) error { 41 | return nil 42 | } 43 | 44 | // ContextValidate validates this owner reference based on context it is used 45 | func (m *OwnerReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 46 | return nil 47 | } 48 | 49 | // MarshalBinary interface implementation 50 | func (m *OwnerReference) MarshalBinary() ([]byte, error) { 51 | if m == nil { 52 | return nil, nil 53 | } 54 | return swag.WriteJSON(m) 55 | } 56 | 57 | // UnmarshalBinary interface implementation 58 | func (m *OwnerReference) UnmarshalBinary(b []byte) error { 59 | var res OwnerReference 60 | if err := swag.ReadJSON(b, &res); err != nil { 61 | return err 62 | } 63 | *m = res 64 | return nil 65 | } 66 | -------------------------------------------------------------------------------- /pkg/models/p_k_s_cluster.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // PKSCluster PKSCluster 16 | // 17 | // swagger:model PKSCluster 18 | type PKSCluster struct { 19 | 20 | // hostname address 21 | HostnameAddress string `json:"hostnameAddress,omitempty"` 22 | 23 | // ip address 24 | IPAddress string `json:"ipAddress,omitempty"` 25 | 26 | // kubernetes master ips 27 | KubernetesMasterIps []string `json:"kubernetes_master_ips"` 28 | 29 | // last action 30 | LastAction string `json:"last_action,omitempty"` 31 | 32 | // last action description 33 | LastActionDescription string `json:"last_action_description,omitempty"` 34 | 35 | // last action state 36 | LastActionState string `json:"last_action_state,omitempty"` 37 | 38 | // name 39 | Name string `json:"name,omitempty"` 40 | 41 | // parameters 42 | Parameters interface{} `json:"parameters,omitempty"` 43 | 44 | // plan name 45 | PlanName string `json:"plan_name,omitempty"` 46 | 47 | // uuid 48 | UUID string `json:"uuid,omitempty"` 49 | } 50 | 51 | // Validate validates this p k s cluster 52 | func (m *PKSCluster) Validate(formats strfmt.Registry) error { 53 | return nil 54 | } 55 | 56 | // ContextValidate validates this p k s cluster based on context it is used 57 | func (m *PKSCluster) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 58 | return nil 59 | } 60 | 61 | // MarshalBinary interface implementation 62 | func (m *PKSCluster) MarshalBinary() ([]byte, error) { 63 | if m == nil { 64 | return nil, nil 65 | } 66 | return swag.WriteJSON(m) 67 | } 68 | 69 | // UnmarshalBinary interface implementation 70 | func (m *PKSCluster) UnmarshalBinary(b []byte) error { 71 | var res PKSCluster 72 | if err := swag.ReadJSON(b, &res); err != nil { 73 | return err 74 | } 75 | *m = res 76 | return nil 77 | } 78 | -------------------------------------------------------------------------------- /pkg/models/p_k_s_plan.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // PKSPlan PKSPlan 16 | // 17 | // swagger:model PKSPlan 18 | type PKSPlan struct { 19 | 20 | // description 21 | Description string `json:"description,omitempty"` 22 | 23 | // id 24 | ID string `json:"id,omitempty"` 25 | 26 | // master instances 27 | MasterInstances string `json:"masterInstances,omitempty"` 28 | 29 | // name 30 | Name string `json:"name,omitempty"` 31 | 32 | // worker instances 33 | WorkerInstances string `json:"workerInstances,omitempty"` 34 | } 35 | 36 | // Validate validates this p k s plan 37 | func (m *PKSPlan) Validate(formats strfmt.Registry) error { 38 | return nil 39 | } 40 | 41 | // ContextValidate validates this p k s plan based on context it is used 42 | func (m *PKSPlan) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 43 | return nil 44 | } 45 | 46 | // MarshalBinary interface implementation 47 | func (m *PKSPlan) MarshalBinary() ([]byte, error) { 48 | if m == nil { 49 | return nil, nil 50 | } 51 | return swag.WriteJSON(m) 52 | } 53 | 54 | // UnmarshalBinary interface implementation 55 | func (m *PKSPlan) UnmarshalBinary(b []byte) error { 56 | var res PKSPlan 57 | if err := swag.ReadJSON(b, &res); err != nil { 58 | return err 59 | } 60 | *m = res 61 | return nil 62 | } 63 | -------------------------------------------------------------------------------- /pkg/models/page.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Page Page 16 | // 17 | // # Project callback response containing count of deployments 18 | // 19 | // swagger:model Page 20 | type Page struct { 21 | 22 | // Count of the deployments 23 | TotalElements int64 `json:"totalElements,omitempty"` 24 | } 25 | 26 | // Validate validates this page 27 | func (m *Page) Validate(formats strfmt.Registry) error { 28 | return nil 29 | } 30 | 31 | // ContextValidate validates this page based on context it is used 32 | func (m *Page) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 33 | return nil 34 | } 35 | 36 | // MarshalBinary interface implementation 37 | func (m *Page) MarshalBinary() ([]byte, error) { 38 | if m == nil { 39 | return nil, nil 40 | } 41 | return swag.WriteJSON(m) 42 | } 43 | 44 | // UnmarshalBinary interface implementation 45 | func (m *Page) UnmarshalBinary(b []byte) error { 46 | var res Page 47 | if err := swag.ReadJSON(b, &res); err != nil { 48 | return err 49 | } 50 | *m = res 51 | return nil 52 | } 53 | -------------------------------------------------------------------------------- /pkg/models/page_metadata.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // PageMetadata PageMetadata 16 | // 17 | // swagger:model PageMetadata 18 | type PageMetadata struct { 19 | 20 | // number 21 | Number int64 `json:"number,omitempty"` 22 | 23 | // size 24 | Size int64 `json:"size,omitempty"` 25 | 26 | // total elements 27 | TotalElements int64 `json:"totalElements,omitempty"` 28 | 29 | // total pages 30 | TotalPages int64 `json:"totalPages,omitempty"` 31 | } 32 | 33 | // Validate validates this page metadata 34 | func (m *PageMetadata) Validate(formats strfmt.Registry) error { 35 | return nil 36 | } 37 | 38 | // ContextValidate validates this page metadata based on context it is used 39 | func (m *PageMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 40 | return nil 41 | } 42 | 43 | // MarshalBinary interface implementation 44 | func (m *PageMetadata) MarshalBinary() ([]byte, error) { 45 | if m == nil { 46 | return nil, nil 47 | } 48 | return swag.WriteJSON(m) 49 | } 50 | 51 | // UnmarshalBinary interface implementation 52 | func (m *PageMetadata) UnmarshalBinary(b []byte) error { 53 | var res PageMetadata 54 | if err := swag.ReadJSON(b, &res); err != nil { 55 | return err 56 | } 57 | *m = res 58 | return nil 59 | } 60 | -------------------------------------------------------------------------------- /pkg/models/pipeline_starred_property.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // PipelineStarredProperty Pipeline$StarredProperty 16 | // 17 | // swagger:model PipelineStarredProperty 18 | type PipelineStarredProperty struct { 19 | 20 | // Contains the starred input parameter 21 | // Example: {"input":"commitId"} 22 | Input string `json:"input,omitempty"` 23 | 24 | // Contains the starred output parameter 25 | // Example: {"output":"owner"} 26 | Output string `json:"output,omitempty"` 27 | } 28 | 29 | // Validate validates this pipeline starred property 30 | func (m *PipelineStarredProperty) Validate(formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // ContextValidate validates this pipeline starred property based on context it is used 35 | func (m *PipelineStarredProperty) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 36 | return nil 37 | } 38 | 39 | // MarshalBinary interface implementation 40 | func (m *PipelineStarredProperty) MarshalBinary() ([]byte, error) { 41 | if m == nil { 42 | return nil, nil 43 | } 44 | return swag.WriteJSON(m) 45 | } 46 | 47 | // UnmarshalBinary interface implementation 48 | func (m *PipelineStarredProperty) UnmarshalBinary(b []byte) error { 49 | var res PipelineStarredProperty 50 | if err := swag.ReadJSON(b, &res); err != nil { 51 | return err 52 | } 53 | *m = res 54 | return nil 55 | } 56 | -------------------------------------------------------------------------------- /pkg/models/plan_execution_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // PlanExecutionRequest plan execution request 16 | // 17 | // swagger:model PlanExecutionRequest 18 | type PlanExecutionRequest struct { 19 | 20 | // Link to the plan to execute. 21 | PlanLink string `json:"planLink,omitempty"` 22 | } 23 | 24 | // Validate validates this plan execution request 25 | func (m *PlanExecutionRequest) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this plan execution request based on context it is used 30 | func (m *PlanExecutionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *PlanExecutionRequest) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *PlanExecutionRequest) UnmarshalBinary(b []byte) error { 44 | var res PlanExecutionRequest 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/policy_feature_config.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // PolicyFeatureConfig PolicyFeatureConfig 16 | // 17 | // swagger:model PolicyFeatureConfig 18 | type PolicyFeatureConfig struct { 19 | 20 | // enable dry run 21 | EnableDryRun bool `json:"enableDryRun,omitempty"` 22 | 23 | // enable enforcement type 24 | EnableEnforcementType bool `json:"enableEnforcementType,omitempty"` 25 | 26 | // enable single project scope 27 | EnableSingleProjectScope bool `json:"enableSingleProjectScope,omitempty"` 28 | 29 | // enable update notification 30 | EnableUpdateNotification bool `json:"enableUpdateNotification,omitempty"` 31 | } 32 | 33 | // Validate validates this policy feature config 34 | func (m *PolicyFeatureConfig) Validate(formats strfmt.Registry) error { 35 | return nil 36 | } 37 | 38 | // ContextValidate validates this policy feature config based on context it is used 39 | func (m *PolicyFeatureConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 40 | return nil 41 | } 42 | 43 | // MarshalBinary interface implementation 44 | func (m *PolicyFeatureConfig) MarshalBinary() ([]byte, error) { 45 | if m == nil { 46 | return nil, nil 47 | } 48 | return swag.WriteJSON(m) 49 | } 50 | 51 | // UnmarshalBinary interface implementation 52 | func (m *PolicyFeatureConfig) UnmarshalBinary(b []byte) error { 53 | var res PolicyFeatureConfig 54 | if err := swag.ReadJSON(b, &res); err != nil { 55 | return err 56 | } 57 | *m = res 58 | return nil 59 | } 60 | -------------------------------------------------------------------------------- /pkg/models/policy_stats.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // PolicyStats PolicyStats 16 | // 17 | // swagger:model PolicyStats 18 | type PolicyStats struct { 19 | 20 | // conflict count 21 | ConflictCount int64 `json:"conflictCount,omitempty"` 22 | 23 | // enforced count 24 | EnforcedCount int64 `json:"enforcedCount,omitempty"` 25 | 26 | // not enforced count 27 | NotEnforcedCount int64 `json:"notEnforcedCount,omitempty"` 28 | } 29 | 30 | // Validate validates this policy stats 31 | func (m *PolicyStats) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this policy stats based on context it is used 36 | func (m *PolicyStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *PolicyStats) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *PolicyStats) UnmarshalBinary(b []byte) error { 50 | var res PolicyStats 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/principal.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Principal Principal 16 | // 17 | // swagger:model Principal 18 | type Principal struct { 19 | 20 | // name 21 | Name string `json:"name,omitempty"` 22 | } 23 | 24 | // Validate validates this principal 25 | func (m *Principal) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this principal based on context it is used 30 | func (m *Principal) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *Principal) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *Principal) UnmarshalBinary(b []byte) error { 44 | var res Principal 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/provider.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Provider Provider 16 | // 17 | // swagger:model Provider 18 | type Provider struct { 19 | 20 | // The Terraform provider's statically configured attributes. 21 | Attributes map[string]string `json:"attributes,omitempty"` 22 | 23 | // The Terraform provider's type. 24 | Type string `json:"type,omitempty"` 25 | } 26 | 27 | // Validate validates this provider 28 | func (m *Provider) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this provider based on context it is used 33 | func (m *Provider) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *Provider) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *Provider) UnmarshalBinary(b []byte) error { 47 | var res Provider 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/public_key.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // PublicKey PublicKey 16 | // 17 | // swagger:model PublicKey 18 | type PublicKey struct { 19 | 20 | // algorithm 21 | Algorithm string `json:"algorithm,omitempty"` 22 | 23 | // encoded 24 | // Format: byte 25 | Encoded strfmt.Base64 `json:"encoded,omitempty"` 26 | 27 | // format 28 | Format string `json:"format,omitempty"` 29 | } 30 | 31 | // Validate validates this public key 32 | func (m *PublicKey) Validate(formats strfmt.Registry) error { 33 | return nil 34 | } 35 | 36 | // ContextValidate validates this public key based on context it is used 37 | func (m *PublicKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 38 | return nil 39 | } 40 | 41 | // MarshalBinary interface implementation 42 | func (m *PublicKey) MarshalBinary() ([]byte, error) { 43 | if m == nil { 44 | return nil, nil 45 | } 46 | return swag.WriteJSON(m) 47 | } 48 | 49 | // UnmarshalBinary interface implementation 50 | func (m *PublicKey) UnmarshalBinary(b []byte) error { 51 | var res PublicKey 52 | if err := swag.ReadJSON(b, &res); err != nil { 53 | return err 54 | } 55 | *m = res 56 | return nil 57 | } 58 | -------------------------------------------------------------------------------- /pkg/models/rate_factor.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // RateFactor RateFactor 16 | // 17 | // swagger:model RateFactor 18 | type RateFactor struct { 19 | 20 | // context metering item 21 | ContextMeteringItem string `json:"contextMeteringItem,omitempty"` 22 | 23 | // rate factor 24 | RateFactor float64 `json:"rateFactor,omitempty"` 25 | } 26 | 27 | // Validate validates this rate factor 28 | func (m *RateFactor) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this rate factor based on context it is used 33 | func (m *RateFactor) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *RateFactor) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *RateFactor) UnmarshalBinary(b []byte) error { 47 | var res RateFactor 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/reference.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Reference Reference 16 | // 17 | // swagger:model Reference 18 | type Reference struct { 19 | 20 | // rid 21 | Rid string `json:"rid,omitempty"` 22 | 23 | // uid 24 | UID string `json:"uid,omitempty"` 25 | } 26 | 27 | // Validate validates this reference 28 | func (m *Reference) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this reference based on context it is used 33 | func (m *Reference) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *Reference) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *Reference) UnmarshalBinary(b []byte) error { 47 | var res Reference 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/region_specification.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // RegionSpecification Specification for a region in a cloud account. 18 | // 19 | // swagger:model RegionSpecification 20 | type RegionSpecification struct { 21 | 22 | // Unique identifier of region on the provider side. 23 | // Example: us-west 24 | // Required: true 25 | ExternalRegionID *string `json:"externalRegionId"` 26 | 27 | // Name of region on the provider side. In vSphere, the name of the region is different from its id. 28 | // Example: us-west 29 | // Required: true 30 | Name *string `json:"name"` 31 | } 32 | 33 | // Validate validates this region specification 34 | func (m *RegionSpecification) Validate(formats strfmt.Registry) error { 35 | var res []error 36 | 37 | if err := m.validateExternalRegionID(formats); err != nil { 38 | res = append(res, err) 39 | } 40 | 41 | if err := m.validateName(formats); err != nil { 42 | res = append(res, err) 43 | } 44 | 45 | if len(res) > 0 { 46 | return errors.CompositeValidationError(res...) 47 | } 48 | return nil 49 | } 50 | 51 | func (m *RegionSpecification) validateExternalRegionID(formats strfmt.Registry) error { 52 | 53 | if err := validate.Required("externalRegionId", "body", m.ExternalRegionID); err != nil { 54 | return err 55 | } 56 | 57 | return nil 58 | } 59 | 60 | func (m *RegionSpecification) validateName(formats strfmt.Registry) error { 61 | 62 | if err := validate.Required("name", "body", m.Name); err != nil { 63 | return err 64 | } 65 | 66 | return nil 67 | } 68 | 69 | // ContextValidate validates this region specification based on context it is used 70 | func (m *RegionSpecification) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 71 | return nil 72 | } 73 | 74 | // MarshalBinary interface implementation 75 | func (m *RegionSpecification) MarshalBinary() ([]byte, error) { 76 | if m == nil { 77 | return nil, nil 78 | } 79 | return swag.WriteJSON(m) 80 | } 81 | 82 | // UnmarshalBinary interface implementation 83 | func (m *RegionSpecification) UnmarshalBinary(b []byte) error { 84 | var res RegionSpecification 85 | if err := swag.ReadJSON(b, &res); err != nil { 86 | return err 87 | } 88 | *m = res 89 | return nil 90 | } 91 | -------------------------------------------------------------------------------- /pkg/models/requests.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Requests Requests 16 | // 17 | // swagger:model Requests 18 | type Requests struct { 19 | 20 | // cpu 21 | CPU string `json:"cpu,omitempty"` 22 | 23 | // memory 24 | Memory string `json:"memory,omitempty"` 25 | } 26 | 27 | // Validate validates this requests 28 | func (m *Requests) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this requests based on context it is used 33 | func (m *Requests) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *Requests) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *Requests) UnmarshalBinary(b []byte) error { 47 | var res Requests 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/resource_action_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // ResourceActionRequest ResourceActionRequest 16 | // 17 | // # Represents a resource day-two request 18 | // 19 | // swagger:model ResourceActionRequest 20 | type ResourceActionRequest struct { 21 | 22 | // The id of the action to perform. 23 | ActionID string `json:"actionId,omitempty"` 24 | 25 | // Resource action request inputs 26 | Inputs interface{} `json:"inputs,omitempty"` 27 | 28 | // Reason for requesting a day2 operation 29 | Reason string `json:"reason,omitempty"` 30 | } 31 | 32 | // Validate validates this resource action request 33 | func (m *ResourceActionRequest) Validate(formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // ContextValidate validates this resource action request based on context it is used 38 | func (m *ResourceActionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 39 | return nil 40 | } 41 | 42 | // MarshalBinary interface implementation 43 | func (m *ResourceActionRequest) MarshalBinary() ([]byte, error) { 44 | if m == nil { 45 | return nil, nil 46 | } 47 | return swag.WriteJSON(m) 48 | } 49 | 50 | // UnmarshalBinary interface implementation 51 | func (m *ResourceActionRequest) UnmarshalBinary(b []byte) error { 52 | var res ResourceActionRequest 53 | if err := swag.ReadJSON(b, &res); err != nil { 54 | return err 55 | } 56 | *m = res 57 | return nil 58 | } 59 | -------------------------------------------------------------------------------- /pkg/models/resource_reference.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // ResourceReference ResourceReference 16 | // 17 | // swagger:model ResourceReference 18 | type ResourceReference struct { 19 | 20 | // description 21 | Description string `json:"description,omitempty"` 22 | 23 | // id 24 | ID string `json:"id,omitempty"` 25 | 26 | // name 27 | Name string `json:"name,omitempty"` 28 | 29 | // version 30 | Version string `json:"version,omitempty"` 31 | } 32 | 33 | // Validate validates this resource reference 34 | func (m *ResourceReference) Validate(formats strfmt.Registry) error { 35 | return nil 36 | } 37 | 38 | // ContextValidate validates this resource reference based on context it is used 39 | func (m *ResourceReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 40 | return nil 41 | } 42 | 43 | // MarshalBinary interface implementation 44 | func (m *ResourceReference) MarshalBinary() ([]byte, error) { 45 | if m == nil { 46 | return nil, nil 47 | } 48 | return swag.WriteJSON(m) 49 | } 50 | 51 | // UnmarshalBinary interface implementation 52 | func (m *ResourceReference) UnmarshalBinary(b []byte) error { 53 | var res ResourceReference 54 | if err := swag.ReadJSON(b, &res); err != nil { 55 | return err 56 | } 57 | *m = res 58 | return nil 59 | } 60 | -------------------------------------------------------------------------------- /pkg/models/resume_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // ResumeRequest ResumeRequest 18 | // 19 | // swagger:model ResumeRequest 20 | type ResumeRequest struct { 21 | 22 | // action name 23 | ActionName string `json:"actionName,omitempty"` 24 | 25 | // id 26 | // Format: uuid 27 | ID strfmt.UUID `json:"id,omitempty"` 28 | 29 | // operation 30 | Operation string `json:"operation,omitempty"` 31 | 32 | // request Id 33 | RequestID string `json:"requestId,omitempty"` 34 | 35 | // resource type 36 | ResourceType string `json:"resourceType,omitempty"` 37 | } 38 | 39 | // Validate validates this resume request 40 | func (m *ResumeRequest) Validate(formats strfmt.Registry) error { 41 | var res []error 42 | 43 | if err := m.validateID(formats); err != nil { 44 | res = append(res, err) 45 | } 46 | 47 | if len(res) > 0 { 48 | return errors.CompositeValidationError(res...) 49 | } 50 | return nil 51 | } 52 | 53 | func (m *ResumeRequest) validateID(formats strfmt.Registry) error { 54 | if swag.IsZero(m.ID) { // not required 55 | return nil 56 | } 57 | 58 | if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil { 59 | return err 60 | } 61 | 62 | return nil 63 | } 64 | 65 | // ContextValidate validates this resume request based on context it is used 66 | func (m *ResumeRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 67 | return nil 68 | } 69 | 70 | // MarshalBinary interface implementation 71 | func (m *ResumeRequest) MarshalBinary() ([]byte, error) { 72 | if m == nil { 73 | return nil, nil 74 | } 75 | return swag.WriteJSON(m) 76 | } 77 | 78 | // UnmarshalBinary interface implementation 79 | func (m *ResumeRequest) UnmarshalBinary(b []byte) error { 80 | var res ResumeRequest 81 | if err := swag.ReadJSON(b, &res); err != nil { 82 | return err 83 | } 84 | *m = res 85 | return nil 86 | } 87 | -------------------------------------------------------------------------------- /pkg/models/service_account_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // ServiceAccountRequest ServiceAccountRequest 16 | // 17 | // swagger:model ServiceAccountRequest 18 | type ServiceAccountRequest struct { 19 | 20 | // host name 21 | HostName string `json:"hostName,omitempty"` 22 | 23 | // resource Id 24 | ResourceID string `json:"resourceId,omitempty"` 25 | 26 | // resource type 27 | ResourceType string `json:"resourceType,omitempty"` 28 | } 29 | 30 | // Validate validates this service account request 31 | func (m *ServiceAccountRequest) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this service account request based on context it is used 36 | func (m *ServiceAccountRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *ServiceAccountRequest) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *ServiceAccountRequest) UnmarshalBinary(b []byte) error { 50 | var res ServiceAccountRequest 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/service_document_query_result.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // ServiceDocumentQueryResult service document query result 16 | // 17 | // swagger:model ServiceDocumentQueryResult 18 | type ServiceDocumentQueryResult struct { 19 | 20 | // document count 21 | DocumentCount int64 `json:"documentCount,omitempty"` 22 | 23 | // document links 24 | DocumentLinks []string `json:"documentLinks"` 25 | 26 | // documents 27 | Documents map[string]string `json:"documents,omitempty"` 28 | 29 | // next page link 30 | NextPageLink string `json:"nextPageLink,omitempty"` 31 | 32 | // next page links per group 33 | NextPageLinksPerGroup map[string]string `json:"nextPageLinksPerGroup,omitempty"` 34 | 35 | // prev page link 36 | PrevPageLink string `json:"prevPageLink,omitempty"` 37 | 38 | // selected documents 39 | SelectedDocuments map[string]string `json:"selectedDocuments,omitempty"` 40 | 41 | // selected links 42 | SelectedLinks []string `json:"selectedLinks"` 43 | 44 | // selected links per document 45 | SelectedLinksPerDocument map[string]string `json:"selectedLinksPerDocument,omitempty"` 46 | } 47 | 48 | // Validate validates this service document query result 49 | func (m *ServiceDocumentQueryResult) Validate(formats strfmt.Registry) error { 50 | return nil 51 | } 52 | 53 | // ContextValidate validates this service document query result based on context it is used 54 | func (m *ServiceDocumentQueryResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 55 | return nil 56 | } 57 | 58 | // MarshalBinary interface implementation 59 | func (m *ServiceDocumentQueryResult) MarshalBinary() ([]byte, error) { 60 | if m == nil { 61 | return nil, nil 62 | } 63 | return swag.WriteJSON(m) 64 | } 65 | 66 | // UnmarshalBinary interface implementation 67 | func (m *ServiceDocumentQueryResult) UnmarshalBinary(b []byte) error { 68 | var res ServiceDocumentQueryResult 69 | if err := swag.ReadJSON(b, &res); err != nil { 70 | return err 71 | } 72 | *m = res 73 | return nil 74 | } 75 | -------------------------------------------------------------------------------- /pkg/models/socket_context.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // SocketContext SocketContext 16 | // 17 | // swagger:model SocketContext 18 | type SocketContext struct { 19 | 20 | // last use time micros 21 | LastUseTimeMicros int64 `json:"lastUseTimeMicros,omitempty"` 22 | } 23 | 24 | // Validate validates this socket context 25 | func (m *SocketContext) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this socket context based on context it is used 30 | func (m *SocketContext) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *SocketContext) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *SocketContext) UnmarshalBinary(b []byte) error { 44 | var res SocketContext 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/sort.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Sort Sort 16 | // 17 | // swagger:model Sort 18 | type Sort struct { 19 | 20 | // empty 21 | Empty bool `json:"empty,omitempty"` 22 | 23 | // sorted 24 | Sorted bool `json:"sorted,omitempty"` 25 | 26 | // unsorted 27 | Unsorted bool `json:"unsorted,omitempty"` 28 | } 29 | 30 | // Validate validates this sort 31 | func (m *Sort) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this sort based on context it is used 36 | func (m *Sort) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *Sort) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *Sort) UnmarshalBinary(b []byte) error { 50 | var res Sort 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/source_control_sync_all_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // SourceControlSyncAllRequest SourceControlSyncAllRequest 16 | // 17 | // swagger:model SourceControlSyncAllRequest 18 | type SourceControlSyncAllRequest struct { 19 | 20 | // Project Ids 21 | ProjectIds []string `json:"projectIds"` 22 | } 23 | 24 | // Validate validates this source control sync all request 25 | func (m *SourceControlSyncAllRequest) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this source control sync all request based on context it is used 30 | func (m *SourceControlSyncAllRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *SourceControlSyncAllRequest) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *SourceControlSyncAllRequest) UnmarshalBinary(b []byte) error { 44 | var res SourceControlSyncAllRequest 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/stack_trace_element.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // StackTraceElement StackTraceElement 16 | // 17 | // swagger:model StackTraceElement 18 | type StackTraceElement struct { 19 | 20 | // class loader name 21 | ClassLoaderName string `json:"classLoaderName,omitempty"` 22 | 23 | // file name 24 | FileName string `json:"fileName,omitempty"` 25 | 26 | // line number 27 | LineNumber int32 `json:"lineNumber,omitempty"` 28 | 29 | // method name 30 | MethodName string `json:"methodName,omitempty"` 31 | 32 | // module name 33 | ModuleName string `json:"moduleName,omitempty"` 34 | 35 | // module version 36 | ModuleVersion string `json:"moduleVersion,omitempty"` 37 | } 38 | 39 | // Validate validates this stack trace element 40 | func (m *StackTraceElement) Validate(formats strfmt.Registry) error { 41 | return nil 42 | } 43 | 44 | // ContextValidate validates this stack trace element based on context it is used 45 | func (m *StackTraceElement) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 46 | return nil 47 | } 48 | 49 | // MarshalBinary interface implementation 50 | func (m *StackTraceElement) MarshalBinary() ([]byte, error) { 51 | if m == nil { 52 | return nil, nil 53 | } 54 | return swag.WriteJSON(m) 55 | } 56 | 57 | // UnmarshalBinary interface implementation 58 | func (m *StackTraceElement) UnmarshalBinary(b []byte) error { 59 | var res StackTraceElement 60 | if err := swag.ReadJSON(b, &res); err != nil { 61 | return err 62 | } 63 | *m = res 64 | return nil 65 | } 66 | -------------------------------------------------------------------------------- /pkg/models/storage_policy.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // StoragePolicy StoragePolicy 16 | // 17 | // swagger:model StoragePolicy 18 | type StoragePolicy struct { 19 | 20 | // kubernetes Id 21 | KubernetesID string `json:"kubernetesId,omitempty"` 22 | } 23 | 24 | // Validate validates this storage policy 25 | func (m *StoragePolicy) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this storage policy based on context it is used 30 | func (m *StoragePolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *StoragePolicy) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *StoragePolicy) UnmarshalBinary(b []byte) error { 44 | var res StoragePolicy 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/storage_spec.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // StorageSpec StorageSpec 16 | // 17 | // swagger:model StorageSpec 18 | type StorageSpec struct { 19 | 20 | // desc 21 | Desc string `json:"desc,omitempty"` 22 | 23 | // document self link 24 | DocumentSelfLink string `json:"documentSelfLink,omitempty"` 25 | 26 | // id 27 | ID string `json:"id,omitempty"` 28 | 29 | // limit 30 | Limit int64 `json:"limit,omitempty"` 31 | 32 | // name 33 | Name string `json:"name,omitempty"` 34 | } 35 | 36 | // Validate validates this storage spec 37 | func (m *StorageSpec) Validate(formats strfmt.Registry) error { 38 | return nil 39 | } 40 | 41 | // ContextValidate validates this storage spec based on context it is used 42 | func (m *StorageSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 43 | return nil 44 | } 45 | 46 | // MarshalBinary interface implementation 47 | func (m *StorageSpec) MarshalBinary() ([]byte, error) { 48 | if m == nil { 49 | return nil, nil 50 | } 51 | return swag.WriteJSON(m) 52 | } 53 | 54 | // UnmarshalBinary interface implementation 55 | func (m *StorageSpec) UnmarshalBinary(b []byte) error { 56 | var res StorageSpec 57 | if err := swag.ReadJSON(b, &res); err != nil { 58 | return err 59 | } 60 | *m = res 61 | return nil 62 | } 63 | -------------------------------------------------------------------------------- /pkg/models/streaming_response_body.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | // StreamingResponseBody StreamingResponseBody 9 | // 10 | // swagger:model StreamingResponseBody 11 | type StreamingResponseBody interface{} 12 | -------------------------------------------------------------------------------- /pkg/models/supervisor_namespace_quota.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // SupervisorNamespaceQuota SupervisorNamespaceQuota 16 | // 17 | // swagger:model SupervisorNamespaceQuota 18 | type SupervisorNamespaceQuota struct { 19 | 20 | // definition 21 | Definition int64 `json:"definition,omitempty"` 22 | 23 | // resource 24 | Resource string `json:"resource,omitempty"` 25 | } 26 | 27 | // Validate validates this supervisor namespace quota 28 | func (m *SupervisorNamespaceQuota) Validate(formats strfmt.Registry) error { 29 | return nil 30 | } 31 | 32 | // ContextValidate validates this supervisor namespace quota based on context it is used 33 | func (m *SupervisorNamespaceQuota) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // MarshalBinary interface implementation 38 | func (m *SupervisorNamespaceQuota) MarshalBinary() ([]byte, error) { 39 | if m == nil { 40 | return nil, nil 41 | } 42 | return swag.WriteJSON(m) 43 | } 44 | 45 | // UnmarshalBinary interface implementation 46 | func (m *SupervisorNamespaceQuota) UnmarshalBinary(b []byte) error { 47 | var res SupervisorNamespaceQuota 48 | if err := swag.ReadJSON(b, &res); err != nil { 49 | return err 50 | } 51 | *m = res 52 | return nil 53 | } 54 | -------------------------------------------------------------------------------- /pkg/models/supervisor_namespace_sync_request_d_t_o.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // SupervisorNamespaceSyncRequestDTO SupervisorNamespaceSyncRequestDTO 16 | // 17 | // swagger:model SupervisorNamespaceSyncRequestDTO 18 | type SupervisorNamespaceSyncRequestDTO struct { 19 | 20 | // edit groups 21 | EditGroups string `json:"editGroups,omitempty"` 22 | 23 | // edit users 24 | EditUsers string `json:"editUsers,omitempty"` 25 | 26 | // owner groups 27 | OwnerGroups string `json:"ownerGroups,omitempty"` 28 | 29 | // owner users 30 | OwnerUsers string `json:"ownerUsers,omitempty"` 31 | 32 | // view groups 33 | ViewGroups string `json:"viewGroups,omitempty"` 34 | 35 | // view users 36 | ViewUsers string `json:"viewUsers,omitempty"` 37 | } 38 | 39 | // Validate validates this supervisor namespace sync request d t o 40 | func (m *SupervisorNamespaceSyncRequestDTO) Validate(formats strfmt.Registry) error { 41 | return nil 42 | } 43 | 44 | // ContextValidate validates this supervisor namespace sync request d t o based on context it is used 45 | func (m *SupervisorNamespaceSyncRequestDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 46 | return nil 47 | } 48 | 49 | // MarshalBinary interface implementation 50 | func (m *SupervisorNamespaceSyncRequestDTO) MarshalBinary() ([]byte, error) { 51 | if m == nil { 52 | return nil, nil 53 | } 54 | return swag.WriteJSON(m) 55 | } 56 | 57 | // UnmarshalBinary interface implementation 58 | func (m *SupervisorNamespaceSyncRequestDTO) UnmarshalBinary(b []byte) error { 59 | var res SupervisorNamespaceSyncRequestDTO 60 | if err := swag.ReadJSON(b, &res); err != nil { 61 | return err 62 | } 63 | *m = res 64 | return nil 65 | } 66 | -------------------------------------------------------------------------------- /pkg/models/supported_api.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // SupportedAPI SupportedApi 16 | // 17 | // swagger:model SupportedApi 18 | type SupportedAPI struct { 19 | 20 | // api version 21 | APIVersion string `json:"apiVersion,omitempty"` 22 | } 23 | 24 | // Validate validates this supported Api 25 | func (m *SupportedAPI) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this supported Api based on context it is used 30 | func (m *SupportedAPI) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *SupportedAPI) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *SupportedAPI) UnmarshalBinary(b []byte) error { 44 | var res SupportedAPI 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/t_m_c_endpoint_properties.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // TMCEndpointProperties TMCEndpointProperties 16 | // 17 | // swagger:model TMCEndpointProperties 18 | type TMCEndpointProperties struct { 19 | 20 | // agent Id 21 | AgentID string `json:"agentId,omitempty"` 22 | 23 | // api endpoint 24 | APIEndpoint string `json:"apiEndpoint,omitempty"` 25 | 26 | // api token 27 | APIToken string `json:"apiToken,omitempty"` 28 | 29 | // ca certificate 30 | CaCertificate string `json:"caCertificate,omitempty"` 31 | 32 | // certificate 33 | Certificate string `json:"certificate,omitempty"` 34 | 35 | // credentials type 36 | CredentialsType string `json:"credentialsType,omitempty"` 37 | 38 | // dc Id 39 | DcID string `json:"dcId,omitempty"` 40 | 41 | // default cluster group name 42 | DefaultClusterGroupName string `json:"defaultClusterGroupName,omitempty"` 43 | 44 | // default workspace name 45 | DefaultWorkspaceName string `json:"defaultWorkspaceName,omitempty"` 46 | 47 | // org Id 48 | OrgID string `json:"orgId,omitempty"` 49 | 50 | // private key 51 | PrivateKey string `json:"privateKey,omitempty"` 52 | 53 | // private key Id 54 | PrivateKeyID string `json:"privateKeyId,omitempty"` 55 | 56 | // public key 57 | PublicKey string `json:"publicKey,omitempty"` 58 | 59 | // skip cert validation 60 | SkipCertValidation bool `json:"skipCertValidation,omitempty"` 61 | 62 | // user email 63 | UserEmail string `json:"userEmail,omitempty"` 64 | } 65 | 66 | // Validate validates this t m c endpoint properties 67 | func (m *TMCEndpointProperties) Validate(formats strfmt.Registry) error { 68 | return nil 69 | } 70 | 71 | // ContextValidate validates this t m c endpoint properties based on context it is used 72 | func (m *TMCEndpointProperties) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 73 | return nil 74 | } 75 | 76 | // MarshalBinary interface implementation 77 | func (m *TMCEndpointProperties) MarshalBinary() ([]byte, error) { 78 | if m == nil { 79 | return nil, nil 80 | } 81 | return swag.WriteJSON(m) 82 | } 83 | 84 | // UnmarshalBinary interface implementation 85 | func (m *TMCEndpointProperties) UnmarshalBinary(b []byte) error { 86 | var res TMCEndpointProperties 87 | if err := swag.ReadJSON(b, &res); err != nil { 88 | return err 89 | } 90 | *m = res 91 | return nil 92 | } 93 | -------------------------------------------------------------------------------- /pkg/models/t_m_c_request_tracker.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // TMCRequestTracker TMCRequestTracker 18 | // 19 | // swagger:model TMCRequestTracker 20 | type TMCRequestTracker struct { 21 | 22 | // api endpoint 23 | APIEndpoint string `json:"apiEndpoint,omitempty"` 24 | 25 | // id 26 | // Format: uuid 27 | ID strfmt.UUID `json:"id,omitempty"` 28 | 29 | // org Id 30 | OrgID string `json:"orgId,omitempty"` 31 | } 32 | 33 | // Validate validates this t m c request tracker 34 | func (m *TMCRequestTracker) Validate(formats strfmt.Registry) error { 35 | var res []error 36 | 37 | if err := m.validateID(formats); err != nil { 38 | res = append(res, err) 39 | } 40 | 41 | if len(res) > 0 { 42 | return errors.CompositeValidationError(res...) 43 | } 44 | return nil 45 | } 46 | 47 | func (m *TMCRequestTracker) validateID(formats strfmt.Registry) error { 48 | if swag.IsZero(m.ID) { // not required 49 | return nil 50 | } 51 | 52 | if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil { 53 | return err 54 | } 55 | 56 | return nil 57 | } 58 | 59 | // ContextValidate validates this t m c request tracker based on context it is used 60 | func (m *TMCRequestTracker) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 61 | return nil 62 | } 63 | 64 | // MarshalBinary interface implementation 65 | func (m *TMCRequestTracker) MarshalBinary() ([]byte, error) { 66 | if m == nil { 67 | return nil, nil 68 | } 69 | return swag.WriteJSON(m) 70 | } 71 | 72 | // UnmarshalBinary interface implementation 73 | func (m *TMCRequestTracker) UnmarshalBinary(b []byte) error { 74 | var res TMCRequestTracker 75 | if err := swag.ReadJSON(b, &res); err != nil { 76 | return err 77 | } 78 | *m = res 79 | return nil 80 | } 81 | -------------------------------------------------------------------------------- /pkg/models/tag.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // Tag tag 18 | // 19 | // swagger:model Tag 20 | type Tag struct { 21 | 22 | // Tag's key. 23 | // Required: true 24 | Key *string `json:"key"` 25 | 26 | // Tag's value. 27 | // Required: true 28 | Value *string `json:"value"` 29 | } 30 | 31 | // Validate validates this tag 32 | func (m *Tag) Validate(formats strfmt.Registry) error { 33 | var res []error 34 | 35 | if err := m.validateKey(formats); err != nil { 36 | res = append(res, err) 37 | } 38 | 39 | if err := m.validateValue(formats); err != nil { 40 | res = append(res, err) 41 | } 42 | 43 | if len(res) > 0 { 44 | return errors.CompositeValidationError(res...) 45 | } 46 | return nil 47 | } 48 | 49 | func (m *Tag) validateKey(formats strfmt.Registry) error { 50 | 51 | if err := validate.Required("key", "body", m.Key); err != nil { 52 | return err 53 | } 54 | 55 | return nil 56 | } 57 | 58 | func (m *Tag) validateValue(formats strfmt.Registry) error { 59 | 60 | if err := validate.Required("value", "body", m.Value); err != nil { 61 | return err 62 | } 63 | 64 | return nil 65 | } 66 | 67 | // ContextValidate validates this tag based on context it is used 68 | func (m *Tag) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 69 | return nil 70 | } 71 | 72 | // MarshalBinary interface implementation 73 | func (m *Tag) MarshalBinary() ([]byte, error) { 74 | if m == nil { 75 | return nil, nil 76 | } 77 | return swag.WriteJSON(m) 78 | } 79 | 80 | // UnmarshalBinary interface implementation 81 | func (m *Tag) UnmarshalBinary(b []byte) error { 82 | var res Tag 83 | if err := swag.ReadJSON(b, &res); err != nil { 84 | return err 85 | } 86 | *m = res 87 | return nil 88 | } 89 | -------------------------------------------------------------------------------- /pkg/models/type.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Type Type 16 | // 17 | // swagger:model Type 18 | type Type struct { 19 | 20 | // kind 21 | Kind string `json:"kind,omitempty"` 22 | 23 | // package 24 | Package string `json:"package,omitempty"` 25 | 26 | // version 27 | Version string `json:"version,omitempty"` 28 | } 29 | 30 | // Validate validates this type 31 | func (m *Type) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this type based on context it is used 36 | func (m *Type) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *Type) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *Type) UnmarshalBinary(b []byte) error { 50 | var res Type 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/unregister_machine_request.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // UnregisterMachineRequest unregister machine request 16 | // 17 | // swagger:model UnregisterMachineRequest 18 | type UnregisterMachineRequest struct { 19 | 20 | // A link to the onboarded machine to unregister from Cloud Assembly. 21 | ResourceLink string `json:"resourceLink,omitempty"` 22 | } 23 | 24 | // Validate validates this unregister machine request 25 | func (m *UnregisterMachineRequest) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this unregister machine request based on context it is used 30 | func (m *UnregisterMachineRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *UnregisterMachineRequest) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *UnregisterMachineRequest) UnmarshalBinary(b []byte) error { 44 | var res UnregisterMachineRequest 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/unregister_machine_response.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // UnregisterMachineResponse unregister machine response 16 | // 17 | // swagger:model UnregisterMachineResponse 18 | type UnregisterMachineResponse struct { 19 | 20 | // A link to the unregistered machine. 21 | ResourceLink string `json:"resourceLink,omitempty"` 22 | } 23 | 24 | // Validate validates this unregister machine response 25 | func (m *UnregisterMachineResponse) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this unregister machine response based on context it is used 30 | func (m *UnregisterMachineResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *UnregisterMachineResponse) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *UnregisterMachineResponse) UnmarshalBinary(b []byte) error { 44 | var res UnregisterMachineResponse 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/update_external_network_ip_range_specification.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // UpdateExternalNetworkIPRangeSpecification Specification for updating an ExternalNetworkIPRange 18 | // 19 | // swagger:model UpdateExternalNetworkIPRangeSpecification 20 | type UpdateExternalNetworkIPRangeSpecification struct { 21 | 22 | // A list of fabric network Ids that this IP range should be associated with. 23 | // Unique: true 24 | FabricNetworkIds []string `json:"fabricNetworkIds"` 25 | } 26 | 27 | // Validate validates this update external network IP range specification 28 | func (m *UpdateExternalNetworkIPRangeSpecification) Validate(formats strfmt.Registry) error { 29 | var res []error 30 | 31 | if err := m.validateFabricNetworkIds(formats); err != nil { 32 | res = append(res, err) 33 | } 34 | 35 | if len(res) > 0 { 36 | return errors.CompositeValidationError(res...) 37 | } 38 | return nil 39 | } 40 | 41 | func (m *UpdateExternalNetworkIPRangeSpecification) validateFabricNetworkIds(formats strfmt.Registry) error { 42 | if swag.IsZero(m.FabricNetworkIds) { // not required 43 | return nil 44 | } 45 | 46 | if err := validate.UniqueItems("fabricNetworkIds", "body", m.FabricNetworkIds); err != nil { 47 | return err 48 | } 49 | 50 | return nil 51 | } 52 | 53 | // ContextValidate validates this update external network IP range specification based on context it is used 54 | func (m *UpdateExternalNetworkIPRangeSpecification) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 55 | return nil 56 | } 57 | 58 | // MarshalBinary interface implementation 59 | func (m *UpdateExternalNetworkIPRangeSpecification) MarshalBinary() ([]byte, error) { 60 | if m == nil { 61 | return nil, nil 62 | } 63 | return swag.WriteJSON(m) 64 | } 65 | 66 | // UnmarshalBinary interface implementation 67 | func (m *UpdateExternalNetworkIPRangeSpecification) UnmarshalBinary(b []byte) error { 68 | var res UpdateExternalNetworkIPRangeSpecification 69 | if err := swag.ReadJSON(b, &res); err != nil { 70 | return err 71 | } 72 | *m = res 73 | return nil 74 | } 75 | -------------------------------------------------------------------------------- /pkg/models/update_network_interface_specification.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // UpdateNetworkInterfaceSpecification update network interface specification 16 | // 17 | // swagger:model UpdateNetworkInterfaceSpecification 18 | type UpdateNetworkInterfaceSpecification struct { 19 | 20 | // Set IPv4 address for the machine network interface. The change will not propagate to cloud endpoint for provisioned machines. 21 | Address string `json:"address,omitempty"` 22 | 23 | // Additional custom properties that may be used to extend the machine. Internal custom properties (for example, prefixed with: "__") can not be updated. 24 | CustomProperties map[string]string `json:"customProperties,omitempty"` 25 | 26 | // Describes the network interface of the machine within the scope of your organization and is not propagated to the cloud 27 | Description string `json:"description,omitempty"` 28 | 29 | // Network interface name used during machine network interface provisioning. This property only takes effect if it is set before machine provisioning starts. The change will not propagate to cloud endpoint for provisioned machines. 30 | Name string `json:"name,omitempty"` 31 | } 32 | 33 | // Validate validates this update network interface specification 34 | func (m *UpdateNetworkInterfaceSpecification) Validate(formats strfmt.Registry) error { 35 | return nil 36 | } 37 | 38 | // ContextValidate validates this update network interface specification based on context it is used 39 | func (m *UpdateNetworkInterfaceSpecification) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 40 | return nil 41 | } 42 | 43 | // MarshalBinary interface implementation 44 | func (m *UpdateNetworkInterfaceSpecification) MarshalBinary() ([]byte, error) { 45 | if m == nil { 46 | return nil, nil 47 | } 48 | return swag.WriteJSON(m) 49 | } 50 | 51 | // UnmarshalBinary interface implementation 52 | func (m *UpdateNetworkInterfaceSpecification) UnmarshalBinary(b []byte) error { 53 | var res UpdateNetworkInterfaceSpecification 54 | if err := swag.ReadJSON(b, &res); err != nil { 55 | return err 56 | } 57 | *m = res 58 | return nil 59 | } 60 | -------------------------------------------------------------------------------- /pkg/models/uri.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // URI URI 16 | // 17 | // swagger:model URI 18 | type URI struct { 19 | 20 | // absolute 21 | Absolute bool `json:"absolute,omitempty"` 22 | 23 | // authority 24 | Authority string `json:"authority,omitempty"` 25 | 26 | // fragment 27 | Fragment string `json:"fragment,omitempty"` 28 | 29 | // host 30 | Host string `json:"host,omitempty"` 31 | 32 | // opaque 33 | Opaque bool `json:"opaque,omitempty"` 34 | 35 | // path 36 | Path string `json:"path,omitempty"` 37 | 38 | // port 39 | Port int32 `json:"port,omitempty"` 40 | 41 | // query 42 | Query string `json:"query,omitempty"` 43 | 44 | // raw authority 45 | RawAuthority string `json:"rawAuthority,omitempty"` 46 | 47 | // raw fragment 48 | RawFragment string `json:"rawFragment,omitempty"` 49 | 50 | // raw path 51 | RawPath string `json:"rawPath,omitempty"` 52 | 53 | // raw query 54 | RawQuery string `json:"rawQuery,omitempty"` 55 | 56 | // raw scheme specific part 57 | RawSchemeSpecificPart string `json:"rawSchemeSpecificPart,omitempty"` 58 | 59 | // raw user info 60 | RawUserInfo string `json:"rawUserInfo,omitempty"` 61 | 62 | // scheme 63 | Scheme string `json:"scheme,omitempty"` 64 | 65 | // scheme specific part 66 | SchemeSpecificPart string `json:"schemeSpecificPart,omitempty"` 67 | 68 | // user info 69 | UserInfo string `json:"userInfo,omitempty"` 70 | } 71 | 72 | // Validate validates this URI 73 | func (m *URI) Validate(formats strfmt.Registry) error { 74 | return nil 75 | } 76 | 77 | // ContextValidate validates this URI based on context it is used 78 | func (m *URI) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 79 | return nil 80 | } 81 | 82 | // MarshalBinary interface implementation 83 | func (m *URI) MarshalBinary() ([]byte, error) { 84 | if m == nil { 85 | return nil, nil 86 | } 87 | return swag.WriteJSON(m) 88 | } 89 | 90 | // UnmarshalBinary interface implementation 91 | func (m *URI) UnmarshalBinary(b []byte) error { 92 | var res URI 93 | if err := swag.ReadJSON(b, &res); err != nil { 94 | return err 95 | } 96 | *m = res 97 | return nil 98 | } 99 | -------------------------------------------------------------------------------- /pkg/models/user.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/errors" 12 | "github.com/go-openapi/strfmt" 13 | "github.com/go-openapi/swag" 14 | "github.com/go-openapi/validate" 15 | ) 16 | 17 | // User A representation of a user. 18 | // 19 | // swagger:model User 20 | type User struct { 21 | 22 | // The email of the user or name of the group. 23 | // Example: administrator@vmware.com 24 | // Required: true 25 | Email *string `json:"email"` 26 | 27 | // Type of the principal. Currently supported 'user' (default) and 'group'. 28 | // Example: user 29 | Type string `json:"type,omitempty"` 30 | } 31 | 32 | // Validate validates this user 33 | func (m *User) Validate(formats strfmt.Registry) error { 34 | var res []error 35 | 36 | if err := m.validateEmail(formats); err != nil { 37 | res = append(res, err) 38 | } 39 | 40 | if len(res) > 0 { 41 | return errors.CompositeValidationError(res...) 42 | } 43 | return nil 44 | } 45 | 46 | func (m *User) validateEmail(formats strfmt.Registry) error { 47 | 48 | if err := validate.Required("email", "body", m.Email); err != nil { 49 | return err 50 | } 51 | 52 | return nil 53 | } 54 | 55 | // ContextValidate validates this user based on context it is used 56 | func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 57 | return nil 58 | } 59 | 60 | // MarshalBinary interface implementation 61 | func (m *User) MarshalBinary() ([]byte, error) { 62 | if m == nil { 63 | return nil, nil 64 | } 65 | return swag.WriteJSON(m) 66 | } 67 | 68 | // UnmarshalBinary interface implementation 69 | func (m *User) UnmarshalBinary(b []byte) error { 70 | var res User 71 | if err := swag.ReadJSON(b, &res); err != nil { 72 | return err 73 | } 74 | *m = res 75 | return nil 76 | } 77 | -------------------------------------------------------------------------------- /pkg/models/vcf_service_account.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // VcfServiceAccount VcfServiceAccount 16 | // 17 | // swagger:model VcfServiceAccount 18 | type VcfServiceAccount struct { 19 | 20 | // auth credentials 21 | AuthCredentials string `json:"authCredentials,omitempty"` 22 | 23 | // credential Id 24 | CredentialID string `json:"credentialId,omitempty"` 25 | 26 | // id 27 | ID string `json:"id,omitempty"` 28 | 29 | // password 30 | Password string `json:"password,omitempty"` 31 | 32 | // resource Id 33 | ResourceID string `json:"resourceId,omitempty"` 34 | 35 | // resource type 36 | ResourceType string `json:"resourceType,omitempty"` 37 | 38 | // role name 39 | RoleName string `json:"roleName,omitempty"` 40 | 41 | // username 42 | Username string `json:"username,omitempty"` 43 | } 44 | 45 | // Validate validates this vcf service account 46 | func (m *VcfServiceAccount) Validate(formats strfmt.Registry) error { 47 | return nil 48 | } 49 | 50 | // ContextValidate validates this vcf service account based on context it is used 51 | func (m *VcfServiceAccount) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 52 | return nil 53 | } 54 | 55 | // MarshalBinary interface implementation 56 | func (m *VcfServiceAccount) MarshalBinary() ([]byte, error) { 57 | if m == nil { 58 | return nil, nil 59 | } 60 | return swag.WriteJSON(m) 61 | } 62 | 63 | // UnmarshalBinary interface implementation 64 | func (m *VcfServiceAccount) UnmarshalBinary(b []byte) error { 65 | var res VcfServiceAccount 66 | if err := swag.ReadJSON(b, &res); err != nil { 67 | return err 68 | } 69 | *m = res 70 | return nil 71 | } 72 | -------------------------------------------------------------------------------- /pkg/models/vcf_service_credential.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // VcfServiceCredential VcfServiceCredential 16 | // 17 | // swagger:model VcfServiceCredential 18 | type VcfServiceCredential struct { 19 | 20 | // auth credential link 21 | AuthCredentialLink string `json:"authCredentialLink,omitempty"` 22 | 23 | // credential Id 24 | CredentialID string `json:"credentialId,omitempty"` 25 | 26 | // domain Id 27 | DomainID string `json:"domainId,omitempty"` 28 | 29 | // id 30 | ID string `json:"id,omitempty"` 31 | 32 | // integration Id 33 | IntegrationID string `json:"integrationId,omitempty"` 34 | 35 | // resource Id 36 | ResourceID string `json:"resourceId,omitempty"` 37 | 38 | // resource type 39 | ResourceType string `json:"resourceType,omitempty"` 40 | 41 | // role name 42 | RoleName string `json:"roleName,omitempty"` 43 | 44 | // status 45 | Status string `json:"status,omitempty"` 46 | 47 | // task Id 48 | TaskID string `json:"taskId,omitempty"` 49 | 50 | // user name 51 | UserName string `json:"userName,omitempty"` 52 | 53 | // vcf cloud account Id 54 | VcfCloudAccountID string `json:"vcfCloudAccountId,omitempty"` 55 | } 56 | 57 | // Validate validates this vcf service credential 58 | func (m *VcfServiceCredential) Validate(formats strfmt.Registry) error { 59 | return nil 60 | } 61 | 62 | // ContextValidate validates this vcf service credential based on context it is used 63 | func (m *VcfServiceCredential) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 64 | return nil 65 | } 66 | 67 | // MarshalBinary interface implementation 68 | func (m *VcfServiceCredential) MarshalBinary() ([]byte, error) { 69 | if m == nil { 70 | return nil, nil 71 | } 72 | return swag.WriteJSON(m) 73 | } 74 | 75 | // UnmarshalBinary interface implementation 76 | func (m *VcfServiceCredential) UnmarshalBinary(b []byte) error { 77 | var res VcfServiceCredential 78 | if err := swag.ReadJSON(b, &res); err != nil { 79 | return err 80 | } 81 | *m = res 82 | return nil 83 | } 84 | -------------------------------------------------------------------------------- /pkg/models/version.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // Version Version 16 | // 17 | // swagger:model Version 18 | type Version struct { 19 | 20 | // darwin x64 21 | DarwinX64 string `json:"darwinX64,omitempty"` 22 | 23 | // linux x64 24 | LinuxX64 string `json:"linuxX64,omitempty"` 25 | 26 | // windows x64 27 | WindowsX64 string `json:"windowsX64,omitempty"` 28 | } 29 | 30 | // Validate validates this version 31 | func (m *Version) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this version based on context it is used 36 | func (m *Version) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *Version) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *Version) UnmarshalBinary(b []byte) error { 50 | var res Version 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/volume_type_list.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // VolumeTypeList volume type list 16 | // 17 | // swagger:model VolumeTypeList 18 | type VolumeTypeList struct { 19 | 20 | // volume types 21 | VolumeTypes []string `json:"volumeTypes"` 22 | } 23 | 24 | // Validate validates this volume type list 25 | func (m *VolumeTypeList) Validate(formats strfmt.Registry) error { 26 | return nil 27 | } 28 | 29 | // ContextValidate validates this volume type list based on context it is used 30 | func (m *VolumeTypeList) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 31 | return nil 32 | } 33 | 34 | // MarshalBinary interface implementation 35 | func (m *VolumeTypeList) MarshalBinary() ([]byte, error) { 36 | if m == nil { 37 | return nil, nil 38 | } 39 | return swag.WriteJSON(m) 40 | } 41 | 42 | // UnmarshalBinary interface implementation 43 | func (m *VolumeTypeList) UnmarshalBinary(b []byte) error { 44 | var res VolumeTypeList 45 | if err := swag.ReadJSON(b, &res); err != nil { 46 | return err 47 | } 48 | *m = res 49 | return nil 50 | } 51 | -------------------------------------------------------------------------------- /pkg/models/vsphere_account.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // VsphereAccount VsphereAccount 16 | // 17 | // swagger:model VsphereAccount 18 | type VsphereAccount struct { 19 | 20 | // host name 21 | HostName string `json:"hostName,omitempty"` 22 | 23 | // id 24 | ID string `json:"id,omitempty"` 25 | 26 | // region Id 27 | RegionID string `json:"regionId,omitempty"` 28 | } 29 | 30 | // Validate validates this vsphere account 31 | func (m *VsphereAccount) Validate(formats strfmt.Registry) error { 32 | return nil 33 | } 34 | 35 | // ContextValidate validates this vsphere account based on context it is used 36 | func (m *VsphereAccount) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 | return nil 38 | } 39 | 40 | // MarshalBinary interface implementation 41 | func (m *VsphereAccount) MarshalBinary() ([]byte, error) { 42 | if m == nil { 43 | return nil, nil 44 | } 45 | return swag.WriteJSON(m) 46 | } 47 | 48 | // UnmarshalBinary interface implementation 49 | func (m *VsphereAccount) UnmarshalBinary(b []byte) error { 50 | var res VsphereAccount 51 | if err := swag.ReadJSON(b, &res); err != nil { 52 | return err 53 | } 54 | *m = res 55 | return nil 56 | } 57 | -------------------------------------------------------------------------------- /pkg/models/workspace_result.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // WorkspaceResult WorkspaceResult 16 | // 17 | // swagger:model WorkspaceResult 18 | type WorkspaceResult struct { 19 | 20 | // Logs for the executing step. 21 | Logs []string `json:"logs"` 22 | 23 | // Status of the Git clone/creating a container for the Workspace. 24 | // Example: COMPLETED 25 | Status string `json:"status,omitempty"` 26 | 27 | // The current step for Git clone/creating a container for the Workspace. 28 | // Example: GIT_CLONE 29 | Step string `json:"step,omitempty"` 30 | } 31 | 32 | // Validate validates this workspace result 33 | func (m *WorkspaceResult) Validate(formats strfmt.Registry) error { 34 | return nil 35 | } 36 | 37 | // ContextValidate validates this workspace result based on context it is used 38 | func (m *WorkspaceResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 39 | return nil 40 | } 41 | 42 | // MarshalBinary interface implementation 43 | func (m *WorkspaceResult) MarshalBinary() ([]byte, error) { 44 | if m == nil { 45 | return nil, nil 46 | } 47 | return swag.WriteJSON(m) 48 | } 49 | 50 | // UnmarshalBinary interface implementation 51 | func (m *WorkspaceResult) UnmarshalBinary(b []byte) error { 52 | var res WorkspaceResult 53 | if err := swag.ReadJSON(b, &res); err != nil { 54 | return err 55 | } 56 | *m = res 57 | return nil 58 | } 59 | -------------------------------------------------------------------------------- /pkg/models/zone_assignment_specification.go: -------------------------------------------------------------------------------- 1 | // Code generated by go-swagger; DO NOT EDIT. 2 | 3 | package models 4 | 5 | // This file was generated by the swagger tool. 6 | // Editing this file might prove futile when you re-run the swagger generate command 7 | 8 | import ( 9 | "context" 10 | 11 | "github.com/go-openapi/strfmt" 12 | "github.com/go-openapi/swag" 13 | ) 14 | 15 | // ZoneAssignmentSpecification A zone assignment configuration 16 | // 17 | // swagger:model ZoneAssignmentSpecification 18 | type ZoneAssignmentSpecification struct { 19 | 20 | // The maximum amount of cpus that can be used by this cloud zone. Default is 0 (unlimited cpu). 21 | // Example: 2048 22 | CPULimit int64 `json:"cpuLimit,omitempty"` 23 | 24 | // The maximum number of instances that can be provisioned in this cloud zone. Default is 0 (unlimited instances). 25 | // Example: 50 26 | MaxNumberInstances int64 `json:"maxNumberInstances,omitempty"` 27 | 28 | // The maximum amount of memory that can be used by this cloud zone. Default is 0 (unlimited memory). 29 | // Example: 2048 30 | MemoryLimitMB int64 `json:"memoryLimitMB,omitempty"` 31 | 32 | // The priority of this zone in the current project. Lower numbers mean higher priority. Default is 0 (highest) 33 | // Example: 1 34 | Priority int32 `json:"priority,omitempty"` 35 | 36 | // Defines an upper limit on storage that can be requested from a cloud zone which is part of this project. Default is 0 (unlimited storage). Please note that this feature is supported only for vSphere cloud zones. Not valid for other cloud zone types. 37 | // Example: 20 38 | StorageLimitGB int64 `json:"storageLimitGB,omitempty"` 39 | 40 | // The Cloud Zone Id 41 | // Example: 77ee1 42 | ZoneID string `json:"zoneId,omitempty"` 43 | } 44 | 45 | // Validate validates this zone assignment specification 46 | func (m *ZoneAssignmentSpecification) Validate(formats strfmt.Registry) error { 47 | return nil 48 | } 49 | 50 | // ContextValidate validates this zone assignment specification based on context it is used 51 | func (m *ZoneAssignmentSpecification) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 52 | return nil 53 | } 54 | 55 | // MarshalBinary interface implementation 56 | func (m *ZoneAssignmentSpecification) MarshalBinary() ([]byte, error) { 57 | if m == nil { 58 | return nil, nil 59 | } 60 | return swag.WriteJSON(m) 61 | } 62 | 63 | // UnmarshalBinary interface implementation 64 | func (m *ZoneAssignmentSpecification) UnmarshalBinary(b []byte) error { 65 | var res ZoneAssignmentSpecification 66 | if err := swag.ReadJSON(b, &res); err != nil { 67 | return err 68 | } 69 | *m = res 70 | return nil 71 | } 72 | --------------------------------------------------------------------------------